@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,171 +0,0 @@
|
|
|
1
|
-
import { createBroadcasterQuery } from '@twurple/api-call';
|
|
2
|
-
import { extractUserId } from '@twurple/common';
|
|
3
|
-
import { createGetByIdsQuery } from '../../interfaces/endpoints/generic.external.js';
|
|
4
|
-
import { createScheduleQuery, createScheduleSegmentBody, createScheduleSegmentModifyQuery, createScheduleSegmentUpdateBody, createScheduleSettingsUpdateQuery, } from '../../interfaces/endpoints/schedule.external.js';
|
|
5
|
-
import { createPaginationQuery } from '../../utils/pagination/HelixPagination.js';
|
|
6
|
-
import { BaseApi } from '../BaseApi.js';
|
|
7
|
-
import { HelixPaginatedScheduleSegmentRequest } from './HelixPaginatedScheduleSegmentRequest.js';
|
|
8
|
-
import { HelixSchedule } from './HelixSchedule.js';
|
|
9
|
-
import { HelixScheduleSegment } from './HelixScheduleSegment.js';
|
|
10
|
-
/**
|
|
11
|
-
* The Helix API methods that deal with schedules.
|
|
12
|
-
*
|
|
13
|
-
* Can be accessed using `client.schedule` on an {@link ApiClient} instance.
|
|
14
|
-
*
|
|
15
|
-
* ## Example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const api = new ApiClient({ authProvider });
|
|
18
|
-
* const { data: schedule } = await api.helix.schedule.getSchedule('61369223');
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @meta category helix
|
|
22
|
-
* @meta categorizedTitle Schedule
|
|
23
|
-
*/
|
|
24
|
-
export class HelixScheduleApi extends BaseApi {
|
|
25
|
-
/**
|
|
26
|
-
* Gets the schedule for a given broadcaster.
|
|
27
|
-
*
|
|
28
|
-
* @param broadcaster The broadcaster to get the schedule of.
|
|
29
|
-
* @param filter
|
|
30
|
-
*
|
|
31
|
-
* @expandParams
|
|
32
|
-
*/
|
|
33
|
-
async getSchedule(broadcaster, filter) {
|
|
34
|
-
const result = await this._client.callApi({
|
|
35
|
-
type: 'helix',
|
|
36
|
-
url: 'schedule',
|
|
37
|
-
userId: extractUserId(broadcaster),
|
|
38
|
-
query: {
|
|
39
|
-
...createScheduleQuery(broadcaster, filter),
|
|
40
|
-
...createPaginationQuery(filter),
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
data: new HelixSchedule(result.data, this._client),
|
|
45
|
-
cursor: result.pagination.cursor,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Creates a paginator for schedule segments for a given broadcaster.
|
|
50
|
-
*
|
|
51
|
-
* @param broadcaster The broadcaster to get the schedule segments of.
|
|
52
|
-
* @param filter
|
|
53
|
-
*
|
|
54
|
-
* @expandParams
|
|
55
|
-
*/
|
|
56
|
-
getScheduleSegmentsPaginated(broadcaster, filter) {
|
|
57
|
-
return new HelixPaginatedScheduleSegmentRequest(broadcaster, this._client, filter);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Gets a set of schedule segments by IDs.
|
|
61
|
-
*
|
|
62
|
-
* @param broadcaster The broadcaster to get schedule segments of.
|
|
63
|
-
* @param ids The IDs of the schedule segments.
|
|
64
|
-
*/
|
|
65
|
-
async getScheduleSegmentsByIds(broadcaster, ids) {
|
|
66
|
-
const result = await this._client.callApi({
|
|
67
|
-
type: 'helix',
|
|
68
|
-
url: 'schedule',
|
|
69
|
-
userId: extractUserId(broadcaster),
|
|
70
|
-
query: createGetByIdsQuery(broadcaster, ids),
|
|
71
|
-
});
|
|
72
|
-
return result.data.segments?.map(data => new HelixScheduleSegment(data, this._client)) ?? [];
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Gets a single schedule segment by ID.
|
|
76
|
-
*
|
|
77
|
-
* @param broadcaster The broadcaster to get a schedule segment of.
|
|
78
|
-
* @param id The ID of the schedule segment.
|
|
79
|
-
*/
|
|
80
|
-
async getScheduleSegmentById(broadcaster, id) {
|
|
81
|
-
const segments = await this.getScheduleSegmentsByIds(broadcaster, [id]);
|
|
82
|
-
return segments.length ? segments[0] : null;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Gets the schedule for a given broadcaster in iCal format.
|
|
86
|
-
*
|
|
87
|
-
* @param broadcaster The broadcaster to get the schedule for.
|
|
88
|
-
*/
|
|
89
|
-
async getScheduleAsIcal(broadcaster) {
|
|
90
|
-
return await this._client.callApi({
|
|
91
|
-
type: 'helix',
|
|
92
|
-
url: 'schedule/icalendar',
|
|
93
|
-
query: createBroadcasterQuery(broadcaster),
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Updates the schedule settings of a given broadcaster.
|
|
98
|
-
*
|
|
99
|
-
* @param broadcaster The broadcaster to update the schedule settings for.
|
|
100
|
-
* @param settings
|
|
101
|
-
*
|
|
102
|
-
* @expandParams
|
|
103
|
-
*/
|
|
104
|
-
async updateScheduleSettings(broadcaster, settings) {
|
|
105
|
-
await this._client.callApi({
|
|
106
|
-
type: 'helix',
|
|
107
|
-
url: 'schedule/settings',
|
|
108
|
-
method: 'PATCH',
|
|
109
|
-
userId: extractUserId(broadcaster),
|
|
110
|
-
scopes: ['channel:manage:schedule'],
|
|
111
|
-
query: createScheduleSettingsUpdateQuery(broadcaster, settings),
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Creates a new segment in a given broadcaster's schedule.
|
|
116
|
-
*
|
|
117
|
-
* @param broadcaster The broadcaster to create a new schedule segment for.
|
|
118
|
-
* @param data
|
|
119
|
-
*
|
|
120
|
-
* @expandParams
|
|
121
|
-
*/
|
|
122
|
-
async createScheduleSegment(broadcaster, data) {
|
|
123
|
-
const result = await this._client.callApi({
|
|
124
|
-
type: 'helix',
|
|
125
|
-
url: 'schedule/segment',
|
|
126
|
-
method: 'POST',
|
|
127
|
-
userId: extractUserId(broadcaster),
|
|
128
|
-
scopes: ['channel:manage:schedule'],
|
|
129
|
-
query: createBroadcasterQuery(broadcaster),
|
|
130
|
-
jsonBody: createScheduleSegmentBody(data),
|
|
131
|
-
});
|
|
132
|
-
return new HelixScheduleSegment(result.data.segments[0], this._client);
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Updates a segment in a given broadcaster's schedule.
|
|
136
|
-
*
|
|
137
|
-
* @param broadcaster The broadcaster to create a new schedule segment for.
|
|
138
|
-
* @param segmentId The ID of the segment to update.
|
|
139
|
-
* @param data
|
|
140
|
-
*
|
|
141
|
-
* @expandParams
|
|
142
|
-
*/
|
|
143
|
-
async updateScheduleSegment(broadcaster, segmentId, data) {
|
|
144
|
-
const result = await this._client.callApi({
|
|
145
|
-
type: 'helix',
|
|
146
|
-
url: 'schedule/segment',
|
|
147
|
-
method: 'PATCH',
|
|
148
|
-
userId: extractUserId(broadcaster),
|
|
149
|
-
scopes: ['channel:manage:schedule'],
|
|
150
|
-
query: createScheduleSegmentModifyQuery(broadcaster, segmentId),
|
|
151
|
-
jsonBody: createScheduleSegmentUpdateBody(data),
|
|
152
|
-
});
|
|
153
|
-
return new HelixScheduleSegment(result.data.segments[0], this._client);
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Deletes a segment in a given broadcaster's schedule.
|
|
157
|
-
*
|
|
158
|
-
* @param broadcaster The broadcaster to create a new schedule segment for.
|
|
159
|
-
* @param segmentId The ID of the segment to update.
|
|
160
|
-
*/
|
|
161
|
-
async deleteScheduleSegment(broadcaster, segmentId) {
|
|
162
|
-
await this._client.callApi({
|
|
163
|
-
type: 'helix',
|
|
164
|
-
url: 'schedule/segment',
|
|
165
|
-
method: 'DELETE',
|
|
166
|
-
userId: extractUserId(broadcaster),
|
|
167
|
-
scopes: ['channel:manage:schedule'],
|
|
168
|
-
query: createScheduleSegmentModifyQuery(broadcaster, segmentId),
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixScheduleSegmentData } from '../../interfaces/endpoints/schedule.external.js';
|
|
3
|
-
import type { HelixGame } from '../game/HelixGame.js';
|
|
4
|
-
/**
|
|
5
|
-
* A segment of a schedule.
|
|
6
|
-
*/
|
|
7
|
-
export declare class HelixScheduleSegment extends DataObject<HelixScheduleSegmentData> {
|
|
8
|
-
/**
|
|
9
|
-
* The ID of the segment.
|
|
10
|
-
*/
|
|
11
|
-
get id(): string;
|
|
12
|
-
/**
|
|
13
|
-
* The date when the segment starts.
|
|
14
|
-
*/
|
|
15
|
-
get startDate(): Date;
|
|
16
|
-
/**
|
|
17
|
-
* The date when the segment ends.
|
|
18
|
-
*/
|
|
19
|
-
get endDate(): Date;
|
|
20
|
-
/**
|
|
21
|
-
* The title of the segment.
|
|
22
|
-
*/
|
|
23
|
-
get title(): string;
|
|
24
|
-
/**
|
|
25
|
-
* The date up to which the segment is canceled.
|
|
26
|
-
*/
|
|
27
|
-
get cancelEndDate(): Date | null;
|
|
28
|
-
/**
|
|
29
|
-
* The ID of the category the segment is scheduled for, or null if no category is specified.
|
|
30
|
-
*/
|
|
31
|
-
get categoryId(): string | null;
|
|
32
|
-
/**
|
|
33
|
-
* The name of the category the segment is scheduled for, or null if no category is specified.
|
|
34
|
-
*/
|
|
35
|
-
get categoryName(): string | null;
|
|
36
|
-
/**
|
|
37
|
-
* Gets more information about the category the segment is scheduled for, or null if no category is specified.
|
|
38
|
-
*/
|
|
39
|
-
getCategory(): Promise<HelixGame | null>;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the segment is recurring every week.
|
|
42
|
-
*/
|
|
43
|
-
get isRecurring(): boolean;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=HelixScheduleSegment.d.ts.map
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Enumerable, mapNullable } from '@d-fischer/shared-utils';
|
|
3
|
-
import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
|
|
4
|
-
/**
|
|
5
|
-
* A segment of a schedule.
|
|
6
|
-
*/
|
|
7
|
-
let HelixScheduleSegment = class HelixScheduleSegment 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 segment.
|
|
16
|
-
*/
|
|
17
|
-
get id() {
|
|
18
|
-
return this[rawDataSymbol].id;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The date when the segment starts.
|
|
22
|
-
*/
|
|
23
|
-
get startDate() {
|
|
24
|
-
return new Date(this[rawDataSymbol].start_time);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The date when the segment ends.
|
|
28
|
-
*/
|
|
29
|
-
get endDate() {
|
|
30
|
-
return new Date(this[rawDataSymbol].end_time);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The title of the segment.
|
|
34
|
-
*/
|
|
35
|
-
get title() {
|
|
36
|
-
return this[rawDataSymbol].title;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The date up to which the segment is canceled.
|
|
40
|
-
*/
|
|
41
|
-
get cancelEndDate() {
|
|
42
|
-
return mapNullable(this[rawDataSymbol].canceled_until, v => new Date(v));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The ID of the category the segment is scheduled for, or null if no category is specified.
|
|
46
|
-
*/
|
|
47
|
-
get categoryId() {
|
|
48
|
-
return this[rawDataSymbol].category?.id ?? null;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* The name of the category the segment is scheduled for, or null if no category is specified.
|
|
52
|
-
*/
|
|
53
|
-
get categoryName() {
|
|
54
|
-
return this[rawDataSymbol].category?.name ?? null;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Gets more information about the category the segment is scheduled for, or null if no category is specified.
|
|
58
|
-
*/
|
|
59
|
-
async getCategory() {
|
|
60
|
-
const categoryId = this[rawDataSymbol].category?.id;
|
|
61
|
-
return categoryId ? await this._client.games.getGameById(categoryId) : null;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Whether the segment is recurring every week.
|
|
65
|
-
*/
|
|
66
|
-
get isRecurring() {
|
|
67
|
-
return this[rawDataSymbol].is_recurring;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
__decorate([
|
|
71
|
-
Enumerable(false)
|
|
72
|
-
], HelixScheduleSegment.prototype, "_client", void 0);
|
|
73
|
-
HelixScheduleSegment = __decorate([
|
|
74
|
-
rtfm('api', 'HelixScheduleSegment', 'id')
|
|
75
|
-
], HelixScheduleSegment);
|
|
76
|
-
export { HelixScheduleSegment };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixChannelSearchResultData } from '../../interfaces/endpoints/search.external.js';
|
|
3
|
-
import type { HelixGame } from '../game/HelixGame.js';
|
|
4
|
-
import type { HelixUser } from '../user/HelixUser.js';
|
|
5
|
-
/**
|
|
6
|
-
* The result of a channel search.
|
|
7
|
-
*/
|
|
8
|
-
export declare class HelixChannelSearchResult extends DataObject<HelixChannelSearchResultData> {
|
|
9
|
-
/**
|
|
10
|
-
* The language of the channel.
|
|
11
|
-
*/
|
|
12
|
-
get language(): string;
|
|
13
|
-
/**
|
|
14
|
-
* The ID of the channel.
|
|
15
|
-
*/
|
|
16
|
-
get id(): string;
|
|
17
|
-
/**
|
|
18
|
-
* The name of the channel.
|
|
19
|
-
*/
|
|
20
|
-
get name(): string;
|
|
21
|
-
/**
|
|
22
|
-
* The display name of the channel.
|
|
23
|
-
*/
|
|
24
|
-
get displayName(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Gets additional information about the owner of the channel.
|
|
27
|
-
*/
|
|
28
|
-
getUser(): Promise<HelixUser>;
|
|
29
|
-
/**
|
|
30
|
-
* The ID of the game currently played on the channel.
|
|
31
|
-
*/
|
|
32
|
-
get gameId(): string;
|
|
33
|
-
/**
|
|
34
|
-
* The name of the game currently played on the channel.
|
|
35
|
-
*/
|
|
36
|
-
get gameName(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Gets information about the game that is being played on the stream.
|
|
39
|
-
*/
|
|
40
|
-
getGame(): Promise<HelixGame | null>;
|
|
41
|
-
/**
|
|
42
|
-
* Whether the channel is currently live.
|
|
43
|
-
*/
|
|
44
|
-
get isLive(): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* The tags applied to the channel.
|
|
47
|
-
*/
|
|
48
|
-
get tags(): string[];
|
|
49
|
-
/**
|
|
50
|
-
* The thumbnail URL of the stream.
|
|
51
|
-
*/
|
|
52
|
-
get thumbnailUrl(): string;
|
|
53
|
-
/**
|
|
54
|
-
* The start date of the stream. Returns `null` if the stream is not live.
|
|
55
|
-
*/
|
|
56
|
-
get startDate(): Date | null;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=HelixChannelSearchResult.d.ts.map
|
|
@@ -1,95 +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
|
-
* The result of a channel search.
|
|
6
|
-
*/
|
|
7
|
-
let HelixChannelSearchResult = class HelixChannelSearchResult extends DataObject {
|
|
8
|
-
/** @internal */ _client;
|
|
9
|
-
/** @internal */
|
|
10
|
-
constructor(data, client) {
|
|
11
|
-
super(data);
|
|
12
|
-
this._client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The language of the channel.
|
|
16
|
-
*/
|
|
17
|
-
get language() {
|
|
18
|
-
return this[rawDataSymbol].broadcaster_language;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The ID of the channel.
|
|
22
|
-
*/
|
|
23
|
-
get id() {
|
|
24
|
-
return this[rawDataSymbol].id;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The name of the channel.
|
|
28
|
-
*/
|
|
29
|
-
get name() {
|
|
30
|
-
return this[rawDataSymbol].broadcaster_login;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The display name of the channel.
|
|
34
|
-
*/
|
|
35
|
-
get displayName() {
|
|
36
|
-
return this[rawDataSymbol].display_name;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Gets additional information about the owner of the channel.
|
|
40
|
-
*/
|
|
41
|
-
async getUser() {
|
|
42
|
-
return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].id));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The ID of the game currently played on the channel.
|
|
46
|
-
*/
|
|
47
|
-
get gameId() {
|
|
48
|
-
return this[rawDataSymbol].game_id;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* The name of the game currently played on the channel.
|
|
52
|
-
*/
|
|
53
|
-
get gameName() {
|
|
54
|
-
return this[rawDataSymbol].game_name;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Gets information about the game that is being played on the stream.
|
|
58
|
-
*/
|
|
59
|
-
async getGame() {
|
|
60
|
-
return this[rawDataSymbol].game_id
|
|
61
|
-
? checkRelationAssertion(await this._client.games.getGameById(this[rawDataSymbol].game_id))
|
|
62
|
-
: null;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Whether the channel is currently live.
|
|
66
|
-
*/
|
|
67
|
-
get isLive() {
|
|
68
|
-
return this[rawDataSymbol].is_live;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* The tags applied to the channel.
|
|
72
|
-
*/
|
|
73
|
-
get tags() {
|
|
74
|
-
return this[rawDataSymbol].tags;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* The thumbnail URL of the stream.
|
|
78
|
-
*/
|
|
79
|
-
get thumbnailUrl() {
|
|
80
|
-
return this[rawDataSymbol].thumbnail_url;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* The start date of the stream. Returns `null` if the stream is not live.
|
|
84
|
-
*/
|
|
85
|
-
get startDate() {
|
|
86
|
-
return this[rawDataSymbol].is_live ? new Date(this[rawDataSymbol].started_at) : null;
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
__decorate([
|
|
90
|
-
Enumerable(false)
|
|
91
|
-
], HelixChannelSearchResult.prototype, "_client", void 0);
|
|
92
|
-
HelixChannelSearchResult = __decorate([
|
|
93
|
-
rtfm('api', 'HelixChannelSearchResult', 'id')
|
|
94
|
-
], HelixChannelSearchResult);
|
|
95
|
-
export { HelixChannelSearchResult };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { type HelixGameData } from '../../interfaces/endpoints/game.external.js';
|
|
2
|
-
import { type HelixChannelSearchResultData } from '../../interfaces/endpoints/search.external.js';
|
|
3
|
-
import { type HelixChannelSearchFilter, type HelixPaginatedChannelSearchFilter } from '../../interfaces/endpoints/search.input.js';
|
|
4
|
-
import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
|
|
5
|
-
import { type HelixPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
|
|
6
|
-
import { type HelixForwardPagination } from '../../utils/pagination/HelixPagination.js';
|
|
7
|
-
import { BaseApi } from '../BaseApi.js';
|
|
8
|
-
import { HelixGame } from '../game/HelixGame.js';
|
|
9
|
-
import { HelixChannelSearchResult } from './HelixChannelSearchResult.js';
|
|
10
|
-
/**
|
|
11
|
-
* The Helix API methods that run searches.
|
|
12
|
-
*
|
|
13
|
-
* Can be accessed using `client.search` on an {@link ApiClient} instance.
|
|
14
|
-
*
|
|
15
|
-
* ## Example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const api = new ApiClient({ authProvider });
|
|
18
|
-
* const channels = await api.search.searchChannels('pear');
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @meta category helix
|
|
22
|
-
* @meta categorizedTitle Search
|
|
23
|
-
*/
|
|
24
|
-
export declare class HelixSearchApi extends BaseApi {
|
|
25
|
-
/**
|
|
26
|
-
* Search categories/games for an exact or partial match.
|
|
27
|
-
*
|
|
28
|
-
* @param query The search term.
|
|
29
|
-
* @param pagination
|
|
30
|
-
*
|
|
31
|
-
* @expandParams
|
|
32
|
-
*/
|
|
33
|
-
searchCategories(query: string, pagination?: HelixForwardPagination): Promise<HelixPaginatedResult<HelixGame>>;
|
|
34
|
-
/**
|
|
35
|
-
* Creates a paginator for a category/game search.
|
|
36
|
-
*
|
|
37
|
-
* @param query The search term.
|
|
38
|
-
*/
|
|
39
|
-
searchCategoriesPaginated(query: string): HelixPaginatedRequest<HelixGameData, HelixGame>;
|
|
40
|
-
/**
|
|
41
|
-
* Search channels for an exact or partial match.
|
|
42
|
-
*
|
|
43
|
-
* @param query The search term.
|
|
44
|
-
* @param filter
|
|
45
|
-
*
|
|
46
|
-
* @expandParams
|
|
47
|
-
*/
|
|
48
|
-
searchChannels(query: string, filter?: HelixPaginatedChannelSearchFilter): Promise<HelixPaginatedResult<HelixChannelSearchResult>>;
|
|
49
|
-
/**
|
|
50
|
-
* Creates a paginator for a channel search.
|
|
51
|
-
*
|
|
52
|
-
* @param query The search term.
|
|
53
|
-
* @param filter
|
|
54
|
-
*
|
|
55
|
-
* @expandParams
|
|
56
|
-
*/
|
|
57
|
-
searchChannelsPaginated(query: string, filter?: HelixChannelSearchFilter): HelixPaginatedRequest<HelixChannelSearchResultData, HelixChannelSearchResult>;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=HelixSearchApi.d.ts.map
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { rtfm } from '@twurple/common';
|
|
3
|
-
import { createSearchChannelsQuery, } from '../../interfaces/endpoints/search.external.js';
|
|
4
|
-
import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
|
|
5
|
-
import { createPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
|
|
6
|
-
import { createPaginationQuery } from '../../utils/pagination/HelixPagination.js';
|
|
7
|
-
import { BaseApi } from '../BaseApi.js';
|
|
8
|
-
import { HelixGame } from '../game/HelixGame.js';
|
|
9
|
-
import { HelixChannelSearchResult } from './HelixChannelSearchResult.js';
|
|
10
|
-
/**
|
|
11
|
-
* The Helix API methods that run searches.
|
|
12
|
-
*
|
|
13
|
-
* Can be accessed using `client.search` on an {@link ApiClient} instance.
|
|
14
|
-
*
|
|
15
|
-
* ## Example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const api = new ApiClient({ authProvider });
|
|
18
|
-
* const channels = await api.search.searchChannels('pear');
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @meta category helix
|
|
22
|
-
* @meta categorizedTitle Search
|
|
23
|
-
*/
|
|
24
|
-
let HelixSearchApi = class HelixSearchApi extends BaseApi {
|
|
25
|
-
/**
|
|
26
|
-
* Search categories/games for an exact or partial match.
|
|
27
|
-
*
|
|
28
|
-
* @param query The search term.
|
|
29
|
-
* @param pagination
|
|
30
|
-
*
|
|
31
|
-
* @expandParams
|
|
32
|
-
*/
|
|
33
|
-
async searchCategories(query, pagination) {
|
|
34
|
-
const result = await this._client.callApi({
|
|
35
|
-
type: 'helix',
|
|
36
|
-
url: 'search/categories',
|
|
37
|
-
query: {
|
|
38
|
-
query,
|
|
39
|
-
...createPaginationQuery(pagination),
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
return createPaginatedResult(result, HelixGame, this._client);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Creates a paginator for a category/game search.
|
|
46
|
-
*
|
|
47
|
-
* @param query The search term.
|
|
48
|
-
*/
|
|
49
|
-
searchCategoriesPaginated(query) {
|
|
50
|
-
return new HelixPaginatedRequest({
|
|
51
|
-
url: 'search/categories',
|
|
52
|
-
query: {
|
|
53
|
-
query,
|
|
54
|
-
},
|
|
55
|
-
}, this._client, data => new HelixGame(data, this._client));
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Search channels for an exact or partial match.
|
|
59
|
-
*
|
|
60
|
-
* @param query The search term.
|
|
61
|
-
* @param filter
|
|
62
|
-
*
|
|
63
|
-
* @expandParams
|
|
64
|
-
*/
|
|
65
|
-
async searchChannels(query, filter = {}) {
|
|
66
|
-
const result = await this._client.callApi({
|
|
67
|
-
type: 'helix',
|
|
68
|
-
url: 'search/channels',
|
|
69
|
-
query: {
|
|
70
|
-
...createSearchChannelsQuery(query, filter),
|
|
71
|
-
...createPaginationQuery(filter),
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
return createPaginatedResult(result, HelixChannelSearchResult, this._client);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Creates a paginator for a channel search.
|
|
78
|
-
*
|
|
79
|
-
* @param query The search term.
|
|
80
|
-
* @param filter
|
|
81
|
-
*
|
|
82
|
-
* @expandParams
|
|
83
|
-
*/
|
|
84
|
-
searchChannelsPaginated(query, filter = {}) {
|
|
85
|
-
return new HelixPaginatedRequest({
|
|
86
|
-
url: 'search/channels',
|
|
87
|
-
query: createSearchChannelsQuery(query, filter),
|
|
88
|
-
}, this._client, data => new HelixChannelSearchResult(data, this._client));
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
HelixSearchApi = __decorate([
|
|
92
|
-
rtfm('api', 'HelixSearchApi')
|
|
93
|
-
], HelixSearchApi);
|
|
94
|
-
export { HelixSearchApi };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@twurple/common';
|
|
2
|
-
import { type HelixStreamData, type HelixStreamType } from '../../interfaces/endpoints/stream.external.js';
|
|
3
|
-
import type { HelixGame } from '../game/HelixGame.js';
|
|
4
|
-
import type { HelixUser } from '../user/HelixUser.js';
|
|
5
|
-
/**
|
|
6
|
-
* A Twitch stream.
|
|
7
|
-
*/
|
|
8
|
-
export declare class HelixStream extends DataObject<HelixStreamData> {
|
|
9
|
-
/**
|
|
10
|
-
* The stream ID.
|
|
11
|
-
*/
|
|
12
|
-
get id(): string;
|
|
13
|
-
/**
|
|
14
|
-
* The user ID.
|
|
15
|
-
*/
|
|
16
|
-
get userId(): string;
|
|
17
|
-
/**
|
|
18
|
-
* The user's name.
|
|
19
|
-
*/
|
|
20
|
-
get userName(): string;
|
|
21
|
-
/**
|
|
22
|
-
* The user's display name.
|
|
23
|
-
*/
|
|
24
|
-
get userDisplayName(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Gets information about the user broadcasting the stream.
|
|
27
|
-
*/
|
|
28
|
-
getUser(): Promise<HelixUser>;
|
|
29
|
-
/**
|
|
30
|
-
* The game ID, or an empty string if the stream doesn't currently have a game.
|
|
31
|
-
*/
|
|
32
|
-
get gameId(): string;
|
|
33
|
-
/**
|
|
34
|
-
* The game name, or an empty string if the stream doesn't currently have a game.
|
|
35
|
-
*/
|
|
36
|
-
get gameName(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Gets information about the game that is being played on the stream.
|
|
39
|
-
*
|
|
40
|
-
* Returns null if the stream doesn't currently have a game.
|
|
41
|
-
*/
|
|
42
|
-
getGame(): Promise<HelixGame | null>;
|
|
43
|
-
/**
|
|
44
|
-
* The type of the stream.
|
|
45
|
-
*/
|
|
46
|
-
get type(): HelixStreamType;
|
|
47
|
-
/**
|
|
48
|
-
* The title of the stream.
|
|
49
|
-
*/
|
|
50
|
-
get title(): string;
|
|
51
|
-
/**
|
|
52
|
-
* The number of viewers the stream currently has.
|
|
53
|
-
*/
|
|
54
|
-
get viewers(): number;
|
|
55
|
-
/**
|
|
56
|
-
* The time when the stream started.
|
|
57
|
-
*/
|
|
58
|
-
get startDate(): Date;
|
|
59
|
-
/**
|
|
60
|
-
* The language of the stream.
|
|
61
|
-
*/
|
|
62
|
-
get language(): string;
|
|
63
|
-
/**
|
|
64
|
-
* The URL of the thumbnail of the stream.
|
|
65
|
-
*
|
|
66
|
-
* This URL includes the placeholders `{width}` and `{height}`
|
|
67
|
-
* which you must replace with the desired dimensions of the thumbnail (in pixels).
|
|
68
|
-
*
|
|
69
|
-
* You can also use {@link HelixStream#getThumbnailUrl} to do this replacement.
|
|
70
|
-
*/
|
|
71
|
-
get thumbnailUrl(): string;
|
|
72
|
-
/**
|
|
73
|
-
* Builds the thumbnail URL of the stream using the given dimensions.
|
|
74
|
-
*
|
|
75
|
-
* @param width The width of the thumbnail.
|
|
76
|
-
* @param height The height of the thumbnail.
|
|
77
|
-
*/
|
|
78
|
-
getThumbnailUrl(width: number, height: number): string;
|
|
79
|
-
/**
|
|
80
|
-
* The tags applied to the stream.
|
|
81
|
-
*/
|
|
82
|
-
get tags(): string[];
|
|
83
|
-
/**
|
|
84
|
-
* Whether the stream is set to be targeted to mature audiences only.
|
|
85
|
-
*/
|
|
86
|
-
get isMature(): boolean;
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=HelixStream.d.ts.map
|