@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,58 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { rawDataSymbol, rtfm } from '@twurple/common';
|
|
3
|
-
import { HelixEmoteBase } from './HelixEmoteBase.js';
|
|
4
|
-
import { Enumerable } from '@d-fischer/shared-utils';
|
|
5
|
-
/**
|
|
6
|
-
* A Twitch user emote.
|
|
7
|
-
*/
|
|
8
|
-
let HelixUserEmote = class HelixUserEmote extends HelixEmoteBase {
|
|
9
|
-
/** @internal */ _client;
|
|
10
|
-
constructor(data, client) {
|
|
11
|
-
super(data);
|
|
12
|
-
this._client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The type of the emote.
|
|
16
|
-
*
|
|
17
|
-
* There are many types of emotes that Twitch seems to arbitrarily assign.
|
|
18
|
-
* Check the relevant values in the official documentation.
|
|
19
|
-
*
|
|
20
|
-
* @see https://dev.twitch.tv/docs/api/reference/#get-user-emotes
|
|
21
|
-
*/
|
|
22
|
-
get type() {
|
|
23
|
-
return this[rawDataSymbol].emote_type;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* The ID that identifies the emote set that the emote belongs to, or `null` if the emote is not from any set.
|
|
27
|
-
*/
|
|
28
|
-
get emoteSetId() {
|
|
29
|
-
return this[rawDataSymbol].emote_set_id || null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* The ID of the broadcaster who owns the emote, or `null` if the emote has no owner, e.g. it's a global emote.
|
|
33
|
-
*/
|
|
34
|
-
get ownerId() {
|
|
35
|
-
return this[rawDataSymbol].owner_id || null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Gets all emotes from the emotes set, or `null` if emote is not from any set.
|
|
39
|
-
*/
|
|
40
|
-
async getAllEmotesFromSet() {
|
|
41
|
-
return this[rawDataSymbol].emote_set_id
|
|
42
|
-
? await this._client.chat.getEmotesFromSets([this[rawDataSymbol].emote_set_id])
|
|
43
|
-
: null;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Gets more information about the user that owns the emote, or `null` if the emote is not owned by a user.
|
|
47
|
-
*/
|
|
48
|
-
async getOwner() {
|
|
49
|
-
return this[rawDataSymbol].owner_id ? await this._client.users.getUserById(this[rawDataSymbol].owner_id) : null;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
__decorate([
|
|
53
|
-
Enumerable(false)
|
|
54
|
-
], HelixUserEmote.prototype, "_client", void 0);
|
|
55
|
-
HelixUserEmote = __decorate([
|
|
56
|
-
rtfm('api', 'HelixUserEmote', 'id')
|
|
57
|
-
], HelixUserEmote);
|
|
58
|
-
export { HelixUserEmote };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixClipData } from '../../interfaces/endpoints/clip.external.js';
|
|
3
|
-
import type { HelixGame } from '../game/HelixGame.js';
|
|
4
|
-
import type { HelixUser } from '../user/HelixUser.js';
|
|
5
|
-
import type { HelixVideo } from '../video/HelixVideo.js';
|
|
6
|
-
/**
|
|
7
|
-
* A clip from a Twitch stream.
|
|
8
|
-
*/
|
|
9
|
-
export declare class HelixClip extends DataObject<HelixClipData> {
|
|
10
|
-
/**
|
|
11
|
-
* The clip ID.
|
|
12
|
-
*/
|
|
13
|
-
get id(): string;
|
|
14
|
-
/**
|
|
15
|
-
* The URL of the clip.
|
|
16
|
-
*/
|
|
17
|
-
get url(): string;
|
|
18
|
-
/**
|
|
19
|
-
* The embed URL of the clip.
|
|
20
|
-
*/
|
|
21
|
-
get embedUrl(): string;
|
|
22
|
-
/**
|
|
23
|
-
* The user ID of the broadcaster of the stream where the clip was created.
|
|
24
|
-
*/
|
|
25
|
-
get broadcasterId(): string;
|
|
26
|
-
/**
|
|
27
|
-
* The display name of the broadcaster of the stream where the clip was created.
|
|
28
|
-
*/
|
|
29
|
-
get broadcasterDisplayName(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Gets information about the broadcaster of the stream where the clip was created.
|
|
32
|
-
*/
|
|
33
|
-
getBroadcaster(): Promise<HelixUser>;
|
|
34
|
-
/**
|
|
35
|
-
* The user ID of the creator of the clip.
|
|
36
|
-
*/
|
|
37
|
-
get creatorId(): string;
|
|
38
|
-
/**
|
|
39
|
-
* The display name of the creator of the clip.
|
|
40
|
-
*/
|
|
41
|
-
get creatorDisplayName(): string;
|
|
42
|
-
/**
|
|
43
|
-
* Gets information about the creator of the clip.
|
|
44
|
-
*/
|
|
45
|
-
getCreator(): Promise<HelixUser>;
|
|
46
|
-
/**
|
|
47
|
-
* The ID of the video the clip is taken from.
|
|
48
|
-
*/
|
|
49
|
-
get videoId(): string;
|
|
50
|
-
/**
|
|
51
|
-
* Gets information about the video the clip is taken from.
|
|
52
|
-
*/
|
|
53
|
-
getVideo(): Promise<HelixVideo>;
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the game that was being played when the clip was created.
|
|
56
|
-
*/
|
|
57
|
-
get gameId(): string;
|
|
58
|
-
/**
|
|
59
|
-
* Gets information about the game that was being played when the clip was created.
|
|
60
|
-
*/
|
|
61
|
-
getGame(): Promise<HelixGame | null>;
|
|
62
|
-
/**
|
|
63
|
-
* The language of the stream where the clip was created.
|
|
64
|
-
*/
|
|
65
|
-
get language(): string;
|
|
66
|
-
/**
|
|
67
|
-
* The title of the clip.
|
|
68
|
-
*/
|
|
69
|
-
get title(): string;
|
|
70
|
-
/**
|
|
71
|
-
* The number of views of the clip.
|
|
72
|
-
*/
|
|
73
|
-
get views(): number;
|
|
74
|
-
/**
|
|
75
|
-
* The date when the clip was created.
|
|
76
|
-
*/
|
|
77
|
-
get creationDate(): Date;
|
|
78
|
-
/**
|
|
79
|
-
* The URL of the thumbnail of the clip.
|
|
80
|
-
*/
|
|
81
|
-
get thumbnailUrl(): string;
|
|
82
|
-
/**
|
|
83
|
-
* The duration of the clip in seconds (up to 0.1 precision).
|
|
84
|
-
*/
|
|
85
|
-
get duration(): number;
|
|
86
|
-
/**
|
|
87
|
-
* The offset of the clip from the start of the corresponding VOD, in seconds.
|
|
88
|
-
*
|
|
89
|
-
* This may be null if there is no VOD or if the clip is created from a live broadcast,
|
|
90
|
-
* in which case it may take a few minutes to associate with the VOD.
|
|
91
|
-
*/
|
|
92
|
-
get vodOffset(): number | null;
|
|
93
|
-
/**
|
|
94
|
-
* Whether the clip is featured.
|
|
95
|
-
*/
|
|
96
|
-
get isFeatured(): boolean;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=HelixClip.d.ts.map
|
|
@@ -1,152 +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 clip from a Twitch stream.
|
|
6
|
-
*/
|
|
7
|
-
let HelixClip = class HelixClip extends DataObject {
|
|
8
|
-
/** @internal */ _client;
|
|
9
|
-
/** @internal */
|
|
10
|
-
constructor(data, client) {
|
|
11
|
-
super(data);
|
|
12
|
-
this._client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The clip ID.
|
|
16
|
-
*/
|
|
17
|
-
get id() {
|
|
18
|
-
return this[rawDataSymbol].id;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The URL of the clip.
|
|
22
|
-
*/
|
|
23
|
-
get url() {
|
|
24
|
-
return this[rawDataSymbol].url;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The embed URL of the clip.
|
|
28
|
-
*/
|
|
29
|
-
get embedUrl() {
|
|
30
|
-
return this[rawDataSymbol].embed_url;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The user ID of the broadcaster of the stream where the clip was created.
|
|
34
|
-
*/
|
|
35
|
-
get broadcasterId() {
|
|
36
|
-
return this[rawDataSymbol].broadcaster_id;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The display name of the broadcaster of the stream where the clip was created.
|
|
40
|
-
*/
|
|
41
|
-
get broadcasterDisplayName() {
|
|
42
|
-
return this[rawDataSymbol].broadcaster_name;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Gets information about the broadcaster of the stream where the clip was created.
|
|
46
|
-
*/
|
|
47
|
-
async getBroadcaster() {
|
|
48
|
-
return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].broadcaster_id));
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* The user ID of the creator of the clip.
|
|
52
|
-
*/
|
|
53
|
-
get creatorId() {
|
|
54
|
-
return this[rawDataSymbol].creator_id;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* The display name of the creator of the clip.
|
|
58
|
-
*/
|
|
59
|
-
get creatorDisplayName() {
|
|
60
|
-
return this[rawDataSymbol].creator_name;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Gets information about the creator of the clip.
|
|
64
|
-
*/
|
|
65
|
-
async getCreator() {
|
|
66
|
-
return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].creator_id));
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* The ID of the video the clip is taken from.
|
|
70
|
-
*/
|
|
71
|
-
get videoId() {
|
|
72
|
-
return this[rawDataSymbol].video_id;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Gets information about the video the clip is taken from.
|
|
76
|
-
*/
|
|
77
|
-
async getVideo() {
|
|
78
|
-
return checkRelationAssertion(await this._client.videos.getVideoById(this[rawDataSymbol].video_id));
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* The ID of the game that was being played when the clip was created.
|
|
82
|
-
*/
|
|
83
|
-
get gameId() {
|
|
84
|
-
return this[rawDataSymbol].game_id;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Gets information about the game that was being played when the clip was created.
|
|
88
|
-
*/
|
|
89
|
-
async getGame() {
|
|
90
|
-
return this[rawDataSymbol].game_id
|
|
91
|
-
? checkRelationAssertion(await this._client.games.getGameById(this[rawDataSymbol].game_id))
|
|
92
|
-
: null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* The language of the stream where the clip was created.
|
|
96
|
-
*/
|
|
97
|
-
get language() {
|
|
98
|
-
return this[rawDataSymbol].language;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* The title of the clip.
|
|
102
|
-
*/
|
|
103
|
-
get title() {
|
|
104
|
-
return this[rawDataSymbol].title;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* The number of views of the clip.
|
|
108
|
-
*/
|
|
109
|
-
get views() {
|
|
110
|
-
return this[rawDataSymbol].view_count;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* The date when the clip was created.
|
|
114
|
-
*/
|
|
115
|
-
get creationDate() {
|
|
116
|
-
return new Date(this[rawDataSymbol].created_at);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* The URL of the thumbnail of the clip.
|
|
120
|
-
*/
|
|
121
|
-
get thumbnailUrl() {
|
|
122
|
-
return this[rawDataSymbol].thumbnail_url;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* The duration of the clip in seconds (up to 0.1 precision).
|
|
126
|
-
*/
|
|
127
|
-
get duration() {
|
|
128
|
-
return this[rawDataSymbol].duration;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* The offset of the clip from the start of the corresponding VOD, in seconds.
|
|
132
|
-
*
|
|
133
|
-
* This may be null if there is no VOD or if the clip is created from a live broadcast,
|
|
134
|
-
* in which case it may take a few minutes to associate with the VOD.
|
|
135
|
-
*/
|
|
136
|
-
get vodOffset() {
|
|
137
|
-
return this[rawDataSymbol].vod_offset;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Whether the clip is featured.
|
|
141
|
-
*/
|
|
142
|
-
get isFeatured() {
|
|
143
|
-
return this[rawDataSymbol].is_featured;
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
__decorate([
|
|
147
|
-
Enumerable(false)
|
|
148
|
-
], HelixClip.prototype, "_client", void 0);
|
|
149
|
-
HelixClip = __decorate([
|
|
150
|
-
rtfm('api', 'HelixClip', 'id')
|
|
151
|
-
], HelixClip);
|
|
152
|
-
export { HelixClip };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { type UserIdResolvable } from '@twurple/common';
|
|
2
|
-
import { type HelixClipData } from '../../interfaces/endpoints/clip.external.js';
|
|
3
|
-
import { type HelixClipCreateFromVodParams, type HelixClipCreateParams, type HelixClipFilter, type HelixPaginatedClipFilter } from '../../interfaces/endpoints/clip.input.js';
|
|
4
|
-
import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
|
|
5
|
-
import { type HelixPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
|
|
6
|
-
import { BaseApi } from '../BaseApi.js';
|
|
7
|
-
import { HelixClip } from './HelixClip.js';
|
|
8
|
-
/**
|
|
9
|
-
* The Helix API methods that deal with clips.
|
|
10
|
-
*
|
|
11
|
-
* Can be accessed using `client.clips` on an {@link ApiClient} instance.
|
|
12
|
-
*
|
|
13
|
-
* ## Example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const api = new ApiClient({ authProvider });
|
|
16
|
-
* const clipId = await api.clips.createClip({ channel: '125328655' });
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @meta category helix
|
|
20
|
-
* @meta categorizedTitle Clips
|
|
21
|
-
*/
|
|
22
|
-
export declare class HelixClipApi extends BaseApi {
|
|
23
|
-
/**
|
|
24
|
-
* Gets clips for the specified broadcaster in descending order of views.
|
|
25
|
-
*
|
|
26
|
-
* @param broadcaster The broadcaster to fetch clips for.
|
|
27
|
-
* @param filter
|
|
28
|
-
*
|
|
29
|
-
* @expandParams
|
|
30
|
-
*/
|
|
31
|
-
getClipsForBroadcaster(broadcaster: UserIdResolvable, filter?: HelixPaginatedClipFilter): Promise<HelixPaginatedResult<HelixClip>>;
|
|
32
|
-
/**
|
|
33
|
-
* Creates a paginator for clips for the specified broadcaster.
|
|
34
|
-
*
|
|
35
|
-
* @param broadcaster The broadcaster to fetch clips for.
|
|
36
|
-
* @param filter
|
|
37
|
-
*
|
|
38
|
-
* @expandParams
|
|
39
|
-
*/
|
|
40
|
-
getClipsForBroadcasterPaginated(broadcaster: UserIdResolvable, filter?: HelixClipFilter): HelixPaginatedRequest<HelixClipData, HelixClip>;
|
|
41
|
-
/**
|
|
42
|
-
* Gets clips for the specified game in descending order of views.
|
|
43
|
-
*
|
|
44
|
-
* @param gameId The game ID.
|
|
45
|
-
* @param filter
|
|
46
|
-
*
|
|
47
|
-
* @expandParams
|
|
48
|
-
*/
|
|
49
|
-
getClipsForGame(gameId: string, filter?: HelixPaginatedClipFilter): Promise<HelixPaginatedResult<HelixClip>>;
|
|
50
|
-
/**
|
|
51
|
-
* Creates a paginator for clips for the specified game.
|
|
52
|
-
*
|
|
53
|
-
* @param gameId The game ID.
|
|
54
|
-
* @param filter
|
|
55
|
-
*
|
|
56
|
-
* @expandParams
|
|
57
|
-
*/
|
|
58
|
-
getClipsForGamePaginated(gameId: string, filter?: HelixClipFilter): HelixPaginatedRequest<HelixClipData, HelixClip>;
|
|
59
|
-
/**
|
|
60
|
-
* Gets the clips identified by the given IDs.
|
|
61
|
-
*
|
|
62
|
-
* @param ids The clip IDs.
|
|
63
|
-
*/
|
|
64
|
-
getClipsByIds(ids: string[]): Promise<HelixClip[]>;
|
|
65
|
-
/**
|
|
66
|
-
* Gets the clip identified by the given ID.
|
|
67
|
-
*
|
|
68
|
-
* @param id The clip ID.
|
|
69
|
-
*/
|
|
70
|
-
getClipById(id: string): Promise<HelixClip | null>;
|
|
71
|
-
/**
|
|
72
|
-
* Gets the clip identified by the given ID, batching multiple calls into fewer requests as the API allows.
|
|
73
|
-
*
|
|
74
|
-
* @param id The clip ID.
|
|
75
|
-
*/
|
|
76
|
-
getClipByIdBatched(id: string): Promise<HelixClip | null>;
|
|
77
|
-
/**
|
|
78
|
-
* Creates a clip of a running stream.
|
|
79
|
-
*
|
|
80
|
-
* Returns the ID of the clip.
|
|
81
|
-
*
|
|
82
|
-
* @param params
|
|
83
|
-
* @expandParams
|
|
84
|
-
*/
|
|
85
|
-
createClip(params: HelixClipCreateParams): Promise<string>;
|
|
86
|
-
/**
|
|
87
|
-
* Creates a clip of a VOD.
|
|
88
|
-
*
|
|
89
|
-
* Returns the ID of the clip.
|
|
90
|
-
*
|
|
91
|
-
* @param params
|
|
92
|
-
* @expandParams
|
|
93
|
-
* @beta
|
|
94
|
-
*/
|
|
95
|
-
createClipFromVod(params: HelixClipCreateFromVodParams): Promise<string>;
|
|
96
|
-
private _getClips;
|
|
97
|
-
private _getClipsPaginated;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=HelixClipApi.d.ts.map
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Enumerable } from '@d-fischer/shared-utils';
|
|
3
|
-
import { extractUserId, rtfm } from '@twurple/common';
|
|
4
|
-
import { createClipCreateFromVodQuery, createClipCreateQuery, createClipQuery, } from '../../interfaces/endpoints/clip.external.js';
|
|
5
|
-
import { HelixRequestBatcher } from '../../utils/HelixRequestBatcher.js';
|
|
6
|
-
import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
|
|
7
|
-
import { createPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
|
|
8
|
-
import { createPaginationQuery } from '../../utils/pagination/HelixPagination.js';
|
|
9
|
-
import { BaseApi } from '../BaseApi.js';
|
|
10
|
-
import { HelixClip } from './HelixClip.js';
|
|
11
|
-
/**
|
|
12
|
-
* The Helix API methods that deal with clips.
|
|
13
|
-
*
|
|
14
|
-
* Can be accessed using `client.clips` on an {@link ApiClient} instance.
|
|
15
|
-
*
|
|
16
|
-
* ## Example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const api = new ApiClient({ authProvider });
|
|
19
|
-
* const clipId = await api.clips.createClip({ channel: '125328655' });
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @meta category helix
|
|
23
|
-
* @meta categorizedTitle Clips
|
|
24
|
-
*/
|
|
25
|
-
let HelixClipApi = class HelixClipApi extends BaseApi {
|
|
26
|
-
/** @internal */
|
|
27
|
-
_getClipByIdBatcher = new HelixRequestBatcher({
|
|
28
|
-
url: 'clips',
|
|
29
|
-
}, 'id', 'id', this._client, (data) => new HelixClip(data, this._client));
|
|
30
|
-
/**
|
|
31
|
-
* Gets clips for the specified broadcaster in descending order of views.
|
|
32
|
-
*
|
|
33
|
-
* @param broadcaster The broadcaster to fetch clips for.
|
|
34
|
-
* @param filter
|
|
35
|
-
*
|
|
36
|
-
* @expandParams
|
|
37
|
-
*/
|
|
38
|
-
async getClipsForBroadcaster(broadcaster, filter = {}) {
|
|
39
|
-
return await this._getClips({
|
|
40
|
-
...filter,
|
|
41
|
-
filterType: 'broadcaster_id',
|
|
42
|
-
ids: extractUserId(broadcaster),
|
|
43
|
-
userId: extractUserId(broadcaster),
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Creates a paginator for clips for the specified broadcaster.
|
|
48
|
-
*
|
|
49
|
-
* @param broadcaster The broadcaster to fetch clips for.
|
|
50
|
-
* @param filter
|
|
51
|
-
*
|
|
52
|
-
* @expandParams
|
|
53
|
-
*/
|
|
54
|
-
getClipsForBroadcasterPaginated(broadcaster, filter = {}) {
|
|
55
|
-
return this._getClipsPaginated({
|
|
56
|
-
...filter,
|
|
57
|
-
filterType: 'broadcaster_id',
|
|
58
|
-
ids: extractUserId(broadcaster),
|
|
59
|
-
userId: extractUserId(broadcaster),
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Gets clips for the specified game in descending order of views.
|
|
64
|
-
*
|
|
65
|
-
* @param gameId The game ID.
|
|
66
|
-
* @param filter
|
|
67
|
-
*
|
|
68
|
-
* @expandParams
|
|
69
|
-
*/
|
|
70
|
-
async getClipsForGame(gameId, filter = {}) {
|
|
71
|
-
return await this._getClips({
|
|
72
|
-
...filter,
|
|
73
|
-
filterType: 'game_id',
|
|
74
|
-
ids: gameId,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Creates a paginator for clips for the specified game.
|
|
79
|
-
*
|
|
80
|
-
* @param gameId The game ID.
|
|
81
|
-
* @param filter
|
|
82
|
-
*
|
|
83
|
-
* @expandParams
|
|
84
|
-
*/
|
|
85
|
-
getClipsForGamePaginated(gameId, filter = {}) {
|
|
86
|
-
return this._getClipsPaginated({
|
|
87
|
-
...filter,
|
|
88
|
-
filterType: 'game_id',
|
|
89
|
-
ids: gameId,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Gets the clips identified by the given IDs.
|
|
94
|
-
*
|
|
95
|
-
* @param ids The clip IDs.
|
|
96
|
-
*/
|
|
97
|
-
async getClipsByIds(ids) {
|
|
98
|
-
const result = await this._getClips({
|
|
99
|
-
filterType: 'id',
|
|
100
|
-
ids,
|
|
101
|
-
});
|
|
102
|
-
return result.data;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Gets the clip identified by the given ID.
|
|
106
|
-
*
|
|
107
|
-
* @param id The clip ID.
|
|
108
|
-
*/
|
|
109
|
-
async getClipById(id) {
|
|
110
|
-
const clips = await this.getClipsByIds([id]);
|
|
111
|
-
return clips.length ? clips[0] : null;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Gets the clip identified by the given ID, batching multiple calls into fewer requests as the API allows.
|
|
115
|
-
*
|
|
116
|
-
* @param id The clip ID.
|
|
117
|
-
*/
|
|
118
|
-
async getClipByIdBatched(id) {
|
|
119
|
-
return await this._getClipByIdBatcher.request(id);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Creates a clip of a running stream.
|
|
123
|
-
*
|
|
124
|
-
* Returns the ID of the clip.
|
|
125
|
-
*
|
|
126
|
-
* @param params
|
|
127
|
-
* @expandParams
|
|
128
|
-
*/
|
|
129
|
-
async createClip(params) {
|
|
130
|
-
const result = await this._client.callApi({
|
|
131
|
-
type: 'helix',
|
|
132
|
-
url: 'clips',
|
|
133
|
-
method: 'POST',
|
|
134
|
-
userId: extractUserId(params.channel),
|
|
135
|
-
scopes: ['clips:edit'],
|
|
136
|
-
canOverrideScopedUserContext: true,
|
|
137
|
-
query: createClipCreateQuery(params),
|
|
138
|
-
});
|
|
139
|
-
return result.data[0].id;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Creates a clip of a VOD.
|
|
143
|
-
*
|
|
144
|
-
* Returns the ID of the clip.
|
|
145
|
-
*
|
|
146
|
-
* @param params
|
|
147
|
-
* @expandParams
|
|
148
|
-
* @beta
|
|
149
|
-
*/
|
|
150
|
-
async createClipFromVod(params) {
|
|
151
|
-
const broadcasterId = extractUserId(params.channel);
|
|
152
|
-
const result = await this._client.callApi({
|
|
153
|
-
type: 'helix',
|
|
154
|
-
url: 'videos/clips',
|
|
155
|
-
method: 'POST',
|
|
156
|
-
userId: broadcasterId,
|
|
157
|
-
scopes: ['editor:manage:clips', 'channel:manage:clips'],
|
|
158
|
-
canOverrideScopedUserContext: true,
|
|
159
|
-
query: createClipCreateFromVodQuery(params, this._getUserContextIdWithDefault(broadcasterId)),
|
|
160
|
-
});
|
|
161
|
-
return result.data[0].id;
|
|
162
|
-
}
|
|
163
|
-
async _getClips(params) {
|
|
164
|
-
if (!params.ids.length) {
|
|
165
|
-
return { data: [] };
|
|
166
|
-
}
|
|
167
|
-
const result = await this._client.callApi({
|
|
168
|
-
type: 'helix',
|
|
169
|
-
url: 'clips',
|
|
170
|
-
userId: params.userId,
|
|
171
|
-
query: {
|
|
172
|
-
...createClipQuery(params),
|
|
173
|
-
...createPaginationQuery(params),
|
|
174
|
-
},
|
|
175
|
-
});
|
|
176
|
-
return createPaginatedResult(result, HelixClip, this._client);
|
|
177
|
-
}
|
|
178
|
-
_getClipsPaginated(params) {
|
|
179
|
-
return new HelixPaginatedRequest({
|
|
180
|
-
url: 'clips',
|
|
181
|
-
userId: params.userId,
|
|
182
|
-
query: createClipQuery(params),
|
|
183
|
-
}, this._client, data => new HelixClip(data, this._client));
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
__decorate([
|
|
187
|
-
Enumerable(false)
|
|
188
|
-
], HelixClipApi.prototype, "_getClipByIdBatcher", void 0);
|
|
189
|
-
HelixClipApi = __decorate([
|
|
190
|
-
rtfm('api', 'HelixClipApi')
|
|
191
|
-
], HelixClipApi);
|
|
192
|
-
export { HelixClipApi };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixContentClassificationLabelData } from '../../interfaces/endpoints/contentClassificationLabels.external.js';
|
|
3
|
-
/**
|
|
4
|
-
* A content classification label that can be applied to a Twitch stream.
|
|
5
|
-
*/
|
|
6
|
-
export declare class HelixContentClassificationLabel extends DataObject<HelixContentClassificationLabelData> {
|
|
7
|
-
/**
|
|
8
|
-
* The ID of the content classification label.
|
|
9
|
-
*/
|
|
10
|
-
get id(): string;
|
|
11
|
-
/**
|
|
12
|
-
* The name of the content classification label.
|
|
13
|
-
*/
|
|
14
|
-
get name(): string;
|
|
15
|
-
/**
|
|
16
|
-
* The description of the content classification label.
|
|
17
|
-
*/
|
|
18
|
-
get description(): string;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=HelixContentClassificationLabel.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DataObject, rawDataSymbol } from '@twurple/common';
|
|
2
|
-
/**
|
|
3
|
-
* A content classification label that can be applied to a Twitch stream.
|
|
4
|
-
*/
|
|
5
|
-
export class HelixContentClassificationLabel extends DataObject {
|
|
6
|
-
/**
|
|
7
|
-
* The ID of the content classification label.
|
|
8
|
-
*/
|
|
9
|
-
get id() {
|
|
10
|
-
return this[rawDataSymbol].id;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The name of the content classification label.
|
|
14
|
-
*/
|
|
15
|
-
get name() {
|
|
16
|
-
return this[rawDataSymbol].name;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* The description of the content classification label.
|
|
20
|
-
*/
|
|
21
|
-
get description() {
|
|
22
|
-
return this[rawDataSymbol].description;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseApi } from '../BaseApi.js';
|
|
2
|
-
import { HelixContentClassificationLabel } from './HelixContentClassificationLabel.js';
|
|
3
|
-
/**
|
|
4
|
-
* The Helix API methods that deal with content classification labels.
|
|
5
|
-
*
|
|
6
|
-
* Can be accessed using `client.contentClassificationLabels` on an {@link ApiClient} instance.
|
|
7
|
-
*
|
|
8
|
-
* ## Example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const api = new ApiClient({ authProvider });
|
|
11
|
-
* const labels = await api.contentClassificationLabels.getAll();
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @meta category helix
|
|
15
|
-
* @meta categorizedTitle Content classification labels
|
|
16
|
-
*/
|
|
17
|
-
export declare class HelixContentClassificationLabelApi extends BaseApi {
|
|
18
|
-
/**
|
|
19
|
-
* Fetches a list of all content classification labels.
|
|
20
|
-
*
|
|
21
|
-
* @param locale The locale for the content classification labels.
|
|
22
|
-
*/
|
|
23
|
-
getAll(locale?: string): Promise<HelixContentClassificationLabel[]>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=HelixContentClassificationLabelApi.d.ts.map
|