ts-twitch-api 0.2.0 → 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
@@ -26,10 +26,10 @@ var TwitchApi = class {
26
26
  body,
27
27
  requiresAuth = true,
28
28
  options: {
29
- clientId = null,
30
- accessToken = null,
29
+ clientId,
30
+ accessToken,
31
31
  requestInit = {}
32
- }
32
+ } = {}
33
33
  }) {
34
34
  const url = params ? `${BASE_URL}${path}?${getSearchParams(params)}` : `${BASE_URL}${path}`;
35
35
  const options = { ...requestInit, method };
@@ -101,7 +101,7 @@ var TwitchApi = class {
101
101
  *
102
102
  * @see https://dev.twitch.tv/docs/api/reference#start-commercial
103
103
  */
104
- startCommercial: async (body, options) => this.callApi({
104
+ startCommercial: async (body, options = {}) => this.callApi({
105
105
  path: "/channels/commercial",
106
106
  method: "POST",
107
107
  body,
@@ -132,7 +132,7 @@ var TwitchApi = class {
132
132
  *
133
133
  * @see https://dev.twitch.tv/docs/api/reference#get-ad-schedule
134
134
  */
135
- getAdSchedule: async (params, options) => this.callApi({
135
+ getAdSchedule: async (params, options = {}) => this.callApi({
136
136
  path: "/channels/ads",
137
137
  params,
138
138
  options
@@ -168,7 +168,7 @@ var TwitchApi = class {
168
168
  *
169
169
  * @see https://dev.twitch.tv/docs/api/reference#snooze-next-ad
170
170
  */
171
- snoozeNextAd: async (params, options) => this.callApi({
171
+ snoozeNextAd: async (params, options = {}) => this.callApi({
172
172
  path: "/channels/ads/schedule/snooze",
173
173
  method: "POST",
174
174
  params,
@@ -215,7 +215,7 @@ var TwitchApi = class {
215
215
  *
216
216
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-analytics
217
217
  */
218
- getExtensionAnalytics: async (params = null, options) => this.callApi({
218
+ getExtensionAnalytics: async (params = null, options = {}) => this.callApi({
219
219
  path: "/analytics/extensions",
220
220
  params,
221
221
  options
@@ -259,7 +259,7 @@ var TwitchApi = class {
259
259
  *
260
260
  * @see https://dev.twitch.tv/docs/api/reference#get-game-analytics
261
261
  */
262
- getGameAnalytics: async (params = null, options) => this.callApi({
262
+ getGameAnalytics: async (params = null, options = {}) => this.callApi({
263
263
  path: "/analytics/games",
264
264
  params,
265
265
  options
@@ -300,7 +300,7 @@ var TwitchApi = class {
300
300
  *
301
301
  * @see https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard
302
302
  */
303
- getBitsLeaderboard: async (params = null, options) => this.callApi({
303
+ getBitsLeaderboard: async (params = null, options = {}) => this.callApi({
304
304
  path: "/bits/leaderboard",
305
305
  params,
306
306
  options
@@ -329,7 +329,7 @@ var TwitchApi = class {
329
329
  *
330
330
  * @see https://dev.twitch.tv/docs/api/reference#get-cheermotes
331
331
  */
332
- getCheermotes: async (params = null, options) => this.callApi({
332
+ getCheermotes: async (params = null, options = {}) => this.callApi({
333
333
  path: "/bits/cheermotes",
334
334
  params,
335
335
  options
@@ -370,7 +370,7 @@ var TwitchApi = class {
370
370
  *
371
371
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-transactions
372
372
  */
373
- getExtensionTransactions: async (params, options) => this.callApi({
373
+ getExtensionTransactions: async (params, options = {}) => this.callApi({
374
374
  path: "/extensions/transactions",
375
375
  params,
376
376
  options
@@ -414,7 +414,7 @@ var TwitchApi = class {
414
414
  *
415
415
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-information
416
416
  */
417
- getChannelInformation: async (params, options) => this.callApi({
417
+ getChannelInformation: async (params, options = {}) => this.callApi({
418
418
  path: "/channels",
419
419
  params,
420
420
  options
@@ -476,7 +476,7 @@ var TwitchApi = class {
476
476
  *
477
477
  * @see https://dev.twitch.tv/docs/api/reference#modify-channel-information
478
478
  */
479
- modifyChannelInformation: async (params, body = null, options) => this.callApi({
479
+ modifyChannelInformation: async (params, body = null, options = {}) => this.callApi({
480
480
  path: "/channels",
481
481
  method: "PATCH",
482
482
  params,
@@ -498,7 +498,7 @@ var TwitchApi = class {
498
498
  *
499
499
  * _200 OK_
500
500
  *
501
- * Successfully retrieved the broadcaster’s list of editors.
501
+ * Successfully retrieved the broadcaster's list of editors.
502
502
  *
503
503
  * _400 Bad Request_
504
504
  *
@@ -514,7 +514,7 @@ var TwitchApi = class {
514
514
  *
515
515
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-editors
516
516
  */
517
- getChannelEditors: async (params, options) => this.callApi({
517
+ getChannelEditors: async (params, options = {}) => this.callApi({
518
518
  path: "/channels/editors",
519
519
  params,
520
520
  options
@@ -534,7 +534,7 @@ var TwitchApi = class {
534
534
  *
535
535
  * _200 OK_
536
536
  *
537
- * Successfully retrieved the broadcaster’s list of followers.
537
+ * Successfully retrieved the broadcaster's list of followers.
538
538
  *
539
539
  * _400 Bad Request_
540
540
  *
@@ -556,7 +556,7 @@ var TwitchApi = class {
556
556
  *
557
557
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-channels
558
558
  */
559
- getFollowedChannels: async (params, options) => this.callApi({
559
+ getFollowedChannels: async (params, options = {}) => this.callApi({
560
560
  path: "/channels/followed",
561
561
  params,
562
562
  options
@@ -601,7 +601,7 @@ var TwitchApi = class {
601
601
  *
602
602
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-followers
603
603
  */
604
- getChannelFollowers: async (params, options) => this.callApi({
604
+ getChannelFollowers: async (params, options = {}) => this.callApi({
605
605
  path: "/channels/followers",
606
606
  params,
607
607
  options
@@ -654,7 +654,7 @@ var TwitchApi = class {
654
654
  *
655
655
  * @see https://dev.twitch.tv/docs/api/reference#create-custom-rewards
656
656
  */
657
- createCustomRewards: async (params, body, options) => this.callApi({
657
+ createCustomRewards: async (params, body, options = {}) => this.callApi({
658
658
  path: "/channel_points/custom_rewards",
659
659
  method: "POST",
660
660
  params,
@@ -705,7 +705,7 @@ var TwitchApi = class {
705
705
  *
706
706
  * @see https://dev.twitch.tv/docs/api/reference#delete-custom-reward
707
707
  */
708
- deleteCustomReward: async (params, options) => this.callApi({
708
+ deleteCustomReward: async (params, options = {}) => this.callApi({
709
709
  path: "/channel_points/custom_rewards",
710
710
  method: "DELETE",
711
711
  params,
@@ -754,7 +754,7 @@ var TwitchApi = class {
754
754
  *
755
755
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward
756
756
  */
757
- getCustomReward: async (params, options) => this.callApi({
757
+ getCustomReward: async (params, options = {}) => this.callApi({
758
758
  path: "/channel_points/custom_rewards",
759
759
  params,
760
760
  options
@@ -812,7 +812,7 @@ var TwitchApi = class {
812
812
  *
813
813
  * @see https://dev.twitch.tv/docs/api/reference#update-custom-reward
814
814
  */
815
- updateCustomReward: async (params, body = null, options) => this.callApi({
815
+ updateCustomReward: async (params, body = null, options = {}) => this.callApi({
816
816
  path: "/channel_points/custom_rewards",
817
817
  method: "PATCH",
818
818
  params,
@@ -864,7 +864,7 @@ var TwitchApi = class {
864
864
  *
865
865
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward-redemption
866
866
  */
867
- getCustomRewardRedemption: async (params, options) => this.callApi({
867
+ getCustomRewardRedemption: async (params, options = {}) => this.callApi({
868
868
  path: "/channel_points/custom_rewards/redemptions",
869
869
  params,
870
870
  options
@@ -914,7 +914,7 @@ var TwitchApi = class {
914
914
  *
915
915
  * @see https://dev.twitch.tv/docs/api/reference#update-redemption-status
916
916
  */
917
- updateRedemptionStatus: async (params, body, options) => this.callApi({
917
+ updateRedemptionStatus: async (params, body, options = {}) => this.callApi({
918
918
  path: "/channel_points/custom_rewards/redemptions",
919
919
  method: "PATCH",
920
920
  params,
@@ -961,7 +961,7 @@ var TwitchApi = class {
961
961
  *
962
962
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign
963
963
  */
964
- getCharityCampaign: async (params, options) => this.callApi({
964
+ getCharityCampaign: async (params, options = {}) => this.callApi({
965
965
  path: "/charity/campaigns",
966
966
  params,
967
967
  options
@@ -1004,7 +1004,7 @@ var TwitchApi = class {
1004
1004
  *
1005
1005
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign-donations
1006
1006
  */
1007
- getCharityCampaignDonations: async (params, options) => this.callApi({
1007
+ getCharityCampaignDonations: async (params, options = {}) => this.callApi({
1008
1008
  path: "/charity/donations",
1009
1009
  params,
1010
1010
  options
@@ -1053,7 +1053,7 @@ var TwitchApi = class {
1053
1053
  *
1054
1054
  * @see https://dev.twitch.tv/docs/api/reference#get-chatters
1055
1055
  */
1056
- getChatters: async (params, options) => this.callApi({
1056
+ getChatters: async (params, options = {}) => this.callApi({
1057
1057
  path: "/chat/chatters",
1058
1058
  params,
1059
1059
  options
@@ -1077,7 +1077,7 @@ var TwitchApi = class {
1077
1077
  *
1078
1078
  * _200 OK_
1079
1079
  *
1080
- * Successfully retrieved broadcaster’s list of custom emotes.
1080
+ * Successfully retrieved broadcaster's list of custom emotes.
1081
1081
  *
1082
1082
  * _400 Bad Request_
1083
1083
  *
@@ -1091,7 +1091,7 @@ var TwitchApi = class {
1091
1091
  *
1092
1092
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-emotes
1093
1093
  */
1094
- getChannelEmotes: async (params, options) => this.callApi({
1094
+ getChannelEmotes: async (params, options = {}) => this.callApi({
1095
1095
  path: "/chat/emotes",
1096
1096
  params,
1097
1097
  options
@@ -1117,7 +1117,7 @@ var TwitchApi = class {
1117
1117
  *
1118
1118
  * _200 OK_
1119
1119
  *
1120
- * Successfully retrieved Twitch’s list of global emotes.
1120
+ * Successfully retrieved Twitch's list of global emotes.
1121
1121
  *
1122
1122
  * _401 Unauthorized_
1123
1123
  *
@@ -1127,7 +1127,7 @@ var TwitchApi = class {
1127
1127
  *
1128
1128
  * @see https://dev.twitch.tv/docs/api/reference#get-global-emotes
1129
1129
  */
1130
- getGlobalEmotes: async (options) => this.callApi({
1130
+ getGlobalEmotes: async (options = {}) => this.callApi({
1131
1131
  path: "/chat/emotes/global",
1132
1132
  options
1133
1133
  }),
@@ -1165,7 +1165,7 @@ var TwitchApi = class {
1165
1165
  *
1166
1166
  * @see https://dev.twitch.tv/docs/api/reference#get-emote-sets
1167
1167
  */
1168
- getEmoteSets: async (params, options) => this.callApi({
1168
+ getEmoteSets: async (params, options = {}) => this.callApi({
1169
1169
  path: "/chat/emotes/set",
1170
1170
  params,
1171
1171
  options
@@ -1199,7 +1199,7 @@ var TwitchApi = class {
1199
1199
  *
1200
1200
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-chat-badges
1201
1201
  */
1202
- getChannelChatBadges: async (params, options) => this.callApi({
1202
+ getChannelChatBadges: async (params, options = {}) => this.callApi({
1203
1203
  path: "/chat/badges",
1204
1204
  params,
1205
1205
  options
@@ -1233,7 +1233,7 @@ var TwitchApi = class {
1233
1233
  *
1234
1234
  * @see https://dev.twitch.tv/docs/api/reference#get-global-chat-badges
1235
1235
  */
1236
- getGlobalChatBadges: async (options) => this.callApi({
1236
+ getGlobalChatBadges: async (options = {}) => this.callApi({
1237
1237
  path: "/chat/badges/global",
1238
1238
  options
1239
1239
  }),
@@ -1268,7 +1268,7 @@ var TwitchApi = class {
1268
1268
  *
1269
1269
  * @see https://dev.twitch.tv/docs/api/reference#get-chat-settings
1270
1270
  */
1271
- getChatSettings: async (params, options) => this.callApi({
1271
+ getChatSettings: async (params, options = {}) => this.callApi({
1272
1272
  path: "/chat/settings",
1273
1273
  params,
1274
1274
  options
@@ -1322,7 +1322,7 @@ var TwitchApi = class {
1322
1322
  *
1323
1323
  * @see https://dev.twitch.tv/docs/api/reference#update-chat-settings
1324
1324
  */
1325
- updateChatSettings: async (params, body = null, options) => this.callApi({
1325
+ updateChatSettings: async (params, body = null, options = {}) => this.callApi({
1326
1326
  path: "/chat/settings",
1327
1327
  method: "PATCH",
1328
1328
  params,
@@ -1362,7 +1362,7 @@ var TwitchApi = class {
1362
1362
  *
1363
1363
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-announcement
1364
1364
  */
1365
- sendChatAnnouncement: async (params, body, options) => this.callApi({
1365
+ sendChatAnnouncement: async (params, body, options = {}) => this.callApi({
1366
1366
  path: "/chat/announcements",
1367
1367
  method: "POST",
1368
1368
  params,
@@ -1421,7 +1421,7 @@ var TwitchApi = class {
1421
1421
  *
1422
1422
  * @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
1423
1423
  */
1424
- sendShoutout: async (params, options) => this.callApi({
1424
+ sendShoutout: async (params, options = {}) => this.callApi({
1425
1425
  path: "/chat/shoutouts",
1426
1426
  method: "POST",
1427
1427
  params,
@@ -1471,7 +1471,7 @@ var TwitchApi = class {
1471
1471
  *
1472
1472
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-message
1473
1473
  */
1474
- sendChatMessage: async (body, options) => this.callApi({
1474
+ sendChatMessage: async (body, options = {}) => this.callApi({
1475
1475
  path: "/chat/messages",
1476
1476
  method: "POST",
1477
1477
  body,
@@ -1506,7 +1506,7 @@ var TwitchApi = class {
1506
1506
  *
1507
1507
  * @see https://dev.twitch.tv/docs/api/reference#get-user-chat-color
1508
1508
  */
1509
- getUserChatColor: async (params, options) => this.callApi({
1509
+ getUserChatColor: async (params, options = {}) => this.callApi({
1510
1510
  path: "/chat/color",
1511
1511
  params,
1512
1512
  options
@@ -1545,7 +1545,7 @@ var TwitchApi = class {
1545
1545
  *
1546
1546
  * @see https://dev.twitch.tv/docs/api/reference#update-user-chat-color
1547
1547
  */
1548
- updateUserChatColor: async (params, options) => this.callApi({
1548
+ updateUserChatColor: async (params, options = {}) => this.callApi({
1549
1549
  path: "/chat/color",
1550
1550
  method: "PUT",
1551
1551
  params,
@@ -1599,7 +1599,7 @@ var TwitchApi = class {
1599
1599
  *
1600
1600
  * @see https://dev.twitch.tv/docs/api/reference#create-clip
1601
1601
  */
1602
- createClip: async (params, options) => this.callApi({
1602
+ createClip: async (params, options = {}) => this.callApi({
1603
1603
  path: "/clips",
1604
1604
  method: "POST",
1605
1605
  params,
@@ -1643,7 +1643,7 @@ var TwitchApi = class {
1643
1643
  *
1644
1644
  * @see https://dev.twitch.tv/docs/api/reference#get-clips
1645
1645
  */
1646
- getClips: async (params = null, options) => this.callApi({
1646
+ getClips: async (params = null, options = {}) => this.callApi({
1647
1647
  path: "/clips",
1648
1648
  params,
1649
1649
  options
@@ -1673,7 +1673,7 @@ var TwitchApi = class {
1673
1673
  *
1674
1674
  * @see https://dev.twitch.tv/docs/api/reference#get-conduits
1675
1675
  */
1676
- getConduits: async (options) => this.callApi({
1676
+ getConduits: async (options = {}) => this.callApi({
1677
1677
  path: "/eventsub/conduits",
1678
1678
  options
1679
1679
  }),
@@ -1708,7 +1708,7 @@ var TwitchApi = class {
1708
1708
  *
1709
1709
  * @see https://dev.twitch.tv/docs/api/reference#create-conduits
1710
1710
  */
1711
- createConduits: async (body, options) => this.callApi({
1711
+ createConduits: async (body, options = {}) => this.callApi({
1712
1712
  path: "/eventsub/conduits",
1713
1713
  method: "POST",
1714
1714
  body,
@@ -1747,7 +1747,7 @@ var TwitchApi = class {
1747
1747
  *
1748
1748
  * @see https://dev.twitch.tv/docs/api/reference#update-conduits
1749
1749
  */
1750
- updateConduits: async (body, options) => this.callApi({
1750
+ updateConduits: async (body, options = {}) => this.callApi({
1751
1751
  path: "/eventsub/conduits",
1752
1752
  method: "PATCH",
1753
1753
  body,
@@ -1785,7 +1785,7 @@ var TwitchApi = class {
1785
1785
  *
1786
1786
  * @see https://dev.twitch.tv/docs/api/reference#delete-conduit
1787
1787
  */
1788
- deleteConduit: async (params, options) => this.callApi({
1788
+ deleteConduit: async (params, options = {}) => this.callApi({
1789
1789
  path: "/eventsub/conduits",
1790
1790
  method: "DELETE",
1791
1791
  params,
@@ -1823,7 +1823,7 @@ var TwitchApi = class {
1823
1823
  *
1824
1824
  * @see https://dev.twitch.tv/docs/api/reference#get-conduit-shards
1825
1825
  */
1826
- getConduitShards: async (params, options) => this.callApi({
1826
+ getConduitShards: async (params, options = {}) => this.callApi({
1827
1827
  path: "/eventsub/conduits/shards",
1828
1828
  params,
1829
1829
  options
@@ -1862,7 +1862,7 @@ var TwitchApi = class {
1862
1862
  *
1863
1863
  * @see https://dev.twitch.tv/docs/api/reference#update-conduit-shards
1864
1864
  */
1865
- updateConduitShards: async (body, options) => this.callApi({
1865
+ updateConduitShards: async (body, options = {}) => this.callApi({
1866
1866
  path: "/eventsub/conduits/shards",
1867
1867
  method: "PATCH",
1868
1868
  body,
@@ -1895,7 +1895,7 @@ var TwitchApi = class {
1895
1895
  *
1896
1896
  * @see https://dev.twitch.tv/docs/api/reference#get-content-classification-labels
1897
1897
  */
1898
- getContentClassificationLabels: async (params = null, options) => this.callApi({
1898
+ getContentClassificationLabels: async (params = null, options = {}) => this.callApi({
1899
1899
  path: "/content_classification_labels",
1900
1900
  params,
1901
1901
  options
@@ -1955,7 +1955,7 @@ var TwitchApi = class {
1955
1955
  *
1956
1956
  * @see https://dev.twitch.tv/docs/api/reference#get-drops-entitlements
1957
1957
  */
1958
- getDropsEntitlements: async (params = null, options) => this.callApi({
1958
+ getDropsEntitlements: async (params = null, options = {}) => this.callApi({
1959
1959
  path: "/entitlements/drops",
1960
1960
  params,
1961
1961
  options
@@ -2001,7 +2001,7 @@ var TwitchApi = class {
2001
2001
  *
2002
2002
  * @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
2003
2003
  */
2004
- updateDropsEntitlements: async (body = null, options) => this.callApi({
2004
+ updateDropsEntitlements: async (body = null, options = {}) => this.callApi({
2005
2005
  path: "/entitlements/drops",
2006
2006
  method: "PATCH",
2007
2007
  body,
@@ -2046,7 +2046,7 @@ var TwitchApi = class {
2046
2046
  *
2047
2047
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-configuration-segment
2048
2048
  */
2049
- getExtensionConfigurationSegment: async (params, options) => this.callApi({
2049
+ getExtensionConfigurationSegment: async (params, options = {}) => this.callApi({
2050
2050
  path: "/extensions/configurations",
2051
2051
  params,
2052
2052
  options
@@ -2082,7 +2082,7 @@ var TwitchApi = class {
2082
2082
  *
2083
2083
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-configuration-segment
2084
2084
  */
2085
- setExtensionConfigurationSegment: async (body, options) => this.callApi({
2085
+ setExtensionConfigurationSegment: async (body, options = {}) => this.callApi({
2086
2086
  path: "/extensions/configurations",
2087
2087
  method: "PUT",
2088
2088
  body,
@@ -2120,7 +2120,7 @@ var TwitchApi = class {
2120
2120
  *
2121
2121
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-required-configuration
2122
2122
  */
2123
- setExtensionRequiredConfiguration: async (params, body, options) => this.callApi({
2123
+ setExtensionRequiredConfiguration: async (params, body, options = {}) => this.callApi({
2124
2124
  path: "/extensions/required_configuration",
2125
2125
  method: "PUT",
2126
2126
  params,
@@ -2196,7 +2196,7 @@ var TwitchApi = class {
2196
2196
  *
2197
2197
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message
2198
2198
  */
2199
- sendExtensionPubSubMessage: async (body, options) => this.callApi({
2199
+ sendExtensionPubSubMessage: async (body, options = {}) => this.callApi({
2200
2200
  path: "/extensions/pubsub",
2201
2201
  method: "POST",
2202
2202
  body,
@@ -2238,7 +2238,7 @@ var TwitchApi = class {
2238
2238
  *
2239
2239
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
2240
2240
  */
2241
- getExtensionLiveChannels: async (params, options) => this.callApi({
2241
+ getExtensionLiveChannels: async (params, options = {}) => this.callApi({
2242
2242
  path: "/extensions/live",
2243
2243
  params,
2244
2244
  options
@@ -2272,7 +2272,7 @@ var TwitchApi = class {
2272
2272
  *
2273
2273
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-secrets
2274
2274
  */
2275
- getExtensionSecrets: async (options) => this.callApi({
2275
+ getExtensionSecrets: async (options = {}) => this.callApi({
2276
2276
  path: "/extensions/jwt/secrets",
2277
2277
  options
2278
2278
  }),
@@ -2306,7 +2306,7 @@ var TwitchApi = class {
2306
2306
  *
2307
2307
  * @see https://dev.twitch.tv/docs/api/reference#create-extension-secret
2308
2308
  */
2309
- createExtensionSecret: async (params, options) => this.callApi({
2309
+ createExtensionSecret: async (params, options = {}) => this.callApi({
2310
2310
  path: "/extensions/jwt/secrets",
2311
2311
  method: "POST",
2312
2312
  params,
@@ -2348,7 +2348,7 @@ var TwitchApi = class {
2348
2348
  *
2349
2349
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-chat-message
2350
2350
  */
2351
- sendExtensionChatMessage: async (params, body, options) => this.callApi({
2351
+ sendExtensionChatMessage: async (params, body, options = {}) => this.callApi({
2352
2352
  path: "/extensions/chat",
2353
2353
  method: "POST",
2354
2354
  params,
@@ -2389,7 +2389,7 @@ var TwitchApi = class {
2389
2389
  *
2390
2390
  * @see https://dev.twitch.tv/docs/api/reference#get-extensions
2391
2391
  */
2392
- getExtensions: async (params, options) => this.callApi({
2392
+ getExtensions: async (params, options = {}) => this.callApi({
2393
2393
  path: "/extensions",
2394
2394
  params,
2395
2395
  options
@@ -2427,7 +2427,7 @@ var TwitchApi = class {
2427
2427
  *
2428
2428
  * @see https://dev.twitch.tv/docs/api/reference#get-released-extensions
2429
2429
  */
2430
- getReleasedExtensions: async (params, options) => this.callApi({
2430
+ getReleasedExtensions: async (params, options = {}) => this.callApi({
2431
2431
  path: "/extensions/released",
2432
2432
  params,
2433
2433
  options
@@ -2461,7 +2461,7 @@ var TwitchApi = class {
2461
2461
  *
2462
2462
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-bits-products
2463
2463
  */
2464
- getExtensionBitsProducts: async (params = null, options) => this.callApi({
2464
+ getExtensionBitsProducts: async (params = null, options = {}) => this.callApi({
2465
2465
  path: "/bits/extensions",
2466
2466
  params,
2467
2467
  options
@@ -2502,7 +2502,7 @@ var TwitchApi = class {
2502
2502
  *
2503
2503
  * @see https://dev.twitch.tv/docs/api/reference#update-extension-bits-product
2504
2504
  */
2505
- updateExtensionBitsProduct: async (body, options) => this.callApi({
2505
+ updateExtensionBitsProduct: async (body, options = {}) => this.callApi({
2506
2506
  path: "/bits/extensions",
2507
2507
  method: "PUT",
2508
2508
  body,
@@ -2566,7 +2566,7 @@ var TwitchApi = class {
2566
2566
  *
2567
2567
  * @see https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription
2568
2568
  */
2569
- createEventSubSubscription: async (body, options) => this.callApi({
2569
+ createEventSubSubscription: async (body, options = {}) => this.callApi({
2570
2570
  path: "/eventsub/subscriptions",
2571
2571
  method: "POST",
2572
2572
  body,
@@ -2607,7 +2607,7 @@ var TwitchApi = class {
2607
2607
  *
2608
2608
  * @see https://dev.twitch.tv/docs/api/reference#delete-eventsub-subscription
2609
2609
  */
2610
- deleteEventSubSubscription: async (params, options) => this.callApi({
2610
+ deleteEventSubSubscription: async (params, options = {}) => this.callApi({
2611
2611
  path: "/eventsub/subscriptions",
2612
2612
  method: "DELETE",
2613
2613
  params,
@@ -2651,7 +2651,7 @@ var TwitchApi = class {
2651
2651
  *
2652
2652
  * @see https://dev.twitch.tv/docs/api/reference#get-eventsub-subscriptions
2653
2653
  */
2654
- getEventSubSubscriptions: async (params = null, options) => this.callApi({
2654
+ getEventSubSubscriptions: async (params = null, options = {}) => this.callApi({
2655
2655
  path: "/eventsub/subscriptions",
2656
2656
  params,
2657
2657
  options
@@ -2688,7 +2688,7 @@ var TwitchApi = class {
2688
2688
  *
2689
2689
  * @see https://dev.twitch.tv/docs/api/reference#get-top-games
2690
2690
  */
2691
- getTopGames: async (params = null, options) => this.callApi({
2691
+ getTopGames: async (params = null, options = {}) => this.callApi({
2692
2692
  path: "/games/top",
2693
2693
  params,
2694
2694
  options
@@ -2725,7 +2725,7 @@ var TwitchApi = class {
2725
2725
  *
2726
2726
  * @see https://dev.twitch.tv/docs/api/reference#get-games
2727
2727
  */
2728
- getGames: async (params = null, options) => this.callApi({
2728
+ getGames: async (params = null, options = {}) => this.callApi({
2729
2729
  path: "/games",
2730
2730
  params,
2731
2731
  options
@@ -2765,7 +2765,7 @@ var TwitchApi = class {
2765
2765
  *
2766
2766
  * @see https://dev.twitch.tv/docs/api/reference#get-creator-goals
2767
2767
  */
2768
- getCreatorGoals: async (params, options) => this.callApi({
2768
+ getCreatorGoals: async (params, options = {}) => this.callApi({
2769
2769
  path: "/goals",
2770
2770
  params,
2771
2771
  options
@@ -2799,7 +2799,7 @@ var TwitchApi = class {
2799
2799
  *
2800
2800
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings
2801
2801
  */
2802
- getChannelGuestStarSettings: async (params, options) => this.callApi({
2802
+ getChannelGuestStarSettings: async (params, options = {}) => this.callApi({
2803
2803
  path: "/guest_star/channel_settings",
2804
2804
  params,
2805
2805
  options
@@ -2830,7 +2830,7 @@ var TwitchApi = class {
2830
2830
  *
2831
2831
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-guest-star-settings
2832
2832
  */
2833
- updateChannelGuestStarSettings: async (params, body = null, options) => this.callApi({
2833
+ updateChannelGuestStarSettings: async (params, body = null, options = {}) => this.callApi({
2834
2834
  path: "/guest_star/channel_settings",
2835
2835
  method: "PUT",
2836
2836
  params,
@@ -2864,7 +2864,7 @@ var TwitchApi = class {
2864
2864
  *
2865
2865
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-session
2866
2866
  */
2867
- getGuestStarSession: async (params, options) => this.callApi({
2867
+ getGuestStarSession: async (params, options = {}) => this.callApi({
2868
2868
  path: "/guest_star/session",
2869
2869
  params,
2870
2870
  options
@@ -2900,7 +2900,7 @@ var TwitchApi = class {
2900
2900
  *
2901
2901
  * @see https://dev.twitch.tv/docs/api/reference#create-guest-star-session
2902
2902
  */
2903
- createGuestStarSession: async (params, options) => this.callApi({
2903
+ createGuestStarSession: async (params, options = {}) => this.callApi({
2904
2904
  path: "/guest_star/session",
2905
2905
  method: "POST",
2906
2906
  params,
@@ -2934,7 +2934,7 @@ var TwitchApi = class {
2934
2934
  *
2935
2935
  * @see https://dev.twitch.tv/docs/api/reference#end-guest-star-session
2936
2936
  */
2937
- endGuestStarSession: async (params, options) => this.callApi({
2937
+ endGuestStarSession: async (params, options = {}) => this.callApi({
2938
2938
  path: "/guest_star/session",
2939
2939
  method: "DELETE",
2940
2940
  params,
@@ -2963,7 +2963,7 @@ var TwitchApi = class {
2963
2963
  *
2964
2964
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-invites
2965
2965
  */
2966
- getGuestStarInvites: async (params, options) => this.callApi({
2966
+ getGuestStarInvites: async (params, options = {}) => this.callApi({
2967
2967
  path: "/guest_star/invites",
2968
2968
  params,
2969
2969
  options
@@ -2999,7 +2999,7 @@ var TwitchApi = class {
2999
2999
  *
3000
3000
  * @see https://dev.twitch.tv/docs/api/reference#send-guest-star-invite
3001
3001
  */
3002
- sendGuestStarInvite: async (params, options) => this.callApi({
3002
+ sendGuestStarInvite: async (params, options = {}) => this.callApi({
3003
3003
  path: "/guest_star/invites",
3004
3004
  method: "POST",
3005
3005
  params,
@@ -3034,7 +3034,7 @@ var TwitchApi = class {
3034
3034
  *
3035
3035
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-invite
3036
3036
  */
3037
- deleteGuestStarInvite: async (params, options) => this.callApi({
3037
+ deleteGuestStarInvite: async (params, options = {}) => this.callApi({
3038
3038
  path: "/guest_star/invites",
3039
3039
  method: "DELETE",
3040
3040
  params,
@@ -3079,7 +3079,7 @@ var TwitchApi = class {
3079
3079
  *
3080
3080
  * @see https://dev.twitch.tv/docs/api/reference#assign-guest-star-slot
3081
3081
  */
3082
- assignGuestStarSlot: async (params, options) => this.callApi({
3082
+ assignGuestStarSlot: async (params, options = {}) => this.callApi({
3083
3083
  path: "/guest_star/slot",
3084
3084
  method: "POST",
3085
3085
  params,
@@ -3111,7 +3111,7 @@ var TwitchApi = class {
3111
3111
  *
3112
3112
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot
3113
3113
  */
3114
- updateGuestStarSlot: async (params, options) => this.callApi({
3114
+ updateGuestStarSlot: async (params, options = {}) => this.callApi({
3115
3115
  path: "/guest_star/slot",
3116
3116
  method: "PATCH",
3117
3117
  params,
@@ -3153,7 +3153,7 @@ var TwitchApi = class {
3153
3153
  *
3154
3154
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-slot
3155
3155
  */
3156
- deleteGuestStarSlot: async (params, options) => this.callApi({
3156
+ deleteGuestStarSlot: async (params, options = {}) => this.callApi({
3157
3157
  path: "/guest_star/slot",
3158
3158
  method: "DELETE",
3159
3159
  params,
@@ -3191,7 +3191,7 @@ var TwitchApi = class {
3191
3191
  *
3192
3192
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot-settings
3193
3193
  */
3194
- updateGuestStarSlotSettings: async (params, options) => this.callApi({
3194
+ updateGuestStarSlotSettings: async (params, options = {}) => this.callApi({
3195
3195
  path: "/guest_star/slot_settings",
3196
3196
  method: "PATCH",
3197
3197
  params,
@@ -3228,7 +3228,7 @@ var TwitchApi = class {
3228
3228
  *
3229
3229
  * @see https://dev.twitch.tv/docs/api/reference#get-hype-train-events
3230
3230
  */
3231
- getHypeTrainEvents: async (params, options) => this.callApi({
3231
+ getHypeTrainEvents: async (params, options = {}) => this.callApi({
3232
3232
  path: "/hypetrain/events",
3233
3233
  params,
3234
3234
  options
@@ -3289,7 +3289,7 @@ var TwitchApi = class {
3289
3289
  *
3290
3290
  * @see https://dev.twitch.tv/docs/api/reference#check-automod-status
3291
3291
  */
3292
- checkAutoModStatus: async (params, body, options) => this.callApi({
3292
+ checkAutoModStatus: async (params, body, options = {}) => this.callApi({
3293
3293
  path: "/moderation/enforcements/status",
3294
3294
  method: "POST",
3295
3295
  params,
@@ -3340,7 +3340,7 @@ var TwitchApi = class {
3340
3340
  *
3341
3341
  * @see https://dev.twitch.tv/docs/api/reference#manage-held-automod-messages
3342
3342
  */
3343
- manageHeldAutoModMessages: async (body, options) => this.callApi({
3343
+ manageHeldAutoModMessages: async (body, options = {}) => this.callApi({
3344
3344
  path: "/moderation/automod/message",
3345
3345
  method: "POST",
3346
3346
  body,
@@ -3382,7 +3382,7 @@ var TwitchApi = class {
3382
3382
  *
3383
3383
  * @see https://dev.twitch.tv/docs/api/reference#get-automod-settings
3384
3384
  */
3385
- getAutoModSettings: async (params, options) => this.callApi({
3385
+ getAutoModSettings: async (params, options = {}) => this.callApi({
3386
3386
  path: "/moderation/automod/settings",
3387
3387
  params,
3388
3388
  options
@@ -3439,7 +3439,7 @@ var TwitchApi = class {
3439
3439
  *
3440
3440
  * @see https://dev.twitch.tv/docs/api/reference#update-automod-settings
3441
3441
  */
3442
- updateAutoModSettings: async (params, body = null, options) => this.callApi({
3442
+ updateAutoModSettings: async (params, body = null, options = {}) => this.callApi({
3443
3443
  path: "/moderation/automod/settings",
3444
3444
  method: "PUT",
3445
3445
  params,
@@ -3477,7 +3477,7 @@ var TwitchApi = class {
3477
3477
  *
3478
3478
  * @see https://dev.twitch.tv/docs/api/reference#get-banned-users
3479
3479
  */
3480
- getBannedUsers: async (params, options) => this.callApi({
3480
+ getBannedUsers: async (params, options = {}) => this.callApi({
3481
3481
  path: "/moderation/banned",
3482
3482
  params,
3483
3483
  options
@@ -3538,7 +3538,7 @@ var TwitchApi = class {
3538
3538
  *
3539
3539
  * @see https://dev.twitch.tv/docs/api/reference#ban-user
3540
3540
  */
3541
- banUser: async (params, body, options) => this.callApi({
3541
+ banUser: async (params, body, options = {}) => this.callApi({
3542
3542
  path: "/moderation/bans",
3543
3543
  method: "POST",
3544
3544
  params,
@@ -3593,7 +3593,7 @@ var TwitchApi = class {
3593
3593
  *
3594
3594
  * @see https://dev.twitch.tv/docs/api/reference#unban-user
3595
3595
  */
3596
- unbanUser: async (params, options) => this.callApi({
3596
+ unbanUser: async (params, options = {}) => this.callApi({
3597
3597
  path: "/moderation/bans",
3598
3598
  method: "DELETE",
3599
3599
  params,
@@ -3635,7 +3635,7 @@ var TwitchApi = class {
3635
3635
  *
3636
3636
  * @see https://dev.twitch.tv/docs/api/reference#get-blocked-terms
3637
3637
  */
3638
- getBlockedTerms: async (params, options) => this.callApi({
3638
+ getBlockedTerms: async (params, options = {}) => this.callApi({
3639
3639
  path: "/moderation/blocked_terms",
3640
3640
  params,
3641
3641
  options
@@ -3678,7 +3678,7 @@ var TwitchApi = class {
3678
3678
  *
3679
3679
  * @see https://dev.twitch.tv/docs/api/reference#add-blocked-term
3680
3680
  */
3681
- addBlockedTerm: async (params, body, options) => this.callApi({
3681
+ addBlockedTerm: async (params, body, options = {}) => this.callApi({
3682
3682
  path: "/moderation/blocked_terms",
3683
3683
  method: "POST",
3684
3684
  params,
@@ -3722,7 +3722,7 @@ var TwitchApi = class {
3722
3722
  *
3723
3723
  * @see https://dev.twitch.tv/docs/api/reference#remove-blocked-term
3724
3724
  */
3725
- removeBlockedTerm: async (params, options) => this.callApi({
3725
+ removeBlockedTerm: async (params, options = {}) => this.callApi({
3726
3726
  path: "/moderation/blocked_terms",
3727
3727
  method: "DELETE",
3728
3728
  params,
@@ -3768,14 +3768,14 @@ var TwitchApi = class {
3768
3768
  *
3769
3769
  * @see https://dev.twitch.tv/docs/api/reference#delete-chat-messages
3770
3770
  */
3771
- deleteChatMessages: async (params, options) => this.callApi({
3771
+ deleteChatMessages: async (params, options = {}) => this.callApi({
3772
3772
  path: "/moderation/chat",
3773
3773
  method: "DELETE",
3774
3774
  params,
3775
3775
  options
3776
3776
  }),
3777
3777
  /**
3778
- * 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.
3779
3779
  *
3780
3780
  * __Authorization:__
3781
3781
  *
@@ -3800,7 +3800,7 @@ var TwitchApi = class {
3800
3800
  *
3801
3801
  * @see https://dev.twitch.tv/docs/api/reference#get-moderated-channels
3802
3802
  */
3803
- getModeratedChannels: async (params, options) => this.callApi({
3803
+ getModeratedChannels: async (params, options = {}) => this.callApi({
3804
3804
  path: "/moderation/channels",
3805
3805
  params,
3806
3806
  options
@@ -3836,7 +3836,7 @@ var TwitchApi = class {
3836
3836
  *
3837
3837
  * @see https://dev.twitch.tv/docs/api/reference#get-moderators
3838
3838
  */
3839
- getModerators: async (params, options) => this.callApi({
3839
+ getModerators: async (params, options = {}) => this.callApi({
3840
3840
  path: "/moderation/moderators",
3841
3841
  params,
3842
3842
  options
@@ -3885,7 +3885,7 @@ var TwitchApi = class {
3885
3885
  *
3886
3886
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-moderator
3887
3887
  */
3888
- addChannelModerator: async (params, options) => this.callApi({
3888
+ addChannelModerator: async (params, options = {}) => this.callApi({
3889
3889
  path: "/moderation/moderators",
3890
3890
  method: "POST",
3891
3891
  params,
@@ -3930,7 +3930,7 @@ var TwitchApi = class {
3930
3930
  *
3931
3931
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-moderator
3932
3932
  */
3933
- removeChannelModerator: async (params, options) => this.callApi({
3933
+ removeChannelModerator: async (params, options = {}) => this.callApi({
3934
3934
  path: "/moderation/moderators",
3935
3935
  method: "DELETE",
3936
3936
  params,
@@ -3969,7 +3969,7 @@ var TwitchApi = class {
3969
3969
  *
3970
3970
  * @see https://dev.twitch.tv/docs/api/reference#get-vips
3971
3971
  */
3972
- getVIPs: async (params, options) => this.callApi({
3972
+ getVIPs: async (params, options = {}) => this.callApi({
3973
3973
  path: "/channels/vips",
3974
3974
  params,
3975
3975
  options
@@ -4035,7 +4035,7 @@ var TwitchApi = class {
4035
4035
  *
4036
4036
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-vip
4037
4037
  */
4038
- addChannelVIP: async (params, options) => this.callApi({
4038
+ addChannelVIP: async (params, options = {}) => this.callApi({
4039
4039
  path: "/channels/vips",
4040
4040
  method: "POST",
4041
4041
  params,
@@ -4094,7 +4094,7 @@ var TwitchApi = class {
4094
4094
  *
4095
4095
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-vip
4096
4096
  */
4097
- removeChannelVIP: async (params, options) => this.callApi({
4097
+ removeChannelVIP: async (params, options = {}) => this.callApi({
4098
4098
  path: "/channels/vips",
4099
4099
  method: "DELETE",
4100
4100
  params,
@@ -4140,7 +4140,7 @@ var TwitchApi = class {
4140
4140
  *
4141
4141
  * @see https://dev.twitch.tv/docs/api/reference#update-shield-mode-status
4142
4142
  */
4143
- updateShieldModeStatus: async (params, body, options) => this.callApi({
4143
+ updateShieldModeStatus: async (params, body, options = {}) => this.callApi({
4144
4144
  path: "/moderation/shield_mode",
4145
4145
  method: "PUT",
4146
4146
  params,
@@ -4185,7 +4185,7 @@ var TwitchApi = class {
4185
4185
  *
4186
4186
  * @see https://dev.twitch.tv/docs/api/reference#get-shield-mode-status
4187
4187
  */
4188
- getShieldModeStatus: async (params, options) => this.callApi({
4188
+ getShieldModeStatus: async (params, options = {}) => this.callApi({
4189
4189
  path: "/moderation/shield_mode",
4190
4190
  params,
4191
4191
  options
@@ -4229,7 +4229,7 @@ var TwitchApi = class {
4229
4229
  *
4230
4230
  * @see https://dev.twitch.tv/docs/api/reference#get-polls
4231
4231
  */
4232
- getPolls: async (params, options) => this.callApi({
4232
+ getPolls: async (params, options = {}) => this.callApi({
4233
4233
  path: "/polls",
4234
4234
  params,
4235
4235
  options
@@ -4278,7 +4278,7 @@ var TwitchApi = class {
4278
4278
  *
4279
4279
  * @see https://dev.twitch.tv/docs/api/reference#create-poll
4280
4280
  */
4281
- createPoll: async (body, options) => this.callApi({
4281
+ createPoll: async (body, options = {}) => this.callApi({
4282
4282
  path: "/polls",
4283
4283
  method: "POST",
4284
4284
  body,
@@ -4319,7 +4319,7 @@ var TwitchApi = class {
4319
4319
  *
4320
4320
  * @see https://dev.twitch.tv/docs/api/reference#end-poll
4321
4321
  */
4322
- endPoll: async (body, options) => this.callApi({
4322
+ endPoll: async (body, options = {}) => this.callApi({
4323
4323
  path: "/polls",
4324
4324
  method: "PATCH",
4325
4325
  body,
@@ -4358,7 +4358,7 @@ var TwitchApi = class {
4358
4358
  *
4359
4359
  * @see https://dev.twitch.tv/docs/api/reference#get-predictions
4360
4360
  */
4361
- getPredictions: async (params, options) => this.callApi({
4361
+ getPredictions: async (params, options = {}) => this.callApi({
4362
4362
  path: "/predictions",
4363
4363
  params,
4364
4364
  options
@@ -4407,7 +4407,7 @@ var TwitchApi = class {
4407
4407
  *
4408
4408
  * @see https://dev.twitch.tv/docs/api/reference#create-prediction
4409
4409
  */
4410
- createPrediction: async (body, options) => this.callApi({
4410
+ createPrediction: async (body, options = {}) => this.callApi({
4411
4411
  path: "/predictions",
4412
4412
  method: "POST",
4413
4413
  body,
@@ -4455,7 +4455,7 @@ var TwitchApi = class {
4455
4455
  *
4456
4456
  * @see https://dev.twitch.tv/docs/api/reference#end-prediction
4457
4457
  */
4458
- endPrediction: async (body, options) => this.callApi({
4458
+ endPrediction: async (body, options = {}) => this.callApi({
4459
4459
  path: "/predictions",
4460
4460
  method: "PATCH",
4461
4461
  body,
@@ -4519,7 +4519,7 @@ var TwitchApi = class {
4519
4519
  *
4520
4520
  * @see https://dev.twitch.tv/docs/api/reference#start-a-raid
4521
4521
  */
4522
- startRaid: async (params = null, options) => this.callApi({
4522
+ startRaid: async (params = null, options = {}) => this.callApi({
4523
4523
  path: "/raids",
4524
4524
  method: "POST",
4525
4525
  params,
@@ -4568,7 +4568,7 @@ var TwitchApi = class {
4568
4568
  *
4569
4569
  * @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
4570
4570
  */
4571
- cancelRaid: async (params, options) => this.callApi({
4571
+ cancelRaid: async (params, options = {}) => this.callApi({
4572
4572
  path: "/raids",
4573
4573
  method: "DELETE",
4574
4574
  params,
@@ -4616,7 +4616,7 @@ var TwitchApi = class {
4616
4616
  *
4617
4617
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-stream-schedule
4618
4618
  */
4619
- getChannelStreamSchedule: async (params, options) => this.callApi({
4619
+ getChannelStreamSchedule: async (params, options = {}) => this.callApi({
4620
4620
  path: "/schedule",
4621
4621
  params,
4622
4622
  options
@@ -4651,7 +4651,7 @@ var TwitchApi = class {
4651
4651
  *
4652
4652
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-icalendar
4653
4653
  */
4654
- getChannelICalendar: async (params, options) => this.callApi({
4654
+ getChannelICalendar: async (params, options = {}) => this.callApi({
4655
4655
  path: "/schedule/icalendar",
4656
4656
  params,
4657
4657
  options
@@ -4695,7 +4695,7 @@ var TwitchApi = class {
4695
4695
  *
4696
4696
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule
4697
4697
  */
4698
- updateChannelStreamSchedule: async (params, options) => this.callApi({
4698
+ updateChannelStreamSchedule: async (params, options = {}) => this.callApi({
4699
4699
  path: "/schedule/settings",
4700
4700
  method: "PATCH",
4701
4701
  params,
@@ -4742,7 +4742,7 @@ var TwitchApi = class {
4742
4742
  *
4743
4743
  * @see https://dev.twitch.tv/docs/api/reference#create-channel-stream-schedule-segment
4744
4744
  */
4745
- createChannelStreamScheduleSegment: async (params, body, options) => this.callApi({
4745
+ createChannelStreamScheduleSegment: async (params, body, options = {}) => this.callApi({
4746
4746
  path: "/schedule/segment",
4747
4747
  method: "POST",
4748
4748
  params,
@@ -4794,7 +4794,7 @@ var TwitchApi = class {
4794
4794
  *
4795
4795
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule-segment
4796
4796
  */
4797
- updateChannelStreamScheduleSegment: async (params, body = null, options) => this.callApi({
4797
+ updateChannelStreamScheduleSegment: async (params, body = null, options = {}) => this.callApi({
4798
4798
  path: "/schedule/segment",
4799
4799
  method: "PATCH",
4800
4800
  params,
@@ -4837,7 +4837,7 @@ var TwitchApi = class {
4837
4837
  *
4838
4838
  * @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
4839
4839
  */
4840
- deleteChannelStreamScheduleSegment: async (params, options) => this.callApi({
4840
+ deleteChannelStreamScheduleSegment: async (params, options = {}) => this.callApi({
4841
4841
  path: "/schedule/segment",
4842
4842
  method: "DELETE",
4843
4843
  params,
@@ -4876,7 +4876,7 @@ var TwitchApi = class {
4876
4876
  *
4877
4877
  * @see https://dev.twitch.tv/docs/api/reference#search-categories
4878
4878
  */
4879
- searchCategories: async (params, options) => this.callApi({
4879
+ searchCategories: async (params, options = {}) => this.callApi({
4880
4880
  path: "/search/categories",
4881
4881
  params,
4882
4882
  options
@@ -4916,7 +4916,7 @@ var TwitchApi = class {
4916
4916
  *
4917
4917
  * @see https://dev.twitch.tv/docs/api/reference#search-channels
4918
4918
  */
4919
- searchChannels: async (params, options) => this.callApi({
4919
+ searchChannels: async (params, options = {}) => this.callApi({
4920
4920
  path: "/search/channels",
4921
4921
  params,
4922
4922
  options
@@ -4955,7 +4955,7 @@ var TwitchApi = class {
4955
4955
  *
4956
4956
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-key
4957
4957
  */
4958
- getStreamKey: async (params, options) => this.callApi({
4958
+ getStreamKey: async (params, options = {}) => this.callApi({
4959
4959
  path: "/streams/key",
4960
4960
  params,
4961
4961
  options
@@ -4989,7 +4989,7 @@ var TwitchApi = class {
4989
4989
  *
4990
4990
  * @see https://dev.twitch.tv/docs/api/reference#get-streams
4991
4991
  */
4992
- getStreams: async (params = null, options) => this.callApi({
4992
+ getStreams: async (params = null, options = {}) => this.callApi({
4993
4993
  path: "/streams",
4994
4994
  params,
4995
4995
  options
@@ -5025,7 +5025,7 @@ var TwitchApi = class {
5025
5025
  *
5026
5026
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-streams
5027
5027
  */
5028
- getFollowedStreams: async (params, options) => this.callApi({
5028
+ getFollowedStreams: async (params, options = {}) => this.callApi({
5029
5029
  path: "/streams/followed",
5030
5030
  params,
5031
5031
  options
@@ -5078,7 +5078,7 @@ var TwitchApi = class {
5078
5078
  *
5079
5079
  * @see https://dev.twitch.tv/docs/api/reference#create-stream-marker
5080
5080
  */
5081
- createStreamMarker: async (body, options) => this.callApi({
5081
+ createStreamMarker: async (body, options = {}) => this.callApi({
5082
5082
  path: "/streams/markers",
5083
5083
  method: "POST",
5084
5084
  body,
@@ -5122,7 +5122,7 @@ var TwitchApi = class {
5122
5122
  *
5123
5123
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-markers
5124
5124
  */
5125
- getStreamMarkers: async (params = null, options) => this.callApi({
5125
+ getStreamMarkers: async (params = null, options = {}) => this.callApi({
5126
5126
  path: "/streams/markers",
5127
5127
  params,
5128
5128
  options
@@ -5162,7 +5162,7 @@ var TwitchApi = class {
5162
5162
  *
5163
5163
  * @see https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions
5164
5164
  */
5165
- getBroadcasterSubscriptions: async (params, options) => this.callApi({
5165
+ getBroadcasterSubscriptions: async (params, options = {}) => this.callApi({
5166
5166
  path: "/subscriptions",
5167
5167
  params,
5168
5168
  options
@@ -5205,7 +5205,7 @@ var TwitchApi = class {
5205
5205
  *
5206
5206
  * @see https://dev.twitch.tv/docs/api/reference#check-user-subscription
5207
5207
  */
5208
- checkUserSubscription: async (params, options) => this.callApi({
5208
+ checkUserSubscription: async (params, options = {}) => this.callApi({
5209
5209
  path: "/subscriptions/user",
5210
5210
  params,
5211
5211
  options
@@ -5244,7 +5244,7 @@ var TwitchApi = class {
5244
5244
  *
5245
5245
  * @see https://dev.twitch.tv/docs/api/reference#get-all-stream-tags
5246
5246
  */
5247
- getAllStreamTags: async (params = null, options) => this.callApi({
5247
+ getAllStreamTags: async (params = null, options = {}) => this.callApi({
5248
5248
  path: "/tags/streams",
5249
5249
  params,
5250
5250
  options
@@ -5281,7 +5281,7 @@ var TwitchApi = class {
5281
5281
  *
5282
5282
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-tags
5283
5283
  */
5284
- getStreamTags: async (params, options) => this.callApi({
5284
+ getStreamTags: async (params, options = {}) => this.callApi({
5285
5285
  path: "/streams/tags",
5286
5286
  params,
5287
5287
  options
@@ -5321,7 +5321,7 @@ var TwitchApi = class {
5321
5321
  *
5322
5322
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-teams
5323
5323
  */
5324
- getChannelTeams: async (params, options) => this.callApi({
5324
+ getChannelTeams: async (params, options = {}) => this.callApi({
5325
5325
  path: "/teams/channel",
5326
5326
  params,
5327
5327
  options
@@ -5341,7 +5341,7 @@ var TwitchApi = class {
5341
5341
  *
5342
5342
  * _200 OK_
5343
5343
  *
5344
- * Successfully retrieved the team’s information.
5344
+ * Successfully retrieved the team's information.
5345
5345
  *
5346
5346
  * _400 Bad Request_
5347
5347
  *
@@ -5361,7 +5361,7 @@ var TwitchApi = class {
5361
5361
  *
5362
5362
  * @see https://dev.twitch.tv/docs/api/reference#get-teams
5363
5363
  */
5364
- getTeams: async (params = null, options) => this.callApi({
5364
+ getTeams: async (params = null, options = {}) => this.callApi({
5365
5365
  path: "/teams",
5366
5366
  params,
5367
5367
  options
@@ -5389,7 +5389,7 @@ var TwitchApi = class {
5389
5389
  *
5390
5390
  * _200 OK_
5391
5391
  *
5392
- * Successfully retrieved the specified users’ information.
5392
+ * Successfully retrieved the specified users' information.
5393
5393
  *
5394
5394
  * _400 Bad Request_
5395
5395
  *
@@ -5404,7 +5404,7 @@ var TwitchApi = class {
5404
5404
  *
5405
5405
  * @see https://dev.twitch.tv/docs/api/reference#get-users
5406
5406
  */
5407
- getUsers: async (params = null, options) => this.callApi({
5407
+ getUsers: async (params = null, options = {}) => this.callApi({
5408
5408
  path: "/users",
5409
5409
  params,
5410
5410
  options
@@ -5426,7 +5426,7 @@ var TwitchApi = class {
5426
5426
  *
5427
5427
  * _200 OK_
5428
5428
  *
5429
- * Successfully updated the specified user’s information.
5429
+ * Successfully updated the specified user's information.
5430
5430
  *
5431
5431
  * _400 Bad Request_
5432
5432
  *
@@ -5441,7 +5441,7 @@ var TwitchApi = class {
5441
5441
  *
5442
5442
  * @see https://dev.twitch.tv/docs/api/reference#update-user
5443
5443
  */
5444
- updateUser: async (params = null, options) => this.callApi({
5444
+ updateUser: async (params = null, options = {}) => this.callApi({
5445
5445
  path: "/users",
5446
5446
  method: "PUT",
5447
5447
  params,
@@ -5462,7 +5462,7 @@ var TwitchApi = class {
5462
5462
  *
5463
5463
  * _200 OK_
5464
5464
  *
5465
- * Successfully retrieved the broadcaster’s list of blocked users.
5465
+ * Successfully retrieved the broadcaster's list of blocked users.
5466
5466
  *
5467
5467
  * _400 Bad Request_
5468
5468
  *
@@ -5478,7 +5478,7 @@ var TwitchApi = class {
5478
5478
  *
5479
5479
  * @see https://dev.twitch.tv/docs/api/reference#get-user-block-list
5480
5480
  */
5481
- getUserBlockList: async (params, options) => this.callApi({
5481
+ getUserBlockList: async (params, options = {}) => this.callApi({
5482
5482
  path: "/users/blocks",
5483
5483
  params,
5484
5484
  options
@@ -5518,7 +5518,7 @@ var TwitchApi = class {
5518
5518
  *
5519
5519
  * @see https://dev.twitch.tv/docs/api/reference#block-user
5520
5520
  */
5521
- blockUser: async (params, options) => this.callApi({
5521
+ blockUser: async (params, options = {}) => this.callApi({
5522
5522
  path: "/users/blocks",
5523
5523
  method: "PUT",
5524
5524
  params,
@@ -5554,7 +5554,7 @@ var TwitchApi = class {
5554
5554
  *
5555
5555
  * @see https://dev.twitch.tv/docs/api/reference#unblock-user
5556
5556
  */
5557
- unblockUser: async (params, options) => this.callApi({
5557
+ unblockUser: async (params, options = {}) => this.callApi({
5558
5558
  path: "/users/blocks",
5559
5559
  method: "DELETE",
5560
5560
  params,
@@ -5575,7 +5575,7 @@ var TwitchApi = class {
5575
5575
  *
5576
5576
  * _200 OK_
5577
5577
  *
5578
- * Successfully retrieved the user’s installed extensions.
5578
+ * Successfully retrieved the user's installed extensions.
5579
5579
  *
5580
5580
  * _401 Unauthorized_
5581
5581
  *
@@ -5586,7 +5586,7 @@ var TwitchApi = class {
5586
5586
  *
5587
5587
  * @see https://dev.twitch.tv/docs/api/reference#get-user-extensions
5588
5588
  */
5589
- getUserExtensions: async (options) => this.callApi({
5589
+ getUserExtensions: async (options = {}) => this.callApi({
5590
5590
  path: "/users/extensions/list",
5591
5591
  options
5592
5592
  }),
@@ -5607,7 +5607,7 @@ var TwitchApi = class {
5607
5607
  *
5608
5608
  * _200 OK_
5609
5609
  *
5610
- * Successfully retrieved the user’s active extensions.
5610
+ * Successfully retrieved the user's active extensions.
5611
5611
  *
5612
5612
  * _400 Bad Request_
5613
5613
  *
@@ -5621,7 +5621,7 @@ var TwitchApi = class {
5621
5621
  *
5622
5622
  * @see https://dev.twitch.tv/docs/api/reference#get-user-active-extensions
5623
5623
  */
5624
- getUserActiveExtensions: async (params = null, options) => this.callApi({
5624
+ getUserActiveExtensions: async (params = null, options = {}) => this.callApi({
5625
5625
  path: "/users/extensions",
5626
5626
  params,
5627
5627
  options
@@ -5662,7 +5662,7 @@ var TwitchApi = class {
5662
5662
  *
5663
5663
  * @see https://dev.twitch.tv/docs/api/reference#update-user-extensions
5664
5664
  */
5665
- updateUserExtensions: async (body, options) => this.callApi({
5665
+ updateUserExtensions: async (body, options = {}) => this.callApi({
5666
5666
  path: "/users/extensions",
5667
5667
  method: "PUT",
5668
5668
  body,
@@ -5712,7 +5712,7 @@ var TwitchApi = class {
5712
5712
  *
5713
5713
  * @see https://dev.twitch.tv/docs/api/reference#get-videos
5714
5714
  */
5715
- getVideos: async (params = null, options) => this.callApi({
5715
+ getVideos: async (params = null, options = {}) => this.callApi({
5716
5716
  path: "/videos",
5717
5717
  params,
5718
5718
  options
@@ -5749,7 +5749,7 @@ var TwitchApi = class {
5749
5749
  *
5750
5750
  * @see https://dev.twitch.tv/docs/api/reference#delete-videos
5751
5751
  */
5752
- deleteVideos: async (params, options) => this.callApi({
5752
+ deleteVideos: async (params, options = {}) => this.callApi({
5753
5753
  path: "/videos",
5754
5754
  method: "DELETE",
5755
5755
  params,
@@ -5813,7 +5813,7 @@ var TwitchApi = class {
5813
5813
  *
5814
5814
  * @see https://dev.twitch.tv/docs/api/reference#send-whisper
5815
5815
  */
5816
- sendWhisper: async (params, body, options) => this.callApi({
5816
+ sendWhisper: async (params, body, options = {}) => this.callApi({
5817
5817
  path: "/whispers",
5818
5818
  method: "POST",
5819
5819
  params,