@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,137 +0,0 @@
|
|
|
1
|
-
import { type UserIdResolvable, type UserNameResolvable } from '@twurple/common';
|
|
2
|
-
import { type HelixUserBlockData } from '../../interfaces/endpoints/user.external.js';
|
|
3
|
-
import { type HelixUserBlockAdditionalInfo, type HelixUserUpdate } from '../../interfaces/endpoints/user.input.js';
|
|
4
|
-
import { type HelixUserExtensionUpdatePayload } from '../../interfaces/endpoints/userExtension.input.js';
|
|
5
|
-
import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
|
|
6
|
-
import { type HelixPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
|
|
7
|
-
import { type HelixForwardPagination } from '../../utils/pagination/HelixPagination.js';
|
|
8
|
-
import { BaseApi } from '../BaseApi.js';
|
|
9
|
-
import { HelixInstalledExtensionList } from './extensions/HelixInstalledExtensionList.js';
|
|
10
|
-
import { HelixUserExtension } from './extensions/HelixUserExtension.js';
|
|
11
|
-
import { HelixPrivilegedUser } from './HelixPrivilegedUser.js';
|
|
12
|
-
import { HelixUser } from './HelixUser.js';
|
|
13
|
-
import { HelixUserBlock } from './HelixUserBlock.js';
|
|
14
|
-
/**
|
|
15
|
-
* The Helix API methods that deal with users.
|
|
16
|
-
*
|
|
17
|
-
* Can be accessed using `client.users` on an {@link ApiClient} instance.
|
|
18
|
-
*
|
|
19
|
-
* ## Example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const api = new ApiClient({ authProvider });
|
|
22
|
-
* const user = await api.users.getUserById('125328655');
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @meta category helix
|
|
26
|
-
* @meta categorizedTitle Users
|
|
27
|
-
*/
|
|
28
|
-
export declare class HelixUserApi extends BaseApi {
|
|
29
|
-
/**
|
|
30
|
-
* Gets the user data for the given list of user IDs.
|
|
31
|
-
*
|
|
32
|
-
* @param userIds The user IDs you want to look up.
|
|
33
|
-
*/
|
|
34
|
-
getUsersByIds(userIds: UserIdResolvable[]): Promise<HelixUser[]>;
|
|
35
|
-
/**
|
|
36
|
-
* Gets the user data for the given list of usernames.
|
|
37
|
-
*
|
|
38
|
-
* @param userNames The usernames you want to look up.
|
|
39
|
-
*/
|
|
40
|
-
getUsersByNames(userNames: UserNameResolvable[]): Promise<HelixUser[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Gets the user data for the given user ID.
|
|
43
|
-
*
|
|
44
|
-
* @param user The user ID you want to look up.
|
|
45
|
-
*/
|
|
46
|
-
getUserById(user: UserIdResolvable): Promise<HelixUser | null>;
|
|
47
|
-
/**
|
|
48
|
-
* Gets the user data for the given user ID, batching multiple calls into fewer requests as the API allows.
|
|
49
|
-
*
|
|
50
|
-
* @param user The user ID you want to look up.
|
|
51
|
-
*/
|
|
52
|
-
getUserByIdBatched(user: UserIdResolvable): Promise<HelixUser | null>;
|
|
53
|
-
/**
|
|
54
|
-
* Gets the user data for the given username.
|
|
55
|
-
*
|
|
56
|
-
* @param userName The username you want to look up.
|
|
57
|
-
*/
|
|
58
|
-
getUserByName(userName: UserNameResolvable): Promise<HelixUser | null>;
|
|
59
|
-
/**
|
|
60
|
-
* Gets the user data for the given username, batching multiple calls into fewer requests as the API allows.
|
|
61
|
-
*
|
|
62
|
-
* @param user The username you want to look up.
|
|
63
|
-
*/
|
|
64
|
-
getUserByNameBatched(user: UserNameResolvable): Promise<HelixUser | null>;
|
|
65
|
-
/**
|
|
66
|
-
* Gets the user data of the given authenticated user.
|
|
67
|
-
*
|
|
68
|
-
* @param user The user to get data for.
|
|
69
|
-
* @param withEmail Whether you need the user's email address.
|
|
70
|
-
*/
|
|
71
|
-
getAuthenticatedUser(user: UserIdResolvable, withEmail?: boolean): Promise<HelixPrivilegedUser>;
|
|
72
|
-
/**
|
|
73
|
-
* Updates the given authenticated user's data.
|
|
74
|
-
*
|
|
75
|
-
* @param user The user to update.
|
|
76
|
-
* @param data The data to update.
|
|
77
|
-
*/
|
|
78
|
-
updateAuthenticatedUser(user: UserIdResolvable, data: HelixUserUpdate): Promise<HelixPrivilegedUser>;
|
|
79
|
-
/**
|
|
80
|
-
* Gets a list of users blocked by the given user.
|
|
81
|
-
*
|
|
82
|
-
* @param user The user to get blocks for.
|
|
83
|
-
* @param pagination
|
|
84
|
-
*
|
|
85
|
-
* @expandParams
|
|
86
|
-
*/
|
|
87
|
-
getBlocks(user: UserIdResolvable, pagination?: HelixForwardPagination): Promise<HelixPaginatedResult<HelixUserBlock>>;
|
|
88
|
-
/**
|
|
89
|
-
* Creates a paginator for users blocked by the given user.
|
|
90
|
-
*
|
|
91
|
-
* @param user The user to get blocks for.
|
|
92
|
-
*/
|
|
93
|
-
getBlocksPaginated(user: UserIdResolvable): HelixPaginatedRequest<HelixUserBlockData, HelixUserBlock>;
|
|
94
|
-
/**
|
|
95
|
-
* Blocks the given user.
|
|
96
|
-
*
|
|
97
|
-
* @param broadcaster The user to add the block to.
|
|
98
|
-
* @param target The user to block.
|
|
99
|
-
* @param additionalInfo Additional info to give context to the block.
|
|
100
|
-
*
|
|
101
|
-
* @expandParams
|
|
102
|
-
*/
|
|
103
|
-
createBlock(broadcaster: UserIdResolvable, target: UserIdResolvable, additionalInfo?: HelixUserBlockAdditionalInfo): Promise<void>;
|
|
104
|
-
/**
|
|
105
|
-
* Unblocks the given user.
|
|
106
|
-
*
|
|
107
|
-
* @param broadcaster The user to remove the block from.
|
|
108
|
-
* @param target The user to unblock.
|
|
109
|
-
*/
|
|
110
|
-
deleteBlock(broadcaster: UserIdResolvable, target: UserIdResolvable): Promise<void>;
|
|
111
|
-
/**
|
|
112
|
-
* Gets a list of all extensions for the given authenticated user.
|
|
113
|
-
*
|
|
114
|
-
* @param broadcaster The broadcaster to get the list of extensions for.
|
|
115
|
-
* @param withInactive Whether to include inactive extensions.
|
|
116
|
-
*/
|
|
117
|
-
getExtensionsForAuthenticatedUser(broadcaster: UserIdResolvable, withInactive?: boolean): Promise<HelixUserExtension[]>;
|
|
118
|
-
/**
|
|
119
|
-
* Gets a list of all installed extensions for the given user.
|
|
120
|
-
*
|
|
121
|
-
* @param user The user to get the installed extensions for.
|
|
122
|
-
* @param withDev Whether to include extensions that are in development.
|
|
123
|
-
*/
|
|
124
|
-
getActiveExtensions(user: UserIdResolvable, withDev?: boolean): Promise<HelixInstalledExtensionList>;
|
|
125
|
-
/**
|
|
126
|
-
* Updates the installed extensions for the given authenticated user.
|
|
127
|
-
*
|
|
128
|
-
* @param broadcaster The user to update the installed extensions for.
|
|
129
|
-
* @param data The extension installation payload.
|
|
130
|
-
*
|
|
131
|
-
* The format is shown on the [Twitch documentation](https://dev.twitch.tv/docs/api/reference#update-user-extensions).
|
|
132
|
-
* Don't use the "data" wrapper though.
|
|
133
|
-
*/
|
|
134
|
-
updateActiveExtensionsForAuthenticatedUser(broadcaster: UserIdResolvable, data: HelixUserExtensionUpdatePayload): Promise<HelixInstalledExtensionList>;
|
|
135
|
-
private _getUsers;
|
|
136
|
-
}
|
|
137
|
-
//# sourceMappingURL=HelixUserApi.d.ts.map
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Enumerable, mapNullable } from '@d-fischer/shared-utils';
|
|
3
|
-
import { createBroadcasterQuery } from '@twurple/api-call';
|
|
4
|
-
import { extractUserId, extractUserName, HellFreezesOverError, rtfm, } from '@twurple/common';
|
|
5
|
-
import { createSingleKeyQuery } from '../../interfaces/endpoints/generic.external.js';
|
|
6
|
-
import { createUserBlockCreateQuery, createUserBlockDeleteQuery, } from '../../interfaces/endpoints/user.external.js';
|
|
7
|
-
import { HelixRequestBatcher } from '../../utils/HelixRequestBatcher.js';
|
|
8
|
-
import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
|
|
9
|
-
import { createPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
|
|
10
|
-
import { createPaginationQuery } from '../../utils/pagination/HelixPagination.js';
|
|
11
|
-
import { BaseApi } from '../BaseApi.js';
|
|
12
|
-
import { HelixInstalledExtensionList } from './extensions/HelixInstalledExtensionList.js';
|
|
13
|
-
import { HelixUserExtension } from './extensions/HelixUserExtension.js';
|
|
14
|
-
import { HelixPrivilegedUser } from './HelixPrivilegedUser.js';
|
|
15
|
-
import { HelixUser } from './HelixUser.js';
|
|
16
|
-
import { HelixUserBlock } from './HelixUserBlock.js';
|
|
17
|
-
/**
|
|
18
|
-
* The Helix API methods that deal with users.
|
|
19
|
-
*
|
|
20
|
-
* Can be accessed using `client.users` on an {@link ApiClient} instance.
|
|
21
|
-
*
|
|
22
|
-
* ## Example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const api = new ApiClient({ authProvider });
|
|
25
|
-
* const user = await api.users.getUserById('125328655');
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @meta category helix
|
|
29
|
-
* @meta categorizedTitle Users
|
|
30
|
-
*/
|
|
31
|
-
let HelixUserApi = class HelixUserApi extends BaseApi {
|
|
32
|
-
/** @internal */
|
|
33
|
-
_getUserByIdBatcher = new HelixRequestBatcher({
|
|
34
|
-
url: 'users',
|
|
35
|
-
}, 'id', 'id', this._client, (data) => new HelixUser(data, this._client));
|
|
36
|
-
/** @internal */
|
|
37
|
-
_getUserByNameBatcher = new HelixRequestBatcher({
|
|
38
|
-
url: 'users',
|
|
39
|
-
}, 'login', 'login', this._client, (data) => new HelixUser(data, this._client));
|
|
40
|
-
/**
|
|
41
|
-
* Gets the user data for the given list of user IDs.
|
|
42
|
-
*
|
|
43
|
-
* @param userIds The user IDs you want to look up.
|
|
44
|
-
*/
|
|
45
|
-
async getUsersByIds(userIds) {
|
|
46
|
-
return await this._getUsers('id', userIds.map(extractUserId));
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Gets the user data for the given list of usernames.
|
|
50
|
-
*
|
|
51
|
-
* @param userNames The usernames you want to look up.
|
|
52
|
-
*/
|
|
53
|
-
async getUsersByNames(userNames) {
|
|
54
|
-
return await this._getUsers('login', userNames.map(extractUserName));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Gets the user data for the given user ID.
|
|
58
|
-
*
|
|
59
|
-
* @param user The user ID you want to look up.
|
|
60
|
-
*/
|
|
61
|
-
async getUserById(user) {
|
|
62
|
-
const userId = extractUserId(user);
|
|
63
|
-
const result = await this._client.callApi({
|
|
64
|
-
type: 'helix',
|
|
65
|
-
url: 'users',
|
|
66
|
-
userId,
|
|
67
|
-
query: {
|
|
68
|
-
id: userId,
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
return mapNullable(result.data[0], data => new HelixUser(data, this._client));
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Gets the user data for the given user ID, batching multiple calls into fewer requests as the API allows.
|
|
75
|
-
*
|
|
76
|
-
* @param user The user ID you want to look up.
|
|
77
|
-
*/
|
|
78
|
-
async getUserByIdBatched(user) {
|
|
79
|
-
return await this._getUserByIdBatcher.request(extractUserId(user));
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Gets the user data for the given username.
|
|
83
|
-
*
|
|
84
|
-
* @param userName The username you want to look up.
|
|
85
|
-
*/
|
|
86
|
-
async getUserByName(userName) {
|
|
87
|
-
const users = await this._getUsers('login', [extractUserName(userName)]);
|
|
88
|
-
return users.length ? users[0] : null;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Gets the user data for the given username, batching multiple calls into fewer requests as the API allows.
|
|
92
|
-
*
|
|
93
|
-
* @param user The username you want to look up.
|
|
94
|
-
*/
|
|
95
|
-
async getUserByNameBatched(user) {
|
|
96
|
-
return await this._getUserByNameBatcher.request(extractUserName(user));
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Gets the user data of the given authenticated user.
|
|
100
|
-
*
|
|
101
|
-
* @param user The user to get data for.
|
|
102
|
-
* @param withEmail Whether you need the user's email address.
|
|
103
|
-
*/
|
|
104
|
-
async getAuthenticatedUser(user, withEmail = false) {
|
|
105
|
-
const result = await this._client.callApi({
|
|
106
|
-
type: 'helix',
|
|
107
|
-
url: 'users',
|
|
108
|
-
forceType: 'user',
|
|
109
|
-
userId: extractUserId(user),
|
|
110
|
-
scopes: withEmail ? ['user:read:email'] : undefined,
|
|
111
|
-
});
|
|
112
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
113
|
-
if (!result.data?.length) {
|
|
114
|
-
throw new HellFreezesOverError('Could not get authenticated user');
|
|
115
|
-
}
|
|
116
|
-
return new HelixPrivilegedUser(result.data[0], this._client);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Updates the given authenticated user's data.
|
|
120
|
-
*
|
|
121
|
-
* @param user The user to update.
|
|
122
|
-
* @param data The data to update.
|
|
123
|
-
*/
|
|
124
|
-
async updateAuthenticatedUser(user, data) {
|
|
125
|
-
const result = await this._client.callApi({
|
|
126
|
-
type: 'helix',
|
|
127
|
-
url: 'users',
|
|
128
|
-
method: 'PUT',
|
|
129
|
-
userId: extractUserId(user),
|
|
130
|
-
scopes: ['user:edit'],
|
|
131
|
-
query: {
|
|
132
|
-
description: data.description,
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
return new HelixPrivilegedUser(result.data[0], this._client);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Gets a list of users blocked by the given user.
|
|
139
|
-
*
|
|
140
|
-
* @param user The user to get blocks for.
|
|
141
|
-
* @param pagination
|
|
142
|
-
*
|
|
143
|
-
* @expandParams
|
|
144
|
-
*/
|
|
145
|
-
async getBlocks(user, pagination) {
|
|
146
|
-
const result = await this._client.callApi({
|
|
147
|
-
type: 'helix',
|
|
148
|
-
url: 'users/blocks',
|
|
149
|
-
userId: extractUserId(user),
|
|
150
|
-
scopes: ['user:read:blocked_users'],
|
|
151
|
-
query: {
|
|
152
|
-
...createBroadcasterQuery(user),
|
|
153
|
-
...createPaginationQuery(pagination),
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
return createPaginatedResult(result, HelixUserBlock, this._client);
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Creates a paginator for users blocked by the given user.
|
|
160
|
-
*
|
|
161
|
-
* @param user The user to get blocks for.
|
|
162
|
-
*/
|
|
163
|
-
getBlocksPaginated(user) {
|
|
164
|
-
return new HelixPaginatedRequest({
|
|
165
|
-
url: 'users/blocks',
|
|
166
|
-
userId: extractUserId(user),
|
|
167
|
-
scopes: ['user:read:blocked_users'],
|
|
168
|
-
query: createBroadcasterQuery(user),
|
|
169
|
-
}, this._client, data => new HelixUserBlock(data, this._client));
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Blocks the given user.
|
|
173
|
-
*
|
|
174
|
-
* @param broadcaster The user to add the block to.
|
|
175
|
-
* @param target The user to block.
|
|
176
|
-
* @param additionalInfo Additional info to give context to the block.
|
|
177
|
-
*
|
|
178
|
-
* @expandParams
|
|
179
|
-
*/
|
|
180
|
-
async createBlock(broadcaster, target, additionalInfo = {}) {
|
|
181
|
-
await this._client.callApi({
|
|
182
|
-
type: 'helix',
|
|
183
|
-
url: 'users/blocks',
|
|
184
|
-
method: 'PUT',
|
|
185
|
-
userId: extractUserId(broadcaster),
|
|
186
|
-
scopes: ['user:manage:blocked_users'],
|
|
187
|
-
query: createUserBlockCreateQuery(target, additionalInfo),
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Unblocks the given user.
|
|
192
|
-
*
|
|
193
|
-
* @param broadcaster The user to remove the block from.
|
|
194
|
-
* @param target The user to unblock.
|
|
195
|
-
*/
|
|
196
|
-
async deleteBlock(broadcaster, target) {
|
|
197
|
-
await this._client.callApi({
|
|
198
|
-
type: 'helix',
|
|
199
|
-
url: 'users/blocks',
|
|
200
|
-
method: 'DELETE',
|
|
201
|
-
userId: extractUserId(broadcaster),
|
|
202
|
-
scopes: ['user:manage:blocked_users'],
|
|
203
|
-
query: createUserBlockDeleteQuery(target),
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Gets a list of all extensions for the given authenticated user.
|
|
208
|
-
*
|
|
209
|
-
* @param broadcaster The broadcaster to get the list of extensions for.
|
|
210
|
-
* @param withInactive Whether to include inactive extensions.
|
|
211
|
-
*/
|
|
212
|
-
async getExtensionsForAuthenticatedUser(broadcaster, withInactive = false) {
|
|
213
|
-
const result = await this._client.callApi({
|
|
214
|
-
type: 'helix',
|
|
215
|
-
url: 'users/extensions/list',
|
|
216
|
-
userId: extractUserId(broadcaster),
|
|
217
|
-
scopes: withInactive ? ['channel:manage:extensions'] : ['user:read:broadcast', 'channel:manage:extensions'],
|
|
218
|
-
});
|
|
219
|
-
return result.data.map(data => new HelixUserExtension(data));
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Gets a list of all installed extensions for the given user.
|
|
223
|
-
*
|
|
224
|
-
* @param user The user to get the installed extensions for.
|
|
225
|
-
* @param withDev Whether to include extensions that are in development.
|
|
226
|
-
*/
|
|
227
|
-
async getActiveExtensions(user, withDev = false) {
|
|
228
|
-
const userId = extractUserId(user);
|
|
229
|
-
const result = await this._client.callApi({
|
|
230
|
-
type: 'helix',
|
|
231
|
-
url: 'users/extensions',
|
|
232
|
-
userId,
|
|
233
|
-
scopes: withDev ? ['user:read:broadcast', 'channel:manage:extensions'] : undefined,
|
|
234
|
-
query: createSingleKeyQuery('user_id', userId),
|
|
235
|
-
});
|
|
236
|
-
return new HelixInstalledExtensionList(result.data);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Updates the installed extensions for the given authenticated user.
|
|
240
|
-
*
|
|
241
|
-
* @param broadcaster The user to update the installed extensions for.
|
|
242
|
-
* @param data The extension installation payload.
|
|
243
|
-
*
|
|
244
|
-
* The format is shown on the [Twitch documentation](https://dev.twitch.tv/docs/api/reference#update-user-extensions).
|
|
245
|
-
* Don't use the "data" wrapper though.
|
|
246
|
-
*/
|
|
247
|
-
async updateActiveExtensionsForAuthenticatedUser(broadcaster, data) {
|
|
248
|
-
const result = await this._client.callApi({
|
|
249
|
-
type: 'helix',
|
|
250
|
-
url: 'users/extensions',
|
|
251
|
-
method: 'PUT',
|
|
252
|
-
userId: extractUserId(broadcaster),
|
|
253
|
-
scopes: ['channel:manage:extensions'],
|
|
254
|
-
jsonBody: { data },
|
|
255
|
-
});
|
|
256
|
-
return new HelixInstalledExtensionList(result.data);
|
|
257
|
-
}
|
|
258
|
-
async _getUsers(lookupType, param) {
|
|
259
|
-
if (param.length === 0) {
|
|
260
|
-
return [];
|
|
261
|
-
}
|
|
262
|
-
const query = { [lookupType]: param };
|
|
263
|
-
const result = await this._client.callApi({
|
|
264
|
-
type: 'helix',
|
|
265
|
-
url: 'users',
|
|
266
|
-
query,
|
|
267
|
-
});
|
|
268
|
-
return result.data.map(userData => new HelixUser(userData, this._client));
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
__decorate([
|
|
272
|
-
Enumerable(false)
|
|
273
|
-
], HelixUserApi.prototype, "_getUserByIdBatcher", void 0);
|
|
274
|
-
__decorate([
|
|
275
|
-
Enumerable(false)
|
|
276
|
-
], HelixUserApi.prototype, "_getUserByNameBatcher", void 0);
|
|
277
|
-
HelixUserApi = __decorate([
|
|
278
|
-
rtfm('api', 'HelixUserApi')
|
|
279
|
-
], HelixUserApi);
|
|
280
|
-
export { HelixUserApi };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixUserBlockData } from '../../interfaces/endpoints/user.external.js';
|
|
3
|
-
import type { HelixUser } from './HelixUser.js';
|
|
4
|
-
/**
|
|
5
|
-
* An user blocked by a previously given user.
|
|
6
|
-
*/
|
|
7
|
-
export declare class HelixUserBlock extends DataObject<HelixUserBlockData> {
|
|
8
|
-
/**
|
|
9
|
-
* The ID of the blocked user.
|
|
10
|
-
*/
|
|
11
|
-
get userId(): string;
|
|
12
|
-
/**
|
|
13
|
-
* The name of the blocked user.
|
|
14
|
-
*/
|
|
15
|
-
get userName(): string;
|
|
16
|
-
/**
|
|
17
|
-
* The display name of the blocked user.
|
|
18
|
-
*/
|
|
19
|
-
get userDisplayName(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Gets additional information about the blocked user.
|
|
22
|
-
*/
|
|
23
|
-
getUser(): Promise<HelixUser>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=HelixUserBlock.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
|
-
* An user blocked by a previously given user.
|
|
6
|
-
*/
|
|
7
|
-
let HelixUserBlock = class HelixUserBlock 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 blocked user.
|
|
16
|
-
*/
|
|
17
|
-
get userId() {
|
|
18
|
-
return this[rawDataSymbol].user_id;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The name of the blocked user.
|
|
22
|
-
*/
|
|
23
|
-
get userName() {
|
|
24
|
-
return this[rawDataSymbol].user_login;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The display name of the blocked user.
|
|
28
|
-
*/
|
|
29
|
-
get userDisplayName() {
|
|
30
|
-
return this[rawDataSymbol].display_name;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Gets additional information about the blocked 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
|
-
], HelixUserBlock.prototype, "_client", void 0);
|
|
42
|
-
HelixUserBlock = __decorate([
|
|
43
|
-
rtfm('api', 'HelixUserBlock', 'userId')
|
|
44
|
-
], HelixUserBlock);
|
|
45
|
-
export { HelixUserBlock };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixBaseExtensionData } from '../../../interfaces/endpoints/userExtension.external.js';
|
|
3
|
-
/** @protected */
|
|
4
|
-
export declare abstract class HelixBaseExtension extends DataObject<HelixBaseExtensionData> {
|
|
5
|
-
/**
|
|
6
|
-
* The ID of the extension.
|
|
7
|
-
*/
|
|
8
|
-
get id(): string;
|
|
9
|
-
/**
|
|
10
|
-
* The version of the extension.
|
|
11
|
-
*/
|
|
12
|
-
get version(): string;
|
|
13
|
-
/**
|
|
14
|
-
* The name of the extension.
|
|
15
|
-
*/
|
|
16
|
-
get name(): string;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=HelixBaseExtension.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DataObject, rawDataSymbol } from '@twurple/common';
|
|
2
|
-
/** @protected */
|
|
3
|
-
export class HelixBaseExtension extends DataObject {
|
|
4
|
-
/**
|
|
5
|
-
* The ID of the extension.
|
|
6
|
-
*/
|
|
7
|
-
get id() {
|
|
8
|
-
return this[rawDataSymbol].id;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The version of the extension.
|
|
12
|
-
*/
|
|
13
|
-
get version() {
|
|
14
|
-
return this[rawDataSymbol].version;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The name of the extension.
|
|
18
|
-
*/
|
|
19
|
-
get name() {
|
|
20
|
-
return this[rawDataSymbol].name;
|
|
21
|
-
}
|
|
22
|
-
}
|
package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtension.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type HelixExtensionSlotType } from '../../../interfaces/endpoints/userExtension.external.js';
|
|
2
|
-
import { HelixBaseExtension } from './HelixBaseExtension.js';
|
|
3
|
-
/**
|
|
4
|
-
* A Twitch Extension that is installed in a slot of a channel.
|
|
5
|
-
*
|
|
6
|
-
* @inheritDoc
|
|
7
|
-
*/
|
|
8
|
-
export declare class HelixInstalledExtension extends HelixBaseExtension {
|
|
9
|
-
private readonly _slotType;
|
|
10
|
-
private readonly _slotId;
|
|
11
|
-
/**
|
|
12
|
-
* The type of the slot the extension is in.
|
|
13
|
-
*/
|
|
14
|
-
get slotType(): HelixExtensionSlotType;
|
|
15
|
-
/**
|
|
16
|
-
* The ID of the slot the extension is in.
|
|
17
|
-
*/
|
|
18
|
-
get slotId(): string;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=HelixInstalledExtension.d.ts.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { rtfm } from '@twurple/common';
|
|
3
|
-
import { HelixBaseExtension } from './HelixBaseExtension.js';
|
|
4
|
-
/**
|
|
5
|
-
* A Twitch Extension that is installed in a slot of a channel.
|
|
6
|
-
*
|
|
7
|
-
* @inheritDoc
|
|
8
|
-
*/
|
|
9
|
-
let HelixInstalledExtension = class HelixInstalledExtension extends HelixBaseExtension {
|
|
10
|
-
_slotType;
|
|
11
|
-
_slotId;
|
|
12
|
-
/** @internal */
|
|
13
|
-
constructor(slotType, slotId, data) {
|
|
14
|
-
super(data);
|
|
15
|
-
this._slotType = slotType;
|
|
16
|
-
this._slotId = slotId;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* The type of the slot the extension is in.
|
|
20
|
-
*/
|
|
21
|
-
get slotType() {
|
|
22
|
-
return this._slotType;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The ID of the slot the extension is in.
|
|
26
|
-
*/
|
|
27
|
-
get slotId() {
|
|
28
|
-
return this._slotId;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
HelixInstalledExtension = __decorate([
|
|
32
|
-
rtfm('api', 'HelixInstalledExtension', 'id')
|
|
33
|
-
], HelixInstalledExtension);
|
|
34
|
-
export { HelixInstalledExtension };
|
package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixExtensionSlotType, type HelixInstalledExtensionListData } from '../../../interfaces/endpoints/userExtension.external.js';
|
|
3
|
-
import { HelixInstalledExtension } from './HelixInstalledExtension.js';
|
|
4
|
-
/**
|
|
5
|
-
* A list of extensions installed in a channel.
|
|
6
|
-
*/
|
|
7
|
-
export declare class HelixInstalledExtensionList extends DataObject<HelixInstalledExtensionListData> {
|
|
8
|
-
getExtensionAtSlot(type: 'panel', slotId: '1' | '2' | '3'): HelixInstalledExtension | null;
|
|
9
|
-
getExtensionAtSlot(type: 'overlay', slotId: '1'): HelixInstalledExtension | null;
|
|
10
|
-
getExtensionAtSlot(type: 'component', slotId: '1' | '2'): HelixInstalledExtension | null;
|
|
11
|
-
getExtensionsForSlotType(type: HelixExtensionSlotType): HelixInstalledExtension[];
|
|
12
|
-
getAllExtensions(): HelixInstalledExtension[];
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=HelixInstalledExtensionList.d.ts.map
|
package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
|
|
3
|
-
import { HelixInstalledExtension } from './HelixInstalledExtension.js';
|
|
4
|
-
/**
|
|
5
|
-
* A list of extensions installed in a channel.
|
|
6
|
-
*/
|
|
7
|
-
let HelixInstalledExtensionList = class HelixInstalledExtensionList extends DataObject {
|
|
8
|
-
getExtensionAtSlot(type, slotId) {
|
|
9
|
-
const data = this[rawDataSymbol][type][slotId];
|
|
10
|
-
return data.active ? new HelixInstalledExtension(type, slotId, data) : null;
|
|
11
|
-
}
|
|
12
|
-
getExtensionsForSlotType(type) {
|
|
13
|
-
return [...Object.entries(this[rawDataSymbol][type])]
|
|
14
|
-
.filter((entry) => entry[1].active)
|
|
15
|
-
.map(([slotId, slotData]) => new HelixInstalledExtension(type, slotId, slotData));
|
|
16
|
-
}
|
|
17
|
-
getAllExtensions() {
|
|
18
|
-
return [...Object.entries(this[rawDataSymbol])].flatMap(([type, typeEntries]) => [...Object.entries(typeEntries)]
|
|
19
|
-
.filter((entry) => entry[1].active)
|
|
20
|
-
.map(([slotId, slotData]) => new HelixInstalledExtension(type, slotId, slotData)));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
HelixInstalledExtensionList = __decorate([
|
|
24
|
-
rtfm('api', 'HelixInstalledExtensionList')
|
|
25
|
-
], HelixInstalledExtensionList);
|
|
26
|
-
export { HelixInstalledExtensionList };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type HelixExtensionType } from '../../../interfaces/endpoints/userExtension.external.js';
|
|
2
|
-
import { HelixBaseExtension } from './HelixBaseExtension.js';
|
|
3
|
-
/**
|
|
4
|
-
* A Twitch Extension that was installed by a user.
|
|
5
|
-
*
|
|
6
|
-
* @inheritDoc
|
|
7
|
-
*/
|
|
8
|
-
export declare class HelixUserExtension extends HelixBaseExtension {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the user has configured the extension to be able to activate it.
|
|
11
|
-
*/
|
|
12
|
-
get canActivate(): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The available types of the extension.
|
|
15
|
-
*/
|
|
16
|
-
get types(): HelixExtensionType[];
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=HelixUserExtension.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { rawDataSymbol, rtfm } from '@twurple/common';
|
|
3
|
-
import { HelixBaseExtension } from './HelixBaseExtension.js';
|
|
4
|
-
/**
|
|
5
|
-
* A Twitch Extension that was installed by a user.
|
|
6
|
-
*
|
|
7
|
-
* @inheritDoc
|
|
8
|
-
*/
|
|
9
|
-
let HelixUserExtension = class HelixUserExtension extends HelixBaseExtension {
|
|
10
|
-
/**
|
|
11
|
-
* Whether the user has configured the extension to be able to activate it.
|
|
12
|
-
*/
|
|
13
|
-
get canActivate() {
|
|
14
|
-
return this[rawDataSymbol].can_activate;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The available types of the extension.
|
|
18
|
-
*/
|
|
19
|
-
get types() {
|
|
20
|
-
return this[rawDataSymbol].type;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
HelixUserExtension = __decorate([
|
|
24
|
-
rtfm('api', 'HelixUserExtension', 'id')
|
|
25
|
-
], HelixUserExtension);
|
|
26
|
-
export { HelixUserExtension };
|