@openclaw/twitch 2026.7.1-beta.6 → 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.
Files changed (359) 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-BL82UZIL.js} +6 -8
  4. package/dist/{plugin-C5o3rImF.js → plugin-DG2hXX7Z.js} +51 -31
  5. package/npm-shrinkwrap.json +3 -36
  6. package/package.json +6 -6
  7. package/node_modules/@twurple/api/LICENSE +0 -21
  8. package/node_modules/@twurple/api/README.md +0 -24
  9. package/node_modules/@twurple/api/lib/client/ApiClient.d.ts +0 -98
  10. package/node_modules/@twurple/api/lib/client/ApiClient.js +0 -107
  11. package/node_modules/@twurple/api/lib/client/BaseApiClient.d.ts +0 -167
  12. package/node_modules/@twurple/api/lib/client/BaseApiClient.js +0 -446
  13. package/node_modules/@twurple/api/lib/client/ContextApiCallOptions.d.ts +0 -21
  14. package/node_modules/@twurple/api/lib/client/ContextApiCallOptions.js +0 -1
  15. package/node_modules/@twurple/api/lib/client/NoContextApiClient.d.ts +0 -5
  16. package/node_modules/@twurple/api/lib/client/NoContextApiClient.js +0 -14
  17. package/node_modules/@twurple/api/lib/client/UserContextApiClient.d.ts +0 -6
  18. package/node_modules/@twurple/api/lib/client/UserContextApiClient.js +0 -20
  19. package/node_modules/@twurple/api/lib/endpoints/BaseApi.d.ts +0 -4
  20. package/node_modules/@twurple/api/lib/endpoints/BaseApi.js +0 -17
  21. package/node_modules/@twurple/api/lib/endpoints/bits/CheermoteDisplayInfo.d.ts +0 -48
  22. package/node_modules/@twurple/api/lib/endpoints/bits/CheermoteDisplayInfo.js +0 -1
  23. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsApi.d.ts +0 -38
  24. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsApi.js +0 -61
  25. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboard.d.ts +0 -17
  26. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboard.js +0 -39
  27. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboardEntry.d.ts +0 -33
  28. package/node_modules/@twurple/api/lib/endpoints/bits/HelixBitsLeaderboardEntry.js +0 -57
  29. package/node_modules/@twurple/api/lib/endpoints/bits/HelixCheermoteList.d.ts +0 -23
  30. package/node_modules/@twurple/api/lib/endpoints/bits/HelixCheermoteList.js +0 -44
  31. package/node_modules/@twurple/api/lib/endpoints/channel/HelixAdSchedule.d.ts +0 -35
  32. package/node_modules/@twurple/api/lib/endpoints/channel/HelixAdSchedule.js +0 -50
  33. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannel.d.ts +0 -64
  34. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannel.js +0 -103
  35. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelApi.d.ts +0 -185
  36. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelApi.js +0 -371
  37. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelEditor.d.ts +0 -25
  38. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelEditor.js +0 -45
  39. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelFollower.d.ts +0 -29
  40. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelFollower.js +0 -51
  41. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelReference.d.ts +0 -43
  42. package/node_modules/@twurple/api/lib/endpoints/channel/HelixChannelReference.js +0 -71
  43. package/node_modules/@twurple/api/lib/endpoints/channel/HelixFollowedChannel.d.ts +0 -29
  44. package/node_modules/@twurple/api/lib/endpoints/channel/HelixFollowedChannel.js +0 -51
  45. package/node_modules/@twurple/api/lib/endpoints/channel/HelixSnoozeNextAdResult.d.ts +0 -20
  46. package/node_modules/@twurple/api/lib/endpoints/channel/HelixSnoozeNextAdResult.js +0 -29
  47. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixChannelPointsApi.d.ts +0 -117
  48. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixChannelPointsApi.js +0 -228
  49. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomReward.d.ts +0 -94
  50. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomReward.js +0 -152
  51. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomRewardRedemption.d.ts +0 -88
  52. package/node_modules/@twurple/api/lib/endpoints/channelPoints/HelixCustomRewardRedemption.js +0 -138
  53. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityApi.d.ts +0 -39
  54. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityApi.js +0 -66
  55. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaign.d.ts +0 -54
  56. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaign.js +0 -88
  57. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignAmount.d.ts +0 -29
  58. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignAmount.js +0 -40
  59. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignDonation.d.ts +0 -34
  60. package/node_modules/@twurple/api/lib/endpoints/charity/HelixCharityCampaignDonation.js +0 -58
  61. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChannelEmote.d.ts +0 -31
  62. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChannelEmote.js +0 -49
  63. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatApi.d.ts +0 -224
  64. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatApi.js +0 -446
  65. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeSet.d.ts +0 -23
  66. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeSet.js +0 -37
  67. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeVersion.d.ts +0 -35
  68. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatBadgeVersion.js +0 -49
  69. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatChatter.d.ts +0 -25
  70. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatChatter.js +0 -45
  71. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatSettings.d.ts +0 -45
  72. package/node_modules/@twurple/api/lib/endpoints/chat/HelixChatSettings.js +0 -64
  73. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmote.d.ts +0 -14
  74. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmote.js +0 -20
  75. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteBase.d.ts +0 -48
  76. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteBase.js +0 -68
  77. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteFromSet.d.ts +0 -33
  78. package/node_modules/@twurple/api/lib/endpoints/chat/HelixEmoteFromSet.js +0 -67
  79. package/node_modules/@twurple/api/lib/endpoints/chat/HelixPrivilegedChatSettings.d.ts +0 -17
  80. package/node_modules/@twurple/api/lib/endpoints/chat/HelixPrivilegedChatSettings.js +0 -26
  81. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSentChatMessage.d.ts +0 -24
  82. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSentChatMessage.js +0 -35
  83. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSession.d.ts +0 -34
  84. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSession.js +0 -58
  85. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSessionParticipant.d.ts +0 -17
  86. package/node_modules/@twurple/api/lib/endpoints/chat/HelixSharedChatSessionParticipant.js +0 -33
  87. package/node_modules/@twurple/api/lib/endpoints/chat/HelixUserEmote.d.ts +0 -37
  88. package/node_modules/@twurple/api/lib/endpoints/chat/HelixUserEmote.js +0 -58
  89. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClip.d.ts +0 -98
  90. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClip.js +0 -152
  91. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClipApi.d.ts +0 -99
  92. package/node_modules/@twurple/api/lib/endpoints/clip/HelixClipApi.js +0 -192
  93. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabel.d.ts +0 -20
  94. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabel.js +0 -24
  95. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabelApi.d.ts +0 -25
  96. package/node_modules/@twurple/api/lib/endpoints/contentClassificationLabels/HelixContentClassificationLabelApi.js +0 -38
  97. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixDropsEntitlement.d.ts +0 -46
  98. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixDropsEntitlement.js +0 -75
  99. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixEntitlementApi.d.ts +0 -68
  100. package/node_modules/@twurple/api/lib/endpoints/entitlements/HelixEntitlementApi.js +0 -122
  101. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubApi.d.ts +0 -780
  102. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubApi.js +0 -1150
  103. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduit.d.ts +0 -32
  104. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduit.js +0 -53
  105. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduitShard.d.ts +0 -20
  106. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubConduitShard.js +0 -29
  107. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubSubscription.d.ts +0 -44
  108. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixEventSubSubscription.js +0 -80
  109. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixPaginatedEventSubSubscriptionsRequest.d.ts +0 -20
  110. package/node_modules/@twurple/api/lib/endpoints/eventSub/HelixPaginatedEventSubSubscriptionsRequest.js +0 -40
  111. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionBitsProduct.d.ts +0 -32
  112. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionBitsProduct.js +0 -48
  113. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionTransaction.d.ts +0 -69
  114. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionTransaction.js +0 -111
  115. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionsApi.d.ts +0 -84
  116. package/node_modules/@twurple/api/lib/endpoints/extensions/HelixExtensionsApi.js +0 -143
  117. package/node_modules/@twurple/api/lib/endpoints/game/HelixGame.d.ts +0 -47
  118. package/node_modules/@twurple/api/lib/endpoints/game/HelixGame.js +0 -71
  119. package/node_modules/@twurple/api/lib/endpoints/game/HelixGameApi.d.ts +0 -89
  120. package/node_modules/@twurple/api/lib/endpoints/game/HelixGameApi.js +0 -162
  121. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoal.d.ts +0 -49
  122. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoal.js +0 -81
  123. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoalApi.d.ts +0 -20
  124. package/node_modules/@twurple/api/lib/endpoints/goals/HelixGoalApi.js +0 -34
  125. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrain.d.ts +0 -70
  126. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrain.js +0 -112
  127. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainAllTimeHigh.d.ts +0 -20
  128. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainAllTimeHigh.js +0 -29
  129. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainApi.d.ts +0 -26
  130. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainApi.js +0 -37
  131. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainContribution.d.ts +0 -33
  132. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainContribution.js +0 -57
  133. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainSharedParticipant.d.ts +0 -25
  134. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainSharedParticipant.js +0 -45
  135. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainStatus.d.ts +0 -22
  136. package/node_modules/@twurple/api/lib/endpoints/hypeTrain/HelixHypeTrainStatus.js +0 -41
  137. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModSettings.d.ts +0 -52
  138. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModSettings.js +0 -77
  139. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModStatus.d.ts +0 -16
  140. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixAutoModStatus.js +0 -23
  141. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBan.d.ts +0 -29
  142. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBan.js +0 -48
  143. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBanUser.d.ts +0 -35
  144. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBanUser.js +0 -64
  145. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBlockedTerm.d.ts +0 -37
  146. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixBlockedTerm.js +0 -54
  147. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModeratedChannel.d.ts +0 -30
  148. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModeratedChannel.js +0 -51
  149. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerationApi.d.ts +0 -281
  150. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerationApi.js +0 -580
  151. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerator.d.ts +0 -25
  152. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixModerator.js +0 -45
  153. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixShieldModeStatus.d.ts +0 -33
  154. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixShieldModeStatus.js +0 -57
  155. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixUnbanRequest.d.ts +0 -83
  156. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixUnbanRequest.js +0 -131
  157. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixWarning.d.ts +0 -37
  158. package/node_modules/@twurple/api/lib/endpoints/moderation/HelixWarning.js +0 -63
  159. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPoll.d.ts +0 -62
  160. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPoll.js +0 -100
  161. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollApi.d.ts +0 -71
  162. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollApi.js +0 -130
  163. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollChoice.d.ts +0 -24
  164. package/node_modules/@twurple/api/lib/endpoints/poll/HelixPollChoice.js +0 -35
  165. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPrediction.d.ts +0 -66
  166. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPrediction.js +0 -115
  167. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionApi.d.ts +0 -86
  168. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionApi.js +0 -151
  169. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionOutcome.d.ts +0 -33
  170. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictionOutcome.js +0 -58
  171. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictor.d.ts +0 -33
  172. package/node_modules/@twurple/api/lib/endpoints/prediction/HelixPredictor.js +0 -57
  173. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaid.d.ts +0 -16
  174. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaid.js +0 -23
  175. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaidApi.d.ts +0 -33
  176. package/node_modules/@twurple/api/lib/endpoints/raids/HelixRaidApi.js +0 -58
  177. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixPaginatedScheduleSegmentRequest.d.ts +0 -9
  178. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixPaginatedScheduleSegmentRequest.js +0 -31
  179. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixSchedule.d.ts +0 -38
  180. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixSchedule.js +0 -66
  181. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleApi.d.ts +0 -95
  182. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleApi.js +0 -171
  183. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleSegment.d.ts +0 -45
  184. package/node_modules/@twurple/api/lib/endpoints/schedule/HelixScheduleSegment.js +0 -76
  185. package/node_modules/@twurple/api/lib/endpoints/search/HelixChannelSearchResult.d.ts +0 -58
  186. package/node_modules/@twurple/api/lib/endpoints/search/HelixChannelSearchResult.js +0 -95
  187. package/node_modules/@twurple/api/lib/endpoints/search/HelixSearchApi.d.ts +0 -59
  188. package/node_modules/@twurple/api/lib/endpoints/search/HelixSearchApi.js +0 -94
  189. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStream.d.ts +0 -88
  190. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStream.js +0 -137
  191. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamApi.d.ts +0 -140
  192. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamApi.js +0 -303
  193. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarker.d.ts +0 -24
  194. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarker.js +0 -45
  195. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarkerWithVideo.d.ts +0 -23
  196. package/node_modules/@twurple/api/lib/endpoints/stream/HelixStreamMarkerWithVideo.js +0 -38
  197. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixPaginatedSubscriptionsRequest.d.ts +0 -16
  198. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixPaginatedSubscriptionsRequest.js +0 -34
  199. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscription.d.ts +0 -58
  200. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscription.js +0 -88
  201. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscriptionApi.d.ts +0 -66
  202. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixSubscriptionApi.js +0 -119
  203. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixUserSubscription.d.ts +0 -33
  204. package/node_modules/@twurple/api/lib/endpoints/subscriptions/HelixUserSubscription.js +0 -57
  205. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeam.d.ts +0 -51
  206. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeam.js +0 -84
  207. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamApi.d.ts +0 -43
  208. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamApi.js +0 -92
  209. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamWithUsers.d.ts +0 -14
  210. package/node_modules/@twurple/api/lib/endpoints/team/HelixTeamWithUsers.js +0 -21
  211. package/node_modules/@twurple/api/lib/endpoints/user/HelixFollow.d.ts +0 -45
  212. package/node_modules/@twurple/api/lib/endpoints/user/HelixFollow.js +0 -76
  213. package/node_modules/@twurple/api/lib/endpoints/user/HelixPrivilegedUser.d.ts +0 -19
  214. package/node_modules/@twurple/api/lib/endpoints/user/HelixPrivilegedUser.js +0 -28
  215. package/node_modules/@twurple/api/lib/endpoints/user/HelixUser.d.ts +0 -134
  216. package/node_modules/@twurple/api/lib/endpoints/user/HelixUser.js +0 -183
  217. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserApi.d.ts +0 -137
  218. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserApi.js +0 -280
  219. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserBlock.d.ts +0 -25
  220. package/node_modules/@twurple/api/lib/endpoints/user/HelixUserBlock.js +0 -45
  221. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixBaseExtension.d.ts +0 -18
  222. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixBaseExtension.js +0 -22
  223. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtension.d.ts +0 -20
  224. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtension.js +0 -34
  225. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.d.ts +0 -14
  226. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixInstalledExtensionList.js +0 -26
  227. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixUserExtension.d.ts +0 -18
  228. package/node_modules/@twurple/api/lib/endpoints/user/extensions/HelixUserExtension.js +0 -26
  229. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideo.d.ts +0 -105
  230. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideo.js +0 -195
  231. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideoApi.d.ts +0 -85
  232. package/node_modules/@twurple/api/lib/endpoints/video/HelixVideoApi.js +0 -162
  233. package/node_modules/@twurple/api/lib/endpoints/whisper/HelixWhisperApi.d.ts +0 -36
  234. package/node_modules/@twurple/api/lib/endpoints/whisper/HelixWhisperApi.js +0 -53
  235. package/node_modules/@twurple/api/lib/errors/ChatMessageDroppedError.d.ts +0 -10
  236. package/node_modules/@twurple/api/lib/errors/ChatMessageDroppedError.js +0 -14
  237. package/node_modules/@twurple/api/lib/errors/ConfigError.d.ts +0 -7
  238. package/node_modules/@twurple/api/lib/errors/ConfigError.js +0 -6
  239. package/node_modules/@twurple/api/lib/errors/StreamNotLiveError.d.ts +0 -9
  240. package/node_modules/@twurple/api/lib/errors/StreamNotLiveError.js +0 -10
  241. package/node_modules/@twurple/api/lib/index.d.ts +0 -151
  242. package/node_modules/@twurple/api/lib/index.js +0 -111
  243. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.external.d.ts +0 -43
  244. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.external.js +0 -10
  245. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.input.d.ts +0 -30
  246. package/node_modules/@twurple/api/lib/interfaces/endpoints/bits.input.js +0 -1
  247. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.external.d.ts +0 -58
  248. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.external.js +0 -42
  249. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.input.d.ts +0 -39
  250. package/node_modules/@twurple/api/lib/interfaces/endpoints/channel.input.js +0 -1
  251. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.external.d.ts +0 -74
  252. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.external.js +0 -60
  253. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.input.d.ts +0 -78
  254. package/node_modules/@twurple/api/lib/interfaces/endpoints/channelPoints.input.js +0 -1
  255. package/node_modules/@twurple/api/lib/interfaces/endpoints/charity.external.d.ts +0 -28
  256. package/node_modules/@twurple/api/lib/interfaces/endpoints/charity.external.js +0 -1
  257. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.external.d.ts +0 -114
  258. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.external.js +0 -52
  259. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.input.d.ts +0 -93
  260. package/node_modules/@twurple/api/lib/interfaces/endpoints/chat.input.js +0 -1
  261. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.external.d.ts +0 -28
  262. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.external.js +0 -33
  263. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.input.d.ts +0 -85
  264. package/node_modules/@twurple/api/lib/interfaces/endpoints/clip.input.js +0 -1
  265. package/node_modules/@twurple/api/lib/interfaces/endpoints/contentClassificationLabels.external.d.ts +0 -7
  266. package/node_modules/@twurple/api/lib/interfaces/endpoints/contentClassificationLabels.external.js +0 -1
  267. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.external.d.ts +0 -24
  268. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.external.js +0 -17
  269. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.input.d.ts +0 -26
  270. package/node_modules/@twurple/api/lib/interfaces/endpoints/entitlement.input.js +0 -1
  271. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.external.d.ts +0 -88
  272. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.external.js +0 -54
  273. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.input.d.ts +0 -66
  274. package/node_modules/@twurple/api/lib/interfaces/endpoints/eventSub.input.js +0 -1
  275. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.external.d.ts +0 -42
  276. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.external.js +0 -28
  277. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.input.d.ts +0 -47
  278. package/node_modules/@twurple/api/lib/interfaces/endpoints/extensions.input.js +0 -1
  279. package/node_modules/@twurple/api/lib/interfaces/endpoints/game.external.d.ts +0 -8
  280. package/node_modules/@twurple/api/lib/interfaces/endpoints/game.external.js +0 -1
  281. package/node_modules/@twurple/api/lib/interfaces/endpoints/generic.external.d.ts +0 -20
  282. package/node_modules/@twurple/api/lib/interfaces/endpoints/generic.external.js +0 -32
  283. package/node_modules/@twurple/api/lib/interfaces/endpoints/goal.external.d.ts +0 -14
  284. package/node_modules/@twurple/api/lib/interfaces/endpoints/goal.external.js +0 -1
  285. package/node_modules/@twurple/api/lib/interfaces/endpoints/hypeTrain.external.d.ts +0 -52
  286. package/node_modules/@twurple/api/lib/interfaces/endpoints/hypeTrain.external.js +0 -1
  287. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.external.d.ts +0 -96
  288. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.external.js +0 -81
  289. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.input.d.ts +0 -65
  290. package/node_modules/@twurple/api/lib/interfaces/endpoints/moderation.input.js +0 -1
  291. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.external.d.ts +0 -29
  292. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.external.js +0 -20
  293. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.input.d.ts +0 -22
  294. package/node_modules/@twurple/api/lib/interfaces/endpoints/poll.input.js +0 -1
  295. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.external.d.ts +0 -38
  296. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.external.js +0 -19
  297. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.input.d.ts +0 -18
  298. package/node_modules/@twurple/api/lib/interfaces/endpoints/prediction.input.js +0 -1
  299. package/node_modules/@twurple/api/lib/interfaces/endpoints/raid.external.d.ts +0 -6
  300. package/node_modules/@twurple/api/lib/interfaces/endpoints/raid.external.js +0 -8
  301. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.external.d.ts +0 -36
  302. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.external.js +0 -54
  303. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.input.d.ts +0 -125
  304. package/node_modules/@twurple/api/lib/interfaces/endpoints/schedule.input.js +0 -1
  305. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.external.d.ts +0 -15
  306. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.external.js +0 -7
  307. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.input.d.ts +0 -14
  308. package/node_modules/@twurple/api/lib/interfaces/endpoints/search.input.js +0 -1
  309. package/node_modules/@twurple/api/lib/interfaces/endpoints/shared-chat-session.external.d.ts +0 -13
  310. package/node_modules/@twurple/api/lib/interfaces/endpoints/shared-chat-session.external.js +0 -7
  311. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.external.d.ts +0 -52
  312. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.external.js +0 -24
  313. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.input.d.ts +0 -33
  314. package/node_modules/@twurple/api/lib/interfaces/endpoints/stream.input.js +0 -1
  315. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.external.d.ts +0 -25
  316. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.external.js +0 -8
  317. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.input.d.ts +0 -12
  318. package/node_modules/@twurple/api/lib/interfaces/endpoints/subscription.input.js +0 -1
  319. package/node_modules/@twurple/api/lib/interfaces/endpoints/team.external.d.ts +0 -18
  320. package/node_modules/@twurple/api/lib/interfaces/endpoints/team.external.js +0 -1
  321. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.external.d.ts +0 -41
  322. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.external.js +0 -15
  323. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.input.d.ts +0 -20
  324. package/node_modules/@twurple/api/lib/interfaces/endpoints/user.input.js +0 -1
  325. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.external.d.ts +0 -34
  326. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.external.js +0 -1
  327. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.input.d.ts +0 -48
  328. package/node_modules/@twurple/api/lib/interfaces/endpoints/userExtension.input.js +0 -1
  329. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.external.d.ts +0 -38
  330. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.external.js +0 -1
  331. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.input.d.ts +0 -29
  332. package/node_modules/@twurple/api/lib/interfaces/endpoints/video.input.js +0 -1
  333. package/node_modules/@twurple/api/lib/interfaces/endpoints/whisper.external.d.ts +0 -2
  334. package/node_modules/@twurple/api/lib/interfaces/endpoints/whisper.external.js +0 -8
  335. package/node_modules/@twurple/api/lib/relations/HelixUserRelation.d.ts +0 -25
  336. package/node_modules/@twurple/api/lib/relations/HelixUserRelation.js +0 -45
  337. package/node_modules/@twurple/api/lib/reporting/ApiReportedRequest.d.ts +0 -22
  338. package/node_modules/@twurple/api/lib/reporting/ApiReportedRequest.js +0 -32
  339. package/node_modules/@twurple/api/lib/utils/HelixRateLimiter.d.ts +0 -2
  340. package/node_modules/@twurple/api/lib/utils/HelixRateLimiter.js +0 -23
  341. package/node_modules/@twurple/api/lib/utils/HelixRequestBatcher.d.ts +0 -2
  342. package/node_modules/@twurple/api/lib/utils/HelixRequestBatcher.js +0 -95
  343. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequest.d.ts +0 -49
  344. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequest.js +0 -140
  345. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequestWithTotal.d.ts +0 -13
  346. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedRequestWithTotal.js +0 -22
  347. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedResult.d.ts +0 -31
  348. package/node_modules/@twurple/api/lib/utils/pagination/HelixPaginatedResult.js +0 -19
  349. package/node_modules/@twurple/api/lib/utils/pagination/HelixPagination.d.ts +0 -25
  350. package/node_modules/@twurple/api/lib/utils/pagination/HelixPagination.js +0 -8
  351. package/node_modules/@twurple/api/package.json +0 -60
  352. package/node_modules/retry/License +0 -21
  353. package/node_modules/retry/README.md +0 -227
  354. package/node_modules/retry/example/dns.js +0 -31
  355. package/node_modules/retry/example/stop.js +0 -40
  356. package/node_modules/retry/index.js +0 -1
  357. package/node_modules/retry/lib/retry.js +0 -100
  358. package/node_modules/retry/lib/retry_operation.js +0 -162
  359. package/node_modules/retry/package.json +0 -36
@@ -1,446 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { createBroadcasterQuery } from '@twurple/api-call';
3
- import { extractUserId, rtfm } from '@twurple/common';
4
- import { ChatMessageDroppedError } from '../../errors/ChatMessageDroppedError.js';
5
- import { createChatColorUpdateQuery, createChatSettingsUpdateBody, createSendChatMessageAsAppBody, createSendChatMessageBody, createSendChatMessageQuery, createShoutoutQuery, } from '../../interfaces/endpoints/chat.external.js';
6
- import { createModeratorActionQuery, createSingleKeyQuery } from '../../interfaces/endpoints/generic.external.js';
7
- import { createSharedChatSessionQuery, } from '../../interfaces/endpoints/shared-chat-session.external.js';
8
- import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest.js';
9
- import { HelixPaginatedRequestWithTotal } from '../../utils/pagination/HelixPaginatedRequestWithTotal.js';
10
- import { createPaginatedResult, createPaginatedResultWithTotal, } from '../../utils/pagination/HelixPaginatedResult.js';
11
- import { createPaginationQuery } from '../../utils/pagination/HelixPagination.js';
12
- import { BaseApi } from '../BaseApi.js';
13
- import { HelixChannelEmote } from './HelixChannelEmote.js';
14
- import { HelixChatBadgeSet } from './HelixChatBadgeSet.js';
15
- import { HelixChatChatter } from './HelixChatChatter.js';
16
- import { HelixChatSettings } from './HelixChatSettings.js';
17
- import { HelixEmote } from './HelixEmote.js';
18
- import { HelixEmoteFromSet } from './HelixEmoteFromSet.js';
19
- import { HelixPrivilegedChatSettings } from './HelixPrivilegedChatSettings.js';
20
- import { HelixSentChatMessage } from './HelixSentChatMessage.js';
21
- import { HelixSharedChatSession } from './HelixSharedChatSession.js';
22
- import { HelixUserEmote } from './HelixUserEmote.js';
23
- /**
24
- * The Helix API methods that deal with chat.
25
- *
26
- * Can be accessed using `client.chat` on an {@link ApiClient} instance.
27
- *
28
- * ## Example
29
- * ```ts
30
- * const api = new ApiClient({ authProvider });
31
- * const rewards = await api.chat.getChannelBadges('125328655');
32
- * ```
33
- *
34
- * @meta category helix
35
- * @meta categorizedTitle Chat
36
- */
37
- let HelixChatApi = class HelixChatApi extends BaseApi {
38
- /**
39
- * Gets the list of users that are connected to the broadcaster’s chat session.
40
- *
41
- * This uses the token of the broadcaster by default.
42
- * If you want to execute this in the context of another user (who has to be moderator of the channel)
43
- * you can do so using [user context overrides](/docs/auth/concepts/context-switching).
44
- *
45
- * @param broadcaster The broadcaster whose list of chatters you want to get.
46
- * @param pagination
47
- *
48
- * @expandParams
49
- */
50
- async getChatters(broadcaster, pagination) {
51
- const broadcasterId = extractUserId(broadcaster);
52
- const result = await this._client.callApi({
53
- type: 'helix',
54
- url: 'chat/chatters',
55
- userId: broadcasterId,
56
- canOverrideScopedUserContext: true,
57
- scopes: ['moderator:read:chatters'],
58
- query: {
59
- ...this._createModeratorActionQuery(broadcasterId),
60
- ...createPaginationQuery(pagination),
61
- },
62
- });
63
- return createPaginatedResultWithTotal(result, HelixChatChatter, this._client);
64
- }
65
- /**
66
- * Creates a paginator for users that are connected to the broadcaster’s chat session.
67
- *
68
- * This uses the token of the broadcaster by default.
69
- * If you want to execute this in the context of another user (who has to be moderator of the channel)
70
- * you can do so using [user context overrides](/docs/auth/concepts/context-switching).
71
- *
72
- * @param broadcaster The broadcaster whose list of chatters you want to get.
73
- *
74
- * @expandParams
75
- */
76
- getChattersPaginated(broadcaster) {
77
- const broadcasterId = extractUserId(broadcaster);
78
- return new HelixPaginatedRequestWithTotal({
79
- url: 'chat/chatters',
80
- userId: broadcasterId,
81
- canOverrideScopedUserContext: true,
82
- scopes: ['moderator:read:chatters'],
83
- query: this._createModeratorActionQuery(broadcasterId),
84
- }, this._client, data => new HelixChatChatter(data, this._client), 1000);
85
- }
86
- /**
87
- * Gets all global badges.
88
- */
89
- async getGlobalBadges() {
90
- const result = await this._client.callApi({
91
- type: 'helix',
92
- url: 'chat/badges/global',
93
- });
94
- return result.data.map(data => new HelixChatBadgeSet(data));
95
- }
96
- /**
97
- * Gets all badges specific to the given broadcaster.
98
- *
99
- * @param broadcaster The broadcaster to get badges for.
100
- */
101
- async getChannelBadges(broadcaster) {
102
- const result = await this._client.callApi({
103
- type: 'helix',
104
- url: 'chat/badges',
105
- userId: extractUserId(broadcaster),
106
- query: createBroadcasterQuery(broadcaster),
107
- });
108
- return result.data.map(data => new HelixChatBadgeSet(data));
109
- }
110
- /**
111
- * Gets all global emotes.
112
- */
113
- async getGlobalEmotes() {
114
- const result = await this._client.callApi({
115
- type: 'helix',
116
- url: 'chat/emotes/global',
117
- });
118
- return result.data.map(data => new HelixEmote(data));
119
- }
120
- /**
121
- * Gets all emotes specific to the given broadcaster.
122
- *
123
- * @param broadcaster The broadcaster to get emotes for.
124
- */
125
- async getChannelEmotes(broadcaster) {
126
- const result = await this._client.callApi({
127
- type: 'helix',
128
- url: 'chat/emotes',
129
- userId: extractUserId(broadcaster),
130
- query: createBroadcasterQuery(broadcaster),
131
- });
132
- return result.data.map(data => new HelixChannelEmote(data, this._client));
133
- }
134
- /**
135
- * Gets all emotes from a list of emote sets.
136
- *
137
- * @param setIds The IDs of the emote sets to get emotes from.
138
- */
139
- async getEmotesFromSets(setIds) {
140
- const result = await this._client.callApi({
141
- type: 'helix',
142
- url: 'chat/emotes/set',
143
- query: createSingleKeyQuery('emote_set_id', setIds),
144
- });
145
- return result.data.map(data => new HelixEmoteFromSet(data, this._client));
146
- }
147
- /**
148
- * Gets emotes available to the user across all channels.
149
- *
150
- * @param user The ID of the user to get available emotes of.
151
- * @param filter Additional query filters.
152
- */
153
- async getUserEmotes(user, filter) {
154
- const userId = extractUserId(user);
155
- const result = await this._client.callApi({
156
- type: 'helix',
157
- url: 'chat/emotes/user',
158
- userId: extractUserId(user),
159
- scopes: ['user:read:emotes'],
160
- query: {
161
- ...createSingleKeyQuery('user_id', userId),
162
- ...createSingleKeyQuery('broadcasterId', filter?.broadcaster ? extractUserId(filter.broadcaster) : undefined),
163
- ...createPaginationQuery(filter),
164
- },
165
- });
166
- return createPaginatedResult(result, HelixUserEmote, this._client);
167
- }
168
- /**
169
- * Creates a paginator for emotes available to the user across all channels.
170
- *
171
- * @param user The ID of the user to get available emotes of.
172
- * @param broadcaster The ID of a broadcaster you wish to get follower emotes of. Using this query parameter will
173
- * guarantee inclusion of the broadcaster’s follower emotes in the response body.
174
- *
175
- * If the user who retrieves their emotes is subscribed to the broadcaster specified, their follower emotes will
176
- * appear in the response body regardless of whether this query parameter is used.
177
- */
178
- getUserEmotesPaginated(user, broadcaster) {
179
- const userId = extractUserId(user);
180
- return new HelixPaginatedRequest({
181
- url: 'chat/emotes/user',
182
- userId,
183
- scopes: ['user:read:emotes'],
184
- query: {
185
- ...createSingleKeyQuery('user_id', userId),
186
- ...createSingleKeyQuery('broadcasterId', broadcaster ? extractUserId(broadcaster) : undefined),
187
- },
188
- }, this._client, (data) => new HelixUserEmote(data, this._client));
189
- }
190
- /**
191
- * Gets the settings of a broadcaster's chat.
192
- *
193
- * @param broadcaster The broadcaster the chat belongs to.
194
- */
195
- async getSettings(broadcaster) {
196
- const result = await this._client.callApi({
197
- type: 'helix',
198
- url: 'chat/settings',
199
- userId: extractUserId(broadcaster),
200
- query: createBroadcasterQuery(broadcaster),
201
- });
202
- return new HelixChatSettings(result.data[0]);
203
- }
204
- /**
205
- * Gets the settings of a broadcaster's chat, including the delay settings.
206
- *
207
- * This uses the token of the broadcaster by default.
208
- * If you want to execute this in the context of another user (who has to be moderator of the channel)
209
- * you can do so using [user context overrides](/docs/auth/concepts/context-switching).
210
- *
211
- * @param broadcaster The broadcaster the chat belongs to.
212
- */
213
- async getSettingsPrivileged(broadcaster) {
214
- const broadcasterId = extractUserId(broadcaster);
215
- const result = await this._client.callApi({
216
- type: 'helix',
217
- url: 'chat/settings',
218
- userId: broadcasterId,
219
- canOverrideScopedUserContext: true,
220
- scopes: ['moderator:read:chat_settings'],
221
- query: this._createModeratorActionQuery(broadcasterId),
222
- });
223
- return new HelixPrivilegedChatSettings(result.data[0]);
224
- }
225
- /**
226
- * Updates the settings of a broadcaster's chat.
227
- *
228
- * This uses the token of the broadcaster by default.
229
- * If you want to execute this in the context of another user (who has to be moderator of the channel)
230
- * you can do so using [user context overrides](/docs/auth/concepts/context-switching).
231
- *
232
- * @expandParams
233
- *
234
- * @param broadcaster The broadcaster the chat belongs to.
235
- * @param settings The settings to change.
236
- */
237
- async updateSettings(broadcaster, settings) {
238
- const broadcasterId = extractUserId(broadcaster);
239
- const result = await this._client.callApi({
240
- type: 'helix',
241
- url: 'chat/settings',
242
- method: 'PATCH',
243
- userId: broadcasterId,
244
- canOverrideScopedUserContext: true,
245
- scopes: ['moderator:manage:chat_settings'],
246
- query: this._createModeratorActionQuery(broadcasterId),
247
- jsonBody: createChatSettingsUpdateBody(settings),
248
- });
249
- return new HelixPrivilegedChatSettings(result.data[0]);
250
- }
251
- /**
252
- * Sends a chat message to a broadcaster's chat.
253
- *
254
- * This uses the token of the broadcaster by default.
255
- * If you want to execute this in the context of another user
256
- * you can do so using [user context overrides](/docs/auth/concepts/context-switching).
257
- *
258
- * @expandParams
259
- *
260
- * @param broadcaster The broadcaster the chat belongs to.
261
- * @param message The message to send.
262
- * @param params
263
- */
264
- async sendChatMessage(broadcaster, message, params) {
265
- const broadcasterId = extractUserId(broadcaster);
266
- const result = await this._client.callApi({
267
- type: 'helix',
268
- url: 'chat/messages',
269
- method: 'POST',
270
- userId: broadcasterId,
271
- canOverrideScopedUserContext: true,
272
- scopes: ['user:write:chat'],
273
- query: createSendChatMessageQuery(broadcasterId, this._getUserContextIdWithDefault(broadcasterId)),
274
- jsonBody: createSendChatMessageBody(message, params),
275
- });
276
- const msg = new HelixSentChatMessage(result.data[0]);
277
- this._handleUnsentChatMessage(broadcasterId, msg);
278
- return msg;
279
- }
280
- /**
281
- * Sends a chat message to a broadcaster's chat, using an app token.
282
- *
283
- * This requires the scopes `user:write:chat` and `user:bot` for the `user` and `channel:bot` for the `broadcaster`.
284
- * `channel:bot` is not required if the `user` has moderator privileges in the `broadcaster`'s channel.
285
- *
286
- * These scope requirements can not be checked by the library, so they are just assumed.
287
- * Make sure to catch authorization errors yourself.
288
- *
289
- * @expandParams
290
- *
291
- * @param user The user to send the chat message from.
292
- * @param broadcaster The broadcaster the chat belongs to.
293
- * @param message The message to send.
294
- * @param params
295
- */
296
- async sendChatMessageAsApp(user, broadcaster, message, params) {
297
- const userId = extractUserId(user);
298
- const broadcasterId = extractUserId(broadcaster);
299
- const result = await this._client.callApi({
300
- type: 'helix',
301
- url: 'chat/messages',
302
- method: 'POST',
303
- forceType: 'app',
304
- query: createSendChatMessageQuery(broadcasterId, userId),
305
- jsonBody: createSendChatMessageAsAppBody(message, params),
306
- });
307
- const msg = new HelixSentChatMessage(result.data[0]);
308
- this._handleUnsentChatMessage(broadcasterId, msg);
309
- return msg;
310
- }
311
- /**
312
- * Sends an announcement to a broadcaster's chat.
313
- *
314
- * This uses the token of the broadcaster by default.
315
- * If you want to execute this in the context of another user (who has to be moderator of the channel)
316
- * you can do so using [user context overrides](/docs/auth/concepts/context-switching).
317
- *
318
- * @param broadcaster The broadcaster the chat belongs to.
319
- * @param announcement The announcement to send.
320
- */
321
- async sendAnnouncement(broadcaster, announcement) {
322
- const broadcasterId = extractUserId(broadcaster);
323
- await this._client.callApi({
324
- type: 'helix',
325
- url: 'chat/announcements',
326
- method: 'POST',
327
- userId: broadcasterId,
328
- canOverrideScopedUserContext: true,
329
- scopes: ['moderator:manage:announcements'],
330
- query: this._createModeratorActionQuery(broadcasterId),
331
- jsonBody: {
332
- message: announcement.message,
333
- color: announcement.color,
334
- },
335
- });
336
- }
337
- /**
338
- * Gets the chat colors for a list of users.
339
- *
340
- * Returns a Map with user IDs as keys and their colors as values.
341
- * The value is a color hex code, or `null` if the user did not set a color,
342
- * and unknown users will not be present in the map.
343
- *
344
- * @param users The users to get the chat colors of.
345
- */
346
- async getColorsForUsers(users) {
347
- const response = await this._client.callApi({
348
- type: 'helix',
349
- url: 'chat/color',
350
- query: createSingleKeyQuery('user_id', users.map(extractUserId)),
351
- });
352
- return new Map(response.data.map(data => [data.user_id, data.color || null]));
353
- }
354
- /**
355
- * Gets the chat color for a user.
356
- *
357
- * Returns the color as hex code, `null` if the user did not set a color, or `undefined` if the user is unknown.
358
- *
359
- * @param user The user to get the chat color of.
360
- */
361
- async getColorForUser(user) {
362
- const response = await this._client.callApi({
363
- type: 'helix',
364
- url: 'chat/color',
365
- userId: extractUserId(user),
366
- query: createSingleKeyQuery('user_id', extractUserId(user)),
367
- });
368
- if (!response.data.length) {
369
- return undefined;
370
- }
371
- return response.data[0].color || null;
372
- }
373
- /**
374
- * Changes the chat color for a user.
375
- *
376
- * @param user The user to change the color of.
377
- * @param color The color to set.
378
- *
379
- * Note that hex codes can only be used by users that have a Prime or Turbo subscription.
380
- */
381
- async setColorForUser(user, color) {
382
- await this._client.callApi({
383
- type: 'helix',
384
- url: 'chat/color',
385
- method: 'PUT',
386
- userId: extractUserId(user),
387
- scopes: ['user:manage:chat_color'],
388
- query: createChatColorUpdateQuery(user, color),
389
- });
390
- }
391
- /**
392
- * Sends a shoutout to the specified broadcaster.
393
- * The broadcaster may send a shoutout once every 2 minutes. They may send the same broadcaster a shoutout once every 60 minutes.
394
- *
395
- * This uses the token of the broadcaster by default.
396
- * If you want to execute this in the context of another user (who has to be moderator of the channel)
397
- * you can do so using [user context overrides](/docs/auth/concepts/context-switching).
398
- *
399
- * @param from The ID of the broadcaster that’s sending the shoutout.
400
- * @param to The ID of the broadcaster that’s receiving the shoutout.
401
- */
402
- async shoutoutUser(from, to) {
403
- const fromId = extractUserId(from);
404
- await this._client.callApi({
405
- type: 'helix',
406
- url: 'chat/shoutouts',
407
- method: 'POST',
408
- userId: fromId,
409
- canOverrideScopedUserContext: true,
410
- scopes: ['moderator:manage:shoutouts'],
411
- query: createShoutoutQuery(from, to, this._getUserContextIdWithDefault(fromId)),
412
- });
413
- }
414
- /**
415
- * Gets the active shared chat session for a channel.
416
- *
417
- * Returns `null` if there is no active shared chat session in the channel.
418
- *
419
- * @param broadcaster The broadcaster to get the active shared chat session for.
420
- */
421
- async getSharedChatSession(broadcaster) {
422
- const broadcasterId = extractUserId(broadcaster);
423
- const response = await this._client.callApi({
424
- type: 'helix',
425
- url: 'shared_chat/session',
426
- userId: broadcasterId,
427
- query: createSharedChatSessionQuery(broadcasterId),
428
- });
429
- if (response.data.length === 0) {
430
- return null;
431
- }
432
- return new HelixSharedChatSession(response.data[0], this._client);
433
- }
434
- _createModeratorActionQuery(broadcasterId) {
435
- return createModeratorActionQuery(broadcasterId, this._getUserContextIdWithDefault(broadcasterId));
436
- }
437
- _handleUnsentChatMessage(broadcasterId, msg) {
438
- if (!msg.isSent) {
439
- throw new ChatMessageDroppedError(broadcasterId, msg.dropReasonMessage, msg.dropReasonCode);
440
- }
441
- }
442
- };
443
- HelixChatApi = __decorate([
444
- rtfm('api', 'HelixChatApi')
445
- ], HelixChatApi);
446
- export { HelixChatApi };
@@ -1,23 +0,0 @@
1
- import { DataObject } from '@twurple/common';
2
- import { type HelixChatBadgeSetData } from '../../interfaces/endpoints/chat.external.js';
3
- import { HelixChatBadgeVersion } from './HelixChatBadgeVersion.js';
4
- /**
5
- * A version of a chat badge.
6
- */
7
- export declare class HelixChatBadgeSet extends DataObject<HelixChatBadgeSetData> {
8
- /**
9
- * The badge set ID.
10
- */
11
- get id(): string;
12
- /**
13
- * All versions of the badge.
14
- */
15
- get versions(): HelixChatBadgeVersion[];
16
- /**
17
- * Gets a specific version of the badge.
18
- *
19
- * @param versionId The ID of the version.
20
- */
21
- getVersion(versionId: string): HelixChatBadgeVersion | null;
22
- }
23
- //# sourceMappingURL=HelixChatBadgeSet.d.ts.map
@@ -1,37 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Cacheable, CachedGetter } from '@d-fischer/cache-decorators';
3
- import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
4
- import { HelixChatBadgeVersion } from './HelixChatBadgeVersion.js';
5
- /**
6
- * A version of a chat badge.
7
- */
8
- let HelixChatBadgeSet = class HelixChatBadgeSet extends DataObject {
9
- /**
10
- * The badge set ID.
11
- */
12
- get id() {
13
- return this[rawDataSymbol].set_id;
14
- }
15
- /**
16
- * All versions of the badge.
17
- */
18
- get versions() {
19
- return this[rawDataSymbol].versions.map(data => new HelixChatBadgeVersion(data));
20
- }
21
- /**
22
- * Gets a specific version of the badge.
23
- *
24
- * @param versionId The ID of the version.
25
- */
26
- getVersion(versionId) {
27
- return this.versions.find(v => v.id === versionId) ?? null;
28
- }
29
- };
30
- __decorate([
31
- CachedGetter()
32
- ], HelixChatBadgeSet.prototype, "versions", null);
33
- HelixChatBadgeSet = __decorate([
34
- Cacheable,
35
- rtfm('api', 'HelixChatBadgeSet', 'id')
36
- ], HelixChatBadgeSet);
37
- export { HelixChatBadgeSet };
@@ -1,35 +0,0 @@
1
- import { DataObject } from '@twurple/common';
2
- import { type HelixChatBadgeVersionData } from '../../interfaces/endpoints/chat.external.js';
3
- import { type HelixChatBadgeScale } from '../../interfaces/endpoints/chat.input.js';
4
- /**
5
- * A version of a chat badge.
6
- */
7
- export declare class HelixChatBadgeVersion extends DataObject<HelixChatBadgeVersionData> {
8
- /**
9
- * The badge version ID.
10
- */
11
- get id(): string;
12
- /**
13
- * Gets an image URL for the given scale.
14
- *
15
- * @param scale The scale of the badge image.
16
- */
17
- getImageUrl(scale: HelixChatBadgeScale): string;
18
- /**
19
- * The title of the badge.
20
- */
21
- get title(): string;
22
- /**
23
- * The description of the badge.
24
- */
25
- get description(): string;
26
- /**
27
- * The action to take when clicking on the badge. Set to `null` if no action is specified.
28
- */
29
- get clickAction(): string | null;
30
- /**
31
- * The URL to navigate to when clicking on the badge. Set to `null` if no URL is specified.
32
- */
33
- get clickUrl(): string | null;
34
- }
35
- //# sourceMappingURL=HelixChatBadgeVersion.d.ts.map
@@ -1,49 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
3
- /**
4
- * A version of a chat badge.
5
- */
6
- let HelixChatBadgeVersion = class HelixChatBadgeVersion extends DataObject {
7
- /**
8
- * The badge version ID.
9
- */
10
- get id() {
11
- return this[rawDataSymbol].id;
12
- }
13
- /**
14
- * Gets an image URL for the given scale.
15
- *
16
- * @param scale The scale of the badge image.
17
- */
18
- getImageUrl(scale) {
19
- return this[rawDataSymbol][`image_url_${scale}x`];
20
- }
21
- /**
22
- * The title of the badge.
23
- */
24
- get title() {
25
- return this[rawDataSymbol].title;
26
- }
27
- /**
28
- * The description of the badge.
29
- */
30
- get description() {
31
- return this[rawDataSymbol].description;
32
- }
33
- /**
34
- * The action to take when clicking on the badge. Set to `null` if no action is specified.
35
- */
36
- get clickAction() {
37
- return this[rawDataSymbol].click_action;
38
- }
39
- /**
40
- * The URL to navigate to when clicking on the badge. Set to `null` if no URL is specified.
41
- */
42
- get clickUrl() {
43
- return this[rawDataSymbol].click_url;
44
- }
45
- };
46
- HelixChatBadgeVersion = __decorate([
47
- rtfm('api', 'HelixChatBadgeVersion', 'id')
48
- ], HelixChatBadgeVersion);
49
- export { HelixChatBadgeVersion };
@@ -1,25 +0,0 @@
1
- import { DataObject } from '@twurple/common';
2
- import { type HelixChatChatterData } from '../../interfaces/endpoints/chat.external.js';
3
- import { type HelixUser } from '../user/HelixUser.js';
4
- /**
5
- * A user connected to a Twitch channel's chat session.
6
- */
7
- export declare class HelixChatChatter extends DataObject<HelixChatChatterData> {
8
- /**
9
- * The ID of the user.
10
- */
11
- get userId(): string;
12
- /**
13
- * The name of the user.
14
- */
15
- get userName(): string;
16
- /**
17
- * The display name of the user.
18
- */
19
- get userDisplayName(): string;
20
- /**
21
- * Gets more information about the user.
22
- */
23
- getUser(): Promise<HelixUser>;
24
- }
25
- //# sourceMappingURL=HelixChatChatter.d.ts.map
@@ -1,45 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Enumerable } from '@d-fischer/shared-utils';
3
- import { checkRelationAssertion, DataObject, rawDataSymbol, rtfm } from '@twurple/common';
4
- /**
5
- * A user connected to a Twitch channel's chat session.
6
- */
7
- let HelixChatChatter = class HelixChatChatter extends DataObject {
8
- /** @internal */ _client;
9
- /** @internal */
10
- constructor(data, client) {
11
- super(data);
12
- this._client = client;
13
- }
14
- /**
15
- * The ID of the user.
16
- */
17
- get userId() {
18
- return this[rawDataSymbol].user_id;
19
- }
20
- /**
21
- * The name of the user.
22
- */
23
- get userName() {
24
- return this[rawDataSymbol].user_login;
25
- }
26
- /**
27
- * The display name of the user.
28
- */
29
- get userDisplayName() {
30
- return this[rawDataSymbol].user_name;
31
- }
32
- /**
33
- * Gets more information about the user.
34
- */
35
- async getUser() {
36
- return checkRelationAssertion(await this._client.users.getUserById(this[rawDataSymbol].user_id));
37
- }
38
- };
39
- __decorate([
40
- Enumerable(false)
41
- ], HelixChatChatter.prototype, "_client", void 0);
42
- HelixChatChatter = __decorate([
43
- rtfm('api', 'HelixChatChatter')
44
- ], HelixChatChatter);
45
- export { HelixChatChatter };