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.cjs CHANGED
@@ -51,7 +51,11 @@ var TwitchApi = class {
51
51
  params,
52
52
  body,
53
53
  requiresAuth = true,
54
- request: [clientId = null, accessToken = null, requestInit = {}]
54
+ options: {
55
+ clientId,
56
+ accessToken,
57
+ requestInit = {}
58
+ } = {}
55
59
  }) {
56
60
  const url = params ? `${BASE_URL}${path}?${getSearchParams(params)}` : `${BASE_URL}${path}`;
57
61
  const options = { ...requestInit, method };
@@ -123,11 +127,11 @@ var TwitchApi = class {
123
127
  *
124
128
  * @see https://dev.twitch.tv/docs/api/reference#start-commercial
125
129
  */
126
- startCommercial: async (body, ...request) => this.callApi({
130
+ startCommercial: async (body, options = {}) => this.callApi({
127
131
  path: "/channels/commercial",
128
132
  method: "POST",
129
133
  body,
130
- request
134
+ options
131
135
  }),
132
136
  /**
133
137
  * 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.
@@ -154,10 +158,10 @@ var TwitchApi = class {
154
158
  *
155
159
  * @see https://dev.twitch.tv/docs/api/reference#get-ad-schedule
156
160
  */
157
- getAdSchedule: async (params, ...request) => this.callApi({
161
+ getAdSchedule: async (params, options = {}) => this.callApi({
158
162
  path: "/channels/ads",
159
163
  params,
160
- request
164
+ options
161
165
  }),
162
166
  /**
163
167
  * 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.
@@ -190,11 +194,11 @@ var TwitchApi = class {
190
194
  *
191
195
  * @see https://dev.twitch.tv/docs/api/reference#snooze-next-ad
192
196
  */
193
- snoozeNextAd: async (params, ...request) => this.callApi({
197
+ snoozeNextAd: async (params, options = {}) => this.callApi({
194
198
  path: "/channels/ads/schedule/snooze",
195
199
  method: "POST",
196
200
  params,
197
- request
201
+ options
198
202
  })
199
203
  };
200
204
  analytics = {
@@ -237,10 +241,10 @@ var TwitchApi = class {
237
241
  *
238
242
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-analytics
239
243
  */
240
- getExtensionAnalytics: async (params = null, ...request) => this.callApi({
244
+ getExtensionAnalytics: async (params = null, options = {}) => this.callApi({
241
245
  path: "/analytics/extensions",
242
246
  params,
243
- request
247
+ options
244
248
  }),
245
249
  /**
246
250
  * 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)
@@ -281,10 +285,10 @@ var TwitchApi = class {
281
285
  *
282
286
  * @see https://dev.twitch.tv/docs/api/reference#get-game-analytics
283
287
  */
284
- getGameAnalytics: async (params = null, ...request) => this.callApi({
288
+ getGameAnalytics: async (params = null, options = {}) => this.callApi({
285
289
  path: "/analytics/games",
286
290
  params,
287
- request
291
+ options
288
292
  })
289
293
  };
290
294
  bits = {
@@ -322,10 +326,10 @@ var TwitchApi = class {
322
326
  *
323
327
  * @see https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard
324
328
  */
325
- getBitsLeaderboard: async (params = null, ...request) => this.callApi({
329
+ getBitsLeaderboard: async (params = null, options = {}) => this.callApi({
326
330
  path: "/bits/leaderboard",
327
331
  params,
328
- request
332
+ options
329
333
  }),
330
334
  /**
331
335
  * 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.
@@ -351,10 +355,10 @@ var TwitchApi = class {
351
355
  *
352
356
  * @see https://dev.twitch.tv/docs/api/reference#get-cheermotes
353
357
  */
354
- getCheermotes: async (params = null, ...request) => this.callApi({
358
+ getCheermotes: async (params = null, options = {}) => this.callApi({
355
359
  path: "/bits/cheermotes",
356
360
  params,
357
- request
361
+ options
358
362
  }),
359
363
  /**
360
364
  * Gets an extension’s list of transactions. A transaction records the exchange of a currency (for example, Bits) for a digital product.
@@ -392,10 +396,10 @@ var TwitchApi = class {
392
396
  *
393
397
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-transactions
394
398
  */
395
- getExtensionTransactions: async (params, ...request) => this.callApi({
399
+ getExtensionTransactions: async (params, options = {}) => this.callApi({
396
400
  path: "/extensions/transactions",
397
401
  params,
398
- request
402
+ options
399
403
  })
400
404
  };
401
405
  channels = {
@@ -436,10 +440,10 @@ var TwitchApi = class {
436
440
  *
437
441
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-information
438
442
  */
439
- getChannelInformation: async (params, ...request) => this.callApi({
443
+ getChannelInformation: async (params, options = {}) => this.callApi({
440
444
  path: "/channels",
441
445
  params,
442
- request
446
+ options
443
447
  }),
444
448
  /**
445
449
  * Updates a channel’s properties.
@@ -498,12 +502,12 @@ var TwitchApi = class {
498
502
  *
499
503
  * @see https://dev.twitch.tv/docs/api/reference#modify-channel-information
500
504
  */
501
- modifyChannelInformation: async (params, body = null, ...request) => this.callApi({
505
+ modifyChannelInformation: async (params, body = null, options = {}) => this.callApi({
502
506
  path: "/channels",
503
507
  method: "PATCH",
504
508
  params,
505
509
  body,
506
- request
510
+ options
507
511
  }),
508
512
  /**
509
513
  * Gets the broadcaster’s list editors.
@@ -520,7 +524,7 @@ var TwitchApi = class {
520
524
  *
521
525
  * _200 OK_
522
526
  *
523
- * Successfully retrieved the broadcaster’s list of editors.
527
+ * Successfully retrieved the broadcaster's list of editors.
524
528
  *
525
529
  * _400 Bad Request_
526
530
  *
@@ -536,10 +540,10 @@ var TwitchApi = class {
536
540
  *
537
541
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-editors
538
542
  */
539
- getChannelEditors: async (params, ...request) => this.callApi({
543
+ getChannelEditors: async (params, options = {}) => this.callApi({
540
544
  path: "/channels/editors",
541
545
  params,
542
- request
546
+ options
543
547
  }),
544
548
  /**
545
549
  * 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.
@@ -556,7 +560,7 @@ var TwitchApi = class {
556
560
  *
557
561
  * _200 OK_
558
562
  *
559
- * Successfully retrieved the broadcaster’s list of followers.
563
+ * Successfully retrieved the broadcaster's list of followers.
560
564
  *
561
565
  * _400 Bad Request_
562
566
  *
@@ -578,10 +582,10 @@ var TwitchApi = class {
578
582
  *
579
583
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-channels
580
584
  */
581
- getFollowedChannels: async (params, ...request) => this.callApi({
585
+ getFollowedChannels: async (params, options = {}) => this.callApi({
582
586
  path: "/channels/followed",
583
587
  params,
584
- request
588
+ options
585
589
  }),
586
590
  /**
587
591
  * 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.
@@ -623,10 +627,10 @@ var TwitchApi = class {
623
627
  *
624
628
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-followers
625
629
  */
626
- getChannelFollowers: async (params, ...request) => this.callApi({
630
+ getChannelFollowers: async (params, options = {}) => this.callApi({
627
631
  path: "/channels/followers",
628
632
  params,
629
- request
633
+ options
630
634
  })
631
635
  };
632
636
  channelPoints = {
@@ -676,12 +680,12 @@ var TwitchApi = class {
676
680
  *
677
681
  * @see https://dev.twitch.tv/docs/api/reference#create-custom-rewards
678
682
  */
679
- createCustomRewards: async (params, body, ...request) => this.callApi({
683
+ createCustomRewards: async (params, body, options = {}) => this.callApi({
680
684
  path: "/channel_points/custom_rewards",
681
685
  method: "POST",
682
686
  params,
683
687
  body,
684
- request
688
+ options
685
689
  }),
686
690
  /**
687
691
  * Deletes a custom reward that the broadcaster created.
@@ -727,11 +731,11 @@ var TwitchApi = class {
727
731
  *
728
732
  * @see https://dev.twitch.tv/docs/api/reference#delete-custom-reward
729
733
  */
730
- deleteCustomReward: async (params, ...request) => this.callApi({
734
+ deleteCustomReward: async (params, options = {}) => this.callApi({
731
735
  path: "/channel_points/custom_rewards",
732
736
  method: "DELETE",
733
737
  params,
734
- request
738
+ options
735
739
  }),
736
740
  /**
737
741
  * Gets a list of custom rewards that the specified broadcaster created.
@@ -776,10 +780,10 @@ var TwitchApi = class {
776
780
  *
777
781
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward
778
782
  */
779
- getCustomReward: async (params, ...request) => this.callApi({
783
+ getCustomReward: async (params, options = {}) => this.callApi({
780
784
  path: "/channel_points/custom_rewards",
781
785
  params,
782
- request
786
+ options
783
787
  }),
784
788
  /**
785
789
  * Updates a custom reward. The app used to create the reward is the only app that may update the reward.
@@ -834,12 +838,12 @@ var TwitchApi = class {
834
838
  *
835
839
  * @see https://dev.twitch.tv/docs/api/reference#update-custom-reward
836
840
  */
837
- updateCustomReward: async (params, body = null, ...request) => this.callApi({
841
+ updateCustomReward: async (params, body = null, options = {}) => this.callApi({
838
842
  path: "/channel_points/custom_rewards",
839
843
  method: "PATCH",
840
844
  params,
841
845
  body,
842
- request
846
+ options
843
847
  }),
844
848
  /**
845
849
  * 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.
@@ -886,10 +890,10 @@ var TwitchApi = class {
886
890
  *
887
891
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward-redemption
888
892
  */
889
- getCustomRewardRedemption: async (params, ...request) => this.callApi({
893
+ getCustomRewardRedemption: async (params, options = {}) => this.callApi({
890
894
  path: "/channel_points/custom_rewards/redemptions",
891
895
  params,
892
- request
896
+ options
893
897
  }),
894
898
  /**
895
899
  * 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.
@@ -936,12 +940,12 @@ var TwitchApi = class {
936
940
  *
937
941
  * @see https://dev.twitch.tv/docs/api/reference#update-redemption-status
938
942
  */
939
- updateRedemptionStatus: async (params, body, ...request) => this.callApi({
943
+ updateRedemptionStatus: async (params, body, options = {}) => this.callApi({
940
944
  path: "/channel_points/custom_rewards/redemptions",
941
945
  method: "PATCH",
942
946
  params,
943
947
  body,
944
- request
948
+ options
945
949
  })
946
950
  };
947
951
  charity = {
@@ -983,10 +987,10 @@ var TwitchApi = class {
983
987
  *
984
988
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign
985
989
  */
986
- getCharityCampaign: async (params, ...request) => this.callApi({
990
+ getCharityCampaign: async (params, options = {}) => this.callApi({
987
991
  path: "/charity/campaigns",
988
992
  params,
989
- request
993
+ options
990
994
  }),
991
995
  /**
992
996
  * Gets the list of donations that users have made to the broadcaster’s active charity campaign.
@@ -1026,10 +1030,10 @@ var TwitchApi = class {
1026
1030
  *
1027
1031
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign-donations
1028
1032
  */
1029
- getCharityCampaignDonations: async (params, ...request) => this.callApi({
1033
+ getCharityCampaignDonations: async (params, options = {}) => this.callApi({
1030
1034
  path: "/charity/donations",
1031
1035
  params,
1032
- request
1036
+ options
1033
1037
  })
1034
1038
  };
1035
1039
  chat = {
@@ -1075,10 +1079,10 @@ var TwitchApi = class {
1075
1079
  *
1076
1080
  * @see https://dev.twitch.tv/docs/api/reference#get-chatters
1077
1081
  */
1078
- getChatters: async (params, ...request) => this.callApi({
1082
+ getChatters: async (params, options = {}) => this.callApi({
1079
1083
  path: "/chat/chatters",
1080
1084
  params,
1081
- request
1085
+ options
1082
1086
  }),
1083
1087
  /**
1084
1088
  * 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)
@@ -1099,7 +1103,7 @@ var TwitchApi = class {
1099
1103
  *
1100
1104
  * _200 OK_
1101
1105
  *
1102
- * Successfully retrieved broadcaster’s list of custom emotes.
1106
+ * Successfully retrieved broadcaster's list of custom emotes.
1103
1107
  *
1104
1108
  * _400 Bad Request_
1105
1109
  *
@@ -1113,10 +1117,10 @@ var TwitchApi = class {
1113
1117
  *
1114
1118
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-emotes
1115
1119
  */
1116
- getChannelEmotes: async (params, ...request) => this.callApi({
1120
+ getChannelEmotes: async (params, options = {}) => this.callApi({
1117
1121
  path: "/chat/emotes",
1118
1122
  params,
1119
- request
1123
+ options
1120
1124
  }),
1121
1125
  /**
1122
1126
  * 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.
@@ -1139,7 +1143,7 @@ var TwitchApi = class {
1139
1143
  *
1140
1144
  * _200 OK_
1141
1145
  *
1142
- * Successfully retrieved Twitch’s list of global emotes.
1146
+ * Successfully retrieved Twitch's list of global emotes.
1143
1147
  *
1144
1148
  * _401 Unauthorized_
1145
1149
  *
@@ -1149,9 +1153,9 @@ var TwitchApi = class {
1149
1153
  *
1150
1154
  * @see https://dev.twitch.tv/docs/api/reference#get-global-emotes
1151
1155
  */
1152
- getGlobalEmotes: async (...request) => this.callApi({
1156
+ getGlobalEmotes: async (options = {}) => this.callApi({
1153
1157
  path: "/chat/emotes/global",
1154
- request
1158
+ options
1155
1159
  }),
1156
1160
  /**
1157
1161
  * Gets emotes for one or more specified emote sets.
@@ -1187,10 +1191,10 @@ var TwitchApi = class {
1187
1191
  *
1188
1192
  * @see https://dev.twitch.tv/docs/api/reference#get-emote-sets
1189
1193
  */
1190
- getEmoteSets: async (params, ...request) => this.callApi({
1194
+ getEmoteSets: async (params, options = {}) => this.callApi({
1191
1195
  path: "/chat/emotes/set",
1192
1196
  params,
1193
- request
1197
+ options
1194
1198
  }),
1195
1199
  /**
1196
1200
  * 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).
@@ -1221,10 +1225,10 @@ var TwitchApi = class {
1221
1225
  *
1222
1226
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-chat-badges
1223
1227
  */
1224
- getChannelChatBadges: async (params, ...request) => this.callApi({
1228
+ getChannelChatBadges: async (params, options = {}) => this.callApi({
1225
1229
  path: "/chat/badges",
1226
1230
  params,
1227
- request
1231
+ options
1228
1232
  }),
1229
1233
  /**
1230
1234
  * 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).
@@ -1255,9 +1259,9 @@ var TwitchApi = class {
1255
1259
  *
1256
1260
  * @see https://dev.twitch.tv/docs/api/reference#get-global-chat-badges
1257
1261
  */
1258
- getGlobalChatBadges: async (...request) => this.callApi({
1262
+ getGlobalChatBadges: async (options = {}) => this.callApi({
1259
1263
  path: "/chat/badges/global",
1260
- request
1264
+ options
1261
1265
  }),
1262
1266
  /**
1263
1267
  * Gets the broadcaster’s chat settings.
@@ -1290,10 +1294,10 @@ var TwitchApi = class {
1290
1294
  *
1291
1295
  * @see https://dev.twitch.tv/docs/api/reference#get-chat-settings
1292
1296
  */
1293
- getChatSettings: async (params, ...request) => this.callApi({
1297
+ getChatSettings: async (params, options = {}) => this.callApi({
1294
1298
  path: "/chat/settings",
1295
1299
  params,
1296
- request
1300
+ options
1297
1301
  }),
1298
1302
  /**
1299
1303
  * Updates the broadcaster’s chat settings.
@@ -1344,12 +1348,12 @@ var TwitchApi = class {
1344
1348
  *
1345
1349
  * @see https://dev.twitch.tv/docs/api/reference#update-chat-settings
1346
1350
  */
1347
- updateChatSettings: async (params, body = null, ...request) => this.callApi({
1351
+ updateChatSettings: async (params, body = null, options = {}) => this.callApi({
1348
1352
  path: "/chat/settings",
1349
1353
  method: "PATCH",
1350
1354
  params,
1351
1355
  body,
1352
- request
1356
+ options
1353
1357
  }),
1354
1358
  /**
1355
1359
  * Sends an announcement to the broadcaster’s chat room.
@@ -1384,12 +1388,12 @@ var TwitchApi = class {
1384
1388
  *
1385
1389
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-announcement
1386
1390
  */
1387
- sendChatAnnouncement: async (params, body, ...request) => this.callApi({
1391
+ sendChatAnnouncement: async (params, body, options = {}) => this.callApi({
1388
1392
  path: "/chat/announcements",
1389
1393
  method: "POST",
1390
1394
  params,
1391
1395
  body,
1392
- request
1396
+ options
1393
1397
  }),
1394
1398
  /**
1395
1399
  * 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.
@@ -1443,11 +1447,11 @@ var TwitchApi = class {
1443
1447
  *
1444
1448
  * @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
1445
1449
  */
1446
- sendShoutout: async (params, ...request) => this.callApi({
1450
+ sendShoutout: async (params, options = {}) => this.callApi({
1447
1451
  path: "/chat/shoutouts",
1448
1452
  method: "POST",
1449
1453
  params,
1450
- request
1454
+ options
1451
1455
  }),
1452
1456
  /**
1453
1457
  * NEW Sends a message to the broadcaster’s chat room.
@@ -1493,11 +1497,11 @@ var TwitchApi = class {
1493
1497
  *
1494
1498
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-message
1495
1499
  */
1496
- sendChatMessage: async (body, ...request) => this.callApi({
1500
+ sendChatMessage: async (body, options = {}) => this.callApi({
1497
1501
  path: "/chat/messages",
1498
1502
  method: "POST",
1499
1503
  body,
1500
- request
1504
+ options
1501
1505
  }),
1502
1506
  /**
1503
1507
  * Gets the color used for the user’s name in chat.
@@ -1528,10 +1532,10 @@ var TwitchApi = class {
1528
1532
  *
1529
1533
  * @see https://dev.twitch.tv/docs/api/reference#get-user-chat-color
1530
1534
  */
1531
- getUserChatColor: async (params, ...request) => this.callApi({
1535
+ getUserChatColor: async (params, options = {}) => this.callApi({
1532
1536
  path: "/chat/color",
1533
1537
  params,
1534
- request
1538
+ options
1535
1539
  }),
1536
1540
  /**
1537
1541
  * Updates the color used for the user’s name in chat.
@@ -1567,11 +1571,11 @@ var TwitchApi = class {
1567
1571
  *
1568
1572
  * @see https://dev.twitch.tv/docs/api/reference#update-user-chat-color
1569
1573
  */
1570
- updateUserChatColor: async (params, ...request) => this.callApi({
1574
+ updateUserChatColor: async (params, options = {}) => this.callApi({
1571
1575
  path: "/chat/color",
1572
1576
  method: "PUT",
1573
1577
  params,
1574
- request
1578
+ options
1575
1579
  })
1576
1580
  };
1577
1581
  clips = {
@@ -1621,11 +1625,11 @@ var TwitchApi = class {
1621
1625
  *
1622
1626
  * @see https://dev.twitch.tv/docs/api/reference#create-clip
1623
1627
  */
1624
- createClip: async (params, ...request) => this.callApi({
1628
+ createClip: async (params, options = {}) => this.callApi({
1625
1629
  path: "/clips",
1626
1630
  method: "POST",
1627
1631
  params,
1628
- request
1632
+ options
1629
1633
  }),
1630
1634
  /**
1631
1635
  * 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).
@@ -1665,10 +1669,10 @@ var TwitchApi = class {
1665
1669
  *
1666
1670
  * @see https://dev.twitch.tv/docs/api/reference#get-clips
1667
1671
  */
1668
- getClips: async (params = null, ...request) => this.callApi({
1672
+ getClips: async (params = null, options = {}) => this.callApi({
1669
1673
  path: "/clips",
1670
1674
  params,
1671
- request
1675
+ options
1672
1676
  })
1673
1677
  };
1674
1678
  conduits = {
@@ -1695,9 +1699,9 @@ var TwitchApi = class {
1695
1699
  *
1696
1700
  * @see https://dev.twitch.tv/docs/api/reference#get-conduits
1697
1701
  */
1698
- getConduits: async (...request) => this.callApi({
1702
+ getConduits: async (options = {}) => this.callApi({
1699
1703
  path: "/eventsub/conduits",
1700
- request
1704
+ options
1701
1705
  }),
1702
1706
  /**
1703
1707
  * NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events).
@@ -1730,11 +1734,11 @@ var TwitchApi = class {
1730
1734
  *
1731
1735
  * @see https://dev.twitch.tv/docs/api/reference#create-conduits
1732
1736
  */
1733
- createConduits: async (body, ...request) => this.callApi({
1737
+ createConduits: async (body, options = {}) => this.callApi({
1734
1738
  path: "/eventsub/conduits",
1735
1739
  method: "POST",
1736
1740
  body,
1737
- request
1741
+ options
1738
1742
  }),
1739
1743
  /**
1740
1744
  * 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.
@@ -1769,11 +1773,11 @@ var TwitchApi = class {
1769
1773
  *
1770
1774
  * @see https://dev.twitch.tv/docs/api/reference#update-conduits
1771
1775
  */
1772
- updateConduits: async (body, ...request) => this.callApi({
1776
+ updateConduits: async (body, options = {}) => this.callApi({
1773
1777
  path: "/eventsub/conduits",
1774
1778
  method: "PATCH",
1775
1779
  body,
1776
- request
1780
+ options
1777
1781
  }),
1778
1782
  /**
1779
1783
  * 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).
@@ -1807,11 +1811,11 @@ var TwitchApi = class {
1807
1811
  *
1808
1812
  * @see https://dev.twitch.tv/docs/api/reference#delete-conduit
1809
1813
  */
1810
- deleteConduit: async (params, ...request) => this.callApi({
1814
+ deleteConduit: async (params, options = {}) => this.callApi({
1811
1815
  path: "/eventsub/conduits",
1812
1816
  method: "DELETE",
1813
1817
  params,
1814
- request
1818
+ options
1815
1819
  }),
1816
1820
  /**
1817
1821
  * NEW Gets a lists of all shards for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events).
@@ -1845,10 +1849,10 @@ var TwitchApi = class {
1845
1849
  *
1846
1850
  * @see https://dev.twitch.tv/docs/api/reference#get-conduit-shards
1847
1851
  */
1848
- getConduitShards: async (params, ...request) => this.callApi({
1852
+ getConduitShards: async (params, options = {}) => this.callApi({
1849
1853
  path: "/eventsub/conduits/shards",
1850
1854
  params,
1851
- request
1855
+ options
1852
1856
  }),
1853
1857
  /**
1854
1858
  * NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events).
@@ -1884,11 +1888,11 @@ var TwitchApi = class {
1884
1888
  *
1885
1889
  * @see https://dev.twitch.tv/docs/api/reference#update-conduit-shards
1886
1890
  */
1887
- updateConduitShards: async (body, ...request) => this.callApi({
1891
+ updateConduitShards: async (body, options = {}) => this.callApi({
1888
1892
  path: "/eventsub/conduits/shards",
1889
1893
  method: "PATCH",
1890
1894
  body,
1891
- request
1895
+ options
1892
1896
  })
1893
1897
  };
1894
1898
  ccls = {
@@ -1917,10 +1921,10 @@ var TwitchApi = class {
1917
1921
  *
1918
1922
  * @see https://dev.twitch.tv/docs/api/reference#get-content-classification-labels
1919
1923
  */
1920
- getContentClassificationLabels: async (params = null, ...request) => this.callApi({
1924
+ getContentClassificationLabels: async (params = null, options = {}) => this.callApi({
1921
1925
  path: "/content_classification_labels",
1922
1926
  params,
1923
- request
1927
+ options
1924
1928
  })
1925
1929
  };
1926
1930
  entitlements = {
@@ -1977,10 +1981,10 @@ var TwitchApi = class {
1977
1981
  *
1978
1982
  * @see https://dev.twitch.tv/docs/api/reference#get-drops-entitlements
1979
1983
  */
1980
- getDropsEntitlements: async (params = null, ...request) => this.callApi({
1984
+ getDropsEntitlements: async (params = null, options = {}) => this.callApi({
1981
1985
  path: "/entitlements/drops",
1982
1986
  params,
1983
- request
1987
+ options
1984
1988
  }),
1985
1989
  /**
1986
1990
  * Updates the Drop entitlement’s fulfillment status.
@@ -2023,11 +2027,11 @@ var TwitchApi = class {
2023
2027
  *
2024
2028
  * @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
2025
2029
  */
2026
- updateDropsEntitlements: async (body = null, ...request) => this.callApi({
2030
+ updateDropsEntitlements: async (body = null, options = {}) => this.callApi({
2027
2031
  path: "/entitlements/drops",
2028
2032
  method: "PATCH",
2029
2033
  body,
2030
- request
2034
+ options
2031
2035
  })
2032
2036
  };
2033
2037
  extensions = {
@@ -2068,10 +2072,10 @@ var TwitchApi = class {
2068
2072
  *
2069
2073
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-configuration-segment
2070
2074
  */
2071
- getExtensionConfigurationSegment: async (params, ...request) => this.callApi({
2075
+ getExtensionConfigurationSegment: async (params, options = {}) => this.callApi({
2072
2076
  path: "/extensions/configurations",
2073
2077
  params,
2074
- request
2078
+ options
2075
2079
  }),
2076
2080
  /**
2077
2081
  * Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration.
@@ -2104,11 +2108,11 @@ var TwitchApi = class {
2104
2108
  *
2105
2109
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-configuration-segment
2106
2110
  */
2107
- setExtensionConfigurationSegment: async (body, ...request) => this.callApi({
2111
+ setExtensionConfigurationSegment: async (body, options = {}) => this.callApi({
2108
2112
  path: "/extensions/configurations",
2109
2113
  method: "PUT",
2110
2114
  body,
2111
- request
2115
+ options
2112
2116
  }),
2113
2117
  /**
2114
2118
  * 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).
@@ -2142,12 +2146,12 @@ var TwitchApi = class {
2142
2146
  *
2143
2147
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-required-configuration
2144
2148
  */
2145
- setExtensionRequiredConfiguration: async (params, body, ...request) => this.callApi({
2149
+ setExtensionRequiredConfiguration: async (params, body, options = {}) => this.callApi({
2146
2150
  path: "/extensions/required_configuration",
2147
2151
  method: "PUT",
2148
2152
  params,
2149
2153
  body,
2150
- request
2154
+ options
2151
2155
  }),
2152
2156
  /**
2153
2157
  * 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.
@@ -2218,11 +2222,11 @@ var TwitchApi = class {
2218
2222
  *
2219
2223
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message
2220
2224
  */
2221
- sendExtensionPubSubMessage: async (body, ...request) => this.callApi({
2225
+ sendExtensionPubSubMessage: async (body, options = {}) => this.callApi({
2222
2226
  path: "/extensions/pubsub",
2223
2227
  method: "POST",
2224
2228
  body,
2225
- request
2229
+ options
2226
2230
  }),
2227
2231
  /**
2228
2232
  * Gets a list of broadcasters that are streaming live and have installed or activated the extension.
@@ -2260,10 +2264,10 @@ var TwitchApi = class {
2260
2264
  *
2261
2265
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
2262
2266
  */
2263
- getExtensionLiveChannels: async (params, ...request) => this.callApi({
2267
+ getExtensionLiveChannels: async (params, options = {}) => this.callApi({
2264
2268
  path: "/extensions/live",
2265
2269
  params,
2266
- request
2270
+ options
2267
2271
  }),
2268
2272
  /**
2269
2273
  * Gets an extension’s list of shared secrets.
@@ -2294,9 +2298,9 @@ var TwitchApi = class {
2294
2298
  *
2295
2299
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-secrets
2296
2300
  */
2297
- getExtensionSecrets: async (...request) => this.callApi({
2301
+ getExtensionSecrets: async (options = {}) => this.callApi({
2298
2302
  path: "/extensions/jwt/secrets",
2299
- request
2303
+ options
2300
2304
  }),
2301
2305
  /**
2302
2306
  * 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.
@@ -2328,11 +2332,11 @@ var TwitchApi = class {
2328
2332
  *
2329
2333
  * @see https://dev.twitch.tv/docs/api/reference#create-extension-secret
2330
2334
  */
2331
- createExtensionSecret: async (params, ...request) => this.callApi({
2335
+ createExtensionSecret: async (params, options = {}) => this.callApi({
2332
2336
  path: "/extensions/jwt/secrets",
2333
2337
  method: "POST",
2334
2338
  params,
2335
- request
2339
+ options
2336
2340
  }),
2337
2341
  /**
2338
2342
  * 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).
@@ -2370,12 +2374,12 @@ var TwitchApi = class {
2370
2374
  *
2371
2375
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-chat-message
2372
2376
  */
2373
- sendExtensionChatMessage: async (params, body, ...request) => this.callApi({
2377
+ sendExtensionChatMessage: async (params, body, options = {}) => this.callApi({
2374
2378
  path: "/extensions/chat",
2375
2379
  method: "POST",
2376
2380
  params,
2377
2381
  body,
2378
- request
2382
+ options
2379
2383
  }),
2380
2384
  /**
2381
2385
  * Gets information about an extension.
@@ -2411,10 +2415,10 @@ var TwitchApi = class {
2411
2415
  *
2412
2416
  * @see https://dev.twitch.tv/docs/api/reference#get-extensions
2413
2417
  */
2414
- getExtensions: async (params, ...request) => this.callApi({
2418
+ getExtensions: async (params, options = {}) => this.callApi({
2415
2419
  path: "/extensions",
2416
2420
  params,
2417
- request
2421
+ options
2418
2422
  }),
2419
2423
  /**
2420
2424
  * Gets information about a released extension. Returns the extension if its `state` is Released.
@@ -2449,10 +2453,10 @@ var TwitchApi = class {
2449
2453
  *
2450
2454
  * @see https://dev.twitch.tv/docs/api/reference#get-released-extensions
2451
2455
  */
2452
- getReleasedExtensions: async (params, ...request) => this.callApi({
2456
+ getReleasedExtensions: async (params, options = {}) => this.callApi({
2453
2457
  path: "/extensions/released",
2454
2458
  params,
2455
- request
2459
+ options
2456
2460
  }),
2457
2461
  /**
2458
2462
  * Gets the list of Bits products that belongs to the extension. The client ID in the app access token identifies the extension.
@@ -2483,10 +2487,10 @@ var TwitchApi = class {
2483
2487
  *
2484
2488
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-bits-products
2485
2489
  */
2486
- getExtensionBitsProducts: async (params = null, ...request) => this.callApi({
2490
+ getExtensionBitsProducts: async (params = null, options = {}) => this.callApi({
2487
2491
  path: "/bits/extensions",
2488
2492
  params,
2489
- request
2493
+ options
2490
2494
  }),
2491
2495
  /**
2492
2496
  * 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.
@@ -2524,11 +2528,11 @@ var TwitchApi = class {
2524
2528
  *
2525
2529
  * @see https://dev.twitch.tv/docs/api/reference#update-extension-bits-product
2526
2530
  */
2527
- updateExtensionBitsProduct: async (body, ...request) => this.callApi({
2531
+ updateExtensionBitsProduct: async (body, options = {}) => this.callApi({
2528
2532
  path: "/bits/extensions",
2529
2533
  method: "PUT",
2530
2534
  body,
2531
- request
2535
+ options
2532
2536
  })
2533
2537
  };
2534
2538
  eventSub = {
@@ -2588,11 +2592,11 @@ var TwitchApi = class {
2588
2592
  *
2589
2593
  * @see https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription
2590
2594
  */
2591
- createEventSubSubscription: async (body, ...request) => this.callApi({
2595
+ createEventSubSubscription: async (body, options = {}) => this.callApi({
2592
2596
  path: "/eventsub/subscriptions",
2593
2597
  method: "POST",
2594
2598
  body,
2595
- request
2599
+ options
2596
2600
  }),
2597
2601
  /**
2598
2602
  * Deletes an EventSub subscription.
@@ -2629,11 +2633,11 @@ var TwitchApi = class {
2629
2633
  *
2630
2634
  * @see https://dev.twitch.tv/docs/api/reference#delete-eventsub-subscription
2631
2635
  */
2632
- deleteEventSubSubscription: async (params, ...request) => this.callApi({
2636
+ deleteEventSubSubscription: async (params, options = {}) => this.callApi({
2633
2637
  path: "/eventsub/subscriptions",
2634
2638
  method: "DELETE",
2635
2639
  params,
2636
- request
2640
+ options
2637
2641
  }),
2638
2642
  /**
2639
2643
  * Gets a list of EventSub subscriptions that the client in the access token created.
@@ -2673,10 +2677,10 @@ var TwitchApi = class {
2673
2677
  *
2674
2678
  * @see https://dev.twitch.tv/docs/api/reference#get-eventsub-subscriptions
2675
2679
  */
2676
- getEventSubSubscriptions: async (params = null, ...request) => this.callApi({
2680
+ getEventSubSubscriptions: async (params = null, options = {}) => this.callApi({
2677
2681
  path: "/eventsub/subscriptions",
2678
2682
  params,
2679
- request
2683
+ options
2680
2684
  })
2681
2685
  };
2682
2686
  games = {
@@ -2710,10 +2714,10 @@ var TwitchApi = class {
2710
2714
  *
2711
2715
  * @see https://dev.twitch.tv/docs/api/reference#get-top-games
2712
2716
  */
2713
- getTopGames: async (params = null, ...request) => this.callApi({
2717
+ getTopGames: async (params = null, options = {}) => this.callApi({
2714
2718
  path: "/games/top",
2715
2719
  params,
2716
- request
2720
+ options
2717
2721
  }),
2718
2722
  /**
2719
2723
  * Gets information about specified categories or games.
@@ -2747,10 +2751,10 @@ var TwitchApi = class {
2747
2751
  *
2748
2752
  * @see https://dev.twitch.tv/docs/api/reference#get-games
2749
2753
  */
2750
- getGames: async (params = null, ...request) => this.callApi({
2754
+ getGames: async (params = null, options = {}) => this.callApi({
2751
2755
  path: "/games",
2752
2756
  params,
2753
- request
2757
+ options
2754
2758
  })
2755
2759
  };
2756
2760
  goals = {
@@ -2787,10 +2791,10 @@ var TwitchApi = class {
2787
2791
  *
2788
2792
  * @see https://dev.twitch.tv/docs/api/reference#get-creator-goals
2789
2793
  */
2790
- getCreatorGoals: async (params, ...request) => this.callApi({
2794
+ getCreatorGoals: async (params, options = {}) => this.callApi({
2791
2795
  path: "/goals",
2792
2796
  params,
2793
- request
2797
+ options
2794
2798
  })
2795
2799
  };
2796
2800
  guestStar = {
@@ -2821,10 +2825,10 @@ var TwitchApi = class {
2821
2825
  *
2822
2826
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings
2823
2827
  */
2824
- getChannelGuestStarSettings: async (params, ...request) => this.callApi({
2828
+ getChannelGuestStarSettings: async (params, options = {}) => this.callApi({
2825
2829
  path: "/guest_star/channel_settings",
2826
2830
  params,
2827
- request
2831
+ options
2828
2832
  }),
2829
2833
  /**
2830
2834
  * BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host.
@@ -2852,12 +2856,12 @@ var TwitchApi = class {
2852
2856
  *
2853
2857
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-guest-star-settings
2854
2858
  */
2855
- updateChannelGuestStarSettings: async (params, body = null, ...request) => this.callApi({
2859
+ updateChannelGuestStarSettings: async (params, body = null, options = {}) => this.callApi({
2856
2860
  path: "/guest_star/channel_settings",
2857
2861
  method: "PUT",
2858
2862
  params,
2859
2863
  body,
2860
- request
2864
+ options
2861
2865
  }),
2862
2866
  /**
2863
2867
  * BETA Gets information about an ongoing Guest Star session for a particular channel.
@@ -2886,10 +2890,10 @@ var TwitchApi = class {
2886
2890
  *
2887
2891
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-session
2888
2892
  */
2889
- getGuestStarSession: async (params, ...request) => this.callApi({
2893
+ getGuestStarSession: async (params, options = {}) => this.callApi({
2890
2894
  path: "/guest_star/session",
2891
2895
  params,
2892
- request
2896
+ options
2893
2897
  }),
2894
2898
  /**
2895
2899
  * 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.
@@ -2922,11 +2926,11 @@ var TwitchApi = class {
2922
2926
  *
2923
2927
  * @see https://dev.twitch.tv/docs/api/reference#create-guest-star-session
2924
2928
  */
2925
- createGuestStarSession: async (params, ...request) => this.callApi({
2929
+ createGuestStarSession: async (params, options = {}) => this.callApi({
2926
2930
  path: "/guest_star/session",
2927
2931
  method: "POST",
2928
2932
  params,
2929
- request
2933
+ options
2930
2934
  }),
2931
2935
  /**
2932
2936
  * 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.
@@ -2956,11 +2960,11 @@ var TwitchApi = class {
2956
2960
  *
2957
2961
  * @see https://dev.twitch.tv/docs/api/reference#end-guest-star-session
2958
2962
  */
2959
- endGuestStarSession: async (params, ...request) => this.callApi({
2963
+ endGuestStarSession: async (params, options = {}) => this.callApi({
2960
2964
  path: "/guest_star/session",
2961
2965
  method: "DELETE",
2962
2966
  params,
2963
- request
2967
+ options
2964
2968
  }),
2965
2969
  /**
2966
2970
  * 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.
@@ -2985,10 +2989,10 @@ var TwitchApi = class {
2985
2989
  *
2986
2990
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-invites
2987
2991
  */
2988
- getGuestStarInvites: async (params, ...request) => this.callApi({
2992
+ getGuestStarInvites: async (params, options = {}) => this.callApi({
2989
2993
  path: "/guest_star/invites",
2990
2994
  params,
2991
- request
2995
+ options
2992
2996
  }),
2993
2997
  /**
2994
2998
  * BETA Sends an invite to a specified guest on behalf of the broadcaster for a Guest Star session in progress.
@@ -3021,11 +3025,11 @@ var TwitchApi = class {
3021
3025
  *
3022
3026
  * @see https://dev.twitch.tv/docs/api/reference#send-guest-star-invite
3023
3027
  */
3024
- sendGuestStarInvite: async (params, ...request) => this.callApi({
3028
+ sendGuestStarInvite: async (params, options = {}) => this.callApi({
3025
3029
  path: "/guest_star/invites",
3026
3030
  method: "POST",
3027
3031
  params,
3028
- request
3032
+ options
3029
3033
  }),
3030
3034
  /**
3031
3035
  * BETA Revokes a previously sent invite for a Guest Star session.
@@ -3056,11 +3060,11 @@ var TwitchApi = class {
3056
3060
  *
3057
3061
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-invite
3058
3062
  */
3059
- deleteGuestStarInvite: async (params, ...request) => this.callApi({
3063
+ deleteGuestStarInvite: async (params, options = {}) => this.callApi({
3060
3064
  path: "/guest_star/invites",
3061
3065
  method: "DELETE",
3062
3066
  params,
3063
- request
3067
+ options
3064
3068
  }),
3065
3069
  /**
3066
3070
  * 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.
@@ -3101,11 +3105,11 @@ var TwitchApi = class {
3101
3105
  *
3102
3106
  * @see https://dev.twitch.tv/docs/api/reference#assign-guest-star-slot
3103
3107
  */
3104
- assignGuestStarSlot: async (params, ...request) => this.callApi({
3108
+ assignGuestStarSlot: async (params, options = {}) => this.callApi({
3105
3109
  path: "/guest_star/slot",
3106
3110
  method: "POST",
3107
3111
  params,
3108
- request
3112
+ options
3109
3113
  }),
3110
3114
  /**
3111
3115
  * BETA Allows a user to update the assigned slot for a particular user within the active Guest Star session.
@@ -3133,11 +3137,11 @@ var TwitchApi = class {
3133
3137
  *
3134
3138
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot
3135
3139
  */
3136
- updateGuestStarSlot: async (params, ...request) => this.callApi({
3140
+ updateGuestStarSlot: async (params, options = {}) => this.callApi({
3137
3141
  path: "/guest_star/slot",
3138
3142
  method: "PATCH",
3139
3143
  params,
3140
- request
3144
+ options
3141
3145
  }),
3142
3146
  /**
3143
3147
  * 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.
@@ -3175,11 +3179,11 @@ var TwitchApi = class {
3175
3179
  *
3176
3180
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-slot
3177
3181
  */
3178
- deleteGuestStarSlot: async (params, ...request) => this.callApi({
3182
+ deleteGuestStarSlot: async (params, options = {}) => this.callApi({
3179
3183
  path: "/guest_star/slot",
3180
3184
  method: "DELETE",
3181
3185
  params,
3182
- request
3186
+ options
3183
3187
  }),
3184
3188
  /**
3185
3189
  * 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.
@@ -3213,11 +3217,11 @@ var TwitchApi = class {
3213
3217
  *
3214
3218
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot-settings
3215
3219
  */
3216
- updateGuestStarSlotSettings: async (params, ...request) => this.callApi({
3220
+ updateGuestStarSlotSettings: async (params, options = {}) => this.callApi({
3217
3221
  path: "/guest_star/slot_settings",
3218
3222
  method: "PATCH",
3219
3223
  params,
3220
- request
3224
+ options
3221
3225
  })
3222
3226
  };
3223
3227
  hypeTrain = {
@@ -3250,10 +3254,10 @@ var TwitchApi = class {
3250
3254
  *
3251
3255
  * @see https://dev.twitch.tv/docs/api/reference#get-hype-train-events
3252
3256
  */
3253
- getHypeTrainEvents: async (params, ...request) => this.callApi({
3257
+ getHypeTrainEvents: async (params, options = {}) => this.callApi({
3254
3258
  path: "/hypetrain/events",
3255
3259
  params,
3256
- request
3260
+ options
3257
3261
  })
3258
3262
  };
3259
3263
  moderation = {
@@ -3311,12 +3315,12 @@ var TwitchApi = class {
3311
3315
  *
3312
3316
  * @see https://dev.twitch.tv/docs/api/reference#check-automod-status
3313
3317
  */
3314
- checkAutoModStatus: async (params, body, ...request) => this.callApi({
3318
+ checkAutoModStatus: async (params, body, options = {}) => this.callApi({
3315
3319
  path: "/moderation/enforcements/status",
3316
3320
  method: "POST",
3317
3321
  params,
3318
3322
  body,
3319
- request
3323
+ options
3320
3324
  }),
3321
3325
  /**
3322
3326
  * 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).
@@ -3362,11 +3366,11 @@ var TwitchApi = class {
3362
3366
  *
3363
3367
  * @see https://dev.twitch.tv/docs/api/reference#manage-held-automod-messages
3364
3368
  */
3365
- manageHeldAutoModMessages: async (body, ...request) => this.callApi({
3369
+ manageHeldAutoModMessages: async (body, options = {}) => this.callApi({
3366
3370
  path: "/moderation/automod/message",
3367
3371
  method: "POST",
3368
3372
  body,
3369
- request
3373
+ options
3370
3374
  }),
3371
3375
  /**
3372
3376
  * 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.
@@ -3404,10 +3408,10 @@ var TwitchApi = class {
3404
3408
  *
3405
3409
  * @see https://dev.twitch.tv/docs/api/reference#get-automod-settings
3406
3410
  */
3407
- getAutoModSettings: async (params, ...request) => this.callApi({
3411
+ getAutoModSettings: async (params, options = {}) => this.callApi({
3408
3412
  path: "/moderation/automod/settings",
3409
3413
  params,
3410
- request
3414
+ options
3411
3415
  }),
3412
3416
  /**
3413
3417
  * 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.
@@ -3461,12 +3465,12 @@ var TwitchApi = class {
3461
3465
  *
3462
3466
  * @see https://dev.twitch.tv/docs/api/reference#update-automod-settings
3463
3467
  */
3464
- updateAutoModSettings: async (params, body = null, ...request) => this.callApi({
3468
+ updateAutoModSettings: async (params, body = null, options = {}) => this.callApi({
3465
3469
  path: "/moderation/automod/settings",
3466
3470
  method: "PUT",
3467
3471
  params,
3468
3472
  body,
3469
- request
3473
+ options
3470
3474
  }),
3471
3475
  /**
3472
3476
  * Gets all users that the broadcaster banned or put in a timeout.
@@ -3499,10 +3503,10 @@ var TwitchApi = class {
3499
3503
  *
3500
3504
  * @see https://dev.twitch.tv/docs/api/reference#get-banned-users
3501
3505
  */
3502
- getBannedUsers: async (params, ...request) => this.callApi({
3506
+ getBannedUsers: async (params, options = {}) => this.callApi({
3503
3507
  path: "/moderation/banned",
3504
3508
  params,
3505
- request
3509
+ options
3506
3510
  }),
3507
3511
  /**
3508
3512
  * Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout.
@@ -3560,12 +3564,12 @@ var TwitchApi = class {
3560
3564
  *
3561
3565
  * @see https://dev.twitch.tv/docs/api/reference#ban-user
3562
3566
  */
3563
- banUser: async (params, body, ...request) => this.callApi({
3567
+ banUser: async (params, body, options = {}) => this.callApi({
3564
3568
  path: "/moderation/bans",
3565
3569
  method: "POST",
3566
3570
  params,
3567
3571
  body,
3568
- request
3572
+ options
3569
3573
  }),
3570
3574
  /**
3571
3575
  * Removes the ban or timeout that was placed on the specified user.
@@ -3615,11 +3619,11 @@ var TwitchApi = class {
3615
3619
  *
3616
3620
  * @see https://dev.twitch.tv/docs/api/reference#unban-user
3617
3621
  */
3618
- unbanUser: async (params, ...request) => this.callApi({
3622
+ unbanUser: async (params, options = {}) => this.callApi({
3619
3623
  path: "/moderation/bans",
3620
3624
  method: "DELETE",
3621
3625
  params,
3622
- request
3626
+ options
3623
3627
  }),
3624
3628
  /**
3625
3629
  * 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.
@@ -3657,10 +3661,10 @@ var TwitchApi = class {
3657
3661
  *
3658
3662
  * @see https://dev.twitch.tv/docs/api/reference#get-blocked-terms
3659
3663
  */
3660
- getBlockedTerms: async (params, ...request) => this.callApi({
3664
+ getBlockedTerms: async (params, options = {}) => this.callApi({
3661
3665
  path: "/moderation/blocked_terms",
3662
3666
  params,
3663
- request
3667
+ options
3664
3668
  }),
3665
3669
  /**
3666
3670
  * 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.
@@ -3700,12 +3704,12 @@ var TwitchApi = class {
3700
3704
  *
3701
3705
  * @see https://dev.twitch.tv/docs/api/reference#add-blocked-term
3702
3706
  */
3703
- addBlockedTerm: async (params, body, ...request) => this.callApi({
3707
+ addBlockedTerm: async (params, body, options = {}) => this.callApi({
3704
3708
  path: "/moderation/blocked_terms",
3705
3709
  method: "POST",
3706
3710
  params,
3707
3711
  body,
3708
- request
3712
+ options
3709
3713
  }),
3710
3714
  /**
3711
3715
  * Removes the word or phrase from the broadcaster’s list of blocked terms.
@@ -3744,11 +3748,11 @@ var TwitchApi = class {
3744
3748
  *
3745
3749
  * @see https://dev.twitch.tv/docs/api/reference#remove-blocked-term
3746
3750
  */
3747
- removeBlockedTerm: async (params, ...request) => this.callApi({
3751
+ removeBlockedTerm: async (params, options = {}) => this.callApi({
3748
3752
  path: "/moderation/blocked_terms",
3749
3753
  method: "DELETE",
3750
3754
  params,
3751
- request
3755
+ options
3752
3756
  }),
3753
3757
  /**
3754
3758
  * Removes a single chat message or all chat messages from the broadcaster’s chat room.
@@ -3790,14 +3794,14 @@ var TwitchApi = class {
3790
3794
  *
3791
3795
  * @see https://dev.twitch.tv/docs/api/reference#delete-chat-messages
3792
3796
  */
3793
- deleteChatMessages: async (params, ...request) => this.callApi({
3797
+ deleteChatMessages: async (params, options = {}) => this.callApi({
3794
3798
  path: "/moderation/chat",
3795
3799
  method: "DELETE",
3796
3800
  params,
3797
- request
3801
+ options
3798
3802
  }),
3799
3803
  /**
3800
- * BETA Gets a list of channels that the specified user has moderator privileges in.
3804
+ * Gets a list of channels that the specified user has moderator privileges in.
3801
3805
  *
3802
3806
  * __Authorization:__
3803
3807
  *
@@ -3822,10 +3826,10 @@ var TwitchApi = class {
3822
3826
  *
3823
3827
  * @see https://dev.twitch.tv/docs/api/reference#get-moderated-channels
3824
3828
  */
3825
- getModeratedChannels: async (params, ...request) => this.callApi({
3829
+ getModeratedChannels: async (params, options = {}) => this.callApi({
3826
3830
  path: "/moderation/channels",
3827
3831
  params,
3828
- request
3832
+ options
3829
3833
  }),
3830
3834
  /**
3831
3835
  * Gets all users allowed to moderate the broadcaster’s chat room.
@@ -3858,10 +3862,10 @@ var TwitchApi = class {
3858
3862
  *
3859
3863
  * @see https://dev.twitch.tv/docs/api/reference#get-moderators
3860
3864
  */
3861
- getModerators: async (params, ...request) => this.callApi({
3865
+ getModerators: async (params, options = {}) => this.callApi({
3862
3866
  path: "/moderation/moderators",
3863
3867
  params,
3864
- request
3868
+ options
3865
3869
  }),
3866
3870
  /**
3867
3871
  * Adds a moderator to the broadcaster’s chat room.
@@ -3907,11 +3911,11 @@ var TwitchApi = class {
3907
3911
  *
3908
3912
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-moderator
3909
3913
  */
3910
- addChannelModerator: async (params, ...request) => this.callApi({
3914
+ addChannelModerator: async (params, options = {}) => this.callApi({
3911
3915
  path: "/moderation/moderators",
3912
3916
  method: "POST",
3913
3917
  params,
3914
- request
3918
+ options
3915
3919
  }),
3916
3920
  /**
3917
3921
  * Removes a moderator from the broadcaster’s chat room.
@@ -3952,11 +3956,11 @@ var TwitchApi = class {
3952
3956
  *
3953
3957
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-moderator
3954
3958
  */
3955
- removeChannelModerator: async (params, ...request) => this.callApi({
3959
+ removeChannelModerator: async (params, options = {}) => this.callApi({
3956
3960
  path: "/moderation/moderators",
3957
3961
  method: "DELETE",
3958
3962
  params,
3959
- request
3963
+ options
3960
3964
  }),
3961
3965
  /**
3962
3966
  * Gets a list of the broadcaster’s VIPs.
@@ -3991,10 +3995,10 @@ var TwitchApi = class {
3991
3995
  *
3992
3996
  * @see https://dev.twitch.tv/docs/api/reference#get-vips
3993
3997
  */
3994
- getVIPs: async (params, ...request) => this.callApi({
3998
+ getVIPs: async (params, options = {}) => this.callApi({
3995
3999
  path: "/channels/vips",
3996
4000
  params,
3997
- request
4001
+ options
3998
4002
  }),
3999
4003
  /**
4000
4004
  * Adds the specified user as a VIP in the broadcaster’s channel.
@@ -4057,11 +4061,11 @@ var TwitchApi = class {
4057
4061
  *
4058
4062
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-vip
4059
4063
  */
4060
- addChannelVIP: async (params, ...request) => this.callApi({
4064
+ addChannelVIP: async (params, options = {}) => this.callApi({
4061
4065
  path: "/channels/vips",
4062
4066
  method: "POST",
4063
4067
  params,
4064
- request
4068
+ options
4065
4069
  }),
4066
4070
  /**
4067
4071
  * Removes the specified user as a VIP in the broadcaster’s channel.
@@ -4116,11 +4120,11 @@ var TwitchApi = class {
4116
4120
  *
4117
4121
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-vip
4118
4122
  */
4119
- removeChannelVIP: async (params, ...request) => this.callApi({
4123
+ removeChannelVIP: async (params, options = {}) => this.callApi({
4120
4124
  path: "/channels/vips",
4121
4125
  method: "DELETE",
4122
4126
  params,
4123
- request
4127
+ options
4124
4128
  }),
4125
4129
  /**
4126
4130
  * Activates or deactivates the broadcaster’s Shield Mode.
@@ -4162,12 +4166,12 @@ var TwitchApi = class {
4162
4166
  *
4163
4167
  * @see https://dev.twitch.tv/docs/api/reference#update-shield-mode-status
4164
4168
  */
4165
- updateShieldModeStatus: async (params, body, ...request) => this.callApi({
4169
+ updateShieldModeStatus: async (params, body, options = {}) => this.callApi({
4166
4170
  path: "/moderation/shield_mode",
4167
4171
  method: "PUT",
4168
4172
  params,
4169
4173
  body,
4170
- request
4174
+ options
4171
4175
  }),
4172
4176
  /**
4173
4177
  * Gets the broadcaster’s Shield Mode activation status.
@@ -4207,10 +4211,10 @@ var TwitchApi = class {
4207
4211
  *
4208
4212
  * @see https://dev.twitch.tv/docs/api/reference#get-shield-mode-status
4209
4213
  */
4210
- getShieldModeStatus: async (params, ...request) => this.callApi({
4214
+ getShieldModeStatus: async (params, options = {}) => this.callApi({
4211
4215
  path: "/moderation/shield_mode",
4212
4216
  params,
4213
- request
4217
+ options
4214
4218
  })
4215
4219
  };
4216
4220
  polls = {
@@ -4251,10 +4255,10 @@ var TwitchApi = class {
4251
4255
  *
4252
4256
  * @see https://dev.twitch.tv/docs/api/reference#get-polls
4253
4257
  */
4254
- getPolls: async (params, ...request) => this.callApi({
4258
+ getPolls: async (params, options = {}) => this.callApi({
4255
4259
  path: "/polls",
4256
4260
  params,
4257
- request
4261
+ options
4258
4262
  }),
4259
4263
  /**
4260
4264
  * Creates a poll that viewers in the broadcaster’s channel can vote on.
@@ -4300,11 +4304,11 @@ var TwitchApi = class {
4300
4304
  *
4301
4305
  * @see https://dev.twitch.tv/docs/api/reference#create-poll
4302
4306
  */
4303
- createPoll: async (body, ...request) => this.callApi({
4307
+ createPoll: async (body, options = {}) => this.callApi({
4304
4308
  path: "/polls",
4305
4309
  method: "POST",
4306
4310
  body,
4307
- request
4311
+ options
4308
4312
  }),
4309
4313
  /**
4310
4314
  * Ends an active poll. You have the option to end it or end it and archive it.
@@ -4341,11 +4345,11 @@ var TwitchApi = class {
4341
4345
  *
4342
4346
  * @see https://dev.twitch.tv/docs/api/reference#end-poll
4343
4347
  */
4344
- endPoll: async (body, ...request) => this.callApi({
4348
+ endPoll: async (body, options = {}) => this.callApi({
4345
4349
  path: "/polls",
4346
4350
  method: "PATCH",
4347
4351
  body,
4348
- request
4352
+ options
4349
4353
  })
4350
4354
  };
4351
4355
  predictions = {
@@ -4380,10 +4384,10 @@ var TwitchApi = class {
4380
4384
  *
4381
4385
  * @see https://dev.twitch.tv/docs/api/reference#get-predictions
4382
4386
  */
4383
- getPredictions: async (params, ...request) => this.callApi({
4387
+ getPredictions: async (params, options = {}) => this.callApi({
4384
4388
  path: "/predictions",
4385
4389
  params,
4386
- request
4390
+ options
4387
4391
  }),
4388
4392
  /**
4389
4393
  * Creates a Channel Points Prediction.
@@ -4429,11 +4433,11 @@ var TwitchApi = class {
4429
4433
  *
4430
4434
  * @see https://dev.twitch.tv/docs/api/reference#create-prediction
4431
4435
  */
4432
- createPrediction: async (body, ...request) => this.callApi({
4436
+ createPrediction: async (body, options = {}) => this.callApi({
4433
4437
  path: "/predictions",
4434
4438
  method: "POST",
4435
4439
  body,
4436
- request
4440
+ options
4437
4441
  }),
4438
4442
  /**
4439
4443
  * Locks, resolves, or cancels a Channel Points Prediction.
@@ -4477,11 +4481,11 @@ var TwitchApi = class {
4477
4481
  *
4478
4482
  * @see https://dev.twitch.tv/docs/api/reference#end-prediction
4479
4483
  */
4480
- endPrediction: async (body, ...request) => this.callApi({
4484
+ endPrediction: async (body, options = {}) => this.callApi({
4481
4485
  path: "/predictions",
4482
4486
  method: "PATCH",
4483
4487
  body,
4484
- request
4488
+ options
4485
4489
  })
4486
4490
  };
4487
4491
  raids = {
@@ -4541,11 +4545,11 @@ var TwitchApi = class {
4541
4545
  *
4542
4546
  * @see https://dev.twitch.tv/docs/api/reference#start-a-raid
4543
4547
  */
4544
- startRaid: async (params = null, ...request) => this.callApi({
4548
+ startRaid: async (params = null, options = {}) => this.callApi({
4545
4549
  path: "/raids",
4546
4550
  method: "POST",
4547
4551
  params,
4548
- request
4552
+ options
4549
4553
  }),
4550
4554
  /**
4551
4555
  * Cancel a pending raid.
@@ -4590,11 +4594,11 @@ var TwitchApi = class {
4590
4594
  *
4591
4595
  * @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
4592
4596
  */
4593
- cancelRaid: async (params, ...request) => this.callApi({
4597
+ cancelRaid: async (params, options = {}) => this.callApi({
4594
4598
  path: "/raids",
4595
4599
  method: "DELETE",
4596
4600
  params,
4597
- request
4601
+ options
4598
4602
  })
4599
4603
  };
4600
4604
  schedule = {
@@ -4638,10 +4642,10 @@ var TwitchApi = class {
4638
4642
  *
4639
4643
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-stream-schedule
4640
4644
  */
4641
- getChannelStreamSchedule: async (params, ...request) => this.callApi({
4645
+ getChannelStreamSchedule: async (params, options = {}) => this.callApi({
4642
4646
  path: "/schedule",
4643
4647
  params,
4644
- request
4648
+ options
4645
4649
  }),
4646
4650
  /**
4647
4651
  * Gets the broadcaster’s streaming schedule as an [iCalendar](https://datatracker.ietf.org/doc/html/rfc5545).
@@ -4673,10 +4677,10 @@ var TwitchApi = class {
4673
4677
  *
4674
4678
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-icalendar
4675
4679
  */
4676
- getChannelICalendar: async (params, ...request) => this.callApi({
4680
+ getChannelICalendar: async (params, options = {}) => this.callApi({
4677
4681
  path: "/schedule/icalendar",
4678
4682
  params,
4679
- request
4683
+ options
4680
4684
  }),
4681
4685
  /**
4682
4686
  * Updates the broadcaster’s schedule settings, such as scheduling a vacation.
@@ -4717,11 +4721,11 @@ var TwitchApi = class {
4717
4721
  *
4718
4722
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule
4719
4723
  */
4720
- updateChannelStreamSchedule: async (params, ...request) => this.callApi({
4724
+ updateChannelStreamSchedule: async (params, options = {}) => this.callApi({
4721
4725
  path: "/schedule/settings",
4722
4726
  method: "PATCH",
4723
4727
  params,
4724
- request
4728
+ options
4725
4729
  }),
4726
4730
  /**
4727
4731
  * 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).
@@ -4764,12 +4768,12 @@ var TwitchApi = class {
4764
4768
  *
4765
4769
  * @see https://dev.twitch.tv/docs/api/reference#create-channel-stream-schedule-segment
4766
4770
  */
4767
- createChannelStreamScheduleSegment: async (params, body, ...request) => this.callApi({
4771
+ createChannelStreamScheduleSegment: async (params, body, options = {}) => this.callApi({
4768
4772
  path: "/schedule/segment",
4769
4773
  method: "POST",
4770
4774
  params,
4771
4775
  body,
4772
- request
4776
+ options
4773
4777
  }),
4774
4778
  /**
4775
4779
  * Updates a scheduled broadcast segment.
@@ -4816,12 +4820,12 @@ var TwitchApi = class {
4816
4820
  *
4817
4821
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule-segment
4818
4822
  */
4819
- updateChannelStreamScheduleSegment: async (params, body = null, ...request) => this.callApi({
4823
+ updateChannelStreamScheduleSegment: async (params, body = null, options = {}) => this.callApi({
4820
4824
  path: "/schedule/segment",
4821
4825
  method: "PATCH",
4822
4826
  params,
4823
4827
  body,
4824
- request
4828
+ options
4825
4829
  }),
4826
4830
  /**
4827
4831
  * Removes a broadcast segment from the broadcaster’s streaming schedule.
@@ -4859,11 +4863,11 @@ var TwitchApi = class {
4859
4863
  *
4860
4864
  * @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
4861
4865
  */
4862
- deleteChannelStreamScheduleSegment: async (params, ...request) => this.callApi({
4866
+ deleteChannelStreamScheduleSegment: async (params, options = {}) => this.callApi({
4863
4867
  path: "/schedule/segment",
4864
4868
  method: "DELETE",
4865
4869
  params,
4866
- request
4870
+ options
4867
4871
  })
4868
4872
  };
4869
4873
  search = {
@@ -4898,10 +4902,10 @@ var TwitchApi = class {
4898
4902
  *
4899
4903
  * @see https://dev.twitch.tv/docs/api/reference#search-categories
4900
4904
  */
4901
- searchCategories: async (params, ...request) => this.callApi({
4905
+ searchCategories: async (params, options = {}) => this.callApi({
4902
4906
  path: "/search/categories",
4903
4907
  params,
4904
- request
4908
+ options
4905
4909
  }),
4906
4910
  /**
4907
4911
  * Gets the channels that match the specified query and have streamed content within the past 6 months.
@@ -4938,10 +4942,10 @@ var TwitchApi = class {
4938
4942
  *
4939
4943
  * @see https://dev.twitch.tv/docs/api/reference#search-channels
4940
4944
  */
4941
- searchChannels: async (params, ...request) => this.callApi({
4945
+ searchChannels: async (params, options = {}) => this.callApi({
4942
4946
  path: "/search/channels",
4943
4947
  params,
4944
- request
4948
+ options
4945
4949
  })
4946
4950
  };
4947
4951
  streams = {
@@ -4977,10 +4981,10 @@ var TwitchApi = class {
4977
4981
  *
4978
4982
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-key
4979
4983
  */
4980
- getStreamKey: async (params, ...request) => this.callApi({
4984
+ getStreamKey: async (params, options = {}) => this.callApi({
4981
4985
  path: "/streams/key",
4982
4986
  params,
4983
- request
4987
+ options
4984
4988
  }),
4985
4989
  /**
4986
4990
  * 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.
@@ -5011,10 +5015,10 @@ var TwitchApi = class {
5011
5015
  *
5012
5016
  * @see https://dev.twitch.tv/docs/api/reference#get-streams
5013
5017
  */
5014
- getStreams: async (params = null, ...request) => this.callApi({
5018
+ getStreams: async (params = null, options = {}) => this.callApi({
5015
5019
  path: "/streams",
5016
5020
  params,
5017
- request
5021
+ options
5018
5022
  }),
5019
5023
  /**
5020
5024
  * Gets the list of broadcasters that the user follows and that are streaming live.
@@ -5047,10 +5051,10 @@ var TwitchApi = class {
5047
5051
  *
5048
5052
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-streams
5049
5053
  */
5050
- getFollowedStreams: async (params, ...request) => this.callApi({
5054
+ getFollowedStreams: async (params, options = {}) => this.callApi({
5051
5055
  path: "/streams/followed",
5052
5056
  params,
5053
- request
5057
+ options
5054
5058
  }),
5055
5059
  /**
5056
5060
  * 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).
@@ -5100,11 +5104,11 @@ var TwitchApi = class {
5100
5104
  *
5101
5105
  * @see https://dev.twitch.tv/docs/api/reference#create-stream-marker
5102
5106
  */
5103
- createStreamMarker: async (body, ...request) => this.callApi({
5107
+ createStreamMarker: async (body, options = {}) => this.callApi({
5104
5108
  path: "/streams/markers",
5105
5109
  method: "POST",
5106
5110
  body,
5107
- request
5111
+ options
5108
5112
  }),
5109
5113
  /**
5110
5114
  * 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).
@@ -5144,10 +5148,10 @@ var TwitchApi = class {
5144
5148
  *
5145
5149
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-markers
5146
5150
  */
5147
- getStreamMarkers: async (params = null, ...request) => this.callApi({
5151
+ getStreamMarkers: async (params = null, options = {}) => this.callApi({
5148
5152
  path: "/streams/markers",
5149
5153
  params,
5150
- request
5154
+ options
5151
5155
  })
5152
5156
  };
5153
5157
  subscriptions = {
@@ -5184,10 +5188,10 @@ var TwitchApi = class {
5184
5188
  *
5185
5189
  * @see https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions
5186
5190
  */
5187
- getBroadcasterSubscriptions: async (params, ...request) => this.callApi({
5191
+ getBroadcasterSubscriptions: async (params, options = {}) => this.callApi({
5188
5192
  path: "/subscriptions",
5189
5193
  params,
5190
- request
5194
+ options
5191
5195
  }),
5192
5196
  /**
5193
5197
  * Checks whether the user subscribes to the broadcaster’s channel.
@@ -5227,10 +5231,10 @@ var TwitchApi = class {
5227
5231
  *
5228
5232
  * @see https://dev.twitch.tv/docs/api/reference#check-user-subscription
5229
5233
  */
5230
- checkUserSubscription: async (params, ...request) => this.callApi({
5234
+ checkUserSubscription: async (params, options = {}) => this.callApi({
5231
5235
  path: "/subscriptions/user",
5232
5236
  params,
5233
- request
5237
+ options
5234
5238
  })
5235
5239
  };
5236
5240
  tags = {
@@ -5266,10 +5270,10 @@ var TwitchApi = class {
5266
5270
  *
5267
5271
  * @see https://dev.twitch.tv/docs/api/reference#get-all-stream-tags
5268
5272
  */
5269
- getAllStreamTags: async (params = null, ...request) => this.callApi({
5273
+ getAllStreamTags: async (params = null, options = {}) => this.callApi({
5270
5274
  path: "/tags/streams",
5271
5275
  params,
5272
- request
5276
+ options
5273
5277
  }),
5274
5278
  /**
5275
5279
  * **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).
@@ -5303,10 +5307,10 @@ var TwitchApi = class {
5303
5307
  *
5304
5308
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-tags
5305
5309
  */
5306
- getStreamTags: async (params, ...request) => this.callApi({
5310
+ getStreamTags: async (params, options = {}) => this.callApi({
5307
5311
  path: "/streams/tags",
5308
5312
  params,
5309
- request
5313
+ options
5310
5314
  })
5311
5315
  };
5312
5316
  teams = {
@@ -5343,10 +5347,10 @@ var TwitchApi = class {
5343
5347
  *
5344
5348
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-teams
5345
5349
  */
5346
- getChannelTeams: async (params, ...request) => this.callApi({
5350
+ getChannelTeams: async (params, options = {}) => this.callApi({
5347
5351
  path: "/teams/channel",
5348
5352
  params,
5349
- request
5353
+ options
5350
5354
  }),
5351
5355
  /**
5352
5356
  * Gets information about the specified Twitch team. [Read More](https://help.twitch.tv/s/article/twitch-teams)
@@ -5363,7 +5367,7 @@ var TwitchApi = class {
5363
5367
  *
5364
5368
  * _200 OK_
5365
5369
  *
5366
- * Successfully retrieved the team’s information.
5370
+ * Successfully retrieved the team's information.
5367
5371
  *
5368
5372
  * _400 Bad Request_
5369
5373
  *
@@ -5383,10 +5387,10 @@ var TwitchApi = class {
5383
5387
  *
5384
5388
  * @see https://dev.twitch.tv/docs/api/reference#get-teams
5385
5389
  */
5386
- getTeams: async (params = null, ...request) => this.callApi({
5390
+ getTeams: async (params = null, options = {}) => this.callApi({
5387
5391
  path: "/teams",
5388
5392
  params,
5389
- request
5393
+ options
5390
5394
  })
5391
5395
  };
5392
5396
  users = {
@@ -5411,7 +5415,7 @@ var TwitchApi = class {
5411
5415
  *
5412
5416
  * _200 OK_
5413
5417
  *
5414
- * Successfully retrieved the specified users’ information.
5418
+ * Successfully retrieved the specified users' information.
5415
5419
  *
5416
5420
  * _400 Bad Request_
5417
5421
  *
@@ -5426,10 +5430,10 @@ var TwitchApi = class {
5426
5430
  *
5427
5431
  * @see https://dev.twitch.tv/docs/api/reference#get-users
5428
5432
  */
5429
- getUsers: async (params = null, ...request) => this.callApi({
5433
+ getUsers: async (params = null, options = {}) => this.callApi({
5430
5434
  path: "/users",
5431
5435
  params,
5432
- request
5436
+ options
5433
5437
  }),
5434
5438
  /**
5435
5439
  * Updates the specified user’s information. The user ID in the OAuth token identifies the user whose information you want to update.
@@ -5448,7 +5452,7 @@ var TwitchApi = class {
5448
5452
  *
5449
5453
  * _200 OK_
5450
5454
  *
5451
- * Successfully updated the specified user’s information.
5455
+ * Successfully updated the specified user's information.
5452
5456
  *
5453
5457
  * _400 Bad Request_
5454
5458
  *
@@ -5463,11 +5467,11 @@ var TwitchApi = class {
5463
5467
  *
5464
5468
  * @see https://dev.twitch.tv/docs/api/reference#update-user
5465
5469
  */
5466
- updateUser: async (params = null, ...request) => this.callApi({
5470
+ updateUser: async (params = null, options = {}) => this.callApi({
5467
5471
  path: "/users",
5468
5472
  method: "PUT",
5469
5473
  params,
5470
- request
5474
+ options
5471
5475
  }),
5472
5476
  /**
5473
5477
  * 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)
@@ -5484,7 +5488,7 @@ var TwitchApi = class {
5484
5488
  *
5485
5489
  * _200 OK_
5486
5490
  *
5487
- * Successfully retrieved the broadcaster’s list of blocked users.
5491
+ * Successfully retrieved the broadcaster's list of blocked users.
5488
5492
  *
5489
5493
  * _400 Bad Request_
5490
5494
  *
@@ -5500,10 +5504,10 @@ var TwitchApi = class {
5500
5504
  *
5501
5505
  * @see https://dev.twitch.tv/docs/api/reference#get-user-block-list
5502
5506
  */
5503
- getUserBlockList: async (params, ...request) => this.callApi({
5507
+ getUserBlockList: async (params, options = {}) => this.callApi({
5504
5508
  path: "/users/blocks",
5505
5509
  params,
5506
- request
5510
+ options
5507
5511
  }),
5508
5512
  /**
5509
5513
  * 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.
@@ -5540,11 +5544,11 @@ var TwitchApi = class {
5540
5544
  *
5541
5545
  * @see https://dev.twitch.tv/docs/api/reference#block-user
5542
5546
  */
5543
- blockUser: async (params, ...request) => this.callApi({
5547
+ blockUser: async (params, options = {}) => this.callApi({
5544
5548
  path: "/users/blocks",
5545
5549
  method: "PUT",
5546
5550
  params,
5547
- request
5551
+ options
5548
5552
  }),
5549
5553
  /**
5550
5554
  * 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.
@@ -5576,11 +5580,11 @@ var TwitchApi = class {
5576
5580
  *
5577
5581
  * @see https://dev.twitch.tv/docs/api/reference#unblock-user
5578
5582
  */
5579
- unblockUser: async (params, ...request) => this.callApi({
5583
+ unblockUser: async (params, options = {}) => this.callApi({
5580
5584
  path: "/users/blocks",
5581
5585
  method: "DELETE",
5582
5586
  params,
5583
- request
5587
+ options
5584
5588
  }),
5585
5589
  /**
5586
5590
  * 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.
@@ -5597,7 +5601,7 @@ var TwitchApi = class {
5597
5601
  *
5598
5602
  * _200 OK_
5599
5603
  *
5600
- * Successfully retrieved the user’s installed extensions.
5604
+ * Successfully retrieved the user's installed extensions.
5601
5605
  *
5602
5606
  * _401 Unauthorized_
5603
5607
  *
@@ -5608,9 +5612,9 @@ var TwitchApi = class {
5608
5612
  *
5609
5613
  * @see https://dev.twitch.tv/docs/api/reference#get-user-extensions
5610
5614
  */
5611
- getUserExtensions: async (...request) => this.callApi({
5615
+ getUserExtensions: async (options = {}) => this.callApi({
5612
5616
  path: "/users/extensions/list",
5613
- request
5617
+ options
5614
5618
  }),
5615
5619
  /**
5616
5620
  * Gets the active extensions that the broadcaster has installed for each configuration.
@@ -5629,7 +5633,7 @@ var TwitchApi = class {
5629
5633
  *
5630
5634
  * _200 OK_
5631
5635
  *
5632
- * Successfully retrieved the user’s active extensions.
5636
+ * Successfully retrieved the user's active extensions.
5633
5637
  *
5634
5638
  * _400 Bad Request_
5635
5639
  *
@@ -5643,10 +5647,10 @@ var TwitchApi = class {
5643
5647
  *
5644
5648
  * @see https://dev.twitch.tv/docs/api/reference#get-user-active-extensions
5645
5649
  */
5646
- getUserActiveExtensions: async (params = null, ...request) => this.callApi({
5650
+ getUserActiveExtensions: async (params = null, options = {}) => this.callApi({
5647
5651
  path: "/users/extensions",
5648
5652
  params,
5649
- request
5653
+ options
5650
5654
  }),
5651
5655
  /**
5652
5656
  * 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.
@@ -5684,11 +5688,11 @@ var TwitchApi = class {
5684
5688
  *
5685
5689
  * @see https://dev.twitch.tv/docs/api/reference#update-user-extensions
5686
5690
  */
5687
- updateUserExtensions: async (body, ...request) => this.callApi({
5691
+ updateUserExtensions: async (body, options = {}) => this.callApi({
5688
5692
  path: "/users/extensions",
5689
5693
  method: "PUT",
5690
5694
  body,
5691
- request
5695
+ options
5692
5696
  })
5693
5697
  };
5694
5698
  videos = {
@@ -5734,10 +5738,10 @@ var TwitchApi = class {
5734
5738
  *
5735
5739
  * @see https://dev.twitch.tv/docs/api/reference#get-videos
5736
5740
  */
5737
- getVideos: async (params = null, ...request) => this.callApi({
5741
+ getVideos: async (params = null, options = {}) => this.callApi({
5738
5742
  path: "/videos",
5739
5743
  params,
5740
- request
5744
+ options
5741
5745
  }),
5742
5746
  /**
5743
5747
  * Deletes one or more videos. You may delete past broadcasts, highlights, or uploads.
@@ -5771,11 +5775,11 @@ var TwitchApi = class {
5771
5775
  *
5772
5776
  * @see https://dev.twitch.tv/docs/api/reference#delete-videos
5773
5777
  */
5774
- deleteVideos: async (params, ...request) => this.callApi({
5778
+ deleteVideos: async (params, options = {}) => this.callApi({
5775
5779
  path: "/videos",
5776
5780
  method: "DELETE",
5777
5781
  params,
5778
- request
5782
+ options
5779
5783
  })
5780
5784
  };
5781
5785
  whispers = {
@@ -5835,12 +5839,12 @@ var TwitchApi = class {
5835
5839
  *
5836
5840
  * @see https://dev.twitch.tv/docs/api/reference#send-whisper
5837
5841
  */
5838
- sendWhisper: async (params, body, ...request) => this.callApi({
5842
+ sendWhisper: async (params, body, options = {}) => this.callApi({
5839
5843
  path: "/whispers",
5840
5844
  method: "POST",
5841
5845
  params,
5842
5846
  body,
5843
- request
5847
+ options
5844
5848
  })
5845
5849
  };
5846
5850
  };