@openclaw/twitch 2026.7.1 → 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,12 +0,0 @@
|
|
|
1
|
-
import { type HelixSubscription } from '../../endpoints/subscriptions/HelixSubscription.js';
|
|
2
|
-
import { type HelixPaginatedResultWithTotal } from '../../utils/pagination/HelixPaginatedResult.js';
|
|
3
|
-
/**
|
|
4
|
-
* The result of a subscription query, including the subscription data, cursor, total count and sub points.
|
|
5
|
-
*/
|
|
6
|
-
export interface HelixPaginatedSubscriptionsResult extends HelixPaginatedResultWithTotal<HelixSubscription> {
|
|
7
|
-
/**
|
|
8
|
-
* The number of sub points the broadcaster currently has.
|
|
9
|
-
*/
|
|
10
|
-
points: number;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=subscription.input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type HelixUserRelationData } from './generic.external.js';
|
|
2
|
-
/** @private */
|
|
3
|
-
export interface HelixTeamData {
|
|
4
|
-
id: string;
|
|
5
|
-
team_name: string;
|
|
6
|
-
team_display_name: string;
|
|
7
|
-
background_image_url: string | null;
|
|
8
|
-
banner: string | null;
|
|
9
|
-
created_at: string;
|
|
10
|
-
updated_at: string;
|
|
11
|
-
info: string;
|
|
12
|
-
thumbnail_url: string;
|
|
13
|
-
}
|
|
14
|
-
/** @private */
|
|
15
|
-
export interface HelixTeamWithUsersData extends HelixTeamData {
|
|
16
|
-
users: HelixUserRelationData[];
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=team.external.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type HelixUserType } from '@twurple/common';
|
|
2
|
-
/** @private */
|
|
3
|
-
export interface HelixFollowData {
|
|
4
|
-
from_id: string;
|
|
5
|
-
from_login: string;
|
|
6
|
-
from_name: string;
|
|
7
|
-
to_id: string;
|
|
8
|
-
to_login: string;
|
|
9
|
-
to_name: string;
|
|
10
|
-
followed_at: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The type of a broadcaster.
|
|
14
|
-
*/
|
|
15
|
-
export type HelixBroadcasterType = 'partner' | 'affiliate' | '';
|
|
16
|
-
/** @private */
|
|
17
|
-
export interface HelixUserData {
|
|
18
|
-
id: string;
|
|
19
|
-
login: string;
|
|
20
|
-
display_name: string;
|
|
21
|
-
description: string;
|
|
22
|
-
type: HelixUserType;
|
|
23
|
-
broadcaster_type: HelixBroadcasterType;
|
|
24
|
-
profile_image_url: string;
|
|
25
|
-
offline_image_url: string;
|
|
26
|
-
view_count: number;
|
|
27
|
-
created_at: string;
|
|
28
|
-
}
|
|
29
|
-
/** @private */
|
|
30
|
-
export interface HelixPrivilegedUserData extends HelixUserData {
|
|
31
|
-
email?: string;
|
|
32
|
-
}
|
|
33
|
-
/** @private */
|
|
34
|
-
export interface HelixUserBlockData {
|
|
35
|
-
user_id: string;
|
|
36
|
-
user_login: string;
|
|
37
|
-
display_name: string;
|
|
38
|
-
}
|
|
39
|
-
/** @private */
|
|
40
|
-
export type UserLookupType = 'id' | 'login';
|
|
41
|
-
//# sourceMappingURL=user.external.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { extractUserId } from '@twurple/common';
|
|
2
|
-
/** @internal */
|
|
3
|
-
export function createUserBlockCreateQuery(target, additionalInfo) {
|
|
4
|
-
return {
|
|
5
|
-
target_user_id: extractUserId(target),
|
|
6
|
-
source_context: additionalInfo.sourceContext,
|
|
7
|
-
reason: additionalInfo.reason,
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
/** @internal */
|
|
11
|
-
export function createUserBlockDeleteQuery(target) {
|
|
12
|
-
return {
|
|
13
|
-
target_user_id: extractUserId(target),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User data to update using {@link HelixUserApi#updateAuthenticatedUser}}.
|
|
3
|
-
*/
|
|
4
|
-
export interface HelixUserUpdate {
|
|
5
|
-
description?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Additional info for a block to be created.
|
|
9
|
-
*/
|
|
10
|
-
export interface HelixUserBlockAdditionalInfo {
|
|
11
|
-
/**
|
|
12
|
-
* The source context for blocking the user.
|
|
13
|
-
*/
|
|
14
|
-
sourceContext?: 'chat' | 'whisper';
|
|
15
|
-
/**
|
|
16
|
-
* The reason for blocking the user.
|
|
17
|
-
*/
|
|
18
|
-
reason?: 'spam' | 'harassment' | 'other';
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=user.input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** @private */
|
|
2
|
-
export interface HelixBaseExtensionData {
|
|
3
|
-
id: string;
|
|
4
|
-
version: string;
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The possible extension slot types.
|
|
9
|
-
*/
|
|
10
|
-
export type HelixExtensionSlotType = 'panel' | 'overlay' | 'component';
|
|
11
|
-
/** @private */
|
|
12
|
-
export interface HelixInstalledExtensionData extends HelixBaseExtensionData {
|
|
13
|
-
active: true;
|
|
14
|
-
}
|
|
15
|
-
/** @private */
|
|
16
|
-
export interface HelixEmptySlotData {
|
|
17
|
-
active: false;
|
|
18
|
-
}
|
|
19
|
-
/** @private */
|
|
20
|
-
export type HelixExtensionSlotData = HelixInstalledExtensionData | HelixEmptySlotData;
|
|
21
|
-
/** @private */
|
|
22
|
-
export interface HelixInstalledExtensionListData {
|
|
23
|
-
panel: Record<'1' | '2' | '3', HelixExtensionSlotData>;
|
|
24
|
-
overlay: Record<'1', HelixExtensionSlotData>;
|
|
25
|
-
component: Record<'1' | '2', HelixExtensionSlotData>;
|
|
26
|
-
}
|
|
27
|
-
/** @private */
|
|
28
|
-
export type HelixExtensionType = HelixExtensionSlotType | 'mobile';
|
|
29
|
-
/** @private */
|
|
30
|
-
export interface HelixUserExtensionData extends HelixBaseExtensionData {
|
|
31
|
-
can_activate: boolean;
|
|
32
|
-
type: HelixExtensionType[];
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=userExtension.external.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An inactive extensions slot.
|
|
3
|
-
*/
|
|
4
|
-
export interface HelixUserExtensionUpdatePayloadInactiveSlot {
|
|
5
|
-
/**
|
|
6
|
-
* A flag indicating that the slot is inactive.
|
|
7
|
-
*/
|
|
8
|
-
active: false;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* An active extensions slot.
|
|
12
|
-
*/
|
|
13
|
-
export interface HelixUserExtensionUpdatePayloadActiveSlot {
|
|
14
|
-
/**
|
|
15
|
-
* A flag indicating that the slot is active.
|
|
16
|
-
*/
|
|
17
|
-
active: true;
|
|
18
|
-
/**
|
|
19
|
-
* The ID of the extension.
|
|
20
|
-
*/
|
|
21
|
-
id: string;
|
|
22
|
-
/**
|
|
23
|
-
* The version of the extension.
|
|
24
|
-
*/
|
|
25
|
-
version?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* An extension slot.
|
|
29
|
-
*/
|
|
30
|
-
export type HelixUserExtensionUpdatePayloadSlot = HelixUserExtensionUpdatePayloadInactiveSlot | HelixUserExtensionUpdatePayloadActiveSlot;
|
|
31
|
-
/**
|
|
32
|
-
* The whole payload of an user extension update.
|
|
33
|
-
*/
|
|
34
|
-
export interface HelixUserExtensionUpdatePayload {
|
|
35
|
-
/**
|
|
36
|
-
* Panel slots to update.
|
|
37
|
-
*/
|
|
38
|
-
panel?: Partial<Record<'1' | '2' | '3', HelixUserExtensionUpdatePayloadSlot>>;
|
|
39
|
-
/**
|
|
40
|
-
* Overlay slots to update.
|
|
41
|
-
*/
|
|
42
|
-
overlay?: Partial<Record<'1', HelixUserExtensionUpdatePayloadSlot>>;
|
|
43
|
-
/**
|
|
44
|
-
* Component slots to update.
|
|
45
|
-
*/
|
|
46
|
-
component?: Partial<Record<'1' | '2', HelixUserExtensionUpdatePayloadSlot>>;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=userExtension.input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export type HelixVideoViewableStatus = 'public' | 'private';
|
|
2
|
-
export type HelixVideoType = 'upload' | 'archive' | 'highlight';
|
|
3
|
-
/**
|
|
4
|
-
* Data about a muted segment in a video.
|
|
5
|
-
*/
|
|
6
|
-
export interface HelixVideoMutedSegmentData {
|
|
7
|
-
/**
|
|
8
|
-
* The start of the muted segment, in seconds from the start.
|
|
9
|
-
*/
|
|
10
|
-
offset: number;
|
|
11
|
-
/**
|
|
12
|
-
* The duration of the muted segment, in seconds.
|
|
13
|
-
*/
|
|
14
|
-
duration: number;
|
|
15
|
-
}
|
|
16
|
-
/** @private */
|
|
17
|
-
export interface HelixVideoData {
|
|
18
|
-
id: string;
|
|
19
|
-
user_id: string;
|
|
20
|
-
user_login: string;
|
|
21
|
-
user_name: string;
|
|
22
|
-
title: string;
|
|
23
|
-
description: string;
|
|
24
|
-
created_at: string;
|
|
25
|
-
published_at: string;
|
|
26
|
-
url: string;
|
|
27
|
-
thumbnail_url: string;
|
|
28
|
-
viewable: HelixVideoViewableStatus;
|
|
29
|
-
view_count: number;
|
|
30
|
-
language: string;
|
|
31
|
-
type: HelixVideoType;
|
|
32
|
-
duration: string;
|
|
33
|
-
stream_id: string | null;
|
|
34
|
-
muted_segments: HelixVideoMutedSegmentData[] | null;
|
|
35
|
-
}
|
|
36
|
-
export type HelixVideoFilterPeriod = 'all' | 'day' | 'week' | 'month';
|
|
37
|
-
export type HelixVideoSort = 'time' | 'trending' | 'views';
|
|
38
|
-
//# sourceMappingURL=video.external.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type HelixPagination } from '../../utils/pagination/HelixPagination.js';
|
|
2
|
-
import { type HelixVideoFilterPeriod, type HelixVideoSort, type HelixVideoType } from './video.external.js';
|
|
3
|
-
/**
|
|
4
|
-
* Filters for the videos request.
|
|
5
|
-
*/
|
|
6
|
-
export interface HelixVideoFilter {
|
|
7
|
-
/**
|
|
8
|
-
* The language of the videos.
|
|
9
|
-
*/
|
|
10
|
-
language?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The period of time when the videos were created.
|
|
13
|
-
*/
|
|
14
|
-
period?: HelixVideoFilterPeriod;
|
|
15
|
-
/**
|
|
16
|
-
* The value to order the videos by.
|
|
17
|
-
*/
|
|
18
|
-
orderBy?: HelixVideoSort;
|
|
19
|
-
/**
|
|
20
|
-
* The type of the videos.
|
|
21
|
-
*/
|
|
22
|
-
type?: HelixVideoType | 'all';
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
export interface HelixPaginatedVideoFilter extends HelixVideoFilter, HelixPagination {
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=video.input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import type { HelixUser } from '../endpoints/user/HelixUser.js';
|
|
3
|
-
import { type HelixUserRelationData } from '../interfaces/endpoints/generic.external.js';
|
|
4
|
-
/**
|
|
5
|
-
* A relation of anything with a user.
|
|
6
|
-
*/
|
|
7
|
-
export declare class HelixUserRelation extends DataObject<HelixUserRelationData> {
|
|
8
|
-
/**
|
|
9
|
-
* The ID of the user.
|
|
10
|
-
*/
|
|
11
|
-
get id(): string;
|
|
12
|
-
/**
|
|
13
|
-
* The name of the user.
|
|
14
|
-
*/
|
|
15
|
-
get name(): string;
|
|
16
|
-
/**
|
|
17
|
-
* The display name of the user.
|
|
18
|
-
*/
|
|
19
|
-
get displayName(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Gets additional information about the user.
|
|
22
|
-
*/
|
|
23
|
-
getUser(): Promise<HelixUser>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=HelixUserRelation.d.ts.map
|
|
@@ -1,45 +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 relation of anything with a user.
|
|
6
|
-
*/
|
|
7
|
-
let HelixUserRelation = class HelixUserRelation 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.
|
|
16
|
-
*/
|
|
17
|
-
get id() {
|
|
18
|
-
return this[rawDataSymbol].user_id;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The name of the user.
|
|
22
|
-
*/
|
|
23
|
-
get name() {
|
|
24
|
-
return this[rawDataSymbol].user_login;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The display name of the user.
|
|
28
|
-
*/
|
|
29
|
-
get displayName() {
|
|
30
|
-
return this[rawDataSymbol].user_name;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Gets additional information about the user.
|
|
34
|
-
*/
|
|
35
|
-
async getUser() {
|
|
36
|
-
return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].user_id));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
__decorate([
|
|
40
|
-
Enumerable(false)
|
|
41
|
-
], HelixUserRelation.prototype, "_client", void 0);
|
|
42
|
-
HelixUserRelation = __decorate([
|
|
43
|
-
rtfm('api', 'HelixUserRelation', 'id')
|
|
44
|
-
], HelixUserRelation);
|
|
45
|
-
export { HelixUserRelation };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type TwitchApiCallOptions } from '@twurple/api-call';
|
|
2
|
-
/**
|
|
3
|
-
* Reporting details for an API request.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ApiReportedRequest {
|
|
6
|
-
private readonly _options;
|
|
7
|
-
private readonly _httpStatus;
|
|
8
|
-
private readonly _resolvedUserId;
|
|
9
|
-
/**
|
|
10
|
-
* The options used to call the API.
|
|
11
|
-
*/
|
|
12
|
-
get options(): TwitchApiCallOptions;
|
|
13
|
-
/**
|
|
14
|
-
* The HTTP status code returned by Twitch for the request.
|
|
15
|
-
*/
|
|
16
|
-
get httpStatus(): number;
|
|
17
|
-
/**
|
|
18
|
-
* The ID of the user that was used for authentication, or `null` if an app access token was used.
|
|
19
|
-
*/
|
|
20
|
-
get resolvedUserId(): string | null;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=ApiReportedRequest.d.ts.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reporting details for an API request.
|
|
3
|
-
*/
|
|
4
|
-
export class ApiReportedRequest {
|
|
5
|
-
_options;
|
|
6
|
-
_httpStatus;
|
|
7
|
-
_resolvedUserId;
|
|
8
|
-
/** @internal */
|
|
9
|
-
constructor(_options, _httpStatus, _resolvedUserId) {
|
|
10
|
-
this._options = _options;
|
|
11
|
-
this._httpStatus = _httpStatus;
|
|
12
|
-
this._resolvedUserId = _resolvedUserId;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The options used to call the API.
|
|
16
|
-
*/
|
|
17
|
-
get options() {
|
|
18
|
-
return this._options;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The HTTP status code returned by Twitch for the request.
|
|
22
|
-
*/
|
|
23
|
-
get httpStatus() {
|
|
24
|
-
return this._httpStatus;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The ID of the user that was used for authentication, or `null` if an app access token was used.
|
|
28
|
-
*/
|
|
29
|
-
get resolvedUserId() {
|
|
30
|
-
return this._resolvedUserId;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ResponseBasedRateLimiter } from '@d-fischer/rate-limiter';
|
|
2
|
-
import { callTwitchApiRaw } from '@twurple/api-call';
|
|
3
|
-
/** @internal */
|
|
4
|
-
export class HelixRateLimiter extends ResponseBasedRateLimiter {
|
|
5
|
-
async doRequest({ options, clientId, accessToken, authorizationType, fetchOptions, }) {
|
|
6
|
-
return await callTwitchApiRaw(options, clientId, accessToken, authorizationType, fetchOptions);
|
|
7
|
-
}
|
|
8
|
-
needsToRetryAfter(res) {
|
|
9
|
-
if (res.status === 429 &&
|
|
10
|
-
(!res.headers.has('ratelimit-remaining') || Number(res.headers.get('ratelimit-remaining')) === 0)) {
|
|
11
|
-
return +res.headers.get('ratelimit-reset') * 1000 - Date.now();
|
|
12
|
-
}
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
getParametersFromResponse(res) {
|
|
16
|
-
const { headers } = res;
|
|
17
|
-
return {
|
|
18
|
-
limit: +headers.get('ratelimit-limit'),
|
|
19
|
-
remaining: +headers.get('ratelimit-remaining'),
|
|
20
|
-
resetsAt: +headers.get('ratelimit-reset') * 1000,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Enumerable, indexBy, promiseWithResolvers } from '@d-fischer/shared-utils';
|
|
3
|
-
/** @internal */
|
|
4
|
-
export class HelixRequestBatcher {
|
|
5
|
-
_callOptions;
|
|
6
|
-
_queryParamName;
|
|
7
|
-
_matchKey;
|
|
8
|
-
_mapper;
|
|
9
|
-
_limitPerRequest;
|
|
10
|
-
_client;
|
|
11
|
-
_requestedIds = [];
|
|
12
|
-
_requestResolversById = new Map();
|
|
13
|
-
_delay;
|
|
14
|
-
_waitTimer = null;
|
|
15
|
-
constructor(_callOptions, _queryParamName, _matchKey, client, _mapper, _limitPerRequest = 100) {
|
|
16
|
-
this._callOptions = _callOptions;
|
|
17
|
-
this._queryParamName = _queryParamName;
|
|
18
|
-
this._matchKey = _matchKey;
|
|
19
|
-
this._mapper = _mapper;
|
|
20
|
-
this._limitPerRequest = _limitPerRequest;
|
|
21
|
-
this._client = client;
|
|
22
|
-
this._delay = client._batchDelay;
|
|
23
|
-
}
|
|
24
|
-
async request(id) {
|
|
25
|
-
const { promise, resolve, reject } = promiseWithResolvers();
|
|
26
|
-
if (!this._requestedIds.includes(id)) {
|
|
27
|
-
this._requestedIds.push(id);
|
|
28
|
-
}
|
|
29
|
-
if (this._requestResolversById.has(id)) {
|
|
30
|
-
this._requestResolversById.get(id).push({ resolve, reject });
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
this._requestResolversById.set(id, [{ resolve, reject }]);
|
|
34
|
-
}
|
|
35
|
-
if (this._waitTimer) {
|
|
36
|
-
clearTimeout(this._waitTimer);
|
|
37
|
-
this._waitTimer = null;
|
|
38
|
-
}
|
|
39
|
-
if (this._requestedIds.length >= this._limitPerRequest) {
|
|
40
|
-
void this._handleBatch(this._requestedIds.splice(0, this._limitPerRequest));
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
this._waitTimer = setTimeout(() => {
|
|
44
|
-
void this._handleBatch(this._requestedIds.splice(0, this._limitPerRequest));
|
|
45
|
-
}, this._delay);
|
|
46
|
-
}
|
|
47
|
-
return await promise;
|
|
48
|
-
}
|
|
49
|
-
async _handleBatch(ids) {
|
|
50
|
-
try {
|
|
51
|
-
const { data } = await this._doRequest(ids);
|
|
52
|
-
const dataById = indexBy(data, this._matchKey);
|
|
53
|
-
for (const id of ids) {
|
|
54
|
-
for (const resolver of this._requestResolversById.get(id) ?? []) {
|
|
55
|
-
if (Object.prototype.hasOwnProperty.call(dataById, id)) {
|
|
56
|
-
resolver.resolve(this._mapper(dataById[id]));
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
resolver.resolve(null);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
this._requestResolversById.delete(id);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e) {
|
|
66
|
-
await Promise.all(ids.map(async (id) => {
|
|
67
|
-
try {
|
|
68
|
-
const result = await this._doRequest([id]);
|
|
69
|
-
for (const resolver of this._requestResolversById.get(id) ?? []) {
|
|
70
|
-
resolver.resolve(result.data.length ? this._mapper(result.data[0]) : null);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
catch (e_) {
|
|
74
|
-
for (const resolver of this._requestResolversById.get(id) ?? []) {
|
|
75
|
-
resolver.reject(e_);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
this._requestResolversById.delete(id);
|
|
79
|
-
}));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
async _doRequest(ids) {
|
|
83
|
-
return await this._client.callApi({
|
|
84
|
-
type: 'helix',
|
|
85
|
-
...this._callOptions,
|
|
86
|
-
query: {
|
|
87
|
-
...this._callOptions.query,
|
|
88
|
-
[this._queryParamName]: ids,
|
|
89
|
-
},
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
__decorate([
|
|
94
|
-
Enumerable(false)
|
|
95
|
-
], HelixRequestBatcher.prototype, "_client", void 0);
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a request to the new Twitch API (Helix) that utilizes a cursor to paginate through its results.
|
|
3
|
-
*
|
|
4
|
-
* Aside from the methods described below, you can also utilize the async iterator using `for await .. of`:
|
|
5
|
-
*
|
|
6
|
-
* ```ts
|
|
7
|
-
* const result = client.videos.getVideosByUserPaginated('125328655');
|
|
8
|
-
* for await (const video of result) {
|
|
9
|
-
* console.log(video.title);
|
|
10
|
-
* }
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare class HelixPaginatedRequest<D, T> {
|
|
14
|
-
private readonly _callOptions;
|
|
15
|
-
private readonly _mapper;
|
|
16
|
-
private readonly _limitPerPage;
|
|
17
|
-
/**
|
|
18
|
-
* The last fetched page of data associated to the requested resource.
|
|
19
|
-
*
|
|
20
|
-
* Only works with {@link HelixPaginatedRequest#getNext} and not with any other methods of data fetching.
|
|
21
|
-
*/
|
|
22
|
-
get current(): D[] | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Gets the next available page of data associated to the requested resource, or an empty array if there are no more available pages.
|
|
25
|
-
*/
|
|
26
|
-
getNext(): Promise<T[]>;
|
|
27
|
-
/**
|
|
28
|
-
* Gets all data associated to the requested resource.
|
|
29
|
-
*
|
|
30
|
-
* Be aware that this makes multiple calls to the Twitch API. Due to this, you might be more suspectible to rate limits.
|
|
31
|
-
*
|
|
32
|
-
* Also be aware that this resets the internal cursor, so avoid using this and {@link HelixPaginatedRequest#getNext}} together.
|
|
33
|
-
*/
|
|
34
|
-
getAll(): Promise<T[]>;
|
|
35
|
-
/**
|
|
36
|
-
* Gets the current cursor.
|
|
37
|
-
*
|
|
38
|
-
* Only useful if you want to make manual requests to the API.
|
|
39
|
-
*/
|
|
40
|
-
get currentCursor(): string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Resets the internal cursor.
|
|
43
|
-
*
|
|
44
|
-
* This will make {@link HelixPaginatedRequest#getNext}} start from the first page again.
|
|
45
|
-
*/
|
|
46
|
-
reset(): void;
|
|
47
|
-
[Symbol.asyncIterator](): AsyncGenerator<T, void, undefined>;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=HelixPaginatedRequest.d.ts.map
|