twitch_highway 0.3.2

Twitch API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
#[cfg(any(
    feature = "ads",
    feature = "bits",
    feature = "channel-points",
    feature = "channels",
    feature = "charity",
    feature = "chat",
    feature = "clips",
    feature = "extensions",
    feature = "goals",
    feature = "guest-star",
    feature = "hype-train",
    feature = "moderation",
    feature = "polls",
    feature = "predictions",
    feature = "raid",
    feature = "schedule",
    feature = "streams",
    feature = "subscriptions",
    feature = "teams",
    feature = "users",
))]
pub(crate) const BROADCASTER_ID: &str = "broadcaster_id";

#[cfg(any(feature = "analytics", feature = "bits", feature = "extensions"))]
pub(crate) const EXTENSION_ID: &str = "extension_id";

#[cfg(any(feature = "chat", feature = "guest-star", feature = "moderation",))]
pub(crate) const MODERATOR_ID: &str = "moderator_id";

#[cfg(any(
    feature = "bits",
    feature = "channels",
    feature = "chat",
    feature = "entitlements",
    feature = "eventsub",
    feature = "moderation",
    feature = "streams",
    feature = "subscriptions",
    feature = "users",
    feature = "videos",
))]
pub(crate) const USER_ID: &str = "user_id";
#[cfg(any(
    feature = "bits",
    feature = "channel-points",
    feature = "clips",
    feature = "conduits",
    feature = "entitlements",
    feature = "eventsub",
    feature = "games",
    feature = "polls",
    feature = "predictions",
    feature = "schedule",
    feature = "teams",
    feature = "users",
    feature = "videos",
))]
pub(crate) const ID: &str = "id";
#[cfg(any(
    feature = "streams",
    feature = "videos",
    feature = "analytics",
    feature = "clips",
    feature = "entitlements"
))]
pub(crate) const GAME_ID: &str = "game_id";
#[cfg(any(
    feature = "bits",
    feature = "analytics",
    feature = "extensions",
    feature = "users",
))]
pub(crate) const EXTENSIONS: &str = "extensions";
#[cfg(any(
    feature = "ads",
    feature = "channels",
    feature = "moderation",
    feature = "search"
))]
pub(crate) const CHANNELS: &str = "channels";

#[cfg(any(feature = "analytics", feature = "bits", feature = "clips"))]
pub(crate) const STARTED_AT: &str = "started_at";
#[cfg(any(feature = "analytics", feature = "clips"))]
pub(crate) const ENDED_AT: &str = "ended_at";

#[cfg(any(
    feature = "games",
    feature = "moderation",
    feature = "streams",
    feature = "subscriptions",
    feature = "videos",
))]
pub(crate) const BEFORE: &str = "before";
#[cfg(any(
    feature = "analytics",
    feature = "bits",
    feature = "channel-points",
    feature = "channels",
    feature = "charity",
    feature = "chat",
    feature = "clips",
    feature = "entitlements",
    feature = "extensions",
    feature = "games",
    feature = "hype-train",
    feature = "moderation",
    feature = "polls",
    feature = "predictions",
    feature = "schedule",
    feature = "search",
    feature = "streams",
    feature = "subscriptions",
    feature = "users",
    feature = "videos",
))]
pub(crate) const FIRST: &str = "first";
#[cfg(any(
    feature = "analytics",
    feature = "bits",
    feature = "channel-points",
    feature = "channels",
    feature = "charity",
    feature = "chat",
    feature = "clips",
    feature = "conduits",
    feature = "entitlements",
    feature = "eventsub",
    feature = "extensions",
    feature = "games",
    feature = "hype-train",
    feature = "moderation",
    feature = "polls",
    feature = "predictions",
    feature = "schedule",
    feature = "search",
    feature = "streams",
    feature = "subscriptions",
    feature = "users",
    feature = "videos",
))]
pub(crate) const AFTER: &str = "after";

#[cfg(any(feature = "eventsub", feature = "subscriptions"))]
pub(crate) const SUBSCRIPTIONS: &str = "subscriptions";

#[cfg(any(
    feature = "analytics",
    feature = "eventsub",
    feature = "streams",
    feature = "videos"
))]
pub(crate) const TYPE: &str = "type";

#[cfg(feature = "analytics")]
pub(crate) const ANALYTICS: &str = "analytics";

#[cfg(any(feature = "bits", feature = "extensions"))]
pub(crate) const BITS: &str = "bits";

#[cfg(any(feature = "chat", feature = "extensions", feature = "moderation"))]
pub(crate) const CHAT: &str = "chat";
#[cfg(any(feature = "chat", feature = "moderation", feature = "schedule"))]
pub(crate) const SETTINGS: &str = "settings";

#[cfg(any(feature = "games", feature = "analytics"))]
pub(crate) const GAMES: &str = "games";

#[cfg(any(feature = "conduits", feature = "eventsub"))]
pub(crate) const EVENTSUB: &str = "eventsub";

#[cfg(feature = "ads")]
pub(crate) const COMMERCIAL: &str = "commercial";
#[cfg(feature = "ads")]
pub(crate) const ADS: &str = "ads";
#[cfg(feature = "ads")]
pub(crate) const SNOOZE: &str = "snooze";

#[cfg(any(feature = "bits", feature = "videos"))]
pub(crate) const PERIOD: &str = "period";
#[cfg(feature = "bits")]
pub(crate) const COUNT: &str = "count";
#[cfg(feature = "bits")]
pub(crate) const LEADERBOARD: &str = "leaderboard";
#[cfg(feature = "bits")]
pub(crate) const TRANSACTIONS: &str = "transactions";
#[cfg(feature = "bits")]
pub(crate) const CHEERMOTES: &str = "cheermotes";

#[cfg(feature = "ccls")]
pub(crate) const LOCALE: &str = "locale";
#[cfg(feature = "ccls")]
pub(crate) const CONTENT_CLASSIFICATION_LABELS: &str = "content_classification_labels";

#[cfg(feature = "channel-points")]
pub(crate) const CHANNEL_POINTS: &str = "channel_points";
#[cfg(feature = "channel-points")]
pub(crate) const CUSTOM_REWARDS: &str = "custom_rewards";
#[cfg(feature = "channel-points")]
pub(crate) const REDEMPTIONS: &str = "redemptions";

#[cfg(any(
    feature = "channel-points",
    feature = "conduits",
    feature = "eventsub",
    feature = "hype-train",
    feature = "moderation",
))]
pub(crate) const STATUS: &str = "status";

#[cfg(any(feature = "channel-points", feature = "videos"))]
pub(crate) const SORT: &str = "sort";
#[cfg(feature = "channel-points")]
pub(crate) const REWARD_ID: &str = "reward_id";

#[cfg(feature = "channels")]
pub(crate) const FOLLOWERS: &str = "followers";
#[cfg(any(feature = "channels", feature = "streams"))]
pub(crate) const FOLLOWED: &str = "followed";
#[cfg(feature = "channels")]
pub(crate) const EDITORS: &str = "editors";

#[cfg(feature = "charity")]
pub(crate) const CHARITY: &str = "charity";
#[cfg(feature = "charity")]
pub(crate) const DONATIONS: &str = "donations";

#[cfg(feature = "entitlements")]
pub(crate) const ENTITLEMENTS: &str = "entitlements";
#[cfg(feature = "entitlements")]
pub(crate) const DROPS: &str = "drops";

#[cfg(feature = "chat")]
pub(crate) const CHATTERS: &str = "chatters";
#[cfg(feature = "chat")]
pub(crate) const GLOBAL: &str = "global";
#[cfg(feature = "chat")]
pub(crate) const SET: &str = "set";
#[cfg(feature = "chat")]
pub(crate) const EMOTE_SET_ID: &str = "emote_set_id";
#[cfg(feature = "chat")]
pub(crate) const BADGES: &str = "badges";
#[cfg(feature = "chat")]
pub(crate) const SHARED_CHAT: &str = "shared_chat";
#[cfg(any(feature = "chat", feature = "guest-star"))]
pub(crate) const SESSION: &str = "session";

#[cfg(any(feature = "chat", feature = "subscriptions"))]
pub(crate) const USER: &str = "user";

#[cfg(feature = "chat")]
pub(crate) const EMOTES: &str = "emotes";
#[cfg(feature = "chat")]
pub(crate) const ANNOUNCEMENTS: &str = "announcements";
#[cfg(feature = "chat")]
pub(crate) const SHOUTOUTS: &str = "shoutouts";
#[cfg(any(feature = "chat", feature = "raid"))]
pub(crate) const FROM_BROADCASTER_ID: &str = "from_broadcaster_id";
#[cfg(any(feature = "chat", feature = "raid"))]
pub(crate) const TO_BROADCASTER_ID: &str = "to_broadcaster_id";
#[cfg(feature = "chat")]
pub(crate) const MESSAGES: &str = "messages";
#[cfg(feature = "chat")]
pub(crate) const COLOR: &str = "color";

#[cfg(feature = "clips")]
pub(crate) const CLIPS: &str = "clips";
#[cfg(feature = "clips")]
pub(crate) const IS_FEATURED: &str = "is_featured";
#[cfg(feature = "clips")]
pub(crate) const HAS_DELAY: &str = "has_delay";
#[cfg(feature = "clips")]
pub(crate) const DOWNLOADS: &str = "downloads";
#[cfg(feature = "clips")]
pub(crate) const EDITOR_ID: &str = "editor_id";
#[cfg(feature = "clips")]
pub(crate) const CLIP_ID: &str = "clip_id";

#[cfg(feature = "conduits")]
pub(crate) const CONDUITS: &str = "conduits";
#[cfg(feature = "conduits")]
pub(crate) const CONDUIT_ID: &str = "conduit_id";
#[cfg(feature = "conduits")]
pub(crate) const SHARDS: &str = "shards";

#[cfg(feature = "eventsub")]
pub(crate) const SUBSCRIPTION_ID: &str = "subscription_id";

#[cfg(feature = "raid")]
pub(crate) const RAIDS: &str = "raids";

#[cfg(feature = "extensions")]
pub(crate) const CONFIGURATIONS: &str = "configurations";
#[cfg(feature = "extensions")]
pub(crate) const LIVE: &str = "live";
#[cfg(feature = "extensions")]
pub(crate) const REQUIRED_CONFIGURATION: &str = "required_configuration";
#[cfg(feature = "extensions")]
pub(crate) const PUBSUB: &str = "pubsub";
#[cfg(feature = "extensions")]
pub(crate) const JWT: &str = "jwt";
#[cfg(feature = "extensions")]
pub(crate) const SECRETS: &str = "secrets";
#[cfg(feature = "extensions")]
pub(crate) const DELAY: &str = "delay";
#[cfg(feature = "extensions")]
pub(crate) const EXTENSION_VERSION: &str = "extension_version";
#[cfg(feature = "extensions")]
pub(crate) const RELEASED: &str = "released";
#[cfg(feature = "extensions")]
pub(crate) const SHOULD_INCLUDE_ALL: &str = "should_include_all";

#[cfg(any(feature = "games", feature = "teams"))]
pub(crate) const NAME: &str = "name";
#[cfg(feature = "games")]
pub(crate) const IGDB_ID: &str = "igdb_id";
#[cfg(feature = "games")]
pub(crate) const TOP: &str = "top";

#[cfg(feature = "goals")]
pub(crate) const GOALS: &str = "goals";

#[cfg(feature = "guest-star")]
pub(crate) const GUEST_STAR: &str = "guest_star";
#[cfg(feature = "guest-star")]
pub(crate) const CHANNEL_SETTINGS: &str = "channel_settings";
#[cfg(feature = "guest-star")]
pub(crate) const IS_MODERATOR_SEND_LIVE_ENABLED: &str = "is_moderator_send_live_enabled";
#[cfg(feature = "guest-star")]
pub(crate) const SLOT_COUNT: &str = "slot_count";
#[cfg(feature = "guest-star")]
pub(crate) const IS_BROWSER_SOURCE_AUDIO_ENABLED: &str = "is_browser_source_audio_enabled";
#[cfg(feature = "guest-star")]
pub(crate) const GROUP_LAYOUT: &str = "group_layout";
#[cfg(feature = "guest-star")]
pub(crate) const REGENERATE_BROWSER_SOURCES: &str = "regenerate_browser_sources";
#[cfg(feature = "guest-star")]
pub(crate) const SESSION_ID: &str = "session_id";
#[cfg(feature = "guest-star")]
pub(crate) const INVITES: &str = "invites";
#[cfg(feature = "guest-star")]
pub(crate) const GUEST_ID: &str = "guest_id";
#[cfg(feature = "guest-star")]
pub(crate) const SLOT: &str = "slot";
#[cfg(feature = "guest-star")]
pub(crate) const SLOT_ID: &str = "slot_id";
#[cfg(feature = "guest-star")]
pub(crate) const SOURCE_SLOT_ID: &str = "source_slot_id";
#[cfg(feature = "guest-star")]
pub(crate) const DESTINATION_SLOT_ID: &str = "destination_slot_id";
#[cfg(feature = "guest-star")]
pub(crate) const SHOULD_REINVITE_GUEST: &str = "should_reinvite_guest";
#[cfg(feature = "guest-star")]
pub(crate) const IS_AUDIO_ENABLED: &str = "is_audio_enabled";
#[cfg(feature = "guest-star")]
pub(crate) const IS_VIDEO_ENABLED: &str = "is_video_enabled";
#[cfg(feature = "guest-star")]
pub(crate) const IS_LIVE: &str = "is_live";
#[cfg(feature = "guest-star")]
pub(crate) const VOLUME: &str = "volume";
#[cfg(feature = "guest-star")]
pub(crate) const SLOT_SETTINGS: &str = "slot_settings";

#[cfg(feature = "hype-train")]
pub(crate) const HYPE_TRAIN: &str = "hypetrain";
#[cfg(feature = "hype-train")]
pub(crate) const EVENTS: &str = "events";

#[cfg(feature = "moderation")]
pub(crate) const AUTOMOD: &str = "automod";
#[cfg(feature = "moderation")]
pub(crate) const MODERATION: &str = "moderation";
#[cfg(feature = "moderation")]
pub(crate) const BLOCKED_TERMS: &str = "blocked_terms";
#[cfg(feature = "moderation")]
pub(crate) const MODERATORS: &str = "moderators";
#[cfg(feature = "moderation")]
pub(crate) const VIPS: &str = "vips";
#[cfg(feature = "moderation")]
pub(crate) const BANNED: &str = "banned";
#[cfg(feature = "moderation")]
pub(crate) const BANS: &str = "bans";
#[cfg(feature = "moderation")]
pub(crate) const UNBAN_REQUESTS: &str = "unban_requests";
#[cfg(feature = "moderation")]
pub(crate) const SHIELD_MODE: &str = "shield_mode";
#[cfg(feature = "moderation")]
pub(crate) const ENFORCEMENTS: &str = "enforcements";
#[cfg(feature = "moderation")]
pub(crate) const MESSAGE: &str = "message";
#[cfg(feature = "moderation")]
pub(crate) const WARNINGS: &str = "warnings";

#[cfg(feature = "polls")]
pub(crate) const POLLS: &str = "polls";

#[cfg(feature = "predictions")]
pub(crate) const PREDICTIONS: &str = "predictions";

#[cfg(any(feature = "ads", feature = "schedule"))]
pub(crate) const SCHEDULE: &str = "schedule";
#[cfg(any(feature = "schedule", feature = "extensions"))]
pub(crate) const SEGMENT: &str = "segment";
#[cfg(feature = "schedule")]
pub(crate) const ICALENDAR: &str = "icalendar";
#[cfg(feature = "schedule")]
pub(crate) const START_TIME: &str = "start_time";
#[cfg(feature = "schedule")]
pub(crate) const VACATION_START_TIME: &str = "vacation_start_time";
#[cfg(feature = "schedule")]
pub(crate) const VACATION_END_TIME: &str = "vacation_end_time";
#[cfg(feature = "schedule")]
pub(crate) const TIMEZONE: &str = "timezone";
#[cfg(feature = "schedule")]
pub(crate) const IS_VACATION_ENABLED: &str = "is_vacation_enabled";

#[cfg(feature = "search")]
pub(crate) const QUERY: &str = "query";
#[cfg(feature = "search")]
pub(crate) const SEARCH: &str = "search";
#[cfg(feature = "search")]
pub(crate) const CATEGORIES: &str = "categories";

#[cfg(feature = "streams")]
pub(crate) const VIDEO_ID: &str = "video_id";
#[cfg(feature = "streams")]
pub(crate) const MARKERS: &str = "markers";
#[cfg(feature = "streams")]
pub(crate) const STREAMS: &str = "streams";
#[cfg(feature = "streams")]
pub(crate) const USER_LOGIN: &str = "user_login";
#[cfg(feature = "streams")]
pub(crate) const KEY: &str = "key";

#[cfg(feature = "teams")]
pub(crate) const TEAMS: &str = "teams";
#[cfg(feature = "teams")]
pub(crate) const CHANNEL: &str = "channel";

#[cfg(feature = "users")]
pub(crate) const USERS: &str = "users";
#[cfg(feature = "users")]
pub(crate) const TARGET_USER_ID: &str = "target_user_id";
#[cfg(feature = "users")]
pub(crate) const SOURCE_CONTEXT: &str = "source_context";
#[cfg(feature = "users")]
pub(crate) const REASON: &str = "reason";
#[cfg(feature = "users")]
pub(crate) const BLOCKS: &str = "blocks";
#[cfg(feature = "users")]
pub(crate) const LOGIN: &str = "login";
#[cfg(feature = "users")]
pub(crate) const LIST: &str = "list";
#[cfg(feature = "users")]
pub(crate) const DESCRIPTION: &str = "description";
#[cfg(feature = "users")]
pub(crate) const AUTHORIZATION: &str = "authorization";

#[cfg(feature = "videos")]
pub(crate) const VIDEOS: &str = "videos";
#[cfg(any(feature = "streams", feature = "videos"))]
pub(crate) const LANGUAGE: &str = "language";

#[cfg(feature = "whisper")]
pub(crate) const FROM_USER_ID: &str = "from_user_id";
#[cfg(feature = "whisper")]
pub(crate) const TO_USER_ID: &str = "to_user_id";
#[cfg(feature = "whisper")]
pub(crate) const WHISPERS: &str = "whispers";