ts-twitch-api 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -25,7 +25,11 @@ var TwitchApi = class {
25
25
  params,
26
26
  body,
27
27
  requiresAuth = true,
28
- request: [clientId = null, accessToken = null, requestInit = {}]
28
+ options: {
29
+ clientId,
30
+ accessToken,
31
+ requestInit = {}
32
+ } = {}
29
33
  }) {
30
34
  const url = params ? `${BASE_URL}${path}?${getSearchParams(params)}` : `${BASE_URL}${path}`;
31
35
  const options = { ...requestInit, method };
@@ -97,11 +101,11 @@ var TwitchApi = class {
97
101
  *
98
102
  * @see https://dev.twitch.tv/docs/api/reference#start-commercial
99
103
  */
100
- startCommercial: async (body, ...request) => this.callApi({
104
+ startCommercial: async (body, options = {}) => this.callApi({
101
105
  path: "/channels/commercial",
102
106
  method: "POST",
103
107
  body,
104
- request
108
+ options
105
109
  }),
106
110
  /**
107
111
  * This endpoint returns ad schedule related information, including snooze, when the last ad was run, when the next ad is scheduled, and if the channel is currently in pre-roll free time. Note that a new ad cannot be run until 8 minutes after running a previous ad.
@@ -128,10 +132,10 @@ var TwitchApi = class {
128
132
  *
129
133
  * @see https://dev.twitch.tv/docs/api/reference#get-ad-schedule
130
134
  */
131
- getAdSchedule: async (params, ...request) => this.callApi({
135
+ getAdSchedule: async (params, options = {}) => this.callApi({
132
136
  path: "/channels/ads",
133
137
  params,
134
- request
138
+ options
135
139
  }),
136
140
  /**
137
141
  * If available, pushes back the timestamp of the upcoming automatic mid-roll ad by 5 minutes. This endpoint duplicates the snooze functionality in the creator dashboard’s Ads Manager.
@@ -164,11 +168,11 @@ var TwitchApi = class {
164
168
  *
165
169
  * @see https://dev.twitch.tv/docs/api/reference#snooze-next-ad
166
170
  */
167
- snoozeNextAd: async (params, ...request) => this.callApi({
171
+ snoozeNextAd: async (params, options = {}) => this.callApi({
168
172
  path: "/channels/ads/schedule/snooze",
169
173
  method: "POST",
170
174
  params,
171
- request
175
+ options
172
176
  })
173
177
  };
174
178
  analytics = {
@@ -211,10 +215,10 @@ var TwitchApi = class {
211
215
  *
212
216
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-analytics
213
217
  */
214
- getExtensionAnalytics: async (params = null, ...request) => this.callApi({
218
+ getExtensionAnalytics: async (params = null, options = {}) => this.callApi({
215
219
  path: "/analytics/extensions",
216
220
  params,
217
- request
221
+ options
218
222
  }),
219
223
  /**
220
224
  * Gets an analytics report for one or more games. The response contains the URLs used to download the reports (CSV files). [Learn more](https://dev.twitch.tv/docs/insights)
@@ -255,10 +259,10 @@ var TwitchApi = class {
255
259
  *
256
260
  * @see https://dev.twitch.tv/docs/api/reference#get-game-analytics
257
261
  */
258
- getGameAnalytics: async (params = null, ...request) => this.callApi({
262
+ getGameAnalytics: async (params = null, options = {}) => this.callApi({
259
263
  path: "/analytics/games",
260
264
  params,
261
- request
265
+ options
262
266
  })
263
267
  };
264
268
  bits = {
@@ -296,10 +300,10 @@ var TwitchApi = class {
296
300
  *
297
301
  * @see https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard
298
302
  */
299
- getBitsLeaderboard: async (params = null, ...request) => this.callApi({
303
+ getBitsLeaderboard: async (params = null, options = {}) => this.callApi({
300
304
  path: "/bits/leaderboard",
301
305
  params,
302
- request
306
+ options
303
307
  }),
304
308
  /**
305
309
  * Gets a list of Cheermotes that users can use to cheer Bits in any Bits-enabled channel’s chat room. Cheermotes are animated emotes that viewers can assign Bits to.
@@ -325,10 +329,10 @@ var TwitchApi = class {
325
329
  *
326
330
  * @see https://dev.twitch.tv/docs/api/reference#get-cheermotes
327
331
  */
328
- getCheermotes: async (params = null, ...request) => this.callApi({
332
+ getCheermotes: async (params = null, options = {}) => this.callApi({
329
333
  path: "/bits/cheermotes",
330
334
  params,
331
- request
335
+ options
332
336
  }),
333
337
  /**
334
338
  * Gets an extension’s list of transactions. A transaction records the exchange of a currency (for example, Bits) for a digital product.
@@ -366,10 +370,10 @@ var TwitchApi = class {
366
370
  *
367
371
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-transactions
368
372
  */
369
- getExtensionTransactions: async (params, ...request) => this.callApi({
373
+ getExtensionTransactions: async (params, options = {}) => this.callApi({
370
374
  path: "/extensions/transactions",
371
375
  params,
372
- request
376
+ options
373
377
  })
374
378
  };
375
379
  channels = {
@@ -410,10 +414,10 @@ var TwitchApi = class {
410
414
  *
411
415
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-information
412
416
  */
413
- getChannelInformation: async (params, ...request) => this.callApi({
417
+ getChannelInformation: async (params, options = {}) => this.callApi({
414
418
  path: "/channels",
415
419
  params,
416
- request
420
+ options
417
421
  }),
418
422
  /**
419
423
  * Updates a channel’s properties.
@@ -472,12 +476,12 @@ var TwitchApi = class {
472
476
  *
473
477
  * @see https://dev.twitch.tv/docs/api/reference#modify-channel-information
474
478
  */
475
- modifyChannelInformation: async (params, body = null, ...request) => this.callApi({
479
+ modifyChannelInformation: async (params, body = null, options = {}) => this.callApi({
476
480
  path: "/channels",
477
481
  method: "PATCH",
478
482
  params,
479
483
  body,
480
- request
484
+ options
481
485
  }),
482
486
  /**
483
487
  * Gets the broadcaster’s list editors.
@@ -494,7 +498,7 @@ var TwitchApi = class {
494
498
  *
495
499
  * _200 OK_
496
500
  *
497
- * Successfully retrieved the broadcaster’s list of editors.
501
+ * Successfully retrieved the broadcaster's list of editors.
498
502
  *
499
503
  * _400 Bad Request_
500
504
  *
@@ -510,10 +514,10 @@ var TwitchApi = class {
510
514
  *
511
515
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-editors
512
516
  */
513
- getChannelEditors: async (params, ...request) => this.callApi({
517
+ getChannelEditors: async (params, options = {}) => this.callApi({
514
518
  path: "/channels/editors",
515
519
  params,
516
- request
520
+ options
517
521
  }),
518
522
  /**
519
523
  * Gets a list of broadcasters that the specified user follows. You can also use this endpoint to see whether a user follows a specific broadcaster.
@@ -530,7 +534,7 @@ var TwitchApi = class {
530
534
  *
531
535
  * _200 OK_
532
536
  *
533
- * Successfully retrieved the broadcaster’s list of followers.
537
+ * Successfully retrieved the broadcaster's list of followers.
534
538
  *
535
539
  * _400 Bad Request_
536
540
  *
@@ -552,10 +556,10 @@ var TwitchApi = class {
552
556
  *
553
557
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-channels
554
558
  */
555
- getFollowedChannels: async (params, ...request) => this.callApi({
559
+ getFollowedChannels: async (params, options = {}) => this.callApi({
556
560
  path: "/channels/followed",
557
561
  params,
558
- request
562
+ options
559
563
  }),
560
564
  /**
561
565
  * Gets a list of users that follow the specified broadcaster. You can also use this endpoint to see whether a specific user follows the broadcaster.
@@ -597,10 +601,10 @@ var TwitchApi = class {
597
601
  *
598
602
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-followers
599
603
  */
600
- getChannelFollowers: async (params, ...request) => this.callApi({
604
+ getChannelFollowers: async (params, options = {}) => this.callApi({
601
605
  path: "/channels/followers",
602
606
  params,
603
- request
607
+ options
604
608
  })
605
609
  };
606
610
  channelPoints = {
@@ -650,12 +654,12 @@ var TwitchApi = class {
650
654
  *
651
655
  * @see https://dev.twitch.tv/docs/api/reference#create-custom-rewards
652
656
  */
653
- createCustomRewards: async (params, body, ...request) => this.callApi({
657
+ createCustomRewards: async (params, body, options = {}) => this.callApi({
654
658
  path: "/channel_points/custom_rewards",
655
659
  method: "POST",
656
660
  params,
657
661
  body,
658
- request
662
+ options
659
663
  }),
660
664
  /**
661
665
  * Deletes a custom reward that the broadcaster created.
@@ -701,11 +705,11 @@ var TwitchApi = class {
701
705
  *
702
706
  * @see https://dev.twitch.tv/docs/api/reference#delete-custom-reward
703
707
  */
704
- deleteCustomReward: async (params, ...request) => this.callApi({
708
+ deleteCustomReward: async (params, options = {}) => this.callApi({
705
709
  path: "/channel_points/custom_rewards",
706
710
  method: "DELETE",
707
711
  params,
708
- request
712
+ options
709
713
  }),
710
714
  /**
711
715
  * Gets a list of custom rewards that the specified broadcaster created.
@@ -750,10 +754,10 @@ var TwitchApi = class {
750
754
  *
751
755
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward
752
756
  */
753
- getCustomReward: async (params, ...request) => this.callApi({
757
+ getCustomReward: async (params, options = {}) => this.callApi({
754
758
  path: "/channel_points/custom_rewards",
755
759
  params,
756
- request
760
+ options
757
761
  }),
758
762
  /**
759
763
  * Updates a custom reward. The app used to create the reward is the only app that may update the reward.
@@ -808,12 +812,12 @@ var TwitchApi = class {
808
812
  *
809
813
  * @see https://dev.twitch.tv/docs/api/reference#update-custom-reward
810
814
  */
811
- updateCustomReward: async (params, body = null, ...request) => this.callApi({
815
+ updateCustomReward: async (params, body = null, options = {}) => this.callApi({
812
816
  path: "/channel_points/custom_rewards",
813
817
  method: "PATCH",
814
818
  params,
815
819
  body,
816
- request
820
+ options
817
821
  }),
818
822
  /**
819
823
  * Gets a list of redemptions for the specified custom reward. The app used to create the reward is the only app that may get the redemptions.
@@ -860,10 +864,10 @@ var TwitchApi = class {
860
864
  *
861
865
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward-redemption
862
866
  */
863
- getCustomRewardRedemption: async (params, ...request) => this.callApi({
867
+ getCustomRewardRedemption: async (params, options = {}) => this.callApi({
864
868
  path: "/channel_points/custom_rewards/redemptions",
865
869
  params,
866
- request
870
+ options
867
871
  }),
868
872
  /**
869
873
  * Updates a redemption’s status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption.
@@ -910,12 +914,12 @@ var TwitchApi = class {
910
914
  *
911
915
  * @see https://dev.twitch.tv/docs/api/reference#update-redemption-status
912
916
  */
913
- updateRedemptionStatus: async (params, body, ...request) => this.callApi({
917
+ updateRedemptionStatus: async (params, body, options = {}) => this.callApi({
914
918
  path: "/channel_points/custom_rewards/redemptions",
915
919
  method: "PATCH",
916
920
  params,
917
921
  body,
918
- request
922
+ options
919
923
  })
920
924
  };
921
925
  charity = {
@@ -957,10 +961,10 @@ var TwitchApi = class {
957
961
  *
958
962
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign
959
963
  */
960
- getCharityCampaign: async (params, ...request) => this.callApi({
964
+ getCharityCampaign: async (params, options = {}) => this.callApi({
961
965
  path: "/charity/campaigns",
962
966
  params,
963
- request
967
+ options
964
968
  }),
965
969
  /**
966
970
  * Gets the list of donations that users have made to the broadcaster’s active charity campaign.
@@ -1000,10 +1004,10 @@ var TwitchApi = class {
1000
1004
  *
1001
1005
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign-donations
1002
1006
  */
1003
- getCharityCampaignDonations: async (params, ...request) => this.callApi({
1007
+ getCharityCampaignDonations: async (params, options = {}) => this.callApi({
1004
1008
  path: "/charity/donations",
1005
1009
  params,
1006
- request
1010
+ options
1007
1011
  })
1008
1012
  };
1009
1013
  chat = {
@@ -1049,10 +1053,10 @@ var TwitchApi = class {
1049
1053
  *
1050
1054
  * @see https://dev.twitch.tv/docs/api/reference#get-chatters
1051
1055
  */
1052
- getChatters: async (params, ...request) => this.callApi({
1056
+ getChatters: async (params, options = {}) => this.callApi({
1053
1057
  path: "/chat/chatters",
1054
1058
  params,
1055
- request
1059
+ options
1056
1060
  }),
1057
1061
  /**
1058
1062
  * Gets the broadcaster’s list of custom emotes. Broadcasters create these custom emotes for users who subscribe to or follow the channel or cheer Bits in the channel’s chat window. [Learn More](https://dev.twitch.tv/docs/irc/emotes)
@@ -1073,7 +1077,7 @@ var TwitchApi = class {
1073
1077
  *
1074
1078
  * _200 OK_
1075
1079
  *
1076
- * Successfully retrieved broadcaster’s list of custom emotes.
1080
+ * Successfully retrieved broadcaster's list of custom emotes.
1077
1081
  *
1078
1082
  * _400 Bad Request_
1079
1083
  *
@@ -1087,10 +1091,10 @@ var TwitchApi = class {
1087
1091
  *
1088
1092
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-emotes
1089
1093
  */
1090
- getChannelEmotes: async (params, ...request) => this.callApi({
1094
+ getChannelEmotes: async (params, options = {}) => this.callApi({
1091
1095
  path: "/chat/emotes",
1092
1096
  params,
1093
- request
1097
+ options
1094
1098
  }),
1095
1099
  /**
1096
1100
  * Gets the list of [global emotes](https://www.twitch.tv/creatorcamp/en/learn-the-basics/emotes/). Global emotes are Twitch-created emotes that users can use in any Twitch chat.
@@ -1113,7 +1117,7 @@ var TwitchApi = class {
1113
1117
  *
1114
1118
  * _200 OK_
1115
1119
  *
1116
- * Successfully retrieved Twitch’s list of global emotes.
1120
+ * Successfully retrieved Twitch's list of global emotes.
1117
1121
  *
1118
1122
  * _401 Unauthorized_
1119
1123
  *
@@ -1123,9 +1127,9 @@ var TwitchApi = class {
1123
1127
  *
1124
1128
  * @see https://dev.twitch.tv/docs/api/reference#get-global-emotes
1125
1129
  */
1126
- getGlobalEmotes: async (...request) => this.callApi({
1130
+ getGlobalEmotes: async (options = {}) => this.callApi({
1127
1131
  path: "/chat/emotes/global",
1128
- request
1132
+ options
1129
1133
  }),
1130
1134
  /**
1131
1135
  * Gets emotes for one or more specified emote sets.
@@ -1161,10 +1165,10 @@ var TwitchApi = class {
1161
1165
  *
1162
1166
  * @see https://dev.twitch.tv/docs/api/reference#get-emote-sets
1163
1167
  */
1164
- getEmoteSets: async (params, ...request) => this.callApi({
1168
+ getEmoteSets: async (params, options = {}) => this.callApi({
1165
1169
  path: "/chat/emotes/set",
1166
1170
  params,
1167
- request
1171
+ options
1168
1172
  }),
1169
1173
  /**
1170
1174
  * Gets the broadcaster’s list of custom chat badges. The list is empty if the broadcaster hasn’t created custom chat badges. For information about custom badges, see [subscriber badges](https://help.twitch.tv/s/article/subscriber-badge-guide) and [Bits badges](https://help.twitch.tv/s/article/custom-bit-badges-guide).
@@ -1195,10 +1199,10 @@ var TwitchApi = class {
1195
1199
  *
1196
1200
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-chat-badges
1197
1201
  */
1198
- getChannelChatBadges: async (params, ...request) => this.callApi({
1202
+ getChannelChatBadges: async (params, options = {}) => this.callApi({
1199
1203
  path: "/chat/badges",
1200
1204
  params,
1201
- request
1205
+ options
1202
1206
  }),
1203
1207
  /**
1204
1208
  * Gets Twitch’s list of chat badges, which users may use in any channel’s chat room. For information about chat badges, see [Twitch Chat Badges Guide](https://help.twitch.tv/s/article/twitch-chat-badges-guide).
@@ -1229,9 +1233,9 @@ var TwitchApi = class {
1229
1233
  *
1230
1234
  * @see https://dev.twitch.tv/docs/api/reference#get-global-chat-badges
1231
1235
  */
1232
- getGlobalChatBadges: async (...request) => this.callApi({
1236
+ getGlobalChatBadges: async (options = {}) => this.callApi({
1233
1237
  path: "/chat/badges/global",
1234
- request
1238
+ options
1235
1239
  }),
1236
1240
  /**
1237
1241
  * Gets the broadcaster’s chat settings.
@@ -1264,10 +1268,10 @@ var TwitchApi = class {
1264
1268
  *
1265
1269
  * @see https://dev.twitch.tv/docs/api/reference#get-chat-settings
1266
1270
  */
1267
- getChatSettings: async (params, ...request) => this.callApi({
1271
+ getChatSettings: async (params, options = {}) => this.callApi({
1268
1272
  path: "/chat/settings",
1269
1273
  params,
1270
- request
1274
+ options
1271
1275
  }),
1272
1276
  /**
1273
1277
  * Updates the broadcaster’s chat settings.
@@ -1318,12 +1322,12 @@ var TwitchApi = class {
1318
1322
  *
1319
1323
  * @see https://dev.twitch.tv/docs/api/reference#update-chat-settings
1320
1324
  */
1321
- updateChatSettings: async (params, body = null, ...request) => this.callApi({
1325
+ updateChatSettings: async (params, body = null, options = {}) => this.callApi({
1322
1326
  path: "/chat/settings",
1323
1327
  method: "PATCH",
1324
1328
  params,
1325
1329
  body,
1326
- request
1330
+ options
1327
1331
  }),
1328
1332
  /**
1329
1333
  * Sends an announcement to the broadcaster’s chat room.
@@ -1358,12 +1362,12 @@ var TwitchApi = class {
1358
1362
  *
1359
1363
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-announcement
1360
1364
  */
1361
- sendChatAnnouncement: async (params, body, ...request) => this.callApi({
1365
+ sendChatAnnouncement: async (params, body, options = {}) => this.callApi({
1362
1366
  path: "/chat/announcements",
1363
1367
  method: "POST",
1364
1368
  params,
1365
1369
  body,
1366
- request
1370
+ options
1367
1371
  }),
1368
1372
  /**
1369
1373
  * Sends a Shoutout to the specified broadcaster. Typically, you send Shoutouts when you or one of your moderators notice another broadcaster in your chat, the other broadcaster is coming up in conversation, or after they raid your broadcast.
@@ -1417,11 +1421,11 @@ var TwitchApi = class {
1417
1421
  *
1418
1422
  * @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
1419
1423
  */
1420
- sendShoutout: async (params, ...request) => this.callApi({
1424
+ sendShoutout: async (params, options = {}) => this.callApi({
1421
1425
  path: "/chat/shoutouts",
1422
1426
  method: "POST",
1423
1427
  params,
1424
- request
1428
+ options
1425
1429
  }),
1426
1430
  /**
1427
1431
  * NEW Sends a message to the broadcaster’s chat room.
@@ -1467,11 +1471,11 @@ var TwitchApi = class {
1467
1471
  *
1468
1472
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-message
1469
1473
  */
1470
- sendChatMessage: async (body, ...request) => this.callApi({
1474
+ sendChatMessage: async (body, options = {}) => this.callApi({
1471
1475
  path: "/chat/messages",
1472
1476
  method: "POST",
1473
1477
  body,
1474
- request
1478
+ options
1475
1479
  }),
1476
1480
  /**
1477
1481
  * Gets the color used for the user’s name in chat.
@@ -1502,10 +1506,10 @@ var TwitchApi = class {
1502
1506
  *
1503
1507
  * @see https://dev.twitch.tv/docs/api/reference#get-user-chat-color
1504
1508
  */
1505
- getUserChatColor: async (params, ...request) => this.callApi({
1509
+ getUserChatColor: async (params, options = {}) => this.callApi({
1506
1510
  path: "/chat/color",
1507
1511
  params,
1508
- request
1512
+ options
1509
1513
  }),
1510
1514
  /**
1511
1515
  * Updates the color used for the user’s name in chat.
@@ -1541,11 +1545,11 @@ var TwitchApi = class {
1541
1545
  *
1542
1546
  * @see https://dev.twitch.tv/docs/api/reference#update-user-chat-color
1543
1547
  */
1544
- updateUserChatColor: async (params, ...request) => this.callApi({
1548
+ updateUserChatColor: async (params, options = {}) => this.callApi({
1545
1549
  path: "/chat/color",
1546
1550
  method: "PUT",
1547
1551
  params,
1548
- request
1552
+ options
1549
1553
  })
1550
1554
  };
1551
1555
  clips = {
@@ -1595,11 +1599,11 @@ var TwitchApi = class {
1595
1599
  *
1596
1600
  * @see https://dev.twitch.tv/docs/api/reference#create-clip
1597
1601
  */
1598
- createClip: async (params, ...request) => this.callApi({
1602
+ createClip: async (params, options = {}) => this.callApi({
1599
1603
  path: "/clips",
1600
1604
  method: "POST",
1601
1605
  params,
1602
- request
1606
+ options
1603
1607
  }),
1604
1608
  /**
1605
1609
  * Gets one or more video clips that were captured from streams. For information about clips, see [How to use clips](https://help.twitch.tv/s/article/how-to-use-clips).
@@ -1639,10 +1643,10 @@ var TwitchApi = class {
1639
1643
  *
1640
1644
  * @see https://dev.twitch.tv/docs/api/reference#get-clips
1641
1645
  */
1642
- getClips: async (params = null, ...request) => this.callApi({
1646
+ getClips: async (params = null, options = {}) => this.callApi({
1643
1647
  path: "/clips",
1644
1648
  params,
1645
- request
1649
+ options
1646
1650
  })
1647
1651
  };
1648
1652
  conduits = {
@@ -1669,9 +1673,9 @@ var TwitchApi = class {
1669
1673
  *
1670
1674
  * @see https://dev.twitch.tv/docs/api/reference#get-conduits
1671
1675
  */
1672
- getConduits: async (...request) => this.callApi({
1676
+ getConduits: async (options = {}) => this.callApi({
1673
1677
  path: "/eventsub/conduits",
1674
- request
1678
+ options
1675
1679
  }),
1676
1680
  /**
1677
1681
  * NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events).
@@ -1704,11 +1708,11 @@ var TwitchApi = class {
1704
1708
  *
1705
1709
  * @see https://dev.twitch.tv/docs/api/reference#create-conduits
1706
1710
  */
1707
- createConduits: async (body, ...request) => this.callApi({
1711
+ createConduits: async (body, options = {}) => this.callApi({
1708
1712
  path: "/eventsub/conduits",
1709
1713
  method: "POST",
1710
1714
  body,
1711
- request
1715
+ options
1712
1716
  }),
1713
1717
  /**
1714
1718
  * NEW Updates a [conduit’s](https://dev.twitch.tv/docs/eventsub/handling-conduit-events) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are disabled.
@@ -1743,11 +1747,11 @@ var TwitchApi = class {
1743
1747
  *
1744
1748
  * @see https://dev.twitch.tv/docs/api/reference#update-conduits
1745
1749
  */
1746
- updateConduits: async (body, ...request) => this.callApi({
1750
+ updateConduits: async (body, options = {}) => this.callApi({
1747
1751
  path: "/eventsub/conduits",
1748
1752
  method: "PATCH",
1749
1753
  body,
1750
- request
1754
+ options
1751
1755
  }),
1752
1756
  /**
1753
1757
  * NEW Deletes a specified [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). Note that it may take some time for Eventsub subscriptions on a deleted [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events) to show as disabled when calling [Get Eventsub Subscriptions](https://dev.twitch.tv/docs/api/reference/#get-eventsub-subscriptions).
@@ -1781,11 +1785,11 @@ var TwitchApi = class {
1781
1785
  *
1782
1786
  * @see https://dev.twitch.tv/docs/api/reference#delete-conduit
1783
1787
  */
1784
- deleteConduit: async (params, ...request) => this.callApi({
1788
+ deleteConduit: async (params, options = {}) => this.callApi({
1785
1789
  path: "/eventsub/conduits",
1786
1790
  method: "DELETE",
1787
1791
  params,
1788
- request
1792
+ options
1789
1793
  }),
1790
1794
  /**
1791
1795
  * NEW Gets a lists of all shards for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events).
@@ -1819,10 +1823,10 @@ var TwitchApi = class {
1819
1823
  *
1820
1824
  * @see https://dev.twitch.tv/docs/api/reference#get-conduit-shards
1821
1825
  */
1822
- getConduitShards: async (params, ...request) => this.callApi({
1826
+ getConduitShards: async (params, options = {}) => this.callApi({
1823
1827
  path: "/eventsub/conduits/shards",
1824
1828
  params,
1825
- request
1829
+ options
1826
1830
  }),
1827
1831
  /**
1828
1832
  * NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events).
@@ -1858,11 +1862,11 @@ var TwitchApi = class {
1858
1862
  *
1859
1863
  * @see https://dev.twitch.tv/docs/api/reference#update-conduit-shards
1860
1864
  */
1861
- updateConduitShards: async (body, ...request) => this.callApi({
1865
+ updateConduitShards: async (body, options = {}) => this.callApi({
1862
1866
  path: "/eventsub/conduits/shards",
1863
1867
  method: "PATCH",
1864
1868
  body,
1865
- request
1869
+ options
1866
1870
  })
1867
1871
  };
1868
1872
  ccls = {
@@ -1891,10 +1895,10 @@ var TwitchApi = class {
1891
1895
  *
1892
1896
  * @see https://dev.twitch.tv/docs/api/reference#get-content-classification-labels
1893
1897
  */
1894
- getContentClassificationLabels: async (params = null, ...request) => this.callApi({
1898
+ getContentClassificationLabels: async (params = null, options = {}) => this.callApi({
1895
1899
  path: "/content_classification_labels",
1896
1900
  params,
1897
- request
1901
+ options
1898
1902
  })
1899
1903
  };
1900
1904
  entitlements = {
@@ -1951,10 +1955,10 @@ var TwitchApi = class {
1951
1955
  *
1952
1956
  * @see https://dev.twitch.tv/docs/api/reference#get-drops-entitlements
1953
1957
  */
1954
- getDropsEntitlements: async (params = null, ...request) => this.callApi({
1958
+ getDropsEntitlements: async (params = null, options = {}) => this.callApi({
1955
1959
  path: "/entitlements/drops",
1956
1960
  params,
1957
- request
1961
+ options
1958
1962
  }),
1959
1963
  /**
1960
1964
  * Updates the Drop entitlement’s fulfillment status.
@@ -1997,11 +2001,11 @@ var TwitchApi = class {
1997
2001
  *
1998
2002
  * @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
1999
2003
  */
2000
- updateDropsEntitlements: async (body = null, ...request) => this.callApi({
2004
+ updateDropsEntitlements: async (body = null, options = {}) => this.callApi({
2001
2005
  path: "/entitlements/drops",
2002
2006
  method: "PATCH",
2003
2007
  body,
2004
- request
2008
+ options
2005
2009
  })
2006
2010
  };
2007
2011
  extensions = {
@@ -2042,10 +2046,10 @@ var TwitchApi = class {
2042
2046
  *
2043
2047
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-configuration-segment
2044
2048
  */
2045
- getExtensionConfigurationSegment: async (params, ...request) => this.callApi({
2049
+ getExtensionConfigurationSegment: async (params, options = {}) => this.callApi({
2046
2050
  path: "/extensions/configurations",
2047
2051
  params,
2048
- request
2052
+ options
2049
2053
  }),
2050
2054
  /**
2051
2055
  * Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration.
@@ -2078,11 +2082,11 @@ var TwitchApi = class {
2078
2082
  *
2079
2083
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-configuration-segment
2080
2084
  */
2081
- setExtensionConfigurationSegment: async (body, ...request) => this.callApi({
2085
+ setExtensionConfigurationSegment: async (body, options = {}) => this.callApi({
2082
2086
  path: "/extensions/configurations",
2083
2087
  method: "PUT",
2084
2088
  body,
2085
- request
2089
+ options
2086
2090
  }),
2087
2091
  /**
2088
2092
  * Updates the extension’s required\_configuration string. Use this endpoint if your extension requires the broadcaster to configure the extension before activating it (to require configuration, you must select **Custom/My Own Service** in Extension [Capabilities](https://dev.twitch.tv/docs/extensions/life-cycle/#capabilities)). For more information, see [Required Configurations](https://dev.twitch.tv/docs/extensions/building#required-configurations) and [Setting Required Configuration](https://dev.twitch.tv/docs/extensions/building#setting-required-configuration-with-the-configuration-service-optional).
@@ -2116,12 +2120,12 @@ var TwitchApi = class {
2116
2120
  *
2117
2121
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-required-configuration
2118
2122
  */
2119
- setExtensionRequiredConfiguration: async (params, body, ...request) => this.callApi({
2123
+ setExtensionRequiredConfiguration: async (params, body, options = {}) => this.callApi({
2120
2124
  path: "/extensions/required_configuration",
2121
2125
  method: "PUT",
2122
2126
  params,
2123
2127
  body,
2124
- request
2128
+ options
2125
2129
  }),
2126
2130
  /**
2127
2131
  * Sends a message to one or more viewers. You can send messages to a specific channel or to all channels where your extension is active. This endpoint uses the same mechanism as the [send](https://dev.twitch.tv/docs/extensions/reference#send) JavaScript helper function used to send messages.
@@ -2192,11 +2196,11 @@ var TwitchApi = class {
2192
2196
  *
2193
2197
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message
2194
2198
  */
2195
- sendExtensionPubSubMessage: async (body, ...request) => this.callApi({
2199
+ sendExtensionPubSubMessage: async (body, options = {}) => this.callApi({
2196
2200
  path: "/extensions/pubsub",
2197
2201
  method: "POST",
2198
2202
  body,
2199
- request
2203
+ options
2200
2204
  }),
2201
2205
  /**
2202
2206
  * Gets a list of broadcasters that are streaming live and have installed or activated the extension.
@@ -2234,10 +2238,10 @@ var TwitchApi = class {
2234
2238
  *
2235
2239
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
2236
2240
  */
2237
- getExtensionLiveChannels: async (params, ...request) => this.callApi({
2241
+ getExtensionLiveChannels: async (params, options = {}) => this.callApi({
2238
2242
  path: "/extensions/live",
2239
2243
  params,
2240
- request
2244
+ options
2241
2245
  }),
2242
2246
  /**
2243
2247
  * Gets an extension’s list of shared secrets.
@@ -2268,9 +2272,9 @@ var TwitchApi = class {
2268
2272
  *
2269
2273
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-secrets
2270
2274
  */
2271
- getExtensionSecrets: async (...request) => this.callApi({
2275
+ getExtensionSecrets: async (options = {}) => this.callApi({
2272
2276
  path: "/extensions/jwt/secrets",
2273
- request
2277
+ options
2274
2278
  }),
2275
2279
  /**
2276
2280
  * Creates a shared secret used to sign and verify JWT tokens. Creating a new secret removes the current secrets from service. Use this function only when you are ready to use the new secret it returns.
@@ -2302,11 +2306,11 @@ var TwitchApi = class {
2302
2306
  *
2303
2307
  * @see https://dev.twitch.tv/docs/api/reference#create-extension-secret
2304
2308
  */
2305
- createExtensionSecret: async (params, ...request) => this.callApi({
2309
+ createExtensionSecret: async (params, options = {}) => this.callApi({
2306
2310
  path: "/extensions/jwt/secrets",
2307
2311
  method: "POST",
2308
2312
  params,
2309
- request
2313
+ options
2310
2314
  }),
2311
2315
  /**
2312
2316
  * Sends a message to the specified broadcaster’s chat room. The extension’s name is used as the username for the message in the chat room. To send a chat message, your extension must enable **Chat Capabilities** (under your extension’s **Capabilities** tab).
@@ -2344,12 +2348,12 @@ var TwitchApi = class {
2344
2348
  *
2345
2349
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-chat-message
2346
2350
  */
2347
- sendExtensionChatMessage: async (params, body, ...request) => this.callApi({
2351
+ sendExtensionChatMessage: async (params, body, options = {}) => this.callApi({
2348
2352
  path: "/extensions/chat",
2349
2353
  method: "POST",
2350
2354
  params,
2351
2355
  body,
2352
- request
2356
+ options
2353
2357
  }),
2354
2358
  /**
2355
2359
  * Gets information about an extension.
@@ -2385,10 +2389,10 @@ var TwitchApi = class {
2385
2389
  *
2386
2390
  * @see https://dev.twitch.tv/docs/api/reference#get-extensions
2387
2391
  */
2388
- getExtensions: async (params, ...request) => this.callApi({
2392
+ getExtensions: async (params, options = {}) => this.callApi({
2389
2393
  path: "/extensions",
2390
2394
  params,
2391
- request
2395
+ options
2392
2396
  }),
2393
2397
  /**
2394
2398
  * Gets information about a released extension. Returns the extension if its `state` is Released.
@@ -2423,10 +2427,10 @@ var TwitchApi = class {
2423
2427
  *
2424
2428
  * @see https://dev.twitch.tv/docs/api/reference#get-released-extensions
2425
2429
  */
2426
- getReleasedExtensions: async (params, ...request) => this.callApi({
2430
+ getReleasedExtensions: async (params, options = {}) => this.callApi({
2427
2431
  path: "/extensions/released",
2428
2432
  params,
2429
- request
2433
+ options
2430
2434
  }),
2431
2435
  /**
2432
2436
  * Gets the list of Bits products that belongs to the extension. The client ID in the app access token identifies the extension.
@@ -2457,10 +2461,10 @@ var TwitchApi = class {
2457
2461
  *
2458
2462
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-bits-products
2459
2463
  */
2460
- getExtensionBitsProducts: async (params = null, ...request) => this.callApi({
2464
+ getExtensionBitsProducts: async (params = null, options = {}) => this.callApi({
2461
2465
  path: "/bits/extensions",
2462
2466
  params,
2463
- request
2467
+ options
2464
2468
  }),
2465
2469
  /**
2466
2470
  * Adds or updates a Bits product that the extension created. If the SKU doesn’t exist, the product is added. You may update all fields except the `sku` field.
@@ -2498,11 +2502,11 @@ var TwitchApi = class {
2498
2502
  *
2499
2503
  * @see https://dev.twitch.tv/docs/api/reference#update-extension-bits-product
2500
2504
  */
2501
- updateExtensionBitsProduct: async (body, ...request) => this.callApi({
2505
+ updateExtensionBitsProduct: async (body, options = {}) => this.callApi({
2502
2506
  path: "/bits/extensions",
2503
2507
  method: "PUT",
2504
2508
  body,
2505
- request
2509
+ options
2506
2510
  })
2507
2511
  };
2508
2512
  eventSub = {
@@ -2562,11 +2566,11 @@ var TwitchApi = class {
2562
2566
  *
2563
2567
  * @see https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription
2564
2568
  */
2565
- createEventSubSubscription: async (body, ...request) => this.callApi({
2569
+ createEventSubSubscription: async (body, options = {}) => this.callApi({
2566
2570
  path: "/eventsub/subscriptions",
2567
2571
  method: "POST",
2568
2572
  body,
2569
- request
2573
+ options
2570
2574
  }),
2571
2575
  /**
2572
2576
  * Deletes an EventSub subscription.
@@ -2603,11 +2607,11 @@ var TwitchApi = class {
2603
2607
  *
2604
2608
  * @see https://dev.twitch.tv/docs/api/reference#delete-eventsub-subscription
2605
2609
  */
2606
- deleteEventSubSubscription: async (params, ...request) => this.callApi({
2610
+ deleteEventSubSubscription: async (params, options = {}) => this.callApi({
2607
2611
  path: "/eventsub/subscriptions",
2608
2612
  method: "DELETE",
2609
2613
  params,
2610
- request
2614
+ options
2611
2615
  }),
2612
2616
  /**
2613
2617
  * Gets a list of EventSub subscriptions that the client in the access token created.
@@ -2647,10 +2651,10 @@ var TwitchApi = class {
2647
2651
  *
2648
2652
  * @see https://dev.twitch.tv/docs/api/reference#get-eventsub-subscriptions
2649
2653
  */
2650
- getEventSubSubscriptions: async (params = null, ...request) => this.callApi({
2654
+ getEventSubSubscriptions: async (params = null, options = {}) => this.callApi({
2651
2655
  path: "/eventsub/subscriptions",
2652
2656
  params,
2653
- request
2657
+ options
2654
2658
  })
2655
2659
  };
2656
2660
  games = {
@@ -2684,10 +2688,10 @@ var TwitchApi = class {
2684
2688
  *
2685
2689
  * @see https://dev.twitch.tv/docs/api/reference#get-top-games
2686
2690
  */
2687
- getTopGames: async (params = null, ...request) => this.callApi({
2691
+ getTopGames: async (params = null, options = {}) => this.callApi({
2688
2692
  path: "/games/top",
2689
2693
  params,
2690
- request
2694
+ options
2691
2695
  }),
2692
2696
  /**
2693
2697
  * Gets information about specified categories or games.
@@ -2721,10 +2725,10 @@ var TwitchApi = class {
2721
2725
  *
2722
2726
  * @see https://dev.twitch.tv/docs/api/reference#get-games
2723
2727
  */
2724
- getGames: async (params = null, ...request) => this.callApi({
2728
+ getGames: async (params = null, options = {}) => this.callApi({
2725
2729
  path: "/games",
2726
2730
  params,
2727
- request
2731
+ options
2728
2732
  })
2729
2733
  };
2730
2734
  goals = {
@@ -2761,10 +2765,10 @@ var TwitchApi = class {
2761
2765
  *
2762
2766
  * @see https://dev.twitch.tv/docs/api/reference#get-creator-goals
2763
2767
  */
2764
- getCreatorGoals: async (params, ...request) => this.callApi({
2768
+ getCreatorGoals: async (params, options = {}) => this.callApi({
2765
2769
  path: "/goals",
2766
2770
  params,
2767
- request
2771
+ options
2768
2772
  })
2769
2773
  };
2770
2774
  guestStar = {
@@ -2795,10 +2799,10 @@ var TwitchApi = class {
2795
2799
  *
2796
2800
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings
2797
2801
  */
2798
- getChannelGuestStarSettings: async (params, ...request) => this.callApi({
2802
+ getChannelGuestStarSettings: async (params, options = {}) => this.callApi({
2799
2803
  path: "/guest_star/channel_settings",
2800
2804
  params,
2801
- request
2805
+ options
2802
2806
  }),
2803
2807
  /**
2804
2808
  * BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host.
@@ -2826,12 +2830,12 @@ var TwitchApi = class {
2826
2830
  *
2827
2831
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-guest-star-settings
2828
2832
  */
2829
- updateChannelGuestStarSettings: async (params, body = null, ...request) => this.callApi({
2833
+ updateChannelGuestStarSettings: async (params, body = null, options = {}) => this.callApi({
2830
2834
  path: "/guest_star/channel_settings",
2831
2835
  method: "PUT",
2832
2836
  params,
2833
2837
  body,
2834
- request
2838
+ options
2835
2839
  }),
2836
2840
  /**
2837
2841
  * BETA Gets information about an ongoing Guest Star session for a particular channel.
@@ -2860,10 +2864,10 @@ var TwitchApi = class {
2860
2864
  *
2861
2865
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-session
2862
2866
  */
2863
- getGuestStarSession: async (params, ...request) => this.callApi({
2867
+ getGuestStarSession: async (params, options = {}) => this.callApi({
2864
2868
  path: "/guest_star/session",
2865
2869
  params,
2866
- request
2870
+ options
2867
2871
  }),
2868
2872
  /**
2869
2873
  * BETA Programmatically creates a Guest Star session on behalf of the broadcaster. Requires the broadcaster to be present in the call interface, or the call will be ended automatically.
@@ -2896,11 +2900,11 @@ var TwitchApi = class {
2896
2900
  *
2897
2901
  * @see https://dev.twitch.tv/docs/api/reference#create-guest-star-session
2898
2902
  */
2899
- createGuestStarSession: async (params, ...request) => this.callApi({
2903
+ createGuestStarSession: async (params, options = {}) => this.callApi({
2900
2904
  path: "/guest_star/session",
2901
2905
  method: "POST",
2902
2906
  params,
2903
- request
2907
+ options
2904
2908
  }),
2905
2909
  /**
2906
2910
  * BETA Programmatically ends a Guest Star session on behalf of the broadcaster. Performs the same action as if the host clicked the “End Call” button in the Guest Star UI.
@@ -2930,11 +2934,11 @@ var TwitchApi = class {
2930
2934
  *
2931
2935
  * @see https://dev.twitch.tv/docs/api/reference#end-guest-star-session
2932
2936
  */
2933
- endGuestStarSession: async (params, ...request) => this.callApi({
2937
+ endGuestStarSession: async (params, options = {}) => this.callApi({
2934
2938
  path: "/guest_star/session",
2935
2939
  method: "DELETE",
2936
2940
  params,
2937
- request
2941
+ options
2938
2942
  }),
2939
2943
  /**
2940
2944
  * BETA Provides the caller with a list of pending invites to a Guest Star session, including the invitee’s ready status while joining the waiting room.
@@ -2959,10 +2963,10 @@ var TwitchApi = class {
2959
2963
  *
2960
2964
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-invites
2961
2965
  */
2962
- getGuestStarInvites: async (params, ...request) => this.callApi({
2966
+ getGuestStarInvites: async (params, options = {}) => this.callApi({
2963
2967
  path: "/guest_star/invites",
2964
2968
  params,
2965
- request
2969
+ options
2966
2970
  }),
2967
2971
  /**
2968
2972
  * BETA Sends an invite to a specified guest on behalf of the broadcaster for a Guest Star session in progress.
@@ -2995,11 +2999,11 @@ var TwitchApi = class {
2995
2999
  *
2996
3000
  * @see https://dev.twitch.tv/docs/api/reference#send-guest-star-invite
2997
3001
  */
2998
- sendGuestStarInvite: async (params, ...request) => this.callApi({
3002
+ sendGuestStarInvite: async (params, options = {}) => this.callApi({
2999
3003
  path: "/guest_star/invites",
3000
3004
  method: "POST",
3001
3005
  params,
3002
- request
3006
+ options
3003
3007
  }),
3004
3008
  /**
3005
3009
  * BETA Revokes a previously sent invite for a Guest Star session.
@@ -3030,11 +3034,11 @@ var TwitchApi = class {
3030
3034
  *
3031
3035
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-invite
3032
3036
  */
3033
- deleteGuestStarInvite: async (params, ...request) => this.callApi({
3037
+ deleteGuestStarInvite: async (params, options = {}) => this.callApi({
3034
3038
  path: "/guest_star/invites",
3035
3039
  method: "DELETE",
3036
3040
  params,
3037
- request
3041
+ options
3038
3042
  }),
3039
3043
  /**
3040
3044
  * BETA Allows a previously invited user to be assigned a slot within the active Guest Star session, once that guest has indicated they are ready to join.
@@ -3075,11 +3079,11 @@ var TwitchApi = class {
3075
3079
  *
3076
3080
  * @see https://dev.twitch.tv/docs/api/reference#assign-guest-star-slot
3077
3081
  */
3078
- assignGuestStarSlot: async (params, ...request) => this.callApi({
3082
+ assignGuestStarSlot: async (params, options = {}) => this.callApi({
3079
3083
  path: "/guest_star/slot",
3080
3084
  method: "POST",
3081
3085
  params,
3082
- request
3086
+ options
3083
3087
  }),
3084
3088
  /**
3085
3089
  * BETA Allows a user to update the assigned slot for a particular user within the active Guest Star session.
@@ -3107,11 +3111,11 @@ var TwitchApi = class {
3107
3111
  *
3108
3112
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot
3109
3113
  */
3110
- updateGuestStarSlot: async (params, ...request) => this.callApi({
3114
+ updateGuestStarSlot: async (params, options = {}) => this.callApi({
3111
3115
  path: "/guest_star/slot",
3112
3116
  method: "PATCH",
3113
3117
  params,
3114
- request
3118
+ options
3115
3119
  }),
3116
3120
  /**
3117
3121
  * BETA Allows a caller to remove a slot assignment from a user participating in an active Guest Star session. This revokes their access to the session immediately and disables their access to publish or subscribe to media within the session.
@@ -3149,11 +3153,11 @@ var TwitchApi = class {
3149
3153
  *
3150
3154
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-slot
3151
3155
  */
3152
- deleteGuestStarSlot: async (params, ...request) => this.callApi({
3156
+ deleteGuestStarSlot: async (params, options = {}) => this.callApi({
3153
3157
  path: "/guest_star/slot",
3154
3158
  method: "DELETE",
3155
3159
  params,
3156
- request
3160
+ options
3157
3161
  }),
3158
3162
  /**
3159
3163
  * BETA Allows a user to update slot settings for a particular guest within a Guest Star session, such as allowing the user to share audio or video within the call as a host. These settings will be broadcasted to all subscribers which control their view of the guest in that slot. One or more of the optional parameters to this API can be specified at any time.
@@ -3187,11 +3191,11 @@ var TwitchApi = class {
3187
3191
  *
3188
3192
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot-settings
3189
3193
  */
3190
- updateGuestStarSlotSettings: async (params, ...request) => this.callApi({
3194
+ updateGuestStarSlotSettings: async (params, options = {}) => this.callApi({
3191
3195
  path: "/guest_star/slot_settings",
3192
3196
  method: "PATCH",
3193
3197
  params,
3194
- request
3198
+ options
3195
3199
  })
3196
3200
  };
3197
3201
  hypeTrain = {
@@ -3224,10 +3228,10 @@ var TwitchApi = class {
3224
3228
  *
3225
3229
  * @see https://dev.twitch.tv/docs/api/reference#get-hype-train-events
3226
3230
  */
3227
- getHypeTrainEvents: async (params, ...request) => this.callApi({
3231
+ getHypeTrainEvents: async (params, options = {}) => this.callApi({
3228
3232
  path: "/hypetrain/events",
3229
3233
  params,
3230
- request
3234
+ options
3231
3235
  })
3232
3236
  };
3233
3237
  moderation = {
@@ -3285,12 +3289,12 @@ var TwitchApi = class {
3285
3289
  *
3286
3290
  * @see https://dev.twitch.tv/docs/api/reference#check-automod-status
3287
3291
  */
3288
- checkAutoModStatus: async (params, body, ...request) => this.callApi({
3292
+ checkAutoModStatus: async (params, body, options = {}) => this.callApi({
3289
3293
  path: "/moderation/enforcements/status",
3290
3294
  method: "POST",
3291
3295
  params,
3292
3296
  body,
3293
- request
3297
+ options
3294
3298
  }),
3295
3299
  /**
3296
3300
  * Allow or deny the message that AutoMod flagged for review. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod).
@@ -3336,11 +3340,11 @@ var TwitchApi = class {
3336
3340
  *
3337
3341
  * @see https://dev.twitch.tv/docs/api/reference#manage-held-automod-messages
3338
3342
  */
3339
- manageHeldAutoModMessages: async (body, ...request) => this.callApi({
3343
+ manageHeldAutoModMessages: async (body, options = {}) => this.callApi({
3340
3344
  path: "/moderation/automod/message",
3341
3345
  method: "POST",
3342
3346
  body,
3343
- request
3347
+ options
3344
3348
  }),
3345
3349
  /**
3346
3350
  * Gets the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room.
@@ -3378,10 +3382,10 @@ var TwitchApi = class {
3378
3382
  *
3379
3383
  * @see https://dev.twitch.tv/docs/api/reference#get-automod-settings
3380
3384
  */
3381
- getAutoModSettings: async (params, ...request) => this.callApi({
3385
+ getAutoModSettings: async (params, options = {}) => this.callApi({
3382
3386
  path: "/moderation/automod/settings",
3383
3387
  params,
3384
- request
3388
+ options
3385
3389
  }),
3386
3390
  /**
3387
3391
  * Updates the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room.
@@ -3435,12 +3439,12 @@ var TwitchApi = class {
3435
3439
  *
3436
3440
  * @see https://dev.twitch.tv/docs/api/reference#update-automod-settings
3437
3441
  */
3438
- updateAutoModSettings: async (params, body = null, ...request) => this.callApi({
3442
+ updateAutoModSettings: async (params, body = null, options = {}) => this.callApi({
3439
3443
  path: "/moderation/automod/settings",
3440
3444
  method: "PUT",
3441
3445
  params,
3442
3446
  body,
3443
- request
3447
+ options
3444
3448
  }),
3445
3449
  /**
3446
3450
  * Gets all users that the broadcaster banned or put in a timeout.
@@ -3473,10 +3477,10 @@ var TwitchApi = class {
3473
3477
  *
3474
3478
  * @see https://dev.twitch.tv/docs/api/reference#get-banned-users
3475
3479
  */
3476
- getBannedUsers: async (params, ...request) => this.callApi({
3480
+ getBannedUsers: async (params, options = {}) => this.callApi({
3477
3481
  path: "/moderation/banned",
3478
3482
  params,
3479
- request
3483
+ options
3480
3484
  }),
3481
3485
  /**
3482
3486
  * Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout.
@@ -3534,12 +3538,12 @@ var TwitchApi = class {
3534
3538
  *
3535
3539
  * @see https://dev.twitch.tv/docs/api/reference#ban-user
3536
3540
  */
3537
- banUser: async (params, body, ...request) => this.callApi({
3541
+ banUser: async (params, body, options = {}) => this.callApi({
3538
3542
  path: "/moderation/bans",
3539
3543
  method: "POST",
3540
3544
  params,
3541
3545
  body,
3542
- request
3546
+ options
3543
3547
  }),
3544
3548
  /**
3545
3549
  * Removes the ban or timeout that was placed on the specified user.
@@ -3589,11 +3593,11 @@ var TwitchApi = class {
3589
3593
  *
3590
3594
  * @see https://dev.twitch.tv/docs/api/reference#unban-user
3591
3595
  */
3592
- unbanUser: async (params, ...request) => this.callApi({
3596
+ unbanUser: async (params, options = {}) => this.callApi({
3593
3597
  path: "/moderation/bans",
3594
3598
  method: "DELETE",
3595
3599
  params,
3596
- request
3600
+ options
3597
3601
  }),
3598
3602
  /**
3599
3603
  * Gets the broadcaster’s list of non-private, blocked words or phrases. These are the terms that the broadcaster or moderator added manually or that were denied by AutoMod.
@@ -3631,10 +3635,10 @@ var TwitchApi = class {
3631
3635
  *
3632
3636
  * @see https://dev.twitch.tv/docs/api/reference#get-blocked-terms
3633
3637
  */
3634
- getBlockedTerms: async (params, ...request) => this.callApi({
3638
+ getBlockedTerms: async (params, options = {}) => this.callApi({
3635
3639
  path: "/moderation/blocked_terms",
3636
3640
  params,
3637
- request
3641
+ options
3638
3642
  }),
3639
3643
  /**
3640
3644
  * Adds a word or phrase to the broadcaster’s list of blocked terms. These are the terms that the broadcaster doesn’t want used in their chat room.
@@ -3674,12 +3678,12 @@ var TwitchApi = class {
3674
3678
  *
3675
3679
  * @see https://dev.twitch.tv/docs/api/reference#add-blocked-term
3676
3680
  */
3677
- addBlockedTerm: async (params, body, ...request) => this.callApi({
3681
+ addBlockedTerm: async (params, body, options = {}) => this.callApi({
3678
3682
  path: "/moderation/blocked_terms",
3679
3683
  method: "POST",
3680
3684
  params,
3681
3685
  body,
3682
- request
3686
+ options
3683
3687
  }),
3684
3688
  /**
3685
3689
  * Removes the word or phrase from the broadcaster’s list of blocked terms.
@@ -3718,11 +3722,11 @@ var TwitchApi = class {
3718
3722
  *
3719
3723
  * @see https://dev.twitch.tv/docs/api/reference#remove-blocked-term
3720
3724
  */
3721
- removeBlockedTerm: async (params, ...request) => this.callApi({
3725
+ removeBlockedTerm: async (params, options = {}) => this.callApi({
3722
3726
  path: "/moderation/blocked_terms",
3723
3727
  method: "DELETE",
3724
3728
  params,
3725
- request
3729
+ options
3726
3730
  }),
3727
3731
  /**
3728
3732
  * Removes a single chat message or all chat messages from the broadcaster’s chat room.
@@ -3764,14 +3768,14 @@ var TwitchApi = class {
3764
3768
  *
3765
3769
  * @see https://dev.twitch.tv/docs/api/reference#delete-chat-messages
3766
3770
  */
3767
- deleteChatMessages: async (params, ...request) => this.callApi({
3771
+ deleteChatMessages: async (params, options = {}) => this.callApi({
3768
3772
  path: "/moderation/chat",
3769
3773
  method: "DELETE",
3770
3774
  params,
3771
- request
3775
+ options
3772
3776
  }),
3773
3777
  /**
3774
- * BETA Gets a list of channels that the specified user has moderator privileges in.
3778
+ * Gets a list of channels that the specified user has moderator privileges in.
3775
3779
  *
3776
3780
  * __Authorization:__
3777
3781
  *
@@ -3796,10 +3800,10 @@ var TwitchApi = class {
3796
3800
  *
3797
3801
  * @see https://dev.twitch.tv/docs/api/reference#get-moderated-channels
3798
3802
  */
3799
- getModeratedChannels: async (params, ...request) => this.callApi({
3803
+ getModeratedChannels: async (params, options = {}) => this.callApi({
3800
3804
  path: "/moderation/channels",
3801
3805
  params,
3802
- request
3806
+ options
3803
3807
  }),
3804
3808
  /**
3805
3809
  * Gets all users allowed to moderate the broadcaster’s chat room.
@@ -3832,10 +3836,10 @@ var TwitchApi = class {
3832
3836
  *
3833
3837
  * @see https://dev.twitch.tv/docs/api/reference#get-moderators
3834
3838
  */
3835
- getModerators: async (params, ...request) => this.callApi({
3839
+ getModerators: async (params, options = {}) => this.callApi({
3836
3840
  path: "/moderation/moderators",
3837
3841
  params,
3838
- request
3842
+ options
3839
3843
  }),
3840
3844
  /**
3841
3845
  * Adds a moderator to the broadcaster’s chat room.
@@ -3881,11 +3885,11 @@ var TwitchApi = class {
3881
3885
  *
3882
3886
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-moderator
3883
3887
  */
3884
- addChannelModerator: async (params, ...request) => this.callApi({
3888
+ addChannelModerator: async (params, options = {}) => this.callApi({
3885
3889
  path: "/moderation/moderators",
3886
3890
  method: "POST",
3887
3891
  params,
3888
- request
3892
+ options
3889
3893
  }),
3890
3894
  /**
3891
3895
  * Removes a moderator from the broadcaster’s chat room.
@@ -3926,11 +3930,11 @@ var TwitchApi = class {
3926
3930
  *
3927
3931
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-moderator
3928
3932
  */
3929
- removeChannelModerator: async (params, ...request) => this.callApi({
3933
+ removeChannelModerator: async (params, options = {}) => this.callApi({
3930
3934
  path: "/moderation/moderators",
3931
3935
  method: "DELETE",
3932
3936
  params,
3933
- request
3937
+ options
3934
3938
  }),
3935
3939
  /**
3936
3940
  * Gets a list of the broadcaster’s VIPs.
@@ -3965,10 +3969,10 @@ var TwitchApi = class {
3965
3969
  *
3966
3970
  * @see https://dev.twitch.tv/docs/api/reference#get-vips
3967
3971
  */
3968
- getVIPs: async (params, ...request) => this.callApi({
3972
+ getVIPs: async (params, options = {}) => this.callApi({
3969
3973
  path: "/channels/vips",
3970
3974
  params,
3971
- request
3975
+ options
3972
3976
  }),
3973
3977
  /**
3974
3978
  * Adds the specified user as a VIP in the broadcaster’s channel.
@@ -4031,11 +4035,11 @@ var TwitchApi = class {
4031
4035
  *
4032
4036
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-vip
4033
4037
  */
4034
- addChannelVIP: async (params, ...request) => this.callApi({
4038
+ addChannelVIP: async (params, options = {}) => this.callApi({
4035
4039
  path: "/channels/vips",
4036
4040
  method: "POST",
4037
4041
  params,
4038
- request
4042
+ options
4039
4043
  }),
4040
4044
  /**
4041
4045
  * Removes the specified user as a VIP in the broadcaster’s channel.
@@ -4090,11 +4094,11 @@ var TwitchApi = class {
4090
4094
  *
4091
4095
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-vip
4092
4096
  */
4093
- removeChannelVIP: async (params, ...request) => this.callApi({
4097
+ removeChannelVIP: async (params, options = {}) => this.callApi({
4094
4098
  path: "/channels/vips",
4095
4099
  method: "DELETE",
4096
4100
  params,
4097
- request
4101
+ options
4098
4102
  }),
4099
4103
  /**
4100
4104
  * Activates or deactivates the broadcaster’s Shield Mode.
@@ -4136,12 +4140,12 @@ var TwitchApi = class {
4136
4140
  *
4137
4141
  * @see https://dev.twitch.tv/docs/api/reference#update-shield-mode-status
4138
4142
  */
4139
- updateShieldModeStatus: async (params, body, ...request) => this.callApi({
4143
+ updateShieldModeStatus: async (params, body, options = {}) => this.callApi({
4140
4144
  path: "/moderation/shield_mode",
4141
4145
  method: "PUT",
4142
4146
  params,
4143
4147
  body,
4144
- request
4148
+ options
4145
4149
  }),
4146
4150
  /**
4147
4151
  * Gets the broadcaster’s Shield Mode activation status.
@@ -4181,10 +4185,10 @@ var TwitchApi = class {
4181
4185
  *
4182
4186
  * @see https://dev.twitch.tv/docs/api/reference#get-shield-mode-status
4183
4187
  */
4184
- getShieldModeStatus: async (params, ...request) => this.callApi({
4188
+ getShieldModeStatus: async (params, options = {}) => this.callApi({
4185
4189
  path: "/moderation/shield_mode",
4186
4190
  params,
4187
- request
4191
+ options
4188
4192
  })
4189
4193
  };
4190
4194
  polls = {
@@ -4225,10 +4229,10 @@ var TwitchApi = class {
4225
4229
  *
4226
4230
  * @see https://dev.twitch.tv/docs/api/reference#get-polls
4227
4231
  */
4228
- getPolls: async (params, ...request) => this.callApi({
4232
+ getPolls: async (params, options = {}) => this.callApi({
4229
4233
  path: "/polls",
4230
4234
  params,
4231
- request
4235
+ options
4232
4236
  }),
4233
4237
  /**
4234
4238
  * Creates a poll that viewers in the broadcaster’s channel can vote on.
@@ -4274,11 +4278,11 @@ var TwitchApi = class {
4274
4278
  *
4275
4279
  * @see https://dev.twitch.tv/docs/api/reference#create-poll
4276
4280
  */
4277
- createPoll: async (body, ...request) => this.callApi({
4281
+ createPoll: async (body, options = {}) => this.callApi({
4278
4282
  path: "/polls",
4279
4283
  method: "POST",
4280
4284
  body,
4281
- request
4285
+ options
4282
4286
  }),
4283
4287
  /**
4284
4288
  * Ends an active poll. You have the option to end it or end it and archive it.
@@ -4315,11 +4319,11 @@ var TwitchApi = class {
4315
4319
  *
4316
4320
  * @see https://dev.twitch.tv/docs/api/reference#end-poll
4317
4321
  */
4318
- endPoll: async (body, ...request) => this.callApi({
4322
+ endPoll: async (body, options = {}) => this.callApi({
4319
4323
  path: "/polls",
4320
4324
  method: "PATCH",
4321
4325
  body,
4322
- request
4326
+ options
4323
4327
  })
4324
4328
  };
4325
4329
  predictions = {
@@ -4354,10 +4358,10 @@ var TwitchApi = class {
4354
4358
  *
4355
4359
  * @see https://dev.twitch.tv/docs/api/reference#get-predictions
4356
4360
  */
4357
- getPredictions: async (params, ...request) => this.callApi({
4361
+ getPredictions: async (params, options = {}) => this.callApi({
4358
4362
  path: "/predictions",
4359
4363
  params,
4360
- request
4364
+ options
4361
4365
  }),
4362
4366
  /**
4363
4367
  * Creates a Channel Points Prediction.
@@ -4403,11 +4407,11 @@ var TwitchApi = class {
4403
4407
  *
4404
4408
  * @see https://dev.twitch.tv/docs/api/reference#create-prediction
4405
4409
  */
4406
- createPrediction: async (body, ...request) => this.callApi({
4410
+ createPrediction: async (body, options = {}) => this.callApi({
4407
4411
  path: "/predictions",
4408
4412
  method: "POST",
4409
4413
  body,
4410
- request
4414
+ options
4411
4415
  }),
4412
4416
  /**
4413
4417
  * Locks, resolves, or cancels a Channel Points Prediction.
@@ -4451,11 +4455,11 @@ var TwitchApi = class {
4451
4455
  *
4452
4456
  * @see https://dev.twitch.tv/docs/api/reference#end-prediction
4453
4457
  */
4454
- endPrediction: async (body, ...request) => this.callApi({
4458
+ endPrediction: async (body, options = {}) => this.callApi({
4455
4459
  path: "/predictions",
4456
4460
  method: "PATCH",
4457
4461
  body,
4458
- request
4462
+ options
4459
4463
  })
4460
4464
  };
4461
4465
  raids = {
@@ -4515,11 +4519,11 @@ var TwitchApi = class {
4515
4519
  *
4516
4520
  * @see https://dev.twitch.tv/docs/api/reference#start-a-raid
4517
4521
  */
4518
- startRaid: async (params = null, ...request) => this.callApi({
4522
+ startRaid: async (params = null, options = {}) => this.callApi({
4519
4523
  path: "/raids",
4520
4524
  method: "POST",
4521
4525
  params,
4522
- request
4526
+ options
4523
4527
  }),
4524
4528
  /**
4525
4529
  * Cancel a pending raid.
@@ -4564,11 +4568,11 @@ var TwitchApi = class {
4564
4568
  *
4565
4569
  * @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
4566
4570
  */
4567
- cancelRaid: async (params, ...request) => this.callApi({
4571
+ cancelRaid: async (params, options = {}) => this.callApi({
4568
4572
  path: "/raids",
4569
4573
  method: "DELETE",
4570
4574
  params,
4571
- request
4575
+ options
4572
4576
  })
4573
4577
  };
4574
4578
  schedule = {
@@ -4612,10 +4616,10 @@ var TwitchApi = class {
4612
4616
  *
4613
4617
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-stream-schedule
4614
4618
  */
4615
- getChannelStreamSchedule: async (params, ...request) => this.callApi({
4619
+ getChannelStreamSchedule: async (params, options = {}) => this.callApi({
4616
4620
  path: "/schedule",
4617
4621
  params,
4618
- request
4622
+ options
4619
4623
  }),
4620
4624
  /**
4621
4625
  * Gets the broadcaster’s streaming schedule as an [iCalendar](https://datatracker.ietf.org/doc/html/rfc5545).
@@ -4647,10 +4651,10 @@ var TwitchApi = class {
4647
4651
  *
4648
4652
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-icalendar
4649
4653
  */
4650
- getChannelICalendar: async (params, ...request) => this.callApi({
4654
+ getChannelICalendar: async (params, options = {}) => this.callApi({
4651
4655
  path: "/schedule/icalendar",
4652
4656
  params,
4653
- request
4657
+ options
4654
4658
  }),
4655
4659
  /**
4656
4660
  * Updates the broadcaster’s schedule settings, such as scheduling a vacation.
@@ -4691,11 +4695,11 @@ var TwitchApi = class {
4691
4695
  *
4692
4696
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule
4693
4697
  */
4694
- updateChannelStreamSchedule: async (params, ...request) => this.callApi({
4698
+ updateChannelStreamSchedule: async (params, options = {}) => this.callApi({
4695
4699
  path: "/schedule/settings",
4696
4700
  method: "PATCH",
4697
4701
  params,
4698
- request
4702
+ options
4699
4703
  }),
4700
4704
  /**
4701
4705
  * Adds a single or recurring broadcast to the broadcaster’s streaming schedule. For information about scheduling broadcasts, see [Stream Schedule](https://help.twitch.tv/s/article/channel-page-setup#Schedule).
@@ -4738,12 +4742,12 @@ var TwitchApi = class {
4738
4742
  *
4739
4743
  * @see https://dev.twitch.tv/docs/api/reference#create-channel-stream-schedule-segment
4740
4744
  */
4741
- createChannelStreamScheduleSegment: async (params, body, ...request) => this.callApi({
4745
+ createChannelStreamScheduleSegment: async (params, body, options = {}) => this.callApi({
4742
4746
  path: "/schedule/segment",
4743
4747
  method: "POST",
4744
4748
  params,
4745
4749
  body,
4746
- request
4750
+ options
4747
4751
  }),
4748
4752
  /**
4749
4753
  * Updates a scheduled broadcast segment.
@@ -4790,12 +4794,12 @@ var TwitchApi = class {
4790
4794
  *
4791
4795
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule-segment
4792
4796
  */
4793
- updateChannelStreamScheduleSegment: async (params, body = null, ...request) => this.callApi({
4797
+ updateChannelStreamScheduleSegment: async (params, body = null, options = {}) => this.callApi({
4794
4798
  path: "/schedule/segment",
4795
4799
  method: "PATCH",
4796
4800
  params,
4797
4801
  body,
4798
- request
4802
+ options
4799
4803
  }),
4800
4804
  /**
4801
4805
  * Removes a broadcast segment from the broadcaster’s streaming schedule.
@@ -4833,11 +4837,11 @@ var TwitchApi = class {
4833
4837
  *
4834
4838
  * @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
4835
4839
  */
4836
- deleteChannelStreamScheduleSegment: async (params, ...request) => this.callApi({
4840
+ deleteChannelStreamScheduleSegment: async (params, options = {}) => this.callApi({
4837
4841
  path: "/schedule/segment",
4838
4842
  method: "DELETE",
4839
4843
  params,
4840
- request
4844
+ options
4841
4845
  })
4842
4846
  };
4843
4847
  search = {
@@ -4872,10 +4876,10 @@ var TwitchApi = class {
4872
4876
  *
4873
4877
  * @see https://dev.twitch.tv/docs/api/reference#search-categories
4874
4878
  */
4875
- searchCategories: async (params, ...request) => this.callApi({
4879
+ searchCategories: async (params, options = {}) => this.callApi({
4876
4880
  path: "/search/categories",
4877
4881
  params,
4878
- request
4882
+ options
4879
4883
  }),
4880
4884
  /**
4881
4885
  * Gets the channels that match the specified query and have streamed content within the past 6 months.
@@ -4912,10 +4916,10 @@ var TwitchApi = class {
4912
4916
  *
4913
4917
  * @see https://dev.twitch.tv/docs/api/reference#search-channels
4914
4918
  */
4915
- searchChannels: async (params, ...request) => this.callApi({
4919
+ searchChannels: async (params, options = {}) => this.callApi({
4916
4920
  path: "/search/channels",
4917
4921
  params,
4918
- request
4922
+ options
4919
4923
  })
4920
4924
  };
4921
4925
  streams = {
@@ -4951,10 +4955,10 @@ var TwitchApi = class {
4951
4955
  *
4952
4956
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-key
4953
4957
  */
4954
- getStreamKey: async (params, ...request) => this.callApi({
4958
+ getStreamKey: async (params, options = {}) => this.callApi({
4955
4959
  path: "/streams/key",
4956
4960
  params,
4957
- request
4961
+ options
4958
4962
  }),
4959
4963
  /**
4960
4964
  * Gets a list of all streams. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it’s possible to find duplicate or missing streams in the list as you page through the results.
@@ -4985,10 +4989,10 @@ var TwitchApi = class {
4985
4989
  *
4986
4990
  * @see https://dev.twitch.tv/docs/api/reference#get-streams
4987
4991
  */
4988
- getStreams: async (params = null, ...request) => this.callApi({
4992
+ getStreams: async (params = null, options = {}) => this.callApi({
4989
4993
  path: "/streams",
4990
4994
  params,
4991
- request
4995
+ options
4992
4996
  }),
4993
4997
  /**
4994
4998
  * Gets the list of broadcasters that the user follows and that are streaming live.
@@ -5021,10 +5025,10 @@ var TwitchApi = class {
5021
5025
  *
5022
5026
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-streams
5023
5027
  */
5024
- getFollowedStreams: async (params, ...request) => this.callApi({
5028
+ getFollowedStreams: async (params, options = {}) => this.callApi({
5025
5029
  path: "/streams/followed",
5026
5030
  params,
5027
- request
5031
+ options
5028
5032
  }),
5029
5033
  /**
5030
5034
  * Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX).
@@ -5074,11 +5078,11 @@ var TwitchApi = class {
5074
5078
  *
5075
5079
  * @see https://dev.twitch.tv/docs/api/reference#create-stream-marker
5076
5080
  */
5077
- createStreamMarker: async (body, ...request) => this.callApi({
5081
+ createStreamMarker: async (body, options = {}) => this.callApi({
5078
5082
  path: "/streams/markers",
5079
5083
  method: "POST",
5080
5084
  body,
5081
- request
5085
+ options
5082
5086
  }),
5083
5087
  /**
5084
5088
  * Gets a list of markers from the user’s most recent stream or from the specified VOD/video. A marker is an arbitrary point in a live stream that the broadcaster or editor marked, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX).
@@ -5118,10 +5122,10 @@ var TwitchApi = class {
5118
5122
  *
5119
5123
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-markers
5120
5124
  */
5121
- getStreamMarkers: async (params = null, ...request) => this.callApi({
5125
+ getStreamMarkers: async (params = null, options = {}) => this.callApi({
5122
5126
  path: "/streams/markers",
5123
5127
  params,
5124
- request
5128
+ options
5125
5129
  })
5126
5130
  };
5127
5131
  subscriptions = {
@@ -5158,10 +5162,10 @@ var TwitchApi = class {
5158
5162
  *
5159
5163
  * @see https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions
5160
5164
  */
5161
- getBroadcasterSubscriptions: async (params, ...request) => this.callApi({
5165
+ getBroadcasterSubscriptions: async (params, options = {}) => this.callApi({
5162
5166
  path: "/subscriptions",
5163
5167
  params,
5164
- request
5168
+ options
5165
5169
  }),
5166
5170
  /**
5167
5171
  * Checks whether the user subscribes to the broadcaster’s channel.
@@ -5201,10 +5205,10 @@ var TwitchApi = class {
5201
5205
  *
5202
5206
  * @see https://dev.twitch.tv/docs/api/reference#check-user-subscription
5203
5207
  */
5204
- checkUserSubscription: async (params, ...request) => this.callApi({
5208
+ checkUserSubscription: async (params, options = {}) => this.callApi({
5205
5209
  path: "/subscriptions/user",
5206
5210
  params,
5207
- request
5211
+ options
5208
5212
  })
5209
5213
  };
5210
5214
  tags = {
@@ -5240,10 +5244,10 @@ var TwitchApi = class {
5240
5244
  *
5241
5245
  * @see https://dev.twitch.tv/docs/api/reference#get-all-stream-tags
5242
5246
  */
5243
- getAllStreamTags: async (params = null, ...request) => this.callApi({
5247
+ getAllStreamTags: async (params = null, options = {}) => this.callApi({
5244
5248
  path: "/tags/streams",
5245
5249
  params,
5246
- request
5250
+ options
5247
5251
  }),
5248
5252
  /**
5249
5253
  * **IMPORTANT** Twitch is moving from Twitch-defined tags to channel-defined tags. **IMPORTANT** As of February 28, 2023, this endpoint returns an empty array. On July 13, 2023, it will return a 410 response. If you use this endpoint, please update your code to use [Get Channel Information](https://dev.twitch.tv/docs/api/reference#get-channel-information).
@@ -5277,10 +5281,10 @@ var TwitchApi = class {
5277
5281
  *
5278
5282
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-tags
5279
5283
  */
5280
- getStreamTags: async (params, ...request) => this.callApi({
5284
+ getStreamTags: async (params, options = {}) => this.callApi({
5281
5285
  path: "/streams/tags",
5282
5286
  params,
5283
- request
5287
+ options
5284
5288
  })
5285
5289
  };
5286
5290
  teams = {
@@ -5317,10 +5321,10 @@ var TwitchApi = class {
5317
5321
  *
5318
5322
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-teams
5319
5323
  */
5320
- getChannelTeams: async (params, ...request) => this.callApi({
5324
+ getChannelTeams: async (params, options = {}) => this.callApi({
5321
5325
  path: "/teams/channel",
5322
5326
  params,
5323
- request
5327
+ options
5324
5328
  }),
5325
5329
  /**
5326
5330
  * Gets information about the specified Twitch team. [Read More](https://help.twitch.tv/s/article/twitch-teams)
@@ -5337,7 +5341,7 @@ var TwitchApi = class {
5337
5341
  *
5338
5342
  * _200 OK_
5339
5343
  *
5340
- * Successfully retrieved the team’s information.
5344
+ * Successfully retrieved the team's information.
5341
5345
  *
5342
5346
  * _400 Bad Request_
5343
5347
  *
@@ -5357,10 +5361,10 @@ var TwitchApi = class {
5357
5361
  *
5358
5362
  * @see https://dev.twitch.tv/docs/api/reference#get-teams
5359
5363
  */
5360
- getTeams: async (params = null, ...request) => this.callApi({
5364
+ getTeams: async (params = null, options = {}) => this.callApi({
5361
5365
  path: "/teams",
5362
5366
  params,
5363
- request
5367
+ options
5364
5368
  })
5365
5369
  };
5366
5370
  users = {
@@ -5385,7 +5389,7 @@ var TwitchApi = class {
5385
5389
  *
5386
5390
  * _200 OK_
5387
5391
  *
5388
- * Successfully retrieved the specified users’ information.
5392
+ * Successfully retrieved the specified users' information.
5389
5393
  *
5390
5394
  * _400 Bad Request_
5391
5395
  *
@@ -5400,10 +5404,10 @@ var TwitchApi = class {
5400
5404
  *
5401
5405
  * @see https://dev.twitch.tv/docs/api/reference#get-users
5402
5406
  */
5403
- getUsers: async (params = null, ...request) => this.callApi({
5407
+ getUsers: async (params = null, options = {}) => this.callApi({
5404
5408
  path: "/users",
5405
5409
  params,
5406
- request
5410
+ options
5407
5411
  }),
5408
5412
  /**
5409
5413
  * Updates the specified user’s information. The user ID in the OAuth token identifies the user whose information you want to update.
@@ -5422,7 +5426,7 @@ var TwitchApi = class {
5422
5426
  *
5423
5427
  * _200 OK_
5424
5428
  *
5425
- * Successfully updated the specified user’s information.
5429
+ * Successfully updated the specified user's information.
5426
5430
  *
5427
5431
  * _400 Bad Request_
5428
5432
  *
@@ -5437,11 +5441,11 @@ var TwitchApi = class {
5437
5441
  *
5438
5442
  * @see https://dev.twitch.tv/docs/api/reference#update-user
5439
5443
  */
5440
- updateUser: async (params = null, ...request) => this.callApi({
5444
+ updateUser: async (params = null, options = {}) => this.callApi({
5441
5445
  path: "/users",
5442
5446
  method: "PUT",
5443
5447
  params,
5444
- request
5448
+ options
5445
5449
  }),
5446
5450
  /**
5447
5451
  * Gets the list of users that the broadcaster has blocked. [Read More](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat?language=en%5FUS#BlockWhispersandMessagesfromStrangers)
@@ -5458,7 +5462,7 @@ var TwitchApi = class {
5458
5462
  *
5459
5463
  * _200 OK_
5460
5464
  *
5461
- * Successfully retrieved the broadcaster’s list of blocked users.
5465
+ * Successfully retrieved the broadcaster's list of blocked users.
5462
5466
  *
5463
5467
  * _400 Bad Request_
5464
5468
  *
@@ -5474,10 +5478,10 @@ var TwitchApi = class {
5474
5478
  *
5475
5479
  * @see https://dev.twitch.tv/docs/api/reference#get-user-block-list
5476
5480
  */
5477
- getUserBlockList: async (params, ...request) => this.callApi({
5481
+ getUserBlockList: async (params, options = {}) => this.callApi({
5478
5482
  path: "/users/blocks",
5479
5483
  params,
5480
- request
5484
+ options
5481
5485
  }),
5482
5486
  /**
5483
5487
  * Blocks the specified user from interacting with or having contact with the broadcaster. The user ID in the OAuth token identifies the broadcaster who is blocking the user.
@@ -5514,11 +5518,11 @@ var TwitchApi = class {
5514
5518
  *
5515
5519
  * @see https://dev.twitch.tv/docs/api/reference#block-user
5516
5520
  */
5517
- blockUser: async (params, ...request) => this.callApi({
5521
+ blockUser: async (params, options = {}) => this.callApi({
5518
5522
  path: "/users/blocks",
5519
5523
  method: "PUT",
5520
5524
  params,
5521
- request
5525
+ options
5522
5526
  }),
5523
5527
  /**
5524
5528
  * Removes the user from the broadcaster’s list of blocked users. The user ID in the OAuth token identifies the broadcaster who’s removing the block.
@@ -5550,11 +5554,11 @@ var TwitchApi = class {
5550
5554
  *
5551
5555
  * @see https://dev.twitch.tv/docs/api/reference#unblock-user
5552
5556
  */
5553
- unblockUser: async (params, ...request) => this.callApi({
5557
+ unblockUser: async (params, options = {}) => this.callApi({
5554
5558
  path: "/users/blocks",
5555
5559
  method: "DELETE",
5556
5560
  params,
5557
- request
5561
+ options
5558
5562
  }),
5559
5563
  /**
5560
5564
  * Gets a list of all extensions (both active and inactive) that the broadcaster has installed. The user ID in the access token identifies the broadcaster.
@@ -5571,7 +5575,7 @@ var TwitchApi = class {
5571
5575
  *
5572
5576
  * _200 OK_
5573
5577
  *
5574
- * Successfully retrieved the user’s installed extensions.
5578
+ * Successfully retrieved the user's installed extensions.
5575
5579
  *
5576
5580
  * _401 Unauthorized_
5577
5581
  *
@@ -5582,9 +5586,9 @@ var TwitchApi = class {
5582
5586
  *
5583
5587
  * @see https://dev.twitch.tv/docs/api/reference#get-user-extensions
5584
5588
  */
5585
- getUserExtensions: async (...request) => this.callApi({
5589
+ getUserExtensions: async (options = {}) => this.callApi({
5586
5590
  path: "/users/extensions/list",
5587
- request
5591
+ options
5588
5592
  }),
5589
5593
  /**
5590
5594
  * Gets the active extensions that the broadcaster has installed for each configuration.
@@ -5603,7 +5607,7 @@ var TwitchApi = class {
5603
5607
  *
5604
5608
  * _200 OK_
5605
5609
  *
5606
- * Successfully retrieved the user’s active extensions.
5610
+ * Successfully retrieved the user's active extensions.
5607
5611
  *
5608
5612
  * _400 Bad Request_
5609
5613
  *
@@ -5617,10 +5621,10 @@ var TwitchApi = class {
5617
5621
  *
5618
5622
  * @see https://dev.twitch.tv/docs/api/reference#get-user-active-extensions
5619
5623
  */
5620
- getUserActiveExtensions: async (params = null, ...request) => this.callApi({
5624
+ getUserActiveExtensions: async (params = null, options = {}) => this.callApi({
5621
5625
  path: "/users/extensions",
5622
5626
  params,
5623
- request
5627
+ options
5624
5628
  }),
5625
5629
  /**
5626
5630
  * Updates an installed extension’s information. You can update the extension’s activation state, ID, and version number. The user ID in the access token identifies the broadcaster whose extensions you’re updating.
@@ -5658,11 +5662,11 @@ var TwitchApi = class {
5658
5662
  *
5659
5663
  * @see https://dev.twitch.tv/docs/api/reference#update-user-extensions
5660
5664
  */
5661
- updateUserExtensions: async (body, ...request) => this.callApi({
5665
+ updateUserExtensions: async (body, options = {}) => this.callApi({
5662
5666
  path: "/users/extensions",
5663
5667
  method: "PUT",
5664
5668
  body,
5665
- request
5669
+ options
5666
5670
  })
5667
5671
  };
5668
5672
  videos = {
@@ -5708,10 +5712,10 @@ var TwitchApi = class {
5708
5712
  *
5709
5713
  * @see https://dev.twitch.tv/docs/api/reference#get-videos
5710
5714
  */
5711
- getVideos: async (params = null, ...request) => this.callApi({
5715
+ getVideos: async (params = null, options = {}) => this.callApi({
5712
5716
  path: "/videos",
5713
5717
  params,
5714
- request
5718
+ options
5715
5719
  }),
5716
5720
  /**
5717
5721
  * Deletes one or more videos. You may delete past broadcasts, highlights, or uploads.
@@ -5745,11 +5749,11 @@ var TwitchApi = class {
5745
5749
  *
5746
5750
  * @see https://dev.twitch.tv/docs/api/reference#delete-videos
5747
5751
  */
5748
- deleteVideos: async (params, ...request) => this.callApi({
5752
+ deleteVideos: async (params, options = {}) => this.callApi({
5749
5753
  path: "/videos",
5750
5754
  method: "DELETE",
5751
5755
  params,
5752
- request
5756
+ options
5753
5757
  })
5754
5758
  };
5755
5759
  whispers = {
@@ -5809,12 +5813,12 @@ var TwitchApi = class {
5809
5813
  *
5810
5814
  * @see https://dev.twitch.tv/docs/api/reference#send-whisper
5811
5815
  */
5812
- sendWhisper: async (params, body, ...request) => this.callApi({
5816
+ sendWhisper: async (params, body, options = {}) => this.callApi({
5813
5817
  path: "/whispers",
5814
5818
  method: "POST",
5815
5819
  params,
5816
5820
  body,
5817
- request
5821
+ options
5818
5822
  })
5819
5823
  };
5820
5824
  };