@openclaw/twitch 2026.7.1 → 2026.7.2-beta.2

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.
Files changed (361) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/channel-plugin-api.js +1 -1
  3. package/dist/{monitor-DuF1m2_8.js → monitor-MwCp9bY0.js} +6 -8
  4. package/dist/{plugin-C5o3rImF.js → plugin-DKq9eX97.js} +53 -33
  5. package/dist/setup-plugin-api.js +1 -1
  6. package/dist/{setup-surface-CSxU-v0y.js → setup-surface-CxAa0pLj.js} +2 -14
  7. package/npm-shrinkwrap.json +3 -36
  8. package/package.json +6 -6
  9. package/node_modules/@twurple/api/LICENSE +0 -21
  10. package/node_modules/@twurple/api/README.md +0 -24
  11. package/node_modules/@twurple/api/lib/client/ApiClient.d.ts +0 -98
  12. package/node_modules/@twurple/api/lib/client/ApiClient.js +0 -107
  13. package/node_modules/@twurple/api/lib/client/BaseApiClient.d.ts +0 -167
  14. package/node_modules/@twurple/api/lib/client/BaseApiClient.js +0 -446
  15. package/node_modules/@twurple/api/lib/client/ContextApiCallOptions.d.ts +0 -21
  16. package/node_modules/@twurple/api/lib/client/ContextApiCallOptions.js +0 -1
  17. package/node_modules/@twurple/api/lib/client/NoContextApiClient.d.ts +0 -5
  18. package/node_modules/@twurple/api/lib/client/NoContextApiClient.js +0 -14
  19. package/node_modules/@twurple/api/lib/client/UserContextApiClient.d.ts +0 -6
  20. package/node_modules/@twurple/api/lib/client/UserContextApiClient.js +0 -20
  21. package/node_modules/@twurple/api/lib/endpoints/BaseApi.d.ts +0 -4
  22. package/node_modules/@twurple/api/lib/endpoints/BaseApi.js +0 -17
  23. package/node_modules/@twurple/api/lib/endpoints/bits/CheermoteDisplayInfo.d.ts +0 -48
  24. package/node_modules/@twurple/api/lib/endpoints/bits/CheermoteDisplayInfo.js +0 -1
  25. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsApi.d.ts +0 -38
  26. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsApi.js +0 -61
  27. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboard.d.ts +0 -17
  28. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboard.js +0 -39
  29. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboardEntry.d.ts +0 -33
  30. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboardEntry.js +0 -57
  31. package/node_modules/@twurple/api/lib/endpoints/bits/HelixCheermoteList.d.ts +0 -23
  32. package/node_modules/@twurple/api/lib/endpoints/bits/HelixCheermoteList.js +0 -44
  33. package/node_modules/@twurple/api/lib/endpoints/channel/HelixAdSchedule.d.ts +0 -35
  34. package/node_modules/@twurple/api/lib/endpoints/channel/HelixAdSchedule.js +0 -50
  35. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannel.d.ts +0 -64
  36. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannel.js +0 -103
  37. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelApi.d.ts +0 -185
  38. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelApi.js +0 -371
  39. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelEditor.d.ts +0 -25
  40. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelEditor.js +0 -45
  41. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelFollower.d.ts +0 -29
  42. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelFollower.js +0 -51
  43. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelReference.d.ts +0 -43
  44. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelReference.js +0 -71
  45. package/node_modules/@twurple/api/lib/endpoints/channel/HelixFollowedChannel.d.ts +0 -29
  46. package/node_modules/@twurple/api/lib/endpoints/channel/HelixFollowedChannel.js +0 -51
  47. package/node_modules/@twurple/api/lib/endpoints/channel/HelixSnoozeNextAdResult.d.ts +0 -20
  48. package/node_modules/@twurple/api/lib/endpoints/channel/HelixSnoozeNextAdResult.js +0 -29
  49. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixChannelPointsApi.d.ts +0 -117
  50. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixChannelPointsApi.js +0 -228
  51. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomReward.d.ts +0 -94
  52. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomReward.js +0 -152
  53. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomRewardRedemption.d.ts +0 -88
  54. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomRewardRedemption.js +0 -138
  55. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityApi.d.ts +0 -39
  56. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityApi.js +0 -66
  57. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaign.d.ts +0 -54
  58. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaign.js +0 -88
  59. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignAmount.d.ts +0 -29
  60. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignAmount.js +0 -40
  61. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignDonation.d.ts +0 -34
  62. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignDonation.js +0 -58
  63. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChannelEmote.d.ts +0 -31
  64. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChannelEmote.js +0 -49
  65. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatApi.d.ts +0 -224
  66. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatApi.js +0 -446
  67. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeSet.d.ts +0 -23
  68. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeSet.js +0 -37
  69. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeVersion.d.ts +0 -35
  70. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeVersion.js +0 -49
  71. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatChatter.d.ts +0 -25
  72. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatChatter.js +0 -45
  73. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatSettings.d.ts +0 -45
  74. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatSettings.js +0 -64
  75. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmote.d.ts +0 -14
  76. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmote.js +0 -20
  77. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteBase.d.ts +0 -48
  78. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteBase.js +0 -68
  79. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteFromSet.d.ts +0 -33
  80. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteFromSet.js +0 -67
  81. package/node_modules/@twurple/api/lib/endpoints/chat/HelixPrivilegedChatSettings.d.ts +0 -17
  82. package/node_modules/@twurple/api/lib/endpoints/chat/HelixPrivilegedChatSettings.js +0 -26
  83. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSentChatMessage.d.ts +0 -24
  84. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSentChatMessage.js +0 -35
  85. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSession.d.ts +0 -34
  86. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSession.js +0 -58
  87. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSessionParticipant.d.ts +0 -17
  88. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSessionParticipant.js +0 -33
  89. package/node_modules/@twurple/api/lib/endpoints/chat/HelixUserEmote.d.ts +0 -37
  90. package/node_modules/@twurple/api/lib/endpoints/chat/HelixUserEmote.js +0 -58
  91. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClip.d.ts +0 -98
  92. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClip.js +0 -152
  93. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClipApi.d.ts +0 -99
  94. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClipApi.js +0 -192
  95. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabel.d.ts +0 -20
  96. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabel.js +0 -24
  97. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabelApi.d.ts +0 -25
  98. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabelApi.js +0 -38
  99. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixDropsEntitlement.d.ts +0 -46
  100. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixDropsEntitlement.js +0 -75
  101. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixEntitlementApi.d.ts +0 -68
  102. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixEntitlementApi.js +0 -122
  103. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubApi.d.ts +0 -780
  104. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubApi.js +0 -1150
  105. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduit.d.ts +0 -32
  106. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduit.js +0 -53
  107. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduitShard.d.ts +0 -20
  108. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduitShard.js +0 -29
  109. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubSubscription.d.ts +0 -44
  110. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubSubscription.js +0 -80
  111. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixPaginatedEventSubSubscriptionsRequest.d.ts +0 -20
  112. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixPaginatedEventSubSubscriptionsRequest.js +0 -40
  113. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionBitsProduct.d.ts +0 -32
  114. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionBitsProduct.js +0 -48
  115. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionTransaction.d.ts +0 -69
  116. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionTransaction.js +0 -111
  117. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionsApi.d.ts +0 -84
  118. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionsApi.js +0 -143
  119. package/node_modules/@twurple/api/lib/endpoints/game/HelixGame.d.ts +0 -47
  120. package/node_modules/@twurple/api/lib/endpoints/game/HelixGame.js +0 -71
  121. package/node_modules/@twurple/api/lib/endpoints/game/HelixGameApi.d.ts +0 -89
  122. package/node_modules/@twurple/api/lib/endpoints/game/HelixGameApi.js +0 -162
  123. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoal.d.ts +0 -49
  124. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoal.js +0 -81
  125. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoalApi.d.ts +0 -20
  126. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoalApi.js +0 -34
  127. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrain.d.ts +0 -70
  128. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrain.js +0 -112
  129. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainAllTimeHigh.d.ts +0 -20
  130. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainAllTimeHigh.js +0 -29
  131. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainApi.d.ts +0 -26
  132. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainApi.js +0 -37
  133. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainContribution.d.ts +0 -33
  134. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainContribution.js +0 -57
  135. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainSharedParticipant.d.ts +0 -25
  136. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainSharedParticipant.js +0 -45
  137. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainStatus.d.ts +0 -22
  138. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainStatus.js +0 -41
  139. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModSettings.d.ts +0 -52
  140. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModSettings.js +0 -77
  141. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModStatus.d.ts +0 -16
  142. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModStatus.js +0 -23
  143. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBan.d.ts +0 -29
  144. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBan.js +0 -48
  145. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBanUser.d.ts +0 -35
  146. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBanUser.js +0 -64
  147. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBlockedTerm.d.ts +0 -37
  148. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBlockedTerm.js +0 -54
  149. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModeratedChannel.d.ts +0 -30
  150. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModeratedChannel.js +0 -51
  151. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerationApi.d.ts +0 -281
  152. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerationApi.js +0 -580
  153. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerator.d.ts +0 -25
  154. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerator.js +0 -45
  155. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixShieldModeStatus.d.ts +0 -33
  156. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixShieldModeStatus.js +0 -57
  157. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixUnbanRequest.d.ts +0 -83
  158. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixUnbanRequest.js +0 -131
  159. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixWarning.d.ts +0 -37
  160. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixWarning.js +0 -63
  161. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPoll.d.ts +0 -62
  162. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPoll.js +0 -100
  163. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollApi.d.ts +0 -71
  164. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollApi.js +0 -130
  165. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollChoice.d.ts +0 -24
  166. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollChoice.js +0 -35
  167. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPrediction.d.ts +0 -66
  168. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPrediction.js +0 -115
  169. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionApi.d.ts +0 -86
  170. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionApi.js +0 -151
  171. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionOutcome.d.ts +0 -33
  172. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionOutcome.js +0 -58
  173. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictor.d.ts +0 -33
  174. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictor.js +0 -57
  175. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaid.d.ts +0 -16
  176. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaid.js +0 -23
  177. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaidApi.d.ts +0 -33
  178. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaidApi.js +0 -58
  179. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixPaginatedScheduleSegmentRequest.d.ts +0 -9
  180. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixPaginatedScheduleSegmentRequest.js +0 -31
  181. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixSchedule.d.ts +0 -38
  182. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixSchedule.js +0 -66
  183. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleApi.d.ts +0 -95
  184. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleApi.js +0 -171
  185. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleSegment.d.ts +0 -45
  186. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleSegment.js +0 -76
  187. package/node_modules/@twurple/api/lib/endpoints/search/HelixChannelSearchResult.d.ts +0 -58
  188. package/node_modules/@twurple/api/lib/endpoints/search/HelixChannelSearchResult.js +0 -95
  189. package/node_modules/@twurple/api/lib/endpoints/search/HelixSearchApi.d.ts +0 -59
  190. package/node_modules/@twurple/api/lib/endpoints/search/HelixSearchApi.js +0 -94
  191. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStream.d.ts +0 -88
  192. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStream.js +0 -137
  193. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamApi.d.ts +0 -140
  194. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamApi.js +0 -303
  195. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarker.d.ts +0 -24
  196. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarker.js +0 -45
  197. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarkerWithVideo.d.ts +0 -23
  198. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarkerWithVideo.js +0 -38
  199. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixPaginatedSubscriptionsRequest.d.ts +0 -16
  200. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixPaginatedSubscriptionsRequest.js +0 -34
  201. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscription.d.ts +0 -58
  202. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscription.js +0 -88
  203. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscriptionApi.d.ts +0 -66
  204. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscriptionApi.js +0 -119
  205. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixUserSubscription.d.ts +0 -33
  206. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixUserSubscription.js +0 -57
  207. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeam.d.ts +0 -51
  208. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeam.js +0 -84
  209. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamApi.d.ts +0 -43
  210. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamApi.js +0 -92
  211. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamWithUsers.d.ts +0 -14
  212. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamWithUsers.js +0 -21
  213. package/node_modules/@twurple/api/lib/endpoints/user/HelixFollow.d.ts +0 -45
  214. package/node_modules/@twurple/api/lib/endpoints/user/HelixFollow.js +0 -76
  215. package/node_modules/@twurple/api/lib/endpoints/user/HelixPrivilegedUser.d.ts +0 -19
  216. package/node_modules/@twurple/api/lib/endpoints/user/HelixPrivilegedUser.js +0 -28
  217. package/node_modules/@twurple/api/lib/endpoints/user/HelixUser.d.ts +0 -134
  218. package/node_modules/@twurple/api/lib/endpoints/user/HelixUser.js +0 -183
  219. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserApi.d.ts +0 -137
  220. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserApi.js +0 -280
  221. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserBlock.d.ts +0 -25
  222. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserBlock.js +0 -45
  223. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixBaseExtension.d.ts +0 -18
  224. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixBaseExtension.js +0 -22
  225. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtension.d.ts +0 -20
  226. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtension.js +0 -34
  227. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.d.ts +0 -14
  228. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.js +0 -26
  229. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixUserExtension.d.ts +0 -18
  230. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixUserExtension.js +0 -26
  231. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideo.d.ts +0 -105
  232. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideo.js +0 -195
  233. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideoApi.d.ts +0 -85
  234. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideoApi.js +0 -162
  235. package/node_modules/@twurple/api/lib/endpoints/whisper/HelixWhisperApi.d.ts +0 -36
  236. package/node_modules/@twurple/api/lib/endpoints/whisper/HelixWhisperApi.js +0 -53
  237. package/node_modules/@twurple/api/lib/errors/ChatMessageDroppedError.d.ts +0 -10
  238. package/node_modules/@twurple/api/lib/errors/ChatMessageDroppedError.js +0 -14
  239. package/node_modules/@twurple/api/lib/errors/ConfigError.d.ts +0 -7
  240. package/node_modules/@twurple/api/lib/errors/ConfigError.js +0 -6
  241. package/node_modules/@twurple/api/lib/errors/StreamNotLiveError.d.ts +0 -9
  242. package/node_modules/@twurple/api/lib/errors/StreamNotLiveError.js +0 -10
  243. package/node_modules/@twurple/api/lib/index.d.ts +0 -151
  244. package/node_modules/@twurple/api/lib/index.js +0 -111
  245. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.external.d.ts +0 -43
  246. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.external.js +0 -10
  247. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.input.d.ts +0 -30
  248. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.input.js +0 -1
  249. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.external.d.ts +0 -58
  250. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.external.js +0 -42
  251. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.input.d.ts +0 -39
  252. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.input.js +0 -1
  253. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.external.d.ts +0 -74
  254. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.external.js +0 -60
  255. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.input.d.ts +0 -78
  256. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.input.js +0 -1
  257. package/node_modules/@twurple/api/lib/interfaces/endpoints/charity.external.d.ts +0 -28
  258. package/node_modules/@twurple/api/lib/interfaces/endpoints/charity.external.js +0 -1
  259. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.external.d.ts +0 -114
  260. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.external.js +0 -52
  261. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.input.d.ts +0 -93
  262. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.input.js +0 -1
  263. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.external.d.ts +0 -28
  264. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.external.js +0 -33
  265. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.input.d.ts +0 -85
  266. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.input.js +0 -1
  267. package/node_modules/@twurple/api/lib/interfaces/endpoints/contentClassificationLabels.external.d.ts +0 -7
  268. package/node_modules/@twurple/api/lib/interfaces/endpoints/contentClassificationLabels.external.js +0 -1
  269. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.external.d.ts +0 -24
  270. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.external.js +0 -17
  271. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.input.d.ts +0 -26
  272. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.input.js +0 -1
  273. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.external.d.ts +0 -88
  274. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.external.js +0 -54
  275. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.input.d.ts +0 -66
  276. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.input.js +0 -1
  277. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.external.d.ts +0 -42
  278. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.external.js +0 -28
  279. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.input.d.ts +0 -47
  280. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.input.js +0 -1
  281. package/node_modules/@twurple/api/lib/interfaces/endpoints/game.external.d.ts +0 -8
  282. package/node_modules/@twurple/api/lib/interfaces/endpoints/game.external.js +0 -1
  283. package/node_modules/@twurple/api/lib/interfaces/endpoints/generic.external.d.ts +0 -20
  284. package/node_modules/@twurple/api/lib/interfaces/endpoints/generic.external.js +0 -32
  285. package/node_modules/@twurple/api/lib/interfaces/endpoints/goal.external.d.ts +0 -14
  286. package/node_modules/@twurple/api/lib/interfaces/endpoints/goal.external.js +0 -1
  287. package/node_modules/@twurple/api/lib/interfaces/endpoints/hypeTrain.external.d.ts +0 -52
  288. package/node_modules/@twurple/api/lib/interfaces/endpoints/hypeTrain.external.js +0 -1
  289. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.external.d.ts +0 -96
  290. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.external.js +0 -81
  291. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.input.d.ts +0 -65
  292. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.input.js +0 -1
  293. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.external.d.ts +0 -29
  294. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.external.js +0 -20
  295. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.input.d.ts +0 -22
  296. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.input.js +0 -1
  297. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.external.d.ts +0 -38
  298. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.external.js +0 -19
  299. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.input.d.ts +0 -18
  300. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.input.js +0 -1
  301. package/node_modules/@twurple/api/lib/interfaces/endpoints/raid.external.d.ts +0 -6
  302. package/node_modules/@twurple/api/lib/interfaces/endpoints/raid.external.js +0 -8
  303. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.external.d.ts +0 -36
  304. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.external.js +0 -54
  305. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.input.d.ts +0 -125
  306. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.input.js +0 -1
  307. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.external.d.ts +0 -15
  308. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.external.js +0 -7
  309. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.input.d.ts +0 -14
  310. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.input.js +0 -1
  311. package/node_modules/@twurple/api/lib/interfaces/endpoints/shared-chat-session.external.d.ts +0 -13
  312. package/node_modules/@twurple/api/lib/interfaces/endpoints/shared-chat-session.external.js +0 -7
  313. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.external.d.ts +0 -52
  314. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.external.js +0 -24
  315. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.input.d.ts +0 -33
  316. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.input.js +0 -1
  317. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.external.d.ts +0 -25
  318. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.external.js +0 -8
  319. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.input.d.ts +0 -12
  320. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.input.js +0 -1
  321. package/node_modules/@twurple/api/lib/interfaces/endpoints/team.external.d.ts +0 -18
  322. package/node_modules/@twurple/api/lib/interfaces/endpoints/team.external.js +0 -1
  323. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.external.d.ts +0 -41
  324. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.external.js +0 -15
  325. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.input.d.ts +0 -20
  326. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.input.js +0 -1
  327. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.external.d.ts +0 -34
  328. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.external.js +0 -1
  329. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.input.d.ts +0 -48
  330. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.input.js +0 -1
  331. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.external.d.ts +0 -38
  332. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.external.js +0 -1
  333. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.input.d.ts +0 -29
  334. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.input.js +0 -1
  335. package/node_modules/@twurple/api/lib/interfaces/endpoints/whisper.external.d.ts +0 -2
  336. package/node_modules/@twurple/api/lib/interfaces/endpoints/whisper.external.js +0 -8
  337. package/node_modules/@twurple/api/lib/relations/HelixUserRelation.d.ts +0 -25
  338. package/node_modules/@twurple/api/lib/relations/HelixUserRelation.js +0 -45
  339. package/node_modules/@twurple/api/lib/reporting/ApiReportedRequest.d.ts +0 -22
  340. package/node_modules/@twurple/api/lib/reporting/ApiReportedRequest.js +0 -32
  341. package/node_modules/@twurple/api/lib/utils/HelixRateLimiter.d.ts +0 -2
  342. package/node_modules/@twurple/api/lib/utils/HelixRateLimiter.js +0 -23
  343. package/node_modules/@twurple/api/lib/utils/HelixRequestBatcher.d.ts +0 -2
  344. package/node_modules/@twurple/api/lib/utils/HelixRequestBatcher.js +0 -95
  345. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequest.d.ts +0 -49
  346. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequest.js +0 -140
  347. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequestWithTotal.d.ts +0 -13
  348. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequestWithTotal.js +0 -22
  349. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedResult.d.ts +0 -31
  350. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedResult.js +0 -19
  351. package/node_modules/@twurple/api/lib/utils/pagination/HelixPagination.d.ts +0 -25
  352. package/node_modules/@twurple/api/lib/utils/pagination/HelixPagination.js +0 -8
  353. package/node_modules/@twurple/api/package.json +0 -60
  354. package/node_modules/retry/License +0 -21
  355. package/node_modules/retry/README.md +0 -227
  356. package/node_modules/retry/example/dns.js +0 -31
  357. package/node_modules/retry/example/stop.js +0 -40
  358. package/node_modules/retry/index.js +0 -1
  359. package/node_modules/retry/lib/retry.js +0 -100
  360. package/node_modules/retry/lib/retry_operation.js +0 -162
  361. package/node_modules/retry/package.json +0 -36
@@ -1,143 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { HelixExtension, rtfm } from '@twurple/common';
3
- import { createExtensionProductBody, createExtensionTransactionQuery, createReleasedExtensionFilter, } from '../../interfaces/endpoints/extensions.external.js';
4
- import { createSingleKeyQuery } from '../../interfaces/endpoints/generic.external.js';
5
- import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
6
- import { createPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
7
- import { createPaginationQuery } from '../../utils/pagination/HelixPagination.js';
8
- import { BaseApi } from '../BaseApi.js';
9
- import { HelixChannelReference } from '../channel/HelixChannelReference.js';
10
- import { HelixExtensionBitsProduct } from './HelixExtensionBitsProduct.js';
11
- import { HelixExtensionTransaction } from './HelixExtensionTransaction.js';
12
- /**
13
- * The Helix API methods that deal with extensions.
14
- *
15
- * Can be accessed using `client.extensions` on an {@link ApiClient} instance.
16
- *
17
- * ## Example
18
- * ```ts
19
- * const api = new ApiClient({ authProvider });
20
- * const transactions = await api.extionsions.getExtensionTransactions('abcd');
21
- * ```
22
- *
23
- * @meta category helix
24
- * @meta categorizedTitle Extensions
25
- */
26
- let HelixExtensionsApi = class HelixExtensionsApi extends BaseApi {
27
- /**
28
- * Gets a released extension by ID.
29
- *
30
- * @param extensionId The ID of the extension.
31
- * @param version The version of the extension. If not given, gets the latest version.
32
- */
33
- async getReleasedExtension(extensionId, version) {
34
- const result = await this._client.callApi({
35
- type: 'helix',
36
- url: 'extensions/released',
37
- query: createReleasedExtensionFilter(extensionId, version),
38
- });
39
- return new HelixExtension(result.data[0]);
40
- }
41
- /**
42
- * Gets a list of channels that are currently live and have the given extension installed.
43
- *
44
- * @param extensionId The ID of the extension.
45
- * @param pagination
46
- *
47
- * @expandParams
48
- */
49
- async getLiveChannelsWithExtension(extensionId, pagination) {
50
- const result = await this._client.callApi({
51
- type: 'helix',
52
- url: 'extensions/live',
53
- query: {
54
- ...createSingleKeyQuery('extension_id', extensionId),
55
- ...createPaginationQuery(pagination),
56
- },
57
- });
58
- return createPaginatedResult(result, HelixChannelReference, this._client);
59
- }
60
- /**
61
- * Creates a paginator for channels that are currently live and have the given extension installed.
62
- *
63
- * @param extensionId The ID of the extension.
64
- */
65
- getLiveChannelsWithExtensionPaginated(extensionId) {
66
- return new HelixPaginatedRequest({
67
- url: 'extensions/live',
68
- query: createSingleKeyQuery('extension_id', extensionId),
69
- }, this._client, data => new HelixChannelReference(data, this._client));
70
- }
71
- /**
72
- * Gets an extension's Bits products.
73
- *
74
- * This only works if the provided token belongs to an extension's client ID,
75
- * and will return the products for that extension.
76
- *
77
- * @param includeDisabled Whether to include disabled/expired products.
78
- */
79
- async getExtensionBitsProducts(includeDisabled) {
80
- const result = await this._client.callApi({
81
- type: 'helix',
82
- url: 'bits/extensions',
83
- forceType: 'app',
84
- query: createSingleKeyQuery('should_include_all', includeDisabled?.toString()),
85
- });
86
- return result.data.map(data => new HelixExtensionBitsProduct(data));
87
- }
88
- /**
89
- * Creates or updates a Bits product of an extension.
90
- *
91
- * This only works if the provided token belongs to an extension's client ID,
92
- * and will create/update a product for that extension.
93
- *
94
- * @param data
95
- *
96
- * @expandParams
97
- */
98
- async putExtensionBitsProduct(data) {
99
- const result = await this._client.callApi({
100
- type: 'helix',
101
- url: 'bits/extensions',
102
- method: 'PUT',
103
- forceType: 'app',
104
- jsonBody: createExtensionProductBody(data),
105
- });
106
- return new HelixExtensionBitsProduct(result.data[0]);
107
- }
108
- /**
109
- * Gets a list of transactions for the given extension.
110
- *
111
- * @param extensionId The ID of the extension to get transactions for.
112
- * @param filter Additional filters.
113
- */
114
- async getExtensionTransactions(extensionId, filter = {}) {
115
- const result = await this._client.callApi({
116
- type: 'helix',
117
- url: 'extensions/transactions',
118
- forceType: 'app',
119
- query: {
120
- ...createExtensionTransactionQuery(extensionId, filter),
121
- ...createPaginationQuery(filter),
122
- },
123
- });
124
- return createPaginatedResult(result, HelixExtensionTransaction, this._client);
125
- }
126
- /**
127
- * Creates a paginator for transactions for the given extension.
128
- *
129
- * @param extensionId The ID of the extension to get transactions for.
130
- * @param filter Additional filters.
131
- */
132
- getExtensionTransactionsPaginated(extensionId, filter = {}) {
133
- return new HelixPaginatedRequest({
134
- url: 'extensions/transactions',
135
- forceType: 'app',
136
- query: createExtensionTransactionQuery(extensionId, filter),
137
- }, this._client, data => new HelixExtensionTransaction(data, this._client));
138
- }
139
- };
140
- HelixExtensionsApi = __decorate([
141
- rtfm('api', 'HelixExtensionsApi')
142
- ], HelixExtensionsApi);
143
- export { HelixExtensionsApi };
@@ -1,47 +0,0 @@
1
- import { DataObject } from '@twurple/common';
2
- import { type HelixGameData } from '../../interfaces/endpoints/game.external.js';
3
- import { type HelixStreamData } from '../../interfaces/endpoints/stream.external.js';
4
- import type { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
5
- import type { HelixPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
6
- import type { HelixPagination } from '../../utils/pagination/HelixPagination.js';
7
- import type { HelixStream } from '../stream/HelixStream.js';
8
- /**
9
- * A game as displayed on Twitch.
10
- */
11
- export declare class HelixGame extends DataObject<HelixGameData> {
12
- /**
13
- * The ID of the game.
14
- */
15
- get id(): string;
16
- /**
17
- * The name of the game.
18
- */
19
- get name(): string;
20
- /**
21
- * The URL of the box art of the game.
22
- */
23
- get boxArtUrl(): string;
24
- /**
25
- * The IGDB ID of the game, or null if the game doesn't have an IGDB ID assigned at Twitch.
26
- */
27
- get igdbId(): string | null;
28
- /**
29
- * Builds the URL of the box art of the game using the given dimensions.
30
- *
31
- * @param width The width of the box art.
32
- * @param height The height of the box art.
33
- */
34
- getBoxArtUrl(width: number, height: number): string;
35
- /**
36
- * Gets streams that are currently playing the game.
37
- *
38
- * @param pagination
39
- * @expandParams
40
- */
41
- getStreams(pagination?: HelixPagination): Promise<HelixPaginatedResult<HelixStream>>;
42
- /**
43
- * Creates a paginator for streams that are currently playing the game.
44
- */
45
- getStreamsPaginated(): HelixPaginatedRequest<HelixStreamData, HelixStream>;
46
- }
47
- //# sourceMappingURL=HelixGame.d.ts.map
@@ -1,71 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Enumerable } from '@d-fischer/shared-utils';
3
- import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
4
- /**
5
- * A game as displayed on Twitch.
6
- */
7
- let HelixGame = class HelixGame 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 game.
16
- */
17
- get id() {
18
- return this[rawDataSymbol].id;
19
- }
20
- /**
21
- * The name of the game.
22
- */
23
- get name() {
24
- return this[rawDataSymbol].name;
25
- }
26
- /**
27
- * The URL of the box art of the game.
28
- */
29
- get boxArtUrl() {
30
- return this[rawDataSymbol].box_art_url;
31
- }
32
- /**
33
- * The IGDB ID of the game, or null if the game doesn't have an IGDB ID assigned at Twitch.
34
- */
35
- get igdbId() {
36
- return this[rawDataSymbol].igdb_id || null;
37
- }
38
- /**
39
- * Builds the URL of the box art of the game using the given dimensions.
40
- *
41
- * @param width The width of the box art.
42
- * @param height The height of the box art.
43
- */
44
- getBoxArtUrl(width, height) {
45
- return this[rawDataSymbol].box_art_url
46
- .replace('{width}', width.toString())
47
- .replace('{height}', height.toString());
48
- }
49
- /**
50
- * Gets streams that are currently playing the game.
51
- *
52
- * @param pagination
53
- * @expandParams
54
- */
55
- async getStreams(pagination) {
56
- return await this._client.streams.getStreams({ ...pagination, game: this[rawDataSymbol].id });
57
- }
58
- /**
59
- * Creates a paginator for streams that are currently playing the game.
60
- */
61
- getStreamsPaginated() {
62
- return this._client.streams.getStreamsPaginated({ game: this[rawDataSymbol].id });
63
- }
64
- };
65
- __decorate([
66
- Enumerable(false)
67
- ], HelixGame.prototype, "_client", void 0);
68
- HelixGame = __decorate([
69
- rtfm('api', 'HelixGame', 'id')
70
- ], HelixGame);
71
- export { HelixGame };
@@ -1,89 +0,0 @@
1
- import { type HelixGameData } from '../../interfaces/endpoints/game.external.js';
2
- import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
3
- import { type HelixPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
4
- import { type HelixPagination } from '../../utils/pagination/HelixPagination.js';
5
- import { BaseApi } from '../BaseApi.js';
6
- import { HelixGame } from './HelixGame.js';
7
- /**
8
- * The Helix API methods that deal with games.
9
- *
10
- * Can be accessed using `client.games` on an {@link ApiClient} instance.
11
- *
12
- * ## Example
13
- * ```ts
14
- * const api = new ApiClient({ authProvider });
15
- * const game = await api.games.getGameByName('Hearthstone');
16
- * ```
17
- *
18
- * @meta category helix
19
- * @meta categorizedTitle Games
20
- */
21
- export declare class HelixGameApi extends BaseApi {
22
- /**
23
- * Gets the game data for the given list of game IDs.
24
- *
25
- * @param ids The game IDs you want to look up.
26
- */
27
- getGamesByIds(ids: string[]): Promise<HelixGame[]>;
28
- /**
29
- * Gets the game data for the given list of game names.
30
- *
31
- * @param names The game names you want to look up.
32
- */
33
- getGamesByNames(names: string[]): Promise<HelixGame[]>;
34
- /**
35
- * Gets the game data for the given list of IGDB IDs.
36
- *
37
- * @param igdbIds The IGDB IDs you want to look up.
38
- */
39
- getGamesByIgdbIds(igdbIds: string[]): Promise<HelixGame[]>;
40
- /**
41
- * Gets the game data for the given game ID.
42
- *
43
- * @param id The game ID you want to look up.
44
- */
45
- getGameById(id: string): Promise<HelixGame | null>;
46
- /**
47
- * Gets the game data for the given game name.
48
- *
49
- * @param name The game name you want to look up.
50
- */
51
- getGameByName(name: string): Promise<HelixGame | null>;
52
- /**
53
- * Gets the game data for the given IGDB ID.
54
- *
55
- * @param igdbId The IGDB ID you want to look up.
56
- */
57
- getGameByIgdbId(igdbId: string): Promise<HelixGame | null>;
58
- /**
59
- * Gets the game data for the given game ID, batching multiple calls into fewer requests as the API allows.
60
- *
61
- * @param id The game ID you want to look up.
62
- */
63
- getGameByIdBatched(id: string): Promise<HelixGame | null>;
64
- /**
65
- * Gets the game data for the given game name, batching multiple calls into fewer requests as the API allows.
66
- *
67
- * @param name The game name you want to look up.
68
- */
69
- getGameByNameBatched(name: string): Promise<HelixGame | null>;
70
- /**
71
- * Gets the game data for the given IGDB ID, batching multiple calls into fewer requests as the API allows.
72
- *
73
- * @param igdbId The IGDB ID you want to look up.
74
- */
75
- getGameByIgdbIdBatched(igdbId: string): Promise<HelixGame | null>;
76
- /**
77
- * Gets a list of the most viewed games at the moment.
78
- *
79
- * @param pagination
80
- *
81
- * @expandParams
82
- */
83
- getTopGames(pagination?: HelixPagination): Promise<HelixPaginatedResult<HelixGame>>;
84
- /**
85
- * Creates a paginator for the most viewed games at the moment.
86
- */
87
- getTopGamesPaginated(): HelixPaginatedRequest<HelixGameData, HelixGame>;
88
- }
89
- //# sourceMappingURL=HelixGameApi.d.ts.map
@@ -1,162 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Enumerable } from '@d-fischer/shared-utils';
3
- import { rtfm } from '@twurple/common';
4
- import { HelixRequestBatcher } from '../../utils/HelixRequestBatcher.js';
5
- import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
6
- import { createPaginatedResult } from '../../utils/pagination/HelixPaginatedResult.js';
7
- import { createPaginationQuery } from '../../utils/pagination/HelixPagination.js';
8
- import { BaseApi } from '../BaseApi.js';
9
- import { HelixGame } from './HelixGame.js';
10
- /**
11
- * The Helix API methods that deal with games.
12
- *
13
- * Can be accessed using `client.games` on an {@link ApiClient} instance.
14
- *
15
- * ## Example
16
- * ```ts
17
- * const api = new ApiClient({ authProvider });
18
- * const game = await api.games.getGameByName('Hearthstone');
19
- * ```
20
- *
21
- * @meta category helix
22
- * @meta categorizedTitle Games
23
- */
24
- let HelixGameApi = class HelixGameApi extends BaseApi {
25
- /** @internal */
26
- _getGameByIdBatcher = new HelixRequestBatcher({
27
- url: 'games',
28
- }, 'id', 'id', this._client, (data) => new HelixGame(data, this._client));
29
- /** @internal */
30
- _getGameByNameBatcher = new HelixRequestBatcher({
31
- url: 'games',
32
- }, 'name', 'name', this._client, (data) => new HelixGame(data, this._client));
33
- /** @internal */
34
- _getGameByIgdbIdBatcher = new HelixRequestBatcher({
35
- url: 'games',
36
- }, 'igdb_id', 'igdb_id', this._client, (data) => new HelixGame(data, this._client));
37
- /**
38
- * Gets the game data for the given list of game IDs.
39
- *
40
- * @param ids The game IDs you want to look up.
41
- */
42
- async getGamesByIds(ids) {
43
- return await this._getGames('id', ids);
44
- }
45
- /**
46
- * Gets the game data for the given list of game names.
47
- *
48
- * @param names The game names you want to look up.
49
- */
50
- async getGamesByNames(names) {
51
- return await this._getGames('name', names);
52
- }
53
- /**
54
- * Gets the game data for the given list of IGDB IDs.
55
- *
56
- * @param igdbIds The IGDB IDs you want to look up.
57
- */
58
- async getGamesByIgdbIds(igdbIds) {
59
- return await this._getGames('igdb_id', igdbIds);
60
- }
61
- /**
62
- * Gets the game data for the given game ID.
63
- *
64
- * @param id The game ID you want to look up.
65
- */
66
- async getGameById(id) {
67
- const games = await this._getGames('id', [id]);
68
- return games[0] ?? null;
69
- }
70
- /**
71
- * Gets the game data for the given game name.
72
- *
73
- * @param name The game name you want to look up.
74
- */
75
- async getGameByName(name) {
76
- const games = await this._getGames('name', [name]);
77
- return games[0] ?? null;
78
- }
79
- /**
80
- * Gets the game data for the given IGDB ID.
81
- *
82
- * @param igdbId The IGDB ID you want to look up.
83
- */
84
- async getGameByIgdbId(igdbId) {
85
- const games = await this._getGames('igdb_id', [igdbId]);
86
- return games[0] ?? null;
87
- }
88
- /**
89
- * Gets the game data for the given game ID, batching multiple calls into fewer requests as the API allows.
90
- *
91
- * @param id The game ID you want to look up.
92
- */
93
- async getGameByIdBatched(id) {
94
- return await this._getGameByIdBatcher.request(id);
95
- }
96
- /**
97
- * Gets the game data for the given game name, batching multiple calls into fewer requests as the API allows.
98
- *
99
- * @param name The game name you want to look up.
100
- */
101
- async getGameByNameBatched(name) {
102
- return await this._getGameByNameBatcher.request(name);
103
- }
104
- /**
105
- * Gets the game data for the given IGDB ID, batching multiple calls into fewer requests as the API allows.
106
- *
107
- * @param igdbId The IGDB ID you want to look up.
108
- */
109
- async getGameByIgdbIdBatched(igdbId) {
110
- return await this._getGameByIgdbIdBatcher.request(igdbId);
111
- }
112
- /**
113
- * Gets a list of the most viewed games at the moment.
114
- *
115
- * @param pagination
116
- *
117
- * @expandParams
118
- */
119
- async getTopGames(pagination) {
120
- const result = await this._client.callApi({
121
- type: 'helix',
122
- url: 'games/top',
123
- query: createPaginationQuery(pagination),
124
- });
125
- return createPaginatedResult(result, HelixGame, this._client);
126
- }
127
- /**
128
- * Creates a paginator for the most viewed games at the moment.
129
- */
130
- getTopGamesPaginated() {
131
- return new HelixPaginatedRequest({
132
- url: 'games/top',
133
- }, this._client, data => new HelixGame(data, this._client));
134
- }
135
- /** @internal */
136
- async _getGames(filterType, filterValues) {
137
- if (!filterValues.length) {
138
- return [];
139
- }
140
- const result = await this._client.callApi({
141
- type: 'helix',
142
- url: 'games',
143
- query: {
144
- [filterType]: filterValues,
145
- },
146
- });
147
- return result.data.map(entry => new HelixGame(entry, this._client));
148
- }
149
- };
150
- __decorate([
151
- Enumerable(false)
152
- ], HelixGameApi.prototype, "_getGameByIdBatcher", void 0);
153
- __decorate([
154
- Enumerable(false)
155
- ], HelixGameApi.prototype, "_getGameByNameBatcher", void 0);
156
- __decorate([
157
- Enumerable(false)
158
- ], HelixGameApi.prototype, "_getGameByIgdbIdBatcher", void 0);
159
- HelixGameApi = __decorate([
160
- rtfm('api', 'HelixGameApi')
161
- ], HelixGameApi);
162
- export { HelixGameApi };
@@ -1,49 +0,0 @@
1
- import { DataObject } from '@twurple/common';
2
- import { type HelixGoalData, type HelixGoalType } from '../../interfaces/endpoints/goal.external.js';
3
- import type { HelixUser } from '../user/HelixUser.js';
4
- /**
5
- * A creator goal.
6
- */
7
- export declare class HelixGoal extends DataObject<HelixGoalData> {
8
- /**
9
- * The ID of the goal.
10
- */
11
- get id(): string;
12
- /**
13
- * The ID of the broadcaster the goal belongs to.
14
- */
15
- get broadcasterId(): string;
16
- /**
17
- * The display name of the broadcaster the goal belongs to.
18
- */
19
- get broadcasterDisplayName(): string;
20
- /**
21
- * The name of the broadcaster the goal belongs to.
22
- */
23
- get broadcasterName(): string;
24
- /**
25
- * Gets more information about the broadcaster.
26
- */
27
- getBroadcaster(): Promise<HelixUser>;
28
- /**
29
- * The type of the goal.
30
- */
31
- get type(): HelixGoalType;
32
- /**
33
- * The description of the goal.
34
- */
35
- get description(): string;
36
- /**
37
- * The current value of the goal.
38
- */
39
- get currentAmount(): number;
40
- /**
41
- * The target value of the goal.
42
- */
43
- get targetAmount(): number;
44
- /**
45
- * The date and time when the goal was created.
46
- */
47
- get creationDate(): Date;
48
- }
49
- //# sourceMappingURL=HelixGoal.d.ts.map
@@ -1,81 +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 creator goal.
6
- */
7
- let HelixGoal = class HelixGoal 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 goal.
16
- */
17
- get id() {
18
- return this[rawDataSymbol].id;
19
- }
20
- /**
21
- * The ID of the broadcaster the goal belongs to.
22
- */
23
- get broadcasterId() {
24
- return this[rawDataSymbol].broadcaster_id;
25
- }
26
- /**
27
- * The display name of the broadcaster the goal belongs to.
28
- */
29
- get broadcasterDisplayName() {
30
- return this[rawDataSymbol].broadcaster_name;
31
- }
32
- /**
33
- * The name of the broadcaster the goal belongs to.
34
- */
35
- get broadcasterName() {
36
- return this[rawDataSymbol].broadcaster_login;
37
- }
38
- /**
39
- * Gets more information about the broadcaster.
40
- */
41
- async getBroadcaster() {
42
- return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].broadcaster_id));
43
- }
44
- /**
45
- * The type of the goal.
46
- */
47
- get type() {
48
- return this[rawDataSymbol].type;
49
- }
50
- /**
51
- * The description of the goal.
52
- */
53
- get description() {
54
- return this[rawDataSymbol].description;
55
- }
56
- /**
57
- * The current value of the goal.
58
- */
59
- get currentAmount() {
60
- return this[rawDataSymbol].current_amount;
61
- }
62
- /**
63
- * The target value of the goal.
64
- */
65
- get targetAmount() {
66
- return this[rawDataSymbol].target_amount;
67
- }
68
- /**
69
- * The date and time when the goal was created.
70
- */
71
- get creationDate() {
72
- return this[rawDataSymbol].created_at;
73
- }
74
- };
75
- __decorate([
76
- Enumerable(false)
77
- ], HelixGoal.prototype, "_client", void 0);
78
- HelixGoal = __decorate([
79
- rtfm('api', 'HelixGoal', 'id')
80
- ], HelixGoal);
81
- export { HelixGoal };
@@ -1,20 +0,0 @@
1
- import { type UserIdResolvable } from '@twurple/common';
2
- import { BaseApi } from '../BaseApi.js';
3
- import { HelixGoal } from './HelixGoal.js';
4
- /**
5
- * The Helix API methods that deal with creator goals.
6
- *
7
- * Can be accessed using `client.goals` on an {@link ApiClient} instance.
8
- *
9
- * ## Example
10
- * ```ts
11
- * const api = new ApiClient({ authProvider });
12
- * const { data: goals } = await api.helix.goals.getGoals('61369223');
13
- *
14
- * @meta category helix
15
- * @meta categorizedTitle Goals
16
- */
17
- export declare class HelixGoalApi extends BaseApi {
18
- getGoals(broadcaster: UserIdResolvable): Promise<HelixGoal[]>;
19
- }
20
- //# sourceMappingURL=HelixGoalApi.d.ts.map