@twurple/api
Advanced tools
Comparing version 7.1.0-pre.7 to 7.1.0-pre.8
@@ -107,5 +107,5 @@ "use strict"; | ||
}; | ||
ApiClient = tslib_1.__decorate([ | ||
exports.ApiClient = ApiClient; | ||
exports.ApiClient = ApiClient = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'ApiClient') | ||
], ApiClient); | ||
exports.ApiClient = ApiClient; |
@@ -376,2 +376,3 @@ "use strict"; | ||
}; | ||
exports.BaseApiClient = BaseApiClient; | ||
tslib_1.__decorate([ | ||
@@ -452,6 +453,5 @@ (0, cache_decorators_1.CachedGetter)() | ||
], BaseApiClient.prototype, "whispers", null); | ||
BaseApiClient = tslib_1.__decorate([ | ||
exports.BaseApiClient = BaseApiClient = tslib_1.__decorate([ | ||
cache_decorators_1.Cacheable, | ||
(0, common_1.rtfm)('api', 'ApiClient') | ||
], BaseApiClient); | ||
exports.BaseApiClient = BaseApiClient; |
@@ -14,5 +14,5 @@ "use strict"; | ||
}; | ||
NoContextApiClient = tslib_1.__decorate([ | ||
exports.NoContextApiClient = NoContextApiClient; | ||
exports.NoContextApiClient = NoContextApiClient = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'ApiClient') | ||
], NoContextApiClient); | ||
exports.NoContextApiClient = NoContextApiClient; |
@@ -19,5 +19,5 @@ "use strict"; | ||
}; | ||
UserContextApiClient = tslib_1.__decorate([ | ||
exports.UserContextApiClient = UserContextApiClient; | ||
exports.UserContextApiClient = UserContextApiClient = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'ApiClient') | ||
], UserContextApiClient); | ||
exports.UserContextApiClient = UserContextApiClient; |
@@ -18,5 +18,5 @@ "use strict"; | ||
} | ||
exports.BaseApi = BaseApi; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], BaseApi.prototype, "_client", void 0); | ||
exports.BaseApi = BaseApi; |
@@ -61,5 +61,5 @@ "use strict"; | ||
}; | ||
HelixBitsApi = tslib_1.__decorate([ | ||
exports.HelixBitsApi = HelixBitsApi; | ||
exports.HelixBitsApi = HelixBitsApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixBitsApi') | ||
], HelixBitsApi); | ||
exports.HelixBitsApi = HelixBitsApi; |
@@ -31,2 +31,3 @@ "use strict"; | ||
}; | ||
exports.HelixBitsLeaderboard = HelixBitsLeaderboard; | ||
tslib_1.__decorate([ | ||
@@ -38,6 +39,5 @@ (0, shared_utils_1.Enumerable)(false) | ||
], HelixBitsLeaderboard.prototype, "entries", null); | ||
HelixBitsLeaderboard = tslib_1.__decorate([ | ||
exports.HelixBitsLeaderboard = HelixBitsLeaderboard = tslib_1.__decorate([ | ||
cache_decorators_1.Cacheable, | ||
(0, common_1.rtfm)('api', 'HelixBitsLeaderboard') | ||
], HelixBitsLeaderboard); | ||
exports.HelixBitsLeaderboard = HelixBitsLeaderboard; |
@@ -53,8 +53,8 @@ "use strict"; | ||
}; | ||
exports.HelixBitsLeaderboardEntry = HelixBitsLeaderboardEntry; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixBitsLeaderboardEntry.prototype, "_client", void 0); | ||
HelixBitsLeaderboardEntry = tslib_1.__decorate([ | ||
exports.HelixBitsLeaderboardEntry = HelixBitsLeaderboardEntry = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixBitsLeaderboardEntry', 'userId') | ||
], HelixBitsLeaderboardEntry); | ||
exports.HelixBitsLeaderboardEntry = HelixBitsLeaderboardEntry; |
@@ -44,5 +44,5 @@ "use strict"; | ||
}; | ||
HelixCheermoteList = tslib_1.__decorate([ | ||
exports.HelixCheermoteList = HelixCheermoteList; | ||
exports.HelixCheermoteList = HelixCheermoteList = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixCheermoteList') | ||
], HelixCheermoteList); | ||
exports.HelixCheermoteList = HelixCheermoteList; |
@@ -49,5 +49,5 @@ "use strict"; | ||
}; | ||
HelixAdSchedule = tslib_1.__decorate([ | ||
exports.HelixAdSchedule = HelixAdSchedule; | ||
exports.HelixAdSchedule = HelixAdSchedule = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixAdSchedule') | ||
], HelixAdSchedule); | ||
exports.HelixAdSchedule = HelixAdSchedule; |
@@ -99,8 +99,8 @@ "use strict"; | ||
}; | ||
exports.HelixChannel = HelixChannel; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChannel.prototype, "_client", void 0); | ||
HelixChannel = tslib_1.__decorate([ | ||
exports.HelixChannel = HelixChannel = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannel', 'id') | ||
], HelixChannel); | ||
exports.HelixChannel = HelixChannel; |
@@ -371,8 +371,8 @@ "use strict"; | ||
}; | ||
exports.HelixChannelApi = HelixChannelApi; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChannelApi.prototype, "_getChannelByIdBatcher", void 0); | ||
HelixChannelApi = tslib_1.__decorate([ | ||
exports.HelixChannelApi = HelixChannelApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannelApi') | ||
], HelixChannelApi); | ||
exports.HelixChannelApi = HelixChannelApi; |
@@ -41,8 +41,8 @@ "use strict"; | ||
}; | ||
exports.HelixChannelEditor = HelixChannelEditor; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChannelEditor.prototype, "_client", void 0); | ||
HelixChannelEditor = tslib_1.__decorate([ | ||
exports.HelixChannelEditor = HelixChannelEditor = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannelEditor', 'userId') | ||
], HelixChannelEditor); | ||
exports.HelixChannelEditor = HelixChannelEditor; |
@@ -47,8 +47,8 @@ "use strict"; | ||
}; | ||
exports.HelixChannelFollower = HelixChannelFollower; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChannelFollower.prototype, "_client", void 0); | ||
HelixChannelFollower = tslib_1.__decorate([ | ||
exports.HelixChannelFollower = HelixChannelFollower = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannelFollower', 'userId') | ||
], HelixChannelFollower); | ||
exports.HelixChannelFollower = HelixChannelFollower; |
@@ -67,8 +67,8 @@ "use strict"; | ||
}; | ||
exports.HelixChannelReference = HelixChannelReference; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChannelReference.prototype, "_client", void 0); | ||
HelixChannelReference = tslib_1.__decorate([ | ||
exports.HelixChannelReference = HelixChannelReference = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannelReference', 'id') | ||
], HelixChannelReference); | ||
exports.HelixChannelReference = HelixChannelReference; |
@@ -47,8 +47,8 @@ "use strict"; | ||
}; | ||
exports.HelixFollowedChannel = HelixFollowedChannel; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixFollowedChannel.prototype, "_client", void 0); | ||
HelixFollowedChannel = tslib_1.__decorate([ | ||
exports.HelixFollowedChannel = HelixFollowedChannel = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixFollowedChannel', 'broadcasterId') | ||
], HelixFollowedChannel); | ||
exports.HelixFollowedChannel = HelixFollowedChannel; |
@@ -29,5 +29,5 @@ "use strict"; | ||
}; | ||
HelixSnoozeNextAdResult = tslib_1.__decorate([ | ||
exports.HelixSnoozeNextAdResult = HelixSnoozeNextAdResult; | ||
exports.HelixSnoozeNextAdResult = HelixSnoozeNextAdResult = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixSnoozeNextAdResult') | ||
], HelixSnoozeNextAdResult); | ||
exports.HelixSnoozeNextAdResult = HelixSnoozeNextAdResult; |
@@ -228,5 +228,5 @@ "use strict"; | ||
}; | ||
HelixChannelPointsApi = tslib_1.__decorate([ | ||
exports.HelixChannelPointsApi = HelixChannelPointsApi; | ||
exports.HelixChannelPointsApi = HelixChannelPointsApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannelPointsApi') | ||
], HelixChannelPointsApi); | ||
exports.HelixChannelPointsApi = HelixChannelPointsApi; |
@@ -149,8 +149,8 @@ "use strict"; | ||
}; | ||
exports.HelixCustomReward = HelixCustomReward; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixCustomReward.prototype, "_client", void 0); | ||
HelixCustomReward = tslib_1.__decorate([ | ||
exports.HelixCustomReward = HelixCustomReward = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixCustomReward', 'id') | ||
], HelixCustomReward); | ||
exports.HelixCustomReward = HelixCustomReward; |
@@ -134,8 +134,8 @@ "use strict"; | ||
}; | ||
exports.HelixCustomRewardRedemption = HelixCustomRewardRedemption; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixCustomRewardRedemption.prototype, "_client", void 0); | ||
HelixCustomRewardRedemption = tslib_1.__decorate([ | ||
exports.HelixCustomRewardRedemption = HelixCustomRewardRedemption = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixCustomRewardRedemption', 'id') | ||
], HelixCustomRewardRedemption); | ||
exports.HelixCustomRewardRedemption = HelixCustomRewardRedemption; |
@@ -66,5 +66,5 @@ "use strict"; | ||
}; | ||
HelixCharityApi = tslib_1.__decorate([ | ||
exports.HelixCharityApi = HelixCharityApi; | ||
exports.HelixCharityApi = HelixCharityApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixCharityApi') | ||
], HelixCharityApi); | ||
exports.HelixCharityApi = HelixCharityApi; |
@@ -84,8 +84,8 @@ "use strict"; | ||
}; | ||
exports.HelixCharityCampaign = HelixCharityCampaign; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixCharityCampaign.prototype, "_client", void 0); | ||
HelixCharityCampaign = tslib_1.__decorate([ | ||
exports.HelixCharityCampaign = HelixCharityCampaign = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixCharityCampaign', 'id') | ||
], HelixCharityCampaign); | ||
exports.HelixCharityCampaign = HelixCharityCampaign; |
@@ -40,5 +40,5 @@ "use strict"; | ||
}; | ||
HelixCharityCampaignAmount = tslib_1.__decorate([ | ||
exports.HelixCharityCampaignAmount = HelixCharityCampaignAmount; | ||
exports.HelixCharityCampaignAmount = HelixCharityCampaignAmount = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixCharityCampaignAmount') | ||
], HelixCharityCampaignAmount); | ||
exports.HelixCharityCampaignAmount = HelixCharityCampaignAmount; |
@@ -54,8 +54,8 @@ "use strict"; | ||
}; | ||
exports.HelixCharityCampaignDonation = HelixCharityCampaignDonation; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixCharityCampaignDonation.prototype, "_client", void 0); | ||
HelixCharityCampaignDonation = tslib_1.__decorate([ | ||
exports.HelixCharityCampaignDonation = HelixCharityCampaignDonation = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixCharityCampaignDonation') | ||
], HelixCharityCampaignDonation); | ||
exports.HelixCharityCampaignDonation = HelixCharityCampaignDonation; |
@@ -45,8 +45,8 @@ "use strict"; | ||
}; | ||
exports.HelixChannelEmote = HelixChannelEmote; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChannelEmote.prototype, "_client", void 0); | ||
HelixChannelEmote = tslib_1.__decorate([ | ||
exports.HelixChannelEmote = HelixChannelEmote = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannelEmote', 'id') | ||
], HelixChannelEmote); | ||
exports.HelixChannelEmote = HelixChannelEmote; |
@@ -369,5 +369,5 @@ "use strict"; | ||
}; | ||
HelixChatApi = tslib_1.__decorate([ | ||
exports.HelixChatApi = HelixChatApi; | ||
exports.HelixChatApi = HelixChatApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChatApi') | ||
], HelixChatApi); | ||
exports.HelixChatApi = HelixChatApi; |
@@ -34,9 +34,9 @@ "use strict"; | ||
}; | ||
exports.HelixChatBadgeSet = HelixChatBadgeSet; | ||
tslib_1.__decorate([ | ||
(0, cache_decorators_1.CachedGetter)() | ||
], HelixChatBadgeSet.prototype, "versions", null); | ||
HelixChatBadgeSet = tslib_1.__decorate([ | ||
exports.HelixChatBadgeSet = HelixChatBadgeSet = tslib_1.__decorate([ | ||
cache_decorators_1.Cacheable, | ||
(0, common_1.rtfm)('api', 'HelixChatBadgeSet', 'id') | ||
], HelixChatBadgeSet); | ||
exports.HelixChatBadgeSet = HelixChatBadgeSet; |
@@ -49,5 +49,5 @@ "use strict"; | ||
}; | ||
HelixChatBadgeVersion = tslib_1.__decorate([ | ||
exports.HelixChatBadgeVersion = HelixChatBadgeVersion; | ||
exports.HelixChatBadgeVersion = HelixChatBadgeVersion = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChatBadgeVersion', 'id') | ||
], HelixChatBadgeVersion); | ||
exports.HelixChatBadgeVersion = HelixChatBadgeVersion; |
@@ -41,8 +41,8 @@ "use strict"; | ||
}; | ||
exports.HelixChatChatter = HelixChatChatter; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChatChatter.prototype, "_client", void 0); | ||
HelixChatChatter = tslib_1.__decorate([ | ||
exports.HelixChatChatter = HelixChatChatter = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChatChatter') | ||
], HelixChatChatter); | ||
exports.HelixChatChatter = HelixChatChatter; |
@@ -64,5 +64,5 @@ "use strict"; | ||
}; | ||
HelixChatSettings = tslib_1.__decorate([ | ||
exports.HelixChatSettings = HelixChatSettings; | ||
exports.HelixChatSettings = HelixChatSettings = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChatSettings', 'broadcasterId') | ||
], HelixChatSettings); | ||
exports.HelixChatSettings = HelixChatSettings; |
@@ -83,5 +83,5 @@ "use strict"; | ||
}; | ||
HelixEmote = tslib_1.__decorate([ | ||
exports.HelixEmote = HelixEmote; | ||
exports.HelixEmote = HelixEmote = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixEmote', 'id') | ||
], HelixEmote); | ||
exports.HelixEmote = HelixEmote; |
@@ -63,8 +63,8 @@ "use strict"; | ||
}; | ||
exports.HelixEmoteFromSet = HelixEmoteFromSet; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixEmoteFromSet.prototype, "_client", void 0); | ||
HelixEmoteFromSet = tslib_1.__decorate([ | ||
exports.HelixEmoteFromSet = HelixEmoteFromSet = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixEmoteFromSet', 'id') | ||
], HelixEmoteFromSet); | ||
exports.HelixEmoteFromSet = HelixEmoteFromSet; |
@@ -26,5 +26,5 @@ "use strict"; | ||
}; | ||
HelixPrivilegedChatSettings = tslib_1.__decorate([ | ||
exports.HelixPrivilegedChatSettings = HelixPrivilegedChatSettings; | ||
exports.HelixPrivilegedChatSettings = HelixPrivilegedChatSettings = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPrivilegedChatSettings', 'broadcasterId') | ||
], HelixPrivilegedChatSettings); | ||
exports.HelixPrivilegedChatSettings = HelixPrivilegedChatSettings; |
@@ -37,5 +37,5 @@ "use strict"; | ||
}; | ||
HelixSentChatMessage = tslib_1.__decorate([ | ||
exports.HelixSentChatMessage = HelixSentChatMessage; | ||
exports.HelixSentChatMessage = HelixSentChatMessage = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixSentChatMessage', 'id') | ||
], HelixSentChatMessage); | ||
exports.HelixSentChatMessage = HelixSentChatMessage; |
@@ -148,8 +148,8 @@ "use strict"; | ||
}; | ||
exports.HelixClip = HelixClip; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixClip.prototype, "_client", void 0); | ||
HelixClip = tslib_1.__decorate([ | ||
exports.HelixClip = HelixClip = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixClip', 'id') | ||
], HelixClip); | ||
exports.HelixClip = HelixClip; |
@@ -171,8 +171,8 @@ "use strict"; | ||
}; | ||
exports.HelixClipApi = HelixClipApi; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixClipApi.prototype, "_getClipByIdBatcher", void 0); | ||
HelixClipApi = tslib_1.__decorate([ | ||
exports.HelixClipApi = HelixClipApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixClipApi') | ||
], HelixClipApi); | ||
exports.HelixClipApi = HelixClipApi; |
@@ -38,5 +38,5 @@ "use strict"; | ||
}; | ||
HelixContentClassificationLabelApi = tslib_1.__decorate([ | ||
exports.HelixContentClassificationLabelApi = HelixContentClassificationLabelApi; | ||
exports.HelixContentClassificationLabelApi = HelixContentClassificationLabelApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixContentClassificationLabelApi') | ||
], HelixContentClassificationLabelApi); | ||
exports.HelixContentClassificationLabelApi = HelixContentClassificationLabelApi; |
@@ -71,8 +71,8 @@ "use strict"; | ||
}; | ||
exports.HelixDropsEntitlement = HelixDropsEntitlement; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixDropsEntitlement.prototype, "_client", void 0); | ||
HelixDropsEntitlement = tslib_1.__decorate([ | ||
exports.HelixDropsEntitlement = HelixDropsEntitlement = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixDropsEntitlement') | ||
], HelixDropsEntitlement); | ||
exports.HelixDropsEntitlement = HelixDropsEntitlement; |
@@ -123,8 +123,8 @@ "use strict"; | ||
}; | ||
exports.HelixEntitlementApi = HelixEntitlementApi; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixEntitlementApi.prototype, "_getDropsEntitlementByIdBatcher", void 0); | ||
HelixEntitlementApi = tslib_1.__decorate([ | ||
exports.HelixEntitlementApi = HelixEntitlementApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixEntitlementApi') | ||
], HelixEntitlementApi); | ||
exports.HelixEntitlementApi = HelixEntitlementApi; |
@@ -758,5 +758,5 @@ "use strict"; | ||
}; | ||
HelixEventSubApi = tslib_1.__decorate([ | ||
exports.HelixEventSubApi = HelixEventSubApi; | ||
exports.HelixEventSubApi = HelixEventSubApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixEventSubApi') | ||
], HelixEventSubApi); | ||
exports.HelixEventSubApi = HelixEventSubApi; |
@@ -67,8 +67,8 @@ "use strict"; | ||
}; | ||
exports.HelixEventSubSubscription = HelixEventSubSubscription; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixEventSubSubscription.prototype, "_client", void 0); | ||
HelixEventSubSubscription = tslib_1.__decorate([ | ||
exports.HelixEventSubSubscription = HelixEventSubSubscription = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixEventSubSubscription', 'id') | ||
], HelixEventSubSubscription); | ||
exports.HelixEventSubSubscription = HelixEventSubSubscription; |
@@ -40,5 +40,5 @@ "use strict"; | ||
}; | ||
HelixPaginatedEventSubSubscriptionsRequest = tslib_1.__decorate([ | ||
exports.HelixPaginatedEventSubSubscriptionsRequest = HelixPaginatedEventSubSubscriptionsRequest; | ||
exports.HelixPaginatedEventSubSubscriptionsRequest = HelixPaginatedEventSubSubscriptionsRequest = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPaginatedEventSubSubscriptionsRequest') | ||
], HelixPaginatedEventSubSubscriptionsRequest); | ||
exports.HelixPaginatedEventSubSubscriptionsRequest = HelixPaginatedEventSubSubscriptionsRequest; |
@@ -48,5 +48,5 @@ "use strict"; | ||
}; | ||
HelixExtensionBitsProduct = tslib_1.__decorate([ | ||
exports.HelixExtensionBitsProduct = HelixExtensionBitsProduct; | ||
exports.HelixExtensionBitsProduct = HelixExtensionBitsProduct = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixExtensionBitsProduct', 'sku') | ||
], HelixExtensionBitsProduct); | ||
exports.HelixExtensionBitsProduct = HelixExtensionBitsProduct; |
@@ -143,5 +143,5 @@ "use strict"; | ||
}; | ||
HelixExtensionsApi = tslib_1.__decorate([ | ||
exports.HelixExtensionsApi = HelixExtensionsApi; | ||
exports.HelixExtensionsApi = HelixExtensionsApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixExtensionsApi') | ||
], HelixExtensionsApi); | ||
exports.HelixExtensionsApi = HelixExtensionsApi; |
@@ -107,8 +107,8 @@ "use strict"; | ||
}; | ||
exports.HelixExtensionTransaction = HelixExtensionTransaction; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixExtensionTransaction.prototype, "_client", void 0); | ||
HelixExtensionTransaction = tslib_1.__decorate([ | ||
exports.HelixExtensionTransaction = HelixExtensionTransaction = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixExtensionTransaction', 'id') | ||
], HelixExtensionTransaction); | ||
exports.HelixExtensionTransaction = HelixExtensionTransaction; |
@@ -67,8 +67,8 @@ "use strict"; | ||
}; | ||
exports.HelixGame = HelixGame; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixGame.prototype, "_client", void 0); | ||
HelixGame = tslib_1.__decorate([ | ||
exports.HelixGame = HelixGame = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixGame', 'id') | ||
], HelixGame); | ||
exports.HelixGame = HelixGame; |
@@ -159,2 +159,3 @@ "use strict"; | ||
}; | ||
exports.HelixGameApi = HelixGameApi; | ||
tslib_1.__decorate([ | ||
@@ -169,5 +170,4 @@ (0, shared_utils_1.Enumerable)(false) | ||
], HelixGameApi.prototype, "_getGameByIgdbIdBatcher", void 0); | ||
HelixGameApi = tslib_1.__decorate([ | ||
exports.HelixGameApi = HelixGameApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixGameApi') | ||
], HelixGameApi); | ||
exports.HelixGameApi = HelixGameApi; |
@@ -77,8 +77,8 @@ "use strict"; | ||
}; | ||
exports.HelixGoal = HelixGoal; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixGoal.prototype, "_client", void 0); | ||
HelixGoal = tslib_1.__decorate([ | ||
exports.HelixGoal = HelixGoal = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixGoal', 'id') | ||
], HelixGoal); | ||
exports.HelixGoal = HelixGoal; |
@@ -34,5 +34,5 @@ "use strict"; | ||
}; | ||
HelixGoalApi = tslib_1.__decorate([ | ||
exports.HelixGoalApi = HelixGoalApi; | ||
exports.HelixGoalApi = HelixGoalApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixGoalApi') | ||
], HelixGoalApi); | ||
exports.HelixGoalApi = HelixGoalApi; |
@@ -41,8 +41,8 @@ "use strict"; | ||
}; | ||
exports.HelixHypeTrainContribution = HelixHypeTrainContribution; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixHypeTrainContribution.prototype, "_client", void 0); | ||
HelixHypeTrainContribution = tslib_1.__decorate([ | ||
exports.HelixHypeTrainContribution = HelixHypeTrainContribution = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixHypeTrainContribution', 'userId') | ||
], HelixHypeTrainContribution); | ||
exports.HelixHypeTrainContribution = HelixHypeTrainContribution; |
@@ -108,8 +108,8 @@ "use strict"; | ||
}; | ||
exports.HelixHypeTrainEvent = HelixHypeTrainEvent; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixHypeTrainEvent.prototype, "_client", void 0); | ||
HelixHypeTrainEvent = tslib_1.__decorate([ | ||
exports.HelixHypeTrainEvent = HelixHypeTrainEvent = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixHypeTrainEvent', 'id') | ||
], HelixHypeTrainEvent); | ||
exports.HelixHypeTrainEvent = HelixHypeTrainEvent; |
@@ -77,5 +77,5 @@ "use strict"; | ||
}; | ||
HelixAutoModSettings = tslib_1.__decorate([ | ||
exports.HelixAutoModSettings = HelixAutoModSettings; | ||
exports.HelixAutoModSettings = HelixAutoModSettings = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixAutoModSettings', 'broadcasterId') | ||
], HelixAutoModSettings); | ||
exports.HelixAutoModSettings = HelixAutoModSettings; |
@@ -23,5 +23,5 @@ "use strict"; | ||
}; | ||
HelixAutoModStatus = tslib_1.__decorate([ | ||
exports.HelixAutoModStatus = HelixAutoModStatus; | ||
exports.HelixAutoModStatus = HelixAutoModStatus = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixAutoModStatus', 'messageId') | ||
], HelixAutoModStatus); | ||
exports.HelixAutoModStatus = HelixAutoModStatus; |
@@ -48,5 +48,5 @@ "use strict"; | ||
}; | ||
HelixBan = tslib_1.__decorate([ | ||
exports.HelixBan = HelixBan; | ||
exports.HelixBan = HelixBan = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixBan', 'userId') | ||
], HelixBan); | ||
exports.HelixBan = HelixBan; |
@@ -56,2 +56,3 @@ "use strict"; | ||
}; | ||
exports.HelixBanUser = HelixBanUser; | ||
tslib_1.__decorate([ | ||
@@ -63,5 +64,4 @@ (0, shared_utils_1.Enumerable)(false) | ||
], HelixBanUser.prototype, "_expiryTimestamp", void 0); | ||
HelixBanUser = tslib_1.__decorate([ | ||
exports.HelixBanUser = HelixBanUser = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixBanUser', 'userId') | ||
], HelixBanUser); | ||
exports.HelixBanUser = HelixBanUser; |
@@ -54,5 +54,5 @@ "use strict"; | ||
}; | ||
HelixBlockedTerm = tslib_1.__decorate([ | ||
exports.HelixBlockedTerm = HelixBlockedTerm; | ||
exports.HelixBlockedTerm = HelixBlockedTerm = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixBlockedTerm', 'id') | ||
], HelixBlockedTerm); | ||
exports.HelixBlockedTerm = HelixBlockedTerm; |
import { type UserIdResolvable } from '@twurple/common'; | ||
import { type HelixBanData, type HelixModeratorData } from '../../interfaces/endpoints/moderation.external'; | ||
import { type HelixBanData, type HelixModeratedChannelData, type HelixModeratorData } from '../../interfaces/endpoints/moderation.external'; | ||
import { type HelixAutoModSettingsUpdate, type HelixBanFilter, type HelixBanUserRequest, type HelixCheckAutoModStatusData, type HelixModeratorFilter } from '../../interfaces/endpoints/moderation.input'; | ||
@@ -14,2 +14,3 @@ import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest'; | ||
import { HelixModerator } from './HelixModerator'; | ||
import { HelixModeratedChannel } from './HelixModeratedChannel'; | ||
import { HelixShieldModeStatus } from './HelixShieldModeStatus'; | ||
@@ -69,2 +70,21 @@ /** | ||
/** | ||
* Gets a list of channels where the specified user has moderator privileges. | ||
* | ||
* @param user The user for whom to return a list of channels where they have moderator privileges. | ||
* This ID must match the user ID in the access token. | ||
* @param filter | ||
* | ||
* @expandParams | ||
* | ||
* @returns A paginated list of channels where the user has moderator privileges. | ||
*/ | ||
getModeratedChannels(user: UserIdResolvable, filter?: HelixForwardPagination): Promise<HelixPaginatedResult<HelixModeratedChannel>>; | ||
/** | ||
* Creates a paginator for channels where the specified user has moderator privileges. | ||
* | ||
* @param user The user for whom to return the list of channels where they have moderator privileges. | ||
* This ID must match the user ID in the access token. | ||
*/ | ||
getModeratedChannelsPaginated(user: UserIdResolvable): HelixPaginatedRequest<HelixModeratedChannelData, HelixModeratedChannel>; | ||
/** | ||
* Checks whether a given user is a moderator of a given channel. | ||
@@ -71,0 +91,0 @@ * |
@@ -19,2 +19,3 @@ "use strict"; | ||
const HelixModerator_1 = require("./HelixModerator"); | ||
const HelixModeratedChannel_1 = require("./HelixModeratedChannel"); | ||
const HelixShieldModeStatus_1 = require("./HelixShieldModeStatus"); | ||
@@ -116,2 +117,42 @@ /** | ||
/** | ||
* Gets a list of channels where the specified user has moderator privileges. | ||
* | ||
* @param user The user for whom to return a list of channels where they have moderator privileges. | ||
* This ID must match the user ID in the access token. | ||
* @param filter | ||
* | ||
* @expandParams | ||
* | ||
* @returns A paginated list of channels where the user has moderator privileges. | ||
*/ | ||
async getModeratedChannels(user, filter) { | ||
const userId = (0, common_1.extractUserId)(user); | ||
const result = await this._client.callApi({ | ||
type: 'helix', | ||
url: 'moderation/channels', | ||
userId, | ||
scopes: ['user:read:moderated_channels'], | ||
query: { | ||
...(0, generic_external_1.createSingleKeyQuery)('user_id', userId), | ||
...(0, HelixPagination_1.createPaginationQuery)(filter), | ||
}, | ||
}); | ||
return (0, HelixPaginatedResult_1.createPaginatedResult)(result, HelixModeratedChannel_1.HelixModeratedChannel, this._client); | ||
} | ||
/** | ||
* Creates a paginator for channels where the specified user has moderator privileges. | ||
* | ||
* @param user The user for whom to return the list of channels where they have moderator privileges. | ||
* This ID must match the user ID in the access token. | ||
*/ | ||
getModeratedChannelsPaginated(user) { | ||
const userId = (0, common_1.extractUserId)(user); | ||
return new HelixPaginatedRequest_1.HelixPaginatedRequest({ | ||
url: 'moderation/channels', | ||
userId, | ||
scopes: ['user:read:moderated_channels'], | ||
query: (0, generic_external_1.createSingleKeyQuery)('user_id', userId), | ||
}, this._client, data => new HelixModeratedChannel_1.HelixModeratedChannel(data, this._client)); | ||
} | ||
/** | ||
* Checks whether a given user is a moderator of a given channel. | ||
@@ -443,5 +484,5 @@ * | ||
}; | ||
HelixModerationApi = tslib_1.__decorate([ | ||
exports.HelixModerationApi = HelixModerationApi; | ||
exports.HelixModerationApi = HelixModerationApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixModerationApi') | ||
], HelixModerationApi); | ||
exports.HelixModerationApi = HelixModerationApi; |
@@ -41,8 +41,8 @@ "use strict"; | ||
}; | ||
exports.HelixModerator = HelixModerator; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixModerator.prototype, "_client", void 0); | ||
HelixModerator = tslib_1.__decorate([ | ||
exports.HelixModerator = HelixModerator = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixModerator', 'userId') | ||
], HelixModerator); | ||
exports.HelixModerator = HelixModerator; |
@@ -53,8 +53,8 @@ "use strict"; | ||
}; | ||
exports.HelixShieldModeStatus = HelixShieldModeStatus; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixShieldModeStatus.prototype, "_client", void 0); | ||
HelixShieldModeStatus = tslib_1.__decorate([ | ||
exports.HelixShieldModeStatus = HelixShieldModeStatus = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixShieldModeStatus') | ||
], HelixShieldModeStatus); | ||
exports.HelixShieldModeStatus = HelixShieldModeStatus; |
@@ -96,8 +96,8 @@ "use strict"; | ||
}; | ||
exports.HelixPoll = HelixPoll; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixPoll.prototype, "_client", void 0); | ||
HelixPoll = tslib_1.__decorate([ | ||
exports.HelixPoll = HelixPoll = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPoll', 'id') | ||
], HelixPoll); | ||
exports.HelixPoll = HelixPoll; |
@@ -130,5 +130,5 @@ "use strict"; | ||
}; | ||
HelixPollApi = tslib_1.__decorate([ | ||
exports.HelixPollApi = HelixPollApi; | ||
exports.HelixPollApi = HelixPollApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPollApi') | ||
], HelixPollApi); | ||
exports.HelixPollApi = HelixPollApi; |
@@ -35,5 +35,5 @@ "use strict"; | ||
}; | ||
HelixPollChoice = tslib_1.__decorate([ | ||
exports.HelixPollChoice = HelixPollChoice; | ||
exports.HelixPollChoice = HelixPollChoice = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPollChoice', 'id') | ||
], HelixPollChoice); | ||
exports.HelixPollChoice = HelixPollChoice; |
@@ -111,8 +111,8 @@ "use strict"; | ||
}; | ||
exports.HelixPrediction = HelixPrediction; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixPrediction.prototype, "_client", void 0); | ||
HelixPrediction = tslib_1.__decorate([ | ||
exports.HelixPrediction = HelixPrediction = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPrediction', 'id') | ||
], HelixPrediction); | ||
exports.HelixPrediction = HelixPrediction; |
@@ -151,5 +151,5 @@ "use strict"; | ||
}; | ||
HelixPredictionApi = tslib_1.__decorate([ | ||
exports.HelixPredictionApi = HelixPredictionApi; | ||
exports.HelixPredictionApi = HelixPredictionApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPredictionApi') | ||
], HelixPredictionApi); | ||
exports.HelixPredictionApi = HelixPredictionApi; |
@@ -55,8 +55,8 @@ "use strict"; | ||
}; | ||
exports.HelixPredictionOutcome = HelixPredictionOutcome; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixPredictionOutcome.prototype, "_client", void 0); | ||
HelixPredictionOutcome = tslib_1.__decorate([ | ||
exports.HelixPredictionOutcome = HelixPredictionOutcome = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPredictionOutcome', 'id') | ||
], HelixPredictionOutcome); | ||
exports.HelixPredictionOutcome = HelixPredictionOutcome; |
@@ -53,8 +53,8 @@ "use strict"; | ||
}; | ||
exports.HelixPredictor = HelixPredictor; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixPredictor.prototype, "_client", void 0); | ||
HelixPredictor = tslib_1.__decorate([ | ||
exports.HelixPredictor = HelixPredictor = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPredictor', 'userId') | ||
], HelixPredictor); | ||
exports.HelixPredictor = HelixPredictor; |
@@ -23,5 +23,5 @@ "use strict"; | ||
}; | ||
HelixRaid = tslib_1.__decorate([ | ||
exports.HelixRaid = HelixRaid; | ||
exports.HelixRaid = HelixRaid = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixRaid') | ||
], HelixRaid); | ||
exports.HelixRaid = HelixRaid; |
@@ -58,5 +58,5 @@ "use strict"; | ||
}; | ||
HelixRaidApi = tslib_1.__decorate([ | ||
exports.HelixRaidApi = HelixRaidApi; | ||
exports.HelixRaidApi = HelixRaidApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixRaidApi') | ||
], HelixRaidApi); | ||
exports.HelixRaidApi = HelixRaidApi; |
@@ -32,5 +32,5 @@ "use strict"; | ||
}; | ||
HelixPaginatedScheduleSegmentRequest = tslib_1.__decorate([ | ||
exports.HelixPaginatedScheduleSegmentRequest = HelixPaginatedScheduleSegmentRequest; | ||
exports.HelixPaginatedScheduleSegmentRequest = HelixPaginatedScheduleSegmentRequest = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPaginatedScheduleSegmentRequest') | ||
], HelixPaginatedScheduleSegmentRequest); | ||
exports.HelixPaginatedScheduleSegmentRequest = HelixPaginatedScheduleSegmentRequest; |
@@ -65,8 +65,8 @@ "use strict"; | ||
}; | ||
exports.HelixSchedule = HelixSchedule; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixSchedule.prototype, "_client", void 0); | ||
HelixSchedule = tslib_1.__decorate([ | ||
exports.HelixSchedule = HelixSchedule = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixSchedule', 'broadcasterId') | ||
], HelixSchedule); | ||
exports.HelixSchedule = HelixSchedule; |
@@ -75,8 +75,8 @@ "use strict"; | ||
}; | ||
exports.HelixScheduleSegment = HelixScheduleSegment; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixScheduleSegment.prototype, "_client", void 0); | ||
HelixScheduleSegment = tslib_1.__decorate([ | ||
exports.HelixScheduleSegment = HelixScheduleSegment = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixScheduleSegment', 'id') | ||
], HelixScheduleSegment); | ||
exports.HelixScheduleSegment = HelixScheduleSegment; |
@@ -91,8 +91,8 @@ "use strict"; | ||
}; | ||
exports.HelixChannelSearchResult = HelixChannelSearchResult; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixChannelSearchResult.prototype, "_client", void 0); | ||
HelixChannelSearchResult = tslib_1.__decorate([ | ||
exports.HelixChannelSearchResult = HelixChannelSearchResult = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixChannelSearchResult', 'id') | ||
], HelixChannelSearchResult); | ||
exports.HelixChannelSearchResult = HelixChannelSearchResult; |
@@ -94,5 +94,5 @@ "use strict"; | ||
}; | ||
HelixSearchApi = tslib_1.__decorate([ | ||
exports.HelixSearchApi = HelixSearchApi; | ||
exports.HelixSearchApi = HelixSearchApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixSearchApi') | ||
], HelixSearchApi); | ||
exports.HelixSearchApi = HelixSearchApi; |
@@ -133,8 +133,8 @@ "use strict"; | ||
}; | ||
exports.HelixStream = HelixStream; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixStream.prototype, "_client", void 0); | ||
HelixStream = tslib_1.__decorate([ | ||
exports.HelixStream = HelixStream = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixStream', 'id') | ||
], HelixStream); | ||
exports.HelixStream = HelixStream; |
@@ -303,2 +303,3 @@ "use strict"; | ||
}; | ||
exports.HelixStreamApi = HelixStreamApi; | ||
tslib_1.__decorate([ | ||
@@ -310,5 +311,4 @@ (0, shared_utils_1.Enumerable)(false) | ||
], HelixStreamApi.prototype, "_getStreamByUserNameBatcher", void 0); | ||
HelixStreamApi = HelixStreamApi_1 = tslib_1.__decorate([ | ||
exports.HelixStreamApi = HelixStreamApi = HelixStreamApi_1 = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixStreamApi') | ||
], HelixStreamApi); | ||
exports.HelixStreamApi = HelixStreamApi; |
@@ -41,8 +41,8 @@ "use strict"; | ||
}; | ||
exports.HelixStreamMarker = HelixStreamMarker; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixStreamMarker.prototype, "_client", void 0); | ||
HelixStreamMarker = tslib_1.__decorate([ | ||
exports.HelixStreamMarker = HelixStreamMarker = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixStreamMarker', 'id') | ||
], HelixStreamMarker); | ||
exports.HelixStreamMarker = HelixStreamMarker; |
@@ -37,5 +37,5 @@ "use strict"; | ||
}; | ||
HelixStreamMarkerWithVideo = tslib_1.__decorate([ | ||
exports.HelixStreamMarkerWithVideo = HelixStreamMarkerWithVideo; | ||
exports.HelixStreamMarkerWithVideo = HelixStreamMarkerWithVideo = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixStreamMarkerWithVideo', 'id') | ||
], HelixStreamMarkerWithVideo); | ||
exports.HelixStreamMarkerWithVideo = HelixStreamMarkerWithVideo; |
@@ -34,5 +34,5 @@ "use strict"; | ||
}; | ||
HelixPaginatedSubscriptionsRequest = tslib_1.__decorate([ | ||
exports.HelixPaginatedSubscriptionsRequest = HelixPaginatedSubscriptionsRequest; | ||
exports.HelixPaginatedSubscriptionsRequest = HelixPaginatedSubscriptionsRequest = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPaginatedSubscriptionsRequest') | ||
], HelixPaginatedSubscriptionsRequest); | ||
exports.HelixPaginatedSubscriptionsRequest = HelixPaginatedSubscriptionsRequest; |
@@ -88,5 +88,5 @@ "use strict"; | ||
}; | ||
HelixSubscription = tslib_1.__decorate([ | ||
exports.HelixSubscription = HelixSubscription; | ||
exports.HelixSubscription = HelixSubscription = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixSubscription', 'userId') | ||
], HelixSubscription); | ||
exports.HelixSubscription = HelixSubscription; |
@@ -119,5 +119,5 @@ "use strict"; | ||
}; | ||
HelixSubscriptionApi = tslib_1.__decorate([ | ||
exports.HelixSubscriptionApi = HelixSubscriptionApi; | ||
exports.HelixSubscriptionApi = HelixSubscriptionApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixSubscriptionApi') | ||
], HelixSubscriptionApi); | ||
exports.HelixSubscriptionApi = HelixSubscriptionApi; |
@@ -53,8 +53,8 @@ "use strict"; | ||
}; | ||
exports.HelixUserSubscription = HelixUserSubscription; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixUserSubscription.prototype, "_client", void 0); | ||
HelixUserSubscription = tslib_1.__decorate([ | ||
exports.HelixUserSubscription = HelixUserSubscription = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixUserSubscription', 'broadcasterId') | ||
], HelixUserSubscription); | ||
exports.HelixUserSubscription = HelixUserSubscription; |
@@ -80,8 +80,8 @@ "use strict"; | ||
}; | ||
exports.HelixTeam = HelixTeam; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixTeam.prototype, "_client", void 0); | ||
HelixTeam = tslib_1.__decorate([ | ||
exports.HelixTeam = HelixTeam = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixTeam', 'id') | ||
], HelixTeam); | ||
exports.HelixTeam = HelixTeam; |
@@ -93,5 +93,5 @@ "use strict"; | ||
}; | ||
HelixTeamApi = tslib_1.__decorate([ | ||
exports.HelixTeamApi = HelixTeamApi; | ||
exports.HelixTeamApi = HelixTeamApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixTeamApi') | ||
], HelixTeamApi); | ||
exports.HelixTeamApi = HelixTeamApi; |
@@ -21,5 +21,5 @@ "use strict"; | ||
}; | ||
HelixTeamWithUsers = tslib_1.__decorate([ | ||
exports.HelixTeamWithUsers = HelixTeamWithUsers; | ||
exports.HelixTeamWithUsers = HelixTeamWithUsers = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixTeamWithUsers', 'id') | ||
], HelixTeamWithUsers); | ||
exports.HelixTeamWithUsers = HelixTeamWithUsers; |
@@ -32,5 +32,5 @@ "use strict"; | ||
}; | ||
HelixInstalledExtension = tslib_1.__decorate([ | ||
exports.HelixInstalledExtension = HelixInstalledExtension; | ||
exports.HelixInstalledExtension = HelixInstalledExtension = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixInstalledExtension', 'id') | ||
], HelixInstalledExtension); | ||
exports.HelixInstalledExtension = HelixInstalledExtension; |
@@ -26,5 +26,5 @@ "use strict"; | ||
}; | ||
HelixInstalledExtensionList = tslib_1.__decorate([ | ||
exports.HelixInstalledExtensionList = HelixInstalledExtensionList; | ||
exports.HelixInstalledExtensionList = HelixInstalledExtensionList = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixInstalledExtensionList') | ||
], HelixInstalledExtensionList); | ||
exports.HelixInstalledExtensionList = HelixInstalledExtensionList; |
@@ -26,5 +26,5 @@ "use strict"; | ||
}; | ||
HelixUserExtension = tslib_1.__decorate([ | ||
exports.HelixUserExtension = HelixUserExtension; | ||
exports.HelixUserExtension = HelixUserExtension = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixUserExtension', 'id') | ||
], HelixUserExtension); | ||
exports.HelixUserExtension = HelixUserExtension; |
@@ -71,8 +71,8 @@ "use strict"; | ||
}; | ||
exports.HelixFollow = HelixFollow; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixFollow.prototype, "_client", void 0); | ||
HelixFollow = tslib_1.__decorate([ | ||
exports.HelixFollow = HelixFollow = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixFollow') | ||
], HelixFollow); | ||
exports.HelixFollow = HelixFollow; |
@@ -28,5 +28,5 @@ "use strict"; | ||
}; | ||
HelixPrivilegedUser = tslib_1.__decorate([ | ||
exports.HelixPrivilegedUser = HelixPrivilegedUser; | ||
exports.HelixPrivilegedUser = HelixPrivilegedUser = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPrivilegedUser', 'id') | ||
], HelixPrivilegedUser); | ||
exports.HelixPrivilegedUser = HelixPrivilegedUser; |
@@ -181,8 +181,8 @@ "use strict"; | ||
}; | ||
exports.HelixUser = HelixUser; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixUser.prototype, "_client", void 0); | ||
HelixUser = tslib_1.__decorate([ | ||
exports.HelixUser = HelixUser = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixUser', 'id') | ||
], HelixUser); | ||
exports.HelixUser = HelixUser; |
@@ -224,3 +224,3 @@ "use strict"; | ||
userId: (0, common_1.extractUserId)(broadcaster), | ||
scopes: withInactive ? ['user:edit:broadcast'] : ['user:read:broadcast', 'user:edit:broadcast'], | ||
scopes: withInactive ? ['channel:manage:extensions'] : ['user:read:broadcast', 'channel:manage:extensions'], | ||
}); | ||
@@ -241,3 +241,3 @@ return result.data.map(data => new HelixUserExtension_1.HelixUserExtension(data)); | ||
userId, | ||
scopes: withDev ? ['user:read:broadcast', 'user:edit:broadcast'] : undefined, | ||
scopes: withDev ? ['user:read:broadcast', 'channel:manage:extensions'] : undefined, | ||
query: (0, generic_external_1.createSingleKeyQuery)('user_id', userId), | ||
@@ -262,3 +262,3 @@ }); | ||
userId: (0, common_1.extractUserId)(broadcaster), | ||
scopes: ['user:edit:broadcast'], | ||
scopes: ['channel:manage:extensions'], | ||
jsonBody: { data }, | ||
@@ -281,2 +281,3 @@ }); | ||
}; | ||
exports.HelixUserApi = HelixUserApi; | ||
tslib_1.__decorate([ | ||
@@ -288,5 +289,4 @@ (0, shared_utils_1.Enumerable)(false) | ||
], HelixUserApi.prototype, "_getUserByNameBatcher", void 0); | ||
HelixUserApi = tslib_1.__decorate([ | ||
exports.HelixUserApi = HelixUserApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixUserApi') | ||
], HelixUserApi); | ||
exports.HelixUserApi = HelixUserApi; |
@@ -41,8 +41,8 @@ "use strict"; | ||
}; | ||
exports.HelixUserBlock = HelixUserBlock; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixUserBlock.prototype, "_client", void 0); | ||
HelixUserBlock = tslib_1.__decorate([ | ||
exports.HelixUserBlock = HelixUserBlock = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixUserBlock', 'userId') | ||
], HelixUserBlock); | ||
exports.HelixUserBlock = HelixUserBlock; |
@@ -188,2 +188,3 @@ "use strict"; | ||
}; | ||
exports.HelixVideo = HelixVideo; | ||
tslib_1.__decorate([ | ||
@@ -195,6 +196,5 @@ (0, shared_utils_1.Enumerable)(false) | ||
], HelixVideo.prototype, "durationInSeconds", null); | ||
HelixVideo = tslib_1.__decorate([ | ||
exports.HelixVideo = HelixVideo = tslib_1.__decorate([ | ||
cache_decorators_1.Cacheable, | ||
(0, common_1.rtfm)('api', 'HelixVideo', 'id') | ||
], HelixVideo); | ||
exports.HelixVideo = HelixVideo; |
@@ -162,8 +162,8 @@ "use strict"; | ||
}; | ||
exports.HelixVideoApi = HelixVideoApi; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixVideoApi.prototype, "_getVideoByIdBatcher", void 0); | ||
HelixVideoApi = HelixVideoApi_1 = tslib_1.__decorate([ | ||
exports.HelixVideoApi = HelixVideoApi = HelixVideoApi_1 = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixVideoApi') | ||
], HelixVideoApi); | ||
exports.HelixVideoApi = HelixVideoApi; |
@@ -53,5 +53,5 @@ "use strict"; | ||
}; | ||
HelixWhisperApi = tslib_1.__decorate([ | ||
exports.HelixWhisperApi = HelixWhisperApi; | ||
exports.HelixWhisperApi = HelixWhisperApi = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixWhisperApi') | ||
], HelixWhisperApi); | ||
exports.HelixWhisperApi = HelixWhisperApi; |
@@ -67,2 +67,3 @@ export { ApiClient } from './client/ApiClient'; | ||
export { HelixModerator } from './endpoints/moderation/HelixModerator'; | ||
export { HelixModeratedChannel } from './endpoints/moderation/HelixModeratedChannel'; | ||
export { HelixBanUser } from './endpoints/moderation/HelixBanUser'; | ||
@@ -69,0 +70,0 @@ export { HelixBlockedTerm } from './endpoints/moderation/HelixBlockedTerm'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HelixModerator = exports.HelixBan = exports.HelixModerationApi = exports.HelixHypeTrainEvent = exports.HelixHypeTrainContribution = exports.HelixHypeTrainApi = exports.HelixGoal = exports.HelixGoalApi = exports.HelixGame = exports.HelixGameApi = exports.HelixExtensionTransaction = exports.HelixExtensionBitsProduct = exports.HelixExtensionsApi = exports.HelixPaginatedEventSubSubscriptionsRequest = exports.HelixEventSubSubscription = exports.HelixEventSubApi = exports.HelixDropsEntitlement = exports.HelixEntitlementApi = exports.HelixContentClassificationLabel = exports.HelixContentClassificationLabelApi = exports.HelixClip = exports.HelixClipApi = exports.HelixSentChatMessage = exports.HelixPrivilegedChatSettings = exports.HelixEmoteFromSet = exports.HelixChannelEmote = exports.HelixEmote = exports.HelixChatChatter = exports.HelixChatSettings = exports.HelixChatBadgeVersion = exports.HelixChatBadgeSet = exports.HelixChatApi = exports.HelixCharityCampaignAmount = exports.HelixCharityCampaignDonation = exports.HelixCharityCampaign = exports.HelixCharityApi = exports.HelixCustomRewardRedemption = exports.HelixCustomReward = exports.HelixChannelPointsApi = exports.HelixChannelReference = exports.HelixFollowedChannel = exports.HelixChannelFollower = exports.HelixChannelEditor = exports.HelixChannel = exports.HelixChannelApi = exports.HelixCheermoteList = exports.HelixBitsLeaderboardEntry = exports.HelixBitsLeaderboard = exports.HelixBitsApi = exports.ApiClient = void 0; | ||
exports.HelixExtension = exports.extractUserName = exports.extractUserId = exports.HelixPaginatedRequestWithTotal = exports.HelixPaginatedRequest = exports.ApiReportedRequest = exports.StreamNotLiveError = exports.ConfigError = exports.HelixWhisperApi = exports.HelixVideo = exports.HelixVideoApi = exports.HelixUserExtension = exports.HelixInstalledExtensionList = exports.HelixInstalledExtension = exports.HelixBaseExtension = exports.HelixUser = exports.HelixPrivilegedUser = exports.HelixFollow = exports.HelixUserBlock = exports.HelixUserApi = exports.HelixTeamWithUsers = exports.HelixTeam = exports.HelixTeamApi = exports.HelixUserSubscription = exports.HelixSubscription = exports.HelixSubscriptionApi = exports.HelixPaginatedSubscriptionsRequest = exports.HelixStreamMarkerWithVideo = exports.HelixStreamMarker = exports.HelixStream = exports.HelixStreamApi = exports.HelixChannelSearchResult = exports.HelixSearchApi = exports.HelixPaginatedScheduleSegmentRequest = exports.HelixScheduleSegment = exports.HelixSchedule = exports.HelixScheduleApi = exports.HelixUserRelation = exports.HelixRaid = exports.HelixRaidApi = exports.HelixPredictor = exports.HelixPredictionOutcome = exports.HelixPrediction = exports.HelixPredictionApi = exports.HelixPollChoice = exports.HelixPoll = exports.HelixPollApi = exports.HelixShieldModeStatus = exports.HelixBlockedTerm = exports.HelixBanUser = void 0; | ||
exports.HellFreezesOverError = void 0; | ||
exports.extractUserName = exports.extractUserId = exports.HelixPaginatedRequestWithTotal = exports.HelixPaginatedRequest = exports.ApiReportedRequest = exports.StreamNotLiveError = exports.ConfigError = exports.HelixWhisperApi = exports.HelixVideo = exports.HelixVideoApi = exports.HelixUserExtension = exports.HelixInstalledExtensionList = exports.HelixInstalledExtension = exports.HelixBaseExtension = exports.HelixUser = exports.HelixPrivilegedUser = exports.HelixFollow = exports.HelixUserBlock = exports.HelixUserApi = exports.HelixTeamWithUsers = exports.HelixTeam = exports.HelixTeamApi = exports.HelixUserSubscription = exports.HelixSubscription = exports.HelixSubscriptionApi = exports.HelixPaginatedSubscriptionsRequest = exports.HelixStreamMarkerWithVideo = exports.HelixStreamMarker = exports.HelixStream = exports.HelixStreamApi = exports.HelixChannelSearchResult = exports.HelixSearchApi = exports.HelixPaginatedScheduleSegmentRequest = exports.HelixScheduleSegment = exports.HelixSchedule = exports.HelixScheduleApi = exports.HelixUserRelation = exports.HelixRaid = exports.HelixRaidApi = exports.HelixPredictor = exports.HelixPredictionOutcome = exports.HelixPrediction = exports.HelixPredictionApi = exports.HelixPollChoice = exports.HelixPoll = exports.HelixPollApi = exports.HelixShieldModeStatus = exports.HelixBlockedTerm = exports.HelixBanUser = exports.HelixModeratedChannel = void 0; | ||
exports.HellFreezesOverError = exports.HelixExtension = void 0; | ||
var ApiClient_1 = require("./client/ApiClient"); | ||
@@ -106,2 +106,4 @@ Object.defineProperty(exports, "ApiClient", { enumerable: true, get: function () { return ApiClient_1.ApiClient; } }); | ||
Object.defineProperty(exports, "HelixModerator", { enumerable: true, get: function () { return HelixModerator_1.HelixModerator; } }); | ||
var HelixModeratedChannel_1 = require("./endpoints/moderation/HelixModeratedChannel"); | ||
Object.defineProperty(exports, "HelixModeratedChannel", { enumerable: true, get: function () { return HelixModeratedChannel_1.HelixModeratedChannel; } }); | ||
var HelixBanUser_1 = require("./endpoints/moderation/HelixBanUser"); | ||
@@ -108,0 +110,0 @@ Object.defineProperty(exports, "HelixBanUser", { enumerable: true, get: function () { return HelixBanUser_1.HelixBanUser; } }); |
import { type HelixPaginatedResponseWithTotal } from '@twurple/api-call'; | ||
export type HelixEventSubSubscriptionStatus = 'enabled' | 'webhook_callback_verification_pending' | 'webhook_callback_verification_failed' | 'websocket_disconnected' | 'notification_failures_exceeded' | 'authorization_revoked' | 'user_removed' | 'version_removed'; | ||
export type HelixEventSubSubscriptionStatus = 'enabled' | 'webhook_callback_verification_pending' | 'webhook_callback_verification_failed' | 'notification_failures_exceeded' | 'authorization_revoked' | 'moderator_removed' | 'user_removed' | 'version_removed' | 'beta_maintenance' | 'websocket_disconnected' | 'websocket_failed_ping_pong' | 'websocket_received_inbound_traffic' | 'websocket_connection_unused' | 'websocket_internal_error' | 'websocket_network_timeout' | 'websocket_network_error'; | ||
/** @private */ | ||
@@ -4,0 +4,0 @@ export interface HelixEventSubWebHookTransportData { |
@@ -57,2 +57,8 @@ /** @private */ | ||
/** @private */ | ||
export interface HelixModeratedChannelData { | ||
broadcaster_id: string; | ||
broadcaster_login: string; | ||
broadcaster_name: string; | ||
} | ||
/** @private */ | ||
export interface HelixShieldModeStatusData { | ||
@@ -59,0 +65,0 @@ is_active: boolean; |
@@ -41,8 +41,8 @@ "use strict"; | ||
}; | ||
exports.HelixUserRelation = HelixUserRelation; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixUserRelation.prototype, "_client", void 0); | ||
HelixUserRelation = tslib_1.__decorate([ | ||
exports.HelixUserRelation = HelixUserRelation = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixUserRelation', 'id') | ||
], HelixUserRelation); | ||
exports.HelixUserRelation = HelixUserRelation; |
@@ -91,5 +91,5 @@ "use strict"; | ||
} | ||
exports.HelixRequestBatcher = HelixRequestBatcher; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixRequestBatcher.prototype, "_client", void 0); | ||
exports.HelixRequestBatcher = HelixRequestBatcher; |
@@ -135,8 +135,8 @@ "use strict"; | ||
}; | ||
exports.HelixPaginatedRequest = HelixPaginatedRequest; | ||
tslib_1.__decorate([ | ||
(0, shared_utils_1.Enumerable)(false) | ||
], HelixPaginatedRequest.prototype, "_client", void 0); | ||
HelixPaginatedRequest = tslib_1.__decorate([ | ||
exports.HelixPaginatedRequest = HelixPaginatedRequest = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPaginatedRequest') | ||
], HelixPaginatedRequest); | ||
exports.HelixPaginatedRequest = HelixPaginatedRequest; |
@@ -22,5 +22,5 @@ "use strict"; | ||
}; | ||
HelixPaginatedRequestWithTotal = tslib_1.__decorate([ | ||
exports.HelixPaginatedRequestWithTotal = HelixPaginatedRequestWithTotal; | ||
exports.HelixPaginatedRequestWithTotal = HelixPaginatedRequestWithTotal = tslib_1.__decorate([ | ||
(0, common_1.rtfm)('api', 'HelixPaginatedRequestWithTotal') | ||
], HelixPaginatedRequestWithTotal); | ||
exports.HelixPaginatedRequestWithTotal = HelixPaginatedRequestWithTotal; |
{ | ||
"name": "@twurple/api", | ||
"version": "7.1.0-pre.7", | ||
"version": "7.1.0-pre.8", | ||
"publishConfig": { | ||
@@ -43,4 +43,4 @@ "access": "public" | ||
"@d-fischer/typed-event-emitter": "^3.3.1", | ||
"@twurple/api-call": "7.1.0-pre.7", | ||
"@twurple/common": "7.1.0-pre.7", | ||
"@twurple/api-call": "7.1.0-pre.8", | ||
"@twurple/common": "7.1.0-pre.8", | ||
"retry": "^0.13.1", | ||
@@ -50,7 +50,7 @@ "tslib": "^2.0.3" | ||
"devDependencies": { | ||
"@twurple/auth": "7.1.0-pre.7", | ||
"@twurple/auth": "7.1.0-pre.8", | ||
"@types/retry": "^0.12.2" | ||
}, | ||
"peerDependencies": { | ||
"@twurple/auth": "7.1.0-pre.7" | ||
"@twurple/auth": "7.1.0-pre.8" | ||
}, | ||
@@ -57,0 +57,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1126023
489
30147
+ Added@twurple/api-call@7.1.0-pre.8(transitive)
+ Added@twurple/auth@7.1.0-pre.8(transitive)
+ Added@twurple/common@7.1.0-pre.8(transitive)
- Removed@twurple/api-call@7.1.0-pre.7(transitive)
- Removed@twurple/auth@7.1.0-pre.7(transitive)
- Removed@twurple/common@7.1.0-pre.7(transitive)
Updated@twurple/common@7.1.0-pre.8