@openclaw/twitch 2026.7.1-beta.6 → 2026.7.2-beta.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/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{monitor-DuF1m2_8.js → monitor-BL82UZIL.js} +6 -8
- package/dist/{plugin-C5o3rImF.js → plugin-DG2hXX7Z.js} +51 -31
- package/npm-shrinkwrap.json +3 -36
- package/package.json +6 -6
- package/node_modules/@twurple/api/LICENSE +0 -21
- package/node_modules/@twurple/api/README.md +0 -24
- package/node_modules/@twurple/api/lib/client/ApiClient.d.ts +0 -98
- package/node_modules/@twurple/api/lib/client/ApiClient.js +0 -107
- package/node_modules/@twurple/api/lib/client/BaseApiClient.d.ts +0 -167
- package/node_modules/@twurple/api/lib/client/BaseApiClient.js +0 -446
- package/node_modules/@twurple/api/lib/client/ContextApiCallOptions.d.ts +0 -21
- package/node_modules/@twurple/api/lib/client/ContextApiCallOptions.js +0 -1
- package/node_modules/@twurple/api/lib/client/NoContextApiClient.d.ts +0 -5
- package/node_modules/@twurple/api/lib/client/NoContextApiClient.js +0 -14
- package/node_modules/@twurple/api/lib/client/UserContextApiClient.d.ts +0 -6
- package/node_modules/@twurple/api/lib/client/UserContextApiClient.js +0 -20
- package/node_modules/@twurple/api/lib/endpoints/BaseApi.d.ts +0 -4
- package/node_modules/@twurple/api/lib/endpoints/BaseApi.js +0 -17
- package/node_modules/@twurple/api/lib/endpoints/bits/CheermoteDisplayInfo.d.ts +0 -48
- package/node_modules/@twurple/api/lib/endpoints/bits/CheermoteDisplayInfo.js +0 -1
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsApi.d.ts +0 -38
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsApi.js +0 -61
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboard.d.ts +0 -17
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboard.js +0 -39
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboardEntry.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboardEntry.js +0 -57
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixCheermoteList.d.ts +0 -23
- package/node_modules/@twurple/api/lib/endpoints/bits/HelixCheermoteList.js +0 -44
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixAdSchedule.d.ts +0 -35
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixAdSchedule.js +0 -50
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannel.d.ts +0 -64
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannel.js +0 -103
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelApi.d.ts +0 -185
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelApi.js +0 -371
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelEditor.d.ts +0 -25
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelEditor.js +0 -45
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelFollower.d.ts +0 -29
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelFollower.js +0 -51
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelReference.d.ts +0 -43
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelReference.js +0 -71
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixFollowedChannel.d.ts +0 -29
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixFollowedChannel.js +0 -51
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixSnoozeNextAdResult.d.ts +0 -20
- package/node_modules/@twurple/api/lib/endpoints/channel/HelixSnoozeNextAdResult.js +0 -29
- package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixChannelPointsApi.d.ts +0 -117
- package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixChannelPointsApi.js +0 -228
- package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomReward.d.ts +0 -94
- package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomReward.js +0 -152
- package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomRewardRedemption.d.ts +0 -88
- package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomRewardRedemption.js +0 -138
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityApi.d.ts +0 -39
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityApi.js +0 -66
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaign.d.ts +0 -54
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaign.js +0 -88
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignAmount.d.ts +0 -29
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignAmount.js +0 -40
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignDonation.d.ts +0 -34
- package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignDonation.js +0 -58
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChannelEmote.d.ts +0 -31
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChannelEmote.js +0 -49
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatApi.d.ts +0 -224
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatApi.js +0 -446
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeSet.d.ts +0 -23
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeSet.js +0 -37
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeVersion.d.ts +0 -35
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeVersion.js +0 -49
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatChatter.d.ts +0 -25
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatChatter.js +0 -45
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatSettings.d.ts +0 -45
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatSettings.js +0 -64
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmote.d.ts +0 -14
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmote.js +0 -20
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteBase.d.ts +0 -48
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteBase.js +0 -68
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteFromSet.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteFromSet.js +0 -67
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixPrivilegedChatSettings.d.ts +0 -17
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixPrivilegedChatSettings.js +0 -26
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixSentChatMessage.d.ts +0 -24
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixSentChatMessage.js +0 -35
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSession.d.ts +0 -34
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSession.js +0 -58
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSessionParticipant.d.ts +0 -17
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSessionParticipant.js +0 -33
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixUserEmote.d.ts +0 -37
- package/node_modules/@twurple/api/lib/endpoints/chat/HelixUserEmote.js +0 -58
- package/node_modules/@twurple/api/lib/endpoints/clip/HelixClip.d.ts +0 -98
- package/node_modules/@twurple/api/lib/endpoints/clip/HelixClip.js +0 -152
- package/node_modules/@twurple/api/lib/endpoints/clip/HelixClipApi.d.ts +0 -99
- package/node_modules/@twurple/api/lib/endpoints/clip/HelixClipApi.js +0 -192
- package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabel.d.ts +0 -20
- package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabel.js +0 -24
- package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabelApi.d.ts +0 -25
- package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabelApi.js +0 -38
- package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixDropsEntitlement.d.ts +0 -46
- package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixDropsEntitlement.js +0 -75
- package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixEntitlementApi.d.ts +0 -68
- package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixEntitlementApi.js +0 -122
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubApi.d.ts +0 -780
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubApi.js +0 -1150
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduit.d.ts +0 -32
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduit.js +0 -53
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduitShard.d.ts +0 -20
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduitShard.js +0 -29
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubSubscription.d.ts +0 -44
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubSubscription.js +0 -80
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixPaginatedEventSubSubscriptionsRequest.d.ts +0 -20
- package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixPaginatedEventSubSubscriptionsRequest.js +0 -40
- package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionBitsProduct.d.ts +0 -32
- package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionBitsProduct.js +0 -48
- package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionTransaction.d.ts +0 -69
- package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionTransaction.js +0 -111
- package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionsApi.d.ts +0 -84
- package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionsApi.js +0 -143
- package/node_modules/@twurple/api/lib/endpoints/game/HelixGame.d.ts +0 -47
- package/node_modules/@twurple/api/lib/endpoints/game/HelixGame.js +0 -71
- package/node_modules/@twurple/api/lib/endpoints/game/HelixGameApi.d.ts +0 -89
- package/node_modules/@twurple/api/lib/endpoints/game/HelixGameApi.js +0 -162
- package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoal.d.ts +0 -49
- package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoal.js +0 -81
- package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoalApi.d.ts +0 -20
- package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoalApi.js +0 -34
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrain.d.ts +0 -70
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrain.js +0 -112
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainAllTimeHigh.d.ts +0 -20
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainAllTimeHigh.js +0 -29
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainApi.d.ts +0 -26
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainApi.js +0 -37
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainContribution.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainContribution.js +0 -57
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainSharedParticipant.d.ts +0 -25
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainSharedParticipant.js +0 -45
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainStatus.d.ts +0 -22
- package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainStatus.js +0 -41
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModSettings.d.ts +0 -52
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModSettings.js +0 -77
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModStatus.d.ts +0 -16
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModStatus.js +0 -23
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBan.d.ts +0 -29
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBan.js +0 -48
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBanUser.d.ts +0 -35
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBanUser.js +0 -64
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBlockedTerm.d.ts +0 -37
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBlockedTerm.js +0 -54
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModeratedChannel.d.ts +0 -30
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModeratedChannel.js +0 -51
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerationApi.d.ts +0 -281
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerationApi.js +0 -580
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerator.d.ts +0 -25
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerator.js +0 -45
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixShieldModeStatus.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixShieldModeStatus.js +0 -57
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixUnbanRequest.d.ts +0 -83
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixUnbanRequest.js +0 -131
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixWarning.d.ts +0 -37
- package/node_modules/@twurple/api/lib/endpoints/moderation/HelixWarning.js +0 -63
- package/node_modules/@twurple/api/lib/endpoints/poll/HelixPoll.d.ts +0 -62
- package/node_modules/@twurple/api/lib/endpoints/poll/HelixPoll.js +0 -100
- package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollApi.d.ts +0 -71
- package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollApi.js +0 -130
- package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollChoice.d.ts +0 -24
- package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollChoice.js +0 -35
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPrediction.d.ts +0 -66
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPrediction.js +0 -115
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionApi.d.ts +0 -86
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionApi.js +0 -151
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionOutcome.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionOutcome.js +0 -58
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictor.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictor.js +0 -57
- package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaid.d.ts +0 -16
- package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaid.js +0 -23
- package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaidApi.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaidApi.js +0 -58
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixPaginatedScheduleSegmentRequest.d.ts +0 -9
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixPaginatedScheduleSegmentRequest.js +0 -31
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixSchedule.d.ts +0 -38
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixSchedule.js +0 -66
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleApi.d.ts +0 -95
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleApi.js +0 -171
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleSegment.d.ts +0 -45
- package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleSegment.js +0 -76
- package/node_modules/@twurple/api/lib/endpoints/search/HelixChannelSearchResult.d.ts +0 -58
- package/node_modules/@twurple/api/lib/endpoints/search/HelixChannelSearchResult.js +0 -95
- package/node_modules/@twurple/api/lib/endpoints/search/HelixSearchApi.d.ts +0 -59
- package/node_modules/@twurple/api/lib/endpoints/search/HelixSearchApi.js +0 -94
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStream.d.ts +0 -88
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStream.js +0 -137
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamApi.d.ts +0 -140
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamApi.js +0 -303
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarker.d.ts +0 -24
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarker.js +0 -45
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarkerWithVideo.d.ts +0 -23
- package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarkerWithVideo.js +0 -38
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixPaginatedSubscriptionsRequest.d.ts +0 -16
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixPaginatedSubscriptionsRequest.js +0 -34
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscription.d.ts +0 -58
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscription.js +0 -88
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscriptionApi.d.ts +0 -66
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscriptionApi.js +0 -119
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixUserSubscription.d.ts +0 -33
- package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixUserSubscription.js +0 -57
- package/node_modules/@twurple/api/lib/endpoints/team/HelixTeam.d.ts +0 -51
- package/node_modules/@twurple/api/lib/endpoints/team/HelixTeam.js +0 -84
- package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamApi.d.ts +0 -43
- package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamApi.js +0 -92
- package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamWithUsers.d.ts +0 -14
- package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamWithUsers.js +0 -21
- package/node_modules/@twurple/api/lib/endpoints/user/HelixFollow.d.ts +0 -45
- package/node_modules/@twurple/api/lib/endpoints/user/HelixFollow.js +0 -76
- package/node_modules/@twurple/api/lib/endpoints/user/HelixPrivilegedUser.d.ts +0 -19
- package/node_modules/@twurple/api/lib/endpoints/user/HelixPrivilegedUser.js +0 -28
- package/node_modules/@twurple/api/lib/endpoints/user/HelixUser.d.ts +0 -134
- package/node_modules/@twurple/api/lib/endpoints/user/HelixUser.js +0 -183
- package/node_modules/@twurple/api/lib/endpoints/user/HelixUserApi.d.ts +0 -137
- package/node_modules/@twurple/api/lib/endpoints/user/HelixUserApi.js +0 -280
- package/node_modules/@twurple/api/lib/endpoints/user/HelixUserBlock.d.ts +0 -25
- package/node_modules/@twurple/api/lib/endpoints/user/HelixUserBlock.js +0 -45
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixBaseExtension.d.ts +0 -18
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixBaseExtension.js +0 -22
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtension.d.ts +0 -20
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtension.js +0 -34
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.d.ts +0 -14
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.js +0 -26
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixUserExtension.d.ts +0 -18
- package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixUserExtension.js +0 -26
- package/node_modules/@twurple/api/lib/endpoints/video/HelixVideo.d.ts +0 -105
- package/node_modules/@twurple/api/lib/endpoints/video/HelixVideo.js +0 -195
- package/node_modules/@twurple/api/lib/endpoints/video/HelixVideoApi.d.ts +0 -85
- package/node_modules/@twurple/api/lib/endpoints/video/HelixVideoApi.js +0 -162
- package/node_modules/@twurple/api/lib/endpoints/whisper/HelixWhisperApi.d.ts +0 -36
- package/node_modules/@twurple/api/lib/endpoints/whisper/HelixWhisperApi.js +0 -53
- package/node_modules/@twurple/api/lib/errors/ChatMessageDroppedError.d.ts +0 -10
- package/node_modules/@twurple/api/lib/errors/ChatMessageDroppedError.js +0 -14
- package/node_modules/@twurple/api/lib/errors/ConfigError.d.ts +0 -7
- package/node_modules/@twurple/api/lib/errors/ConfigError.js +0 -6
- package/node_modules/@twurple/api/lib/errors/StreamNotLiveError.d.ts +0 -9
- package/node_modules/@twurple/api/lib/errors/StreamNotLiveError.js +0 -10
- package/node_modules/@twurple/api/lib/index.d.ts +0 -151
- package/node_modules/@twurple/api/lib/index.js +0 -111
- package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.external.d.ts +0 -43
- package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.external.js +0 -10
- package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.input.d.ts +0 -30
- package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.external.d.ts +0 -58
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.external.js +0 -42
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.input.d.ts +0 -39
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.external.d.ts +0 -74
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.external.js +0 -60
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.input.d.ts +0 -78
- package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/charity.external.d.ts +0 -28
- package/node_modules/@twurple/api/lib/interfaces/endpoints/charity.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.external.d.ts +0 -114
- package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.external.js +0 -52
- package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.input.d.ts +0 -93
- package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.external.d.ts +0 -28
- package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.external.js +0 -33
- package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.input.d.ts +0 -85
- package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/contentClassificationLabels.external.d.ts +0 -7
- package/node_modules/@twurple/api/lib/interfaces/endpoints/contentClassificationLabels.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.external.d.ts +0 -24
- package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.external.js +0 -17
- package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.input.d.ts +0 -26
- package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.external.d.ts +0 -88
- package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.external.js +0 -54
- package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.input.d.ts +0 -66
- package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.external.d.ts +0 -42
- package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.external.js +0 -28
- package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.input.d.ts +0 -47
- package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/game.external.d.ts +0 -8
- package/node_modules/@twurple/api/lib/interfaces/endpoints/game.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/generic.external.d.ts +0 -20
- package/node_modules/@twurple/api/lib/interfaces/endpoints/generic.external.js +0 -32
- package/node_modules/@twurple/api/lib/interfaces/endpoints/goal.external.d.ts +0 -14
- package/node_modules/@twurple/api/lib/interfaces/endpoints/goal.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/hypeTrain.external.d.ts +0 -52
- package/node_modules/@twurple/api/lib/interfaces/endpoints/hypeTrain.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.external.d.ts +0 -96
- package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.external.js +0 -81
- package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.input.d.ts +0 -65
- package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.external.d.ts +0 -29
- package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.external.js +0 -20
- package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.input.d.ts +0 -22
- package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.external.d.ts +0 -38
- package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.external.js +0 -19
- package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.input.d.ts +0 -18
- package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/raid.external.d.ts +0 -6
- package/node_modules/@twurple/api/lib/interfaces/endpoints/raid.external.js +0 -8
- package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.external.d.ts +0 -36
- package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.external.js +0 -54
- package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.input.d.ts +0 -125
- package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/search.external.d.ts +0 -15
- package/node_modules/@twurple/api/lib/interfaces/endpoints/search.external.js +0 -7
- package/node_modules/@twurple/api/lib/interfaces/endpoints/search.input.d.ts +0 -14
- package/node_modules/@twurple/api/lib/interfaces/endpoints/search.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/shared-chat-session.external.d.ts +0 -13
- package/node_modules/@twurple/api/lib/interfaces/endpoints/shared-chat-session.external.js +0 -7
- package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.external.d.ts +0 -52
- package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.external.js +0 -24
- package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.input.d.ts +0 -33
- package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.external.d.ts +0 -25
- package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.external.js +0 -8
- package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.input.d.ts +0 -12
- package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/team.external.d.ts +0 -18
- package/node_modules/@twurple/api/lib/interfaces/endpoints/team.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/user.external.d.ts +0 -41
- package/node_modules/@twurple/api/lib/interfaces/endpoints/user.external.js +0 -15
- package/node_modules/@twurple/api/lib/interfaces/endpoints/user.input.d.ts +0 -20
- package/node_modules/@twurple/api/lib/interfaces/endpoints/user.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.external.d.ts +0 -34
- package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.input.d.ts +0 -48
- package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/video.external.d.ts +0 -38
- package/node_modules/@twurple/api/lib/interfaces/endpoints/video.external.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/video.input.d.ts +0 -29
- package/node_modules/@twurple/api/lib/interfaces/endpoints/video.input.js +0 -1
- package/node_modules/@twurple/api/lib/interfaces/endpoints/whisper.external.d.ts +0 -2
- package/node_modules/@twurple/api/lib/interfaces/endpoints/whisper.external.js +0 -8
- package/node_modules/@twurple/api/lib/relations/HelixUserRelation.d.ts +0 -25
- package/node_modules/@twurple/api/lib/relations/HelixUserRelation.js +0 -45
- package/node_modules/@twurple/api/lib/reporting/ApiReportedRequest.d.ts +0 -22
- package/node_modules/@twurple/api/lib/reporting/ApiReportedRequest.js +0 -32
- package/node_modules/@twurple/api/lib/utils/HelixRateLimiter.d.ts +0 -2
- package/node_modules/@twurple/api/lib/utils/HelixRateLimiter.js +0 -23
- package/node_modules/@twurple/api/lib/utils/HelixRequestBatcher.d.ts +0 -2
- package/node_modules/@twurple/api/lib/utils/HelixRequestBatcher.js +0 -95
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequest.d.ts +0 -49
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequest.js +0 -140
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequestWithTotal.d.ts +0 -13
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequestWithTotal.js +0 -22
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedResult.d.ts +0 -31
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedResult.js +0 -19
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPagination.d.ts +0 -25
- package/node_modules/@twurple/api/lib/utils/pagination/HelixPagination.js +0 -8
- package/node_modules/@twurple/api/package.json +0 -60
- package/node_modules/retry/License +0 -21
- package/node_modules/retry/README.md +0 -227
- package/node_modules/retry/example/dns.js +0 -31
- package/node_modules/retry/example/stop.js +0 -40
- package/node_modules/retry/index.js +0 -1
- package/node_modules/retry/lib/retry.js +0 -100
- package/node_modules/retry/lib/retry_operation.js +0 -162
- package/node_modules/retry/package.json +0 -36
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Enumerable } from '@d-fischer/shared-utils';
|
|
3
|
-
/** @private */
|
|
4
|
-
export class BaseApi {
|
|
5
|
-
/** @internal */ _client;
|
|
6
|
-
/** @internal */
|
|
7
|
-
constructor(client) {
|
|
8
|
-
this._client = client;
|
|
9
|
-
}
|
|
10
|
-
/** @internal */
|
|
11
|
-
_getUserContextIdWithDefault(userId) {
|
|
12
|
-
return this._client._getUserIdFromRequestContext(userId) ?? userId;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
__decorate([
|
|
16
|
-
Enumerable(false)
|
|
17
|
-
], BaseApi.prototype, "_client", void 0);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The type of background a cheermote is supposed to appear on.
|
|
3
|
-
*
|
|
4
|
-
* We will supply a fitting graphic that does not show any artifacts
|
|
5
|
-
* on the given type of background.
|
|
6
|
-
*/
|
|
7
|
-
export type CheermoteBackground = 'dark' | 'light';
|
|
8
|
-
/**
|
|
9
|
-
* The state of a cheermote, i.e. whether it's animated or not.
|
|
10
|
-
*/
|
|
11
|
-
export type CheermoteState = 'animated' | 'static';
|
|
12
|
-
/**
|
|
13
|
-
* The scale of the cheermote, which usually relates to the pixel density of the device in use.
|
|
14
|
-
*/
|
|
15
|
-
export type CheermoteScale = '1' | '1.5' | '2' | '3' | '4';
|
|
16
|
-
/**
|
|
17
|
-
* The format of the cheermote you want to request.
|
|
18
|
-
*/
|
|
19
|
-
export interface CheermoteFormat {
|
|
20
|
-
/**
|
|
21
|
-
* The desired background for the cheermote.
|
|
22
|
-
*/
|
|
23
|
-
background: CheermoteBackground;
|
|
24
|
-
/**
|
|
25
|
-
* The desired cheermote state.
|
|
26
|
-
*/
|
|
27
|
-
state: CheermoteState;
|
|
28
|
-
/**
|
|
29
|
-
* The desired cheermote scale.
|
|
30
|
-
*/
|
|
31
|
-
scale: CheermoteScale;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* The details on how a cheermote should be displayed.
|
|
35
|
-
*/
|
|
36
|
-
export interface CheermoteDisplayInfo {
|
|
37
|
-
/**
|
|
38
|
-
* The URL of the image that should be shown.
|
|
39
|
-
*/
|
|
40
|
-
url: string;
|
|
41
|
-
/**
|
|
42
|
-
* The color that should be used to show the cheer amount.
|
|
43
|
-
*
|
|
44
|
-
* This is a hexadecimal color value, e.g. `#9c3ee8`.
|
|
45
|
-
*/
|
|
46
|
-
color: string;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=CheermoteDisplayInfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { type UserIdResolvable } from '@twurple/common';
|
|
2
|
-
import { type HelixBitsLeaderboardQuery } from '../../interfaces/endpoints/bits.input.js';
|
|
3
|
-
import { BaseApi } from '../BaseApi.js';
|
|
4
|
-
import { HelixBitsLeaderboard } from './HelixBitsLeaderboard.js';
|
|
5
|
-
import { HelixCheermoteList } from './HelixCheermoteList.js';
|
|
6
|
-
/**
|
|
7
|
-
* The Helix API methods that deal with bits.
|
|
8
|
-
*
|
|
9
|
-
* Can be accessed using `client.bits` on an {@link ApiClient} instance.
|
|
10
|
-
*
|
|
11
|
-
* ## Example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const api = new ApiClient({ authProvider });
|
|
14
|
-
* const leaderboard = await api.bits.getLeaderboard({ period: 'day' });
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @meta category helix
|
|
18
|
-
* @meta categorizedTitle Bits
|
|
19
|
-
*/
|
|
20
|
-
export declare class HelixBitsApi extends BaseApi {
|
|
21
|
-
/**
|
|
22
|
-
* Gets a bits leaderboard of your channel.
|
|
23
|
-
*
|
|
24
|
-
* @param broadcaster The user to get the leaderboard of.
|
|
25
|
-
* @param params
|
|
26
|
-
* @expandParams
|
|
27
|
-
*/
|
|
28
|
-
getLeaderboard(broadcaster: UserIdResolvable, params?: HelixBitsLeaderboardQuery): Promise<HelixBitsLeaderboard>;
|
|
29
|
-
/**
|
|
30
|
-
* Gets all available cheermotes.
|
|
31
|
-
*
|
|
32
|
-
* @param broadcaster The broadcaster to include custom cheermotes of.
|
|
33
|
-
*
|
|
34
|
-
* If not given, only get global cheermotes.
|
|
35
|
-
*/
|
|
36
|
-
getCheermotes(broadcaster?: UserIdResolvable): Promise<HelixCheermoteList>;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=HelixBitsApi.d.ts.map
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { mapOptional } from '@d-fischer/shared-utils';
|
|
3
|
-
import { createBroadcasterQuery } from '@twurple/api-call';
|
|
4
|
-
import { extractUserId, rtfm } from '@twurple/common';
|
|
5
|
-
import { createBitsLeaderboardQuery, } from '../../interfaces/endpoints/bits.external.js';
|
|
6
|
-
import { BaseApi } from '../BaseApi.js';
|
|
7
|
-
import { HelixBitsLeaderboard } from './HelixBitsLeaderboard.js';
|
|
8
|
-
import { HelixCheermoteList } from './HelixCheermoteList.js';
|
|
9
|
-
/**
|
|
10
|
-
* The Helix API methods that deal with bits.
|
|
11
|
-
*
|
|
12
|
-
* Can be accessed using `client.bits` on an {@link ApiClient} instance.
|
|
13
|
-
*
|
|
14
|
-
* ## Example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const api = new ApiClient({ authProvider });
|
|
17
|
-
* const leaderboard = await api.bits.getLeaderboard({ period: 'day' });
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @meta category helix
|
|
21
|
-
* @meta categorizedTitle Bits
|
|
22
|
-
*/
|
|
23
|
-
let HelixBitsApi = class HelixBitsApi extends BaseApi {
|
|
24
|
-
/**
|
|
25
|
-
* Gets a bits leaderboard of your channel.
|
|
26
|
-
*
|
|
27
|
-
* @param broadcaster The user to get the leaderboard of.
|
|
28
|
-
* @param params
|
|
29
|
-
* @expandParams
|
|
30
|
-
*/
|
|
31
|
-
async getLeaderboard(broadcaster, params = {}) {
|
|
32
|
-
const result = await this._client.callApi({
|
|
33
|
-
type: 'helix',
|
|
34
|
-
url: 'bits/leaderboard',
|
|
35
|
-
userId: extractUserId(broadcaster),
|
|
36
|
-
scopes: ['bits:read'],
|
|
37
|
-
query: createBitsLeaderboardQuery(params),
|
|
38
|
-
});
|
|
39
|
-
return new HelixBitsLeaderboard(result, this._client);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Gets all available cheermotes.
|
|
43
|
-
*
|
|
44
|
-
* @param broadcaster The broadcaster to include custom cheermotes of.
|
|
45
|
-
*
|
|
46
|
-
* If not given, only get global cheermotes.
|
|
47
|
-
*/
|
|
48
|
-
async getCheermotes(broadcaster) {
|
|
49
|
-
const result = await this._client.callApi({
|
|
50
|
-
type: 'helix',
|
|
51
|
-
url: 'bits/cheermotes',
|
|
52
|
-
userId: mapOptional(broadcaster, extractUserId),
|
|
53
|
-
query: mapOptional(broadcaster, createBroadcasterQuery),
|
|
54
|
-
});
|
|
55
|
-
return new HelixCheermoteList(result.data);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
HelixBitsApi = __decorate([
|
|
59
|
-
rtfm('api', 'HelixBitsApi')
|
|
60
|
-
], HelixBitsApi);
|
|
61
|
-
export { HelixBitsApi };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixBitsLeaderboardResponse } from '../../interfaces/endpoints/bits.external.js';
|
|
3
|
-
import { HelixBitsLeaderboardEntry } from './HelixBitsLeaderboardEntry.js';
|
|
4
|
-
/**
|
|
5
|
-
* A leaderboard where the users who used the most bits to a broadcaster are listed.
|
|
6
|
-
*/
|
|
7
|
-
export declare class HelixBitsLeaderboard extends DataObject<HelixBitsLeaderboardResponse> {
|
|
8
|
-
/**
|
|
9
|
-
* The entries of the leaderboard.
|
|
10
|
-
*/
|
|
11
|
-
get entries(): HelixBitsLeaderboardEntry[];
|
|
12
|
-
/**
|
|
13
|
-
* The total amount of people on the requested leaderboard.
|
|
14
|
-
*/
|
|
15
|
-
get totalCount(): number;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=HelixBitsLeaderboard.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Cacheable, CachedGetter } from '@d-fischer/cache-decorators';
|
|
3
|
-
import { Enumerable } from '@d-fischer/shared-utils';
|
|
4
|
-
import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
|
|
5
|
-
import { HelixBitsLeaderboardEntry } from './HelixBitsLeaderboardEntry.js';
|
|
6
|
-
/**
|
|
7
|
-
* A leaderboard where the users who used the most bits to a broadcaster are listed.
|
|
8
|
-
*/
|
|
9
|
-
let HelixBitsLeaderboard = class HelixBitsLeaderboard extends DataObject {
|
|
10
|
-
/** @internal */ _client;
|
|
11
|
-
/** @internal */
|
|
12
|
-
constructor(data, client) {
|
|
13
|
-
super(data);
|
|
14
|
-
this._client = client;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The entries of the leaderboard.
|
|
18
|
-
*/
|
|
19
|
-
get entries() {
|
|
20
|
-
return this[rawDataSymbol].data.map(entry => new HelixBitsLeaderboardEntry(entry, this._client));
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The total amount of people on the requested leaderboard.
|
|
24
|
-
*/
|
|
25
|
-
get totalCount() {
|
|
26
|
-
return this[rawDataSymbol].total;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
__decorate([
|
|
30
|
-
Enumerable(false)
|
|
31
|
-
], HelixBitsLeaderboard.prototype, "_client", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
CachedGetter()
|
|
34
|
-
], HelixBitsLeaderboard.prototype, "entries", null);
|
|
35
|
-
HelixBitsLeaderboard = __decorate([
|
|
36
|
-
Cacheable,
|
|
37
|
-
rtfm('api', 'HelixBitsLeaderboard')
|
|
38
|
-
], HelixBitsLeaderboard);
|
|
39
|
-
export { HelixBitsLeaderboard };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixBitsLeaderboardEntryData } from '../../interfaces/endpoints/bits.external.js';
|
|
3
|
-
import { type HelixUser } from '../user/HelixUser.js';
|
|
4
|
-
/**
|
|
5
|
-
* A Bits leaderboard entry.
|
|
6
|
-
*/
|
|
7
|
-
export declare class HelixBitsLeaderboardEntry extends DataObject<HelixBitsLeaderboardEntryData> {
|
|
8
|
-
/**
|
|
9
|
-
* The ID of the user on the leaderboard.
|
|
10
|
-
*/
|
|
11
|
-
get userId(): string;
|
|
12
|
-
/**
|
|
13
|
-
* The name of the user on the leaderboard.
|
|
14
|
-
*/
|
|
15
|
-
get userName(): string;
|
|
16
|
-
/**
|
|
17
|
-
* The display name of the user on the leaderboard.
|
|
18
|
-
*/
|
|
19
|
-
get userDisplayName(): string;
|
|
20
|
-
/**
|
|
21
|
-
* The position of the user on the leaderboard.
|
|
22
|
-
*/
|
|
23
|
-
get rank(): number;
|
|
24
|
-
/**
|
|
25
|
-
* The amount of bits used in the given period of time.
|
|
26
|
-
*/
|
|
27
|
-
get amount(): number;
|
|
28
|
-
/**
|
|
29
|
-
* Gets the user of entry on the leaderboard.
|
|
30
|
-
*/
|
|
31
|
-
getUser(): Promise<HelixUser>;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=HelixBitsLeaderboardEntry.d.ts.map
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Enumerable } from '@d-fischer/shared-utils';
|
|
3
|
-
import { checkRelationAssertion, DataObject, rawDataSymbol, rtfm } from '@twurple/common';
|
|
4
|
-
/**
|
|
5
|
-
* A Bits leaderboard entry.
|
|
6
|
-
*/
|
|
7
|
-
let HelixBitsLeaderboardEntry = class HelixBitsLeaderboardEntry extends DataObject {
|
|
8
|
-
/** @internal */ _client;
|
|
9
|
-
/** @internal */
|
|
10
|
-
constructor(data, client) {
|
|
11
|
-
super(data);
|
|
12
|
-
this._client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The ID of the user on the leaderboard.
|
|
16
|
-
*/
|
|
17
|
-
get userId() {
|
|
18
|
-
return this[rawDataSymbol].user_id;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The name of the user on the leaderboard.
|
|
22
|
-
*/
|
|
23
|
-
get userName() {
|
|
24
|
-
return this[rawDataSymbol].user_login;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The display name of the user on the leaderboard.
|
|
28
|
-
*/
|
|
29
|
-
get userDisplayName() {
|
|
30
|
-
return this[rawDataSymbol].user_name;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The position of the user on the leaderboard.
|
|
34
|
-
*/
|
|
35
|
-
get rank() {
|
|
36
|
-
return this[rawDataSymbol].rank;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The amount of bits used in the given period of time.
|
|
40
|
-
*/
|
|
41
|
-
get amount() {
|
|
42
|
-
return this[rawDataSymbol].score;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Gets the user of entry on the leaderboard.
|
|
46
|
-
*/
|
|
47
|
-
async getUser() {
|
|
48
|
-
return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].user_id));
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
__decorate([
|
|
52
|
-
Enumerable(false)
|
|
53
|
-
], HelixBitsLeaderboardEntry.prototype, "_client", void 0);
|
|
54
|
-
HelixBitsLeaderboardEntry = __decorate([
|
|
55
|
-
rtfm('api', 'HelixBitsLeaderboardEntry', 'userId')
|
|
56
|
-
], HelixBitsLeaderboardEntry);
|
|
57
|
-
export { HelixBitsLeaderboardEntry };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixCheermoteData } from '../../interfaces/endpoints/bits.external.js';
|
|
3
|
-
import { type CheermoteDisplayInfo, type CheermoteFormat } from './CheermoteDisplayInfo.js';
|
|
4
|
-
/**
|
|
5
|
-
* A list of cheermotes you can use globally or in a specific channel, depending on how you fetched the list.
|
|
6
|
-
*
|
|
7
|
-
* @inheritDoc
|
|
8
|
-
*/
|
|
9
|
-
export declare class HelixCheermoteList extends DataObject<Record<string, HelixCheermoteData>> {
|
|
10
|
-
/**
|
|
11
|
-
* Gets the URL and color needed to properly represent a cheer of the given amount of bits with the given prefix.
|
|
12
|
-
*
|
|
13
|
-
* @param name The name/prefix of the cheermote.
|
|
14
|
-
* @param bits The amount of bits cheered.
|
|
15
|
-
* @param format The format of the cheermote you want to request.
|
|
16
|
-
*/
|
|
17
|
-
getCheermoteDisplayInfo(name: string, bits: number, format: CheermoteFormat): CheermoteDisplayInfo;
|
|
18
|
-
/**
|
|
19
|
-
* Gets all possible cheermote names.
|
|
20
|
-
*/
|
|
21
|
-
getPossibleNames(): string[];
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=HelixCheermoteList.d.ts.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { indexBy } from '@d-fischer/shared-utils';
|
|
3
|
-
import { DataObject, HellFreezesOverError, rawDataSymbol, rtfm } from '@twurple/common';
|
|
4
|
-
/**
|
|
5
|
-
* A list of cheermotes you can use globally or in a specific channel, depending on how you fetched the list.
|
|
6
|
-
*
|
|
7
|
-
* @inheritDoc
|
|
8
|
-
*/
|
|
9
|
-
let HelixCheermoteList = class HelixCheermoteList extends DataObject {
|
|
10
|
-
/** @internal */
|
|
11
|
-
constructor(data) {
|
|
12
|
-
super(indexBy(data, action => action.prefix.toLowerCase()));
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Gets the URL and color needed to properly represent a cheer of the given amount of bits with the given prefix.
|
|
16
|
-
*
|
|
17
|
-
* @param name The name/prefix of the cheermote.
|
|
18
|
-
* @param bits The amount of bits cheered.
|
|
19
|
-
* @param format The format of the cheermote you want to request.
|
|
20
|
-
*/
|
|
21
|
-
getCheermoteDisplayInfo(name, bits, format) {
|
|
22
|
-
name = name.toLowerCase();
|
|
23
|
-
const { background, state, scale } = format;
|
|
24
|
-
const { tiers } = this[rawDataSymbol][name];
|
|
25
|
-
const correctTier = tiers.sort((a, b) => b.min_bits - a.min_bits).find(tier => tier.min_bits <= bits);
|
|
26
|
-
if (!correctTier) {
|
|
27
|
-
throw new HellFreezesOverError(`Cheermote "${name}" does not have an applicable tier for ${bits} bits`);
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
url: correctTier.images[background][state][scale],
|
|
31
|
-
color: correctTier.color,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Gets all possible cheermote names.
|
|
36
|
-
*/
|
|
37
|
-
getPossibleNames() {
|
|
38
|
-
return Object.keys(this[rawDataSymbol]);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
HelixCheermoteList = __decorate([
|
|
42
|
-
rtfm('api', 'HelixCheermoteList')
|
|
43
|
-
], HelixCheermoteList);
|
|
44
|
-
export { HelixCheermoteList };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import type { HelixAdScheduleData } from '../../interfaces/endpoints/channel.external.js';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a broadcaster's ad schedule.
|
|
5
|
-
*/
|
|
6
|
-
export declare class HelixAdSchedule extends DataObject<HelixAdScheduleData> {
|
|
7
|
-
/**
|
|
8
|
-
* The number of snoozes available for the broadcaster.
|
|
9
|
-
*/
|
|
10
|
-
get snoozeCount(): number;
|
|
11
|
-
/**
|
|
12
|
-
* The date and time when the broadcaster will gain an additional snooze.
|
|
13
|
-
* Returns `null` if all snoozes are already available.
|
|
14
|
-
*/
|
|
15
|
-
get snoozeRefreshDate(): Date | null;
|
|
16
|
-
/**
|
|
17
|
-
* The date and time of the broadcaster's next scheduled ad.
|
|
18
|
-
* Returns `null` if channel is not live or has no ad scheduled.
|
|
19
|
-
*/
|
|
20
|
-
get nextAdDate(): Date | null;
|
|
21
|
-
/**
|
|
22
|
-
* The length in seconds of the scheduled upcoming ad break.
|
|
23
|
-
*/
|
|
24
|
-
get duration(): number;
|
|
25
|
-
/**
|
|
26
|
-
* The date and time of the broadcaster's last ad-break.
|
|
27
|
-
* Returns `null` if channel is not live or has not run an ad.
|
|
28
|
-
*/
|
|
29
|
-
get lastAdDate(): Date | null;
|
|
30
|
-
/**
|
|
31
|
-
* The amount of pre-roll free time remaining for the channel in seconds.
|
|
32
|
-
*/
|
|
33
|
-
get prerollFreeTime(): number;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=HelixAdSchedule.d.ts.map
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a broadcaster's ad schedule.
|
|
5
|
-
*/
|
|
6
|
-
let HelixAdSchedule = class HelixAdSchedule extends DataObject {
|
|
7
|
-
/**
|
|
8
|
-
* The number of snoozes available for the broadcaster.
|
|
9
|
-
*/
|
|
10
|
-
get snoozeCount() {
|
|
11
|
-
return this[rawDataSymbol].snooze_count;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* The date and time when the broadcaster will gain an additional snooze.
|
|
15
|
-
* Returns `null` if all snoozes are already available.
|
|
16
|
-
*/
|
|
17
|
-
get snoozeRefreshDate() {
|
|
18
|
-
return this[rawDataSymbol].snooze_refresh_at ? new Date(this[rawDataSymbol].snooze_refresh_at * 1000) : null;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The date and time of the broadcaster's next scheduled ad.
|
|
22
|
-
* Returns `null` if channel is not live or has no ad scheduled.
|
|
23
|
-
*/
|
|
24
|
-
get nextAdDate() {
|
|
25
|
-
return this[rawDataSymbol].next_ad_at ? new Date(this[rawDataSymbol].next_ad_at * 1000) : null;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* The length in seconds of the scheduled upcoming ad break.
|
|
29
|
-
*/
|
|
30
|
-
get duration() {
|
|
31
|
-
return this[rawDataSymbol].duration;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* The date and time of the broadcaster's last ad-break.
|
|
35
|
-
* Returns `null` if channel is not live or has not run an ad.
|
|
36
|
-
*/
|
|
37
|
-
get lastAdDate() {
|
|
38
|
-
return this[rawDataSymbol].last_ad_at ? new Date(this[rawDataSymbol].last_ad_at * 1000) : null;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* The amount of pre-roll free time remaining for the channel in seconds.
|
|
42
|
-
*/
|
|
43
|
-
get prerollFreeTime() {
|
|
44
|
-
return this[rawDataSymbol].preroll_free_time;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
HelixAdSchedule = __decorate([
|
|
48
|
-
rtfm('api', 'HelixAdSchedule')
|
|
49
|
-
], HelixAdSchedule);
|
|
50
|
-
export { HelixAdSchedule };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixChannelData } from '../../interfaces/endpoints/channel.external.js';
|
|
3
|
-
import type { HelixGame } from '../game/HelixGame.js';
|
|
4
|
-
import type { HelixUser } from '../user/HelixUser.js';
|
|
5
|
-
/**
|
|
6
|
-
* A Twitch channel.
|
|
7
|
-
*/
|
|
8
|
-
export declare class HelixChannel extends DataObject<HelixChannelData> {
|
|
9
|
-
/**
|
|
10
|
-
* The ID of the channel.
|
|
11
|
-
*/
|
|
12
|
-
get id(): string;
|
|
13
|
-
/**
|
|
14
|
-
* The name of the channel.
|
|
15
|
-
*/
|
|
16
|
-
get name(): string;
|
|
17
|
-
/**
|
|
18
|
-
* The display name of the channel.
|
|
19
|
-
*/
|
|
20
|
-
get displayName(): string;
|
|
21
|
-
/**
|
|
22
|
-
* Gets more information about the broadcaster of the channel.
|
|
23
|
-
*/
|
|
24
|
-
getBroadcaster(): Promise<HelixUser>;
|
|
25
|
-
/**
|
|
26
|
-
* The language of the channel.
|
|
27
|
-
*/
|
|
28
|
-
get language(): string;
|
|
29
|
-
/**
|
|
30
|
-
* The ID of the game currently played on the channel.
|
|
31
|
-
*/
|
|
32
|
-
get gameId(): string;
|
|
33
|
-
/**
|
|
34
|
-
* The name of the game currently played on the channel.
|
|
35
|
-
*/
|
|
36
|
-
get gameName(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Gets information about the game that is being played on the stream.
|
|
39
|
-
*/
|
|
40
|
-
getGame(): Promise<HelixGame | null>;
|
|
41
|
-
/**
|
|
42
|
-
* The title of the channel.
|
|
43
|
-
*/
|
|
44
|
-
get title(): string;
|
|
45
|
-
/**
|
|
46
|
-
* The stream delay of the channel, in seconds.
|
|
47
|
-
*
|
|
48
|
-
* If you didn't request this with broadcaster access, this is always zero.
|
|
49
|
-
*/
|
|
50
|
-
get delay(): number;
|
|
51
|
-
/**
|
|
52
|
-
* The tags applied to the channel.
|
|
53
|
-
*/
|
|
54
|
-
get tags(): string[];
|
|
55
|
-
/**
|
|
56
|
-
* The content classification labels applied to the channel.
|
|
57
|
-
*/
|
|
58
|
-
get contentClassificationLabels(): string[];
|
|
59
|
-
/**
|
|
60
|
-
* Whether the channel currently displays branded content (as specified by the broadcaster).
|
|
61
|
-
*/
|
|
62
|
-
get isBrandedContent(): boolean;
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=HelixChannel.d.ts.map
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Enumerable } from '@d-fischer/shared-utils';
|
|
3
|
-
import { checkRelationAssertion, DataObject, rawDataSymbol, rtfm } from '@twurple/common';
|
|
4
|
-
/**
|
|
5
|
-
* A Twitch channel.
|
|
6
|
-
*/
|
|
7
|
-
let HelixChannel = class HelixChannel extends DataObject {
|
|
8
|
-
/** @internal */ _client;
|
|
9
|
-
/** @internal */
|
|
10
|
-
constructor(data, client) {
|
|
11
|
-
super(data);
|
|
12
|
-
this._client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The ID of the channel.
|
|
16
|
-
*/
|
|
17
|
-
get id() {
|
|
18
|
-
return this[rawDataSymbol].broadcaster_id;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The name of the channel.
|
|
22
|
-
*/
|
|
23
|
-
get name() {
|
|
24
|
-
return this[rawDataSymbol].broadcaster_login;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The display name of the channel.
|
|
28
|
-
*/
|
|
29
|
-
get displayName() {
|
|
30
|
-
return this[rawDataSymbol].broadcaster_name;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Gets more information about the broadcaster of the channel.
|
|
34
|
-
*/
|
|
35
|
-
async getBroadcaster() {
|
|
36
|
-
return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].broadcaster_id));
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The language of the channel.
|
|
40
|
-
*/
|
|
41
|
-
get language() {
|
|
42
|
-
return this[rawDataSymbol].broadcaster_language;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The ID of the game currently played on the channel.
|
|
46
|
-
*/
|
|
47
|
-
get gameId() {
|
|
48
|
-
return this[rawDataSymbol].game_id;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* The name of the game currently played on the channel.
|
|
52
|
-
*/
|
|
53
|
-
get gameName() {
|
|
54
|
-
return this[rawDataSymbol].game_name;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Gets information about the game that is being played on the stream.
|
|
58
|
-
*/
|
|
59
|
-
async getGame() {
|
|
60
|
-
return this[rawDataSymbol].game_id
|
|
61
|
-
? checkRelationAssertion(await this._client.games.getGameById(this[rawDataSymbol].game_id))
|
|
62
|
-
: null;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* The title of the channel.
|
|
66
|
-
*/
|
|
67
|
-
get title() {
|
|
68
|
-
return this[rawDataSymbol].title;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* The stream delay of the channel, in seconds.
|
|
72
|
-
*
|
|
73
|
-
* If you didn't request this with broadcaster access, this is always zero.
|
|
74
|
-
*/
|
|
75
|
-
get delay() {
|
|
76
|
-
return this[rawDataSymbol].delay;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* The tags applied to the channel.
|
|
80
|
-
*/
|
|
81
|
-
get tags() {
|
|
82
|
-
return this[rawDataSymbol].tags;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* The content classification labels applied to the channel.
|
|
86
|
-
*/
|
|
87
|
-
get contentClassificationLabels() {
|
|
88
|
-
return this[rawDataSymbol].content_classification_labels;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Whether the channel currently displays branded content (as specified by the broadcaster).
|
|
92
|
-
*/
|
|
93
|
-
get isBrandedContent() {
|
|
94
|
-
return this[rawDataSymbol].is_branded_content;
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
__decorate([
|
|
98
|
-
Enumerable(false)
|
|
99
|
-
], HelixChannel.prototype, "_client", void 0);
|
|
100
|
-
HelixChannel = __decorate([
|
|
101
|
-
rtfm('api', 'HelixChannel', 'id')
|
|
102
|
-
], HelixChannel);
|
|
103
|
-
export { HelixChannel };
|