|
41 | 41 | "AutomodTermsUpdateEvent", |
42 | 42 | "BaseChannelPointsRewardData", |
43 | 43 | "BaseEmoteData", |
| 44 | + "BaseHypeTrainEvent", |
44 | 45 | "ChannelAdBreakBeginEvent", |
45 | 46 | "ChannelBanEvent", |
46 | 47 | "ChannelBitsUseEvent", |
@@ -1232,47 +1233,34 @@ class HypeTrainSharedParticipants(TypedDict): |
1232 | 1233 | broadcaster_user_name: str |
1233 | 1234 |
|
1234 | 1235 |
|
1235 | | -class HypeTrainBeginEvent(BaseBroadcasterEvent): |
| 1236 | +class BaseHypeTrainEvent(BaseBroadcasterEvent): |
1236 | 1237 | id: str |
1237 | 1238 | total: int |
| 1239 | + level: int |
| 1240 | + started_at: str |
| 1241 | + top_contributions: list[HypeTrainContributionData] |
| 1242 | + shared_train_participants: list[HypeTrainSharedParticipants] |
| 1243 | + type: Literal["treasure", "golden_kappa", "regular"] |
| 1244 | + is_shared_train: bool |
| 1245 | + |
| 1246 | + |
| 1247 | +class HypeTrainBeginEvent(BaseHypeTrainEvent): |
1238 | 1248 | progress: int |
1239 | 1249 | goal: int |
1240 | | - top_contributions: list[HypeTrainContributionData] |
1241 | | - level: int |
1242 | 1250 | all_time_high_level: int |
1243 | 1251 | all_time_high_total: int |
1244 | | - shared_train_participants: list[HypeTrainSharedParticipants] |
1245 | | - started_at: str |
1246 | 1252 | expires_at: str |
1247 | | - type: Literal["treasure", "golden_kappa", "regular"] |
1248 | | - is_shared_train: bool |
1249 | 1253 |
|
1250 | 1254 |
|
1251 | | -class HypeTrainProgressEvent(BaseBroadcasterEvent): |
1252 | | - id: str |
1253 | | - total: int |
| 1255 | +class HypeTrainProgressEvent(BaseHypeTrainEvent): |
1254 | 1256 | progress: int |
1255 | 1257 | goal: int |
1256 | | - top_contributions: list[HypeTrainContributionData] |
1257 | | - level: int |
1258 | | - shared_train_participants: list[HypeTrainSharedParticipants] |
1259 | | - started_at: str |
1260 | 1258 | expires_at: str |
1261 | | - type: Literal["treasure", "golden_kappa", "regular"] |
1262 | | - is_shared_train: bool |
1263 | 1259 |
|
1264 | 1260 |
|
1265 | | -class HypeTrainEndEvent(BaseBroadcasterEvent): |
1266 | | - id: str |
1267 | | - total: int |
1268 | | - top_contributions: list[HypeTrainContributionData] |
1269 | | - level: int |
1270 | | - shared_train_participants: list[HypeTrainSharedParticipants] |
1271 | | - started_at: str |
| 1261 | +class HypeTrainEndEvent(BaseHypeTrainEvent): |
1272 | 1262 | ended_at: str |
1273 | 1263 | cooldown_ends_at: str |
1274 | | - type: Literal["treasure", "golden_kappa", "regular"] |
1275 | | - is_shared_train: bool |
1276 | 1264 |
|
1277 | 1265 |
|
1278 | 1266 | class ShieldModeBeginEvent(BroadcasterModeratorEvent): |
|
0 commit comments