@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,60 +0,0 @@
1
- import { extractUserId } from '@twurple/common';
2
- /** @internal */
3
- export function createCustomRewardsQuery(broadcaster, onlyManageable) {
4
- return {
5
- broadcaster_id: extractUserId(broadcaster),
6
- only_manageable_rewards: onlyManageable?.toString(),
7
- };
8
- }
9
- /** @internal */
10
- export function createCustomRewardChangeQuery(broadcaster, rewardId) {
11
- return {
12
- broadcaster_id: extractUserId(broadcaster),
13
- id: rewardId,
14
- };
15
- }
16
- /** @internal */
17
- export function createCustomRewardBody(data) {
18
- const result = {
19
- title: data.title,
20
- cost: data.cost,
21
- prompt: data.prompt,
22
- background_color: data.backgroundColor,
23
- is_enabled: data.isEnabled,
24
- is_user_input_required: data.userInputRequired,
25
- should_redemptions_skip_request_queue: data.autoFulfill,
26
- };
27
- if (data.maxRedemptionsPerStream !== undefined) {
28
- result.is_max_per_stream_enabled = !!data.maxRedemptionsPerStream;
29
- result.max_per_stream = data.maxRedemptionsPerStream ?? 0;
30
- }
31
- if (data.maxRedemptionsPerUserPerStream !== undefined) {
32
- result.is_max_per_user_per_stream_enabled = !!data.maxRedemptionsPerUserPerStream;
33
- result.max_per_user_per_stream = data.maxRedemptionsPerUserPerStream ?? 0;
34
- }
35
- if (data.globalCooldown !== undefined) {
36
- result.is_global_cooldown_enabled = !!data.globalCooldown;
37
- result.global_cooldown_seconds = data.globalCooldown ?? 0;
38
- }
39
- if ('isPaused' in data) {
40
- result.is_paused = data.isPaused;
41
- }
42
- return result;
43
- }
44
- /** @internal */
45
- export function createRewardRedemptionsByIdsQuery(broadcaster, rewardId, redemptionIds) {
46
- return {
47
- broadcaster_id: extractUserId(broadcaster),
48
- reward_id: rewardId,
49
- id: redemptionIds,
50
- };
51
- }
52
- /** @internal */
53
- export function createRedemptionsForBroadcasterQuery(broadcaster, rewardId, status, filter) {
54
- return {
55
- broadcaster_id: extractUserId(broadcaster),
56
- reward_id: rewardId,
57
- status,
58
- sort: filter.newestFirst ? 'NEWEST' : 'OLDEST',
59
- };
60
- }
@@ -1,78 +0,0 @@
1
- import { type HelixForwardPagination } from '../../utils/pagination/HelixPagination.js';
2
- /**
3
- * Data to create a new custom reward.
4
- */
5
- export interface HelixCreateCustomRewardData {
6
- /**
7
- * The title of the reward.
8
- */
9
- title: string;
10
- /**
11
- * The channel points cost of the reward.
12
- */
13
- cost: number;
14
- /**
15
- * The prompt shown to users when redeeming the reward.
16
- */
17
- prompt?: string;
18
- /**
19
- * Whether the reward is enabled (shown to users).
20
- */
21
- isEnabled?: boolean;
22
- /**
23
- * The hex code of the background color of the reward.
24
- */
25
- backgroundColor?: string;
26
- /**
27
- * Whether the reward requires user input to be redeemed.
28
- */
29
- userInputRequired?: boolean;
30
- /**
31
- * The maximum number of redemptions of the reward per stream. 0 or `null` means no limit.
32
- */
33
- maxRedemptionsPerStream?: number | null;
34
- /**
35
- * The maximum number of redemptions of the reward per stream for each user. 0 or `null` means no limit.
36
- */
37
- maxRedemptionsPerUserPerStream?: number | null;
38
- /**
39
- * The cooldown between two redemptions of the reward, in seconds. 0 or `null` means no cooldown.
40
- */
41
- globalCooldown?: number | null;
42
- /**
43
- * Whether the redemption should automatically set its status to fulfilled.
44
- */
45
- autoFulfill?: boolean;
46
- }
47
- /**
48
- * Data to update an existing custom reward.
49
- *
50
- * @inheritDoc
51
- */
52
- export interface HelixUpdateCustomRewardData extends Partial<HelixCreateCustomRewardData> {
53
- /**
54
- * Whether the reward is paused. If true, users can't redeem it.
55
- */
56
- isPaused?: boolean;
57
- }
58
- /**
59
- * Filters for the custom reward redemptions request.
60
- */
61
- export interface HelixCustomRewardRedemptionFilter {
62
- /**
63
- * Whether to put the newest redemptions first.
64
- *
65
- * Oldest redemptions are shown first by default.
66
- */
67
- newestFirst?: boolean;
68
- }
69
- /**
70
- * @inheritDoc
71
- */
72
- export interface HelixPaginatedCustomRewardRedemptionFilter extends HelixCustomRewardRedemptionFilter, HelixForwardPagination {
73
- }
74
- /**
75
- * The scale multiplier for a custom reward image.
76
- */
77
- export type HelixCustomRewardImageScale = 1 | 2 | 4;
78
- //# sourceMappingURL=channelPoints.input.d.ts.map
@@ -1,28 +0,0 @@
1
- /** @private */
2
- export interface HelixCharityCampaignAmountData {
3
- value: number;
4
- decimal_places: number;
5
- currency: string;
6
- }
7
- /** @private */
8
- export interface HelixCharityCampaignData {
9
- id: string;
10
- broadcaster_id: string;
11
- broadcaster_login: string;
12
- broadcaster_name: string;
13
- charity_name: string;
14
- charity_description: string;
15
- charity_logo: string;
16
- charity_website: string;
17
- current_amount: HelixCharityCampaignAmountData;
18
- target_amount: HelixCharityCampaignAmountData;
19
- }
20
- /** @private */
21
- export interface HelixCharityCampaignDonationData {
22
- campaign_id: string;
23
- user_id: string;
24
- user_login: string;
25
- user_name: string;
26
- amount: HelixCharityCampaignAmountData;
27
- }
28
- //# sourceMappingURL=charity.external.d.ts.map
@@ -1,114 +0,0 @@
1
- /**
2
- * The subscription tier necessary to unlock an emote. 1000 means tier 1, and so on.
3
- */
4
- export type HelixChannelEmoteSubscriptionTier = '1000' | '2000' | '3000';
5
- /** @private */
6
- export interface HelixEmoteImageData {
7
- url_1x: string;
8
- url_2x: string;
9
- url_4x: string;
10
- }
11
- /** @private */
12
- export type HelixEmoteImageScale = 1 | 2 | 4;
13
- /** @private */
14
- export type HelixEmoteFormat = 'static' | 'animated';
15
- /** @private */
16
- export type HelixEmoteScale = '1.0' | '2.0' | '3.0';
17
- /** @private */
18
- export type HelixEmoteThemeMode = 'light' | 'dark';
19
- /** @private */
20
- export interface HelixEmoteBaseData {
21
- id: string;
22
- name: string;
23
- format: HelixEmoteFormat[];
24
- scale: HelixEmoteScale[];
25
- theme_mode: HelixEmoteThemeMode[];
26
- }
27
- /** @private */
28
- export interface HelixEmoteData extends HelixEmoteBaseData {
29
- images: HelixEmoteImageData;
30
- }
31
- /** @private */
32
- export interface HelixChannelEmoteData extends HelixEmoteData {
33
- tier: HelixChannelEmoteSubscriptionTier | '';
34
- emote_type: string;
35
- emote_set_id: string;
36
- }
37
- /** @private */
38
- export interface HelixEmoteFromSetData extends HelixEmoteData {
39
- emote_type: string;
40
- emote_set_id: string;
41
- owner_id: string;
42
- }
43
- /** @private */
44
- export interface HelixUserEmoteData extends HelixEmoteBaseData {
45
- emote_type: string;
46
- emote_set_id: string;
47
- owner_id: string;
48
- }
49
- /** @private */
50
- export interface HelixChatBadgeVersionData {
51
- id: string;
52
- image_url_1x: string;
53
- image_url_2x: string;
54
- image_url_4x: string;
55
- title: string;
56
- description: string;
57
- click_action: string | null;
58
- click_url: string | null;
59
- }
60
- /** @private */
61
- export interface HelixChatBadgeSetData {
62
- set_id: string;
63
- versions: HelixChatBadgeVersionData[];
64
- }
65
- /** @private */
66
- export interface HelixSentChatMessageData {
67
- message_id: string;
68
- is_sent: boolean;
69
- drop_reason?: {
70
- code: string;
71
- message: string;
72
- };
73
- }
74
- /**
75
- * The color used to highlight an announcement.
76
- */
77
- export type HelixChatAnnouncementColor = 'blue' | 'green' | 'orange' | 'purple' | 'primary';
78
- /**
79
- * Colors that can be used by users in chat.
80
- *
81
- * Note that hex codes can only be used by users that have a Prime or Turbo subscription.
82
- */
83
- export type HelixChatUserColor = 'blue' | 'blue_violet' | 'cadet_blue' | 'chocolate' | 'coral' | 'dodger_blue' | 'firebrick' | 'golden_rod' | 'green' | 'hot_pink' | 'orange_red' | 'red' | 'sea_green' | 'spring_green' | 'yellow_green' | `#${string}`;
84
- /** @private */
85
- export interface HelixChatChatterData {
86
- user_id: string;
87
- user_login: string;
88
- user_name: string;
89
- }
90
- /** @private */
91
- export interface HelixChatColorDefinitionData {
92
- user_id: string;
93
- user_name: string;
94
- user_login: string;
95
- color: string;
96
- }
97
- /** @private */
98
- export interface HelixChatSettingsData {
99
- broadcaster_id: string;
100
- slow_mode: boolean;
101
- slow_mode_wait_time: number | null;
102
- follower_mode: boolean;
103
- follower_mode_duration: number | null;
104
- subscriber_mode: boolean;
105
- emote_mode: boolean;
106
- unique_chat_mode: boolean;
107
- }
108
- /** @private */
109
- export interface HelixPrivilegedChatSettingsData extends HelixChatSettingsData {
110
- moderator_id: string;
111
- non_moderator_chat_delay: boolean;
112
- non_moderator_chat_delay_duration: number | null;
113
- }
114
- //# sourceMappingURL=chat.external.d.ts.map
@@ -1,52 +0,0 @@
1
- import { extractUserId } from '@twurple/common';
2
- /** @internal */
3
- export function createChatSettingsUpdateBody(settings) {
4
- return {
5
- slow_mode: settings.slowModeEnabled,
6
- slow_mode_wait_time: settings.slowModeDelay,
7
- follower_mode: settings.followerOnlyModeEnabled,
8
- follower_mode_duration: settings.followerOnlyModeDelay,
9
- subscriber_mode: settings.subscriberOnlyModeEnabled,
10
- emote_mode: settings.emoteOnlyModeEnabled,
11
- unique_chat_mode: settings.uniqueChatModeEnabled,
12
- non_moderator_chat_delay: settings.nonModeratorChatDelayEnabled,
13
- non_moderator_chat_delay_duration: settings.nonModeratorChatDelay,
14
- };
15
- }
16
- /** @internal */
17
- export function createChatColorUpdateQuery(user, color) {
18
- return {
19
- user_id: extractUserId(user),
20
- color,
21
- };
22
- }
23
- /** @internal */
24
- export function createShoutoutQuery(from, to, moderatorId) {
25
- return {
26
- from_broadcaster_id: extractUserId(from),
27
- to_broadcaster_id: extractUserId(to),
28
- moderator_id: moderatorId,
29
- };
30
- }
31
- /** @internal */
32
- export function createSendChatMessageQuery(broadcaster, sender) {
33
- return {
34
- broadcaster_id: broadcaster,
35
- sender_id: sender,
36
- };
37
- }
38
- /** @internal */
39
- export function createSendChatMessageBody(message, params) {
40
- return {
41
- message,
42
- reply_parent_message_id: params?.replyParentMessageId,
43
- };
44
- }
45
- /** @internal */
46
- export function createSendChatMessageAsAppBody(message, params) {
47
- return {
48
- message,
49
- reply_parent_message_id: params?.replyParentMessageId,
50
- for_source_only: params?.forSourceOnly,
51
- };
52
- }
@@ -1,93 +0,0 @@
1
- import { type UserIdResolvable } from '@twurple/common';
2
- import { type HelixChatAnnouncementColor } from './chat.external.js';
3
- import { type HelixForwardPagination } from '../../utils/pagination/HelixPagination.js';
4
- /**
5
- * An update request for a broadcaster's chat settings.
6
- */
7
- export interface HelixUpdateChatSettingsParams {
8
- /**
9
- * Whether slow mode should be enabled.
10
- */
11
- slowModeEnabled?: boolean;
12
- /**
13
- * The time to wait between messages in slow mode, in seconds.
14
- */
15
- slowModeDelay?: number;
16
- /**
17
- * Whether follower only mode should be enabled.
18
- */
19
- followerOnlyModeEnabled?: boolean;
20
- /**
21
- * The time after which users should be able to send messages after following, in minutes.
22
- */
23
- followerOnlyModeDelay?: number;
24
- /**
25
- * Whether subscriber only mode should be enabled.
26
- */
27
- subscriberOnlyModeEnabled?: boolean;
28
- /**
29
- * Whether emote only mode should be enabled.
30
- */
31
- emoteOnlyModeEnabled?: boolean;
32
- /**
33
- * Whether unique chat mode should be enabled.
34
- */
35
- uniqueChatModeEnabled?: boolean;
36
- /**
37
- * Whether non-moderator messages should be delayed.
38
- */
39
- nonModeratorChatDelayEnabled?: boolean;
40
- /**
41
- * The delay of non-moderator messages, in seconds.
42
- */
43
- nonModeratorChatDelay?: number;
44
- }
45
- /**
46
- * A request to send a message to a broadcaster's chat.
47
- */
48
- export interface HelixSendChatMessageParams {
49
- /**
50
- * The ID of the chat message being replied to. If this is not set, message will not be sent as a reply.
51
- */
52
- replyParentMessageId?: string;
53
- }
54
- /**
55
- * A request to send a message to a broadcaster's chat with app access token.
56
- */
57
- export interface HelixSendChatMessageAsAppParams extends HelixSendChatMessageParams {
58
- /**
59
- * Specifies whether the chat message should be sent only to the source channel during a shared chat session.
60
- * This parameter has no effect if a shared chat session is not active.
61
- *
62
- * @default true
63
- */
64
- forSourceOnly?: boolean;
65
- }
66
- /**
67
- * A request to send an announcement to a broadcaster's chat.
68
- */
69
- export interface HelixSendChatAnnouncementParams {
70
- /**
71
- * The announcement to make in the broadcaster's chat room. Announcements are limited to a maximum of 500 characters; announcements longer than 500 characters are truncated.
72
- */
73
- message: string;
74
- /**
75
- * The color used to highlight the announcement. If color is set to `primary` or is not set, the channel’s accent color is used to highlight the announcement.
76
- */
77
- color?: HelixChatAnnouncementColor;
78
- }
79
- export type HelixChatBadgeScale = 1 | 2 | 4;
80
- /**
81
- * Filters for user emotes queries.
82
- */
83
- export interface HelixUserEmotesFilter extends HelixForwardPagination {
84
- /**
85
- * The ID of a broadcaster you wish to get follower emotes of. Using this query parameter will
86
- * guarantee inclusion of the broadcaster’s follower emotes in the response body.
87
- *
88
- * If the user who retrieves their emotes is subscribed to the broadcaster specified, their follower emotes will
89
- * appear in the response body regardless of whether this query parameter is used.
90
- */
91
- broadcaster?: UserIdResolvable;
92
- }
93
- //# sourceMappingURL=chat.input.d.ts.map
@@ -1,28 +0,0 @@
1
- /** @private */
2
- export interface HelixClipData {
3
- id: string;
4
- url: string;
5
- embed_url: string;
6
- broadcaster_id: string;
7
- broadcaster_name: string;
8
- creator_id: string;
9
- creator_name: string;
10
- video_id: string;
11
- game_id: string;
12
- language: string;
13
- title: string;
14
- view_count: number;
15
- created_at: string;
16
- thumbnail_url: string;
17
- duration: number;
18
- vod_offset: number | null;
19
- is_featured: boolean;
20
- }
21
- /** @private */
22
- export type HelixClipFilterType = 'broadcaster_id' | 'game_id' | 'id';
23
- /** @private */
24
- export interface HelixClipCreateResponse {
25
- id: string;
26
- edit_url: string;
27
- }
28
- //# sourceMappingURL=clip.external.d.ts.map
@@ -1,33 +0,0 @@
1
- import { extractUserId } from '@twurple/common';
2
- /** @internal */
3
- export function createClipCreateQuery(params) {
4
- const { channel, createAfterDelay = false, title, duration } = params;
5
- return {
6
- broadcaster_id: extractUserId(channel),
7
- has_delay: createAfterDelay.toString(),
8
- title,
9
- duration: duration?.toFixed(1),
10
- };
11
- }
12
- /** @internal */
13
- export function createClipCreateFromVodQuery(params, editorId) {
14
- const { channel, title, duration, vodId, vodOffset } = params;
15
- return {
16
- broadcaster_id: extractUserId(channel),
17
- editor_id: editorId,
18
- title,
19
- duration: duration?.toFixed(1),
20
- vod_id: vodId,
21
- vod_offset: vodOffset.toString(),
22
- };
23
- }
24
- /** @internal */
25
- export function createClipQuery(params) {
26
- const { filterType, ids, startDate, endDate, isFeatured } = params;
27
- return {
28
- [filterType]: ids,
29
- started_at: startDate,
30
- ended_at: endDate,
31
- is_featured: isFeatured?.toString(),
32
- };
33
- }
@@ -1,85 +0,0 @@
1
- import { type UserIdResolvable } from '@twurple/common';
2
- import { type HelixPagination } from '../../utils/pagination/HelixPagination.js';
3
- import { type HelixClipFilterType } from './clip.external.js';
4
- /**
5
- * Filters for clip queries.
6
- */
7
- export interface HelixClipFilter {
8
- /**
9
- * The earliest date to find clips for.
10
- */
11
- startDate?: string;
12
- /**
13
- * The latest date to find clips for.
14
- */
15
- endDate?: string;
16
- /**
17
- * The featured flag the results should have.
18
- *
19
- * If not given, both featured and non-featured clips will be returned.
20
- */
21
- isFeatured?: boolean;
22
- }
23
- /**
24
- * @inheritDoc
25
- */
26
- export interface HelixPaginatedClipFilter extends HelixClipFilter, HelixPagination {
27
- }
28
- /** @private */
29
- export interface HelixClipIdFilterPart {
30
- filterType: HelixClipFilterType;
31
- ids: string | string[];
32
- userId?: string;
33
- }
34
- /** @private */
35
- export interface HelixClipIdFilter extends HelixClipFilter, HelixClipIdFilterPart {
36
- }
37
- /** @private */
38
- export interface HelixPaginatedClipIdFilter extends HelixPaginatedClipFilter, HelixClipIdFilterPart {
39
- }
40
- /** @private */
41
- interface HelixBaseClipCreateParams {
42
- /**
43
- * The broadcaster of which you want to create a clip.
44
- */
45
- channel: UserIdResolvable;
46
- /**
47
- * The title of the clip. If not given, the title of the clip will be the same as the title of the stream.
48
- */
49
- title?: string;
50
- /**
51
- * The duration of the clip, in seconds. The valid range is 5-60, with a precision of 0.1.
52
- *
53
- * If not given, the duration of the clip will be 30 seconds.
54
- */
55
- duration?: number;
56
- }
57
- /**
58
- * Parameters for creating a clip from a live stream.
59
- *
60
- * @inheritDoc
61
- */
62
- export interface HelixClipCreateParams extends HelixBaseClipCreateParams {
63
- /**
64
- * Add a delay before the clip creation that accounts for the usual delay in the viewing experience.
65
- */
66
- createAfterDelay?: boolean;
67
- }
68
- /**
69
- * Parameters for creating a clip from a VOD.
70
- *
71
- * @beta
72
- * @inheritDoc
73
- */
74
- export interface HelixClipCreateFromVodParams extends HelixBaseClipCreateParams {
75
- /**
76
- * The ID of the VOD to create a clip from.
77
- */
78
- vodId: string;
79
- /**
80
- * The offset of the VOD to **end** the clip on. Must be higher than `duration`.
81
- */
82
- vodOffset: number;
83
- }
84
- export {};
85
- //# sourceMappingURL=clip.input.d.ts.map
@@ -1,7 +0,0 @@
1
- /** @private */
2
- export interface HelixContentClassificationLabelData {
3
- id: string;
4
- description: string;
5
- name: string;
6
- }
7
- //# sourceMappingURL=contentClassificationLabels.external.d.ts.map
@@ -1,24 +0,0 @@
1
- /**
2
- * The fulfillment status of a drop entitlement.
3
- */
4
- export type HelixDropsEntitlementFulfillmentStatus = 'CLAIMED' | 'FULFILLED';
5
- /**
6
- * The update status of a drop entitlement.
7
- */
8
- export type HelixDropsEntitlementUpdateStatus = 'INVALID_ID' | 'NOT_FOUND' | 'SUCCESS' | 'UNAUTHORIZED' | 'UPDATE_FAILED';
9
- /** @private */
10
- export interface HelixDropsEntitlementData {
11
- id: string;
12
- benefit_id: string;
13
- timestamp: string;
14
- user_id: string;
15
- game_id: string;
16
- fulfillment_status: HelixDropsEntitlementFulfillmentStatus;
17
- last_updated: string;
18
- }
19
- /** @private */
20
- export interface HelixDropsEntitlementUpdateData {
21
- status: HelixDropsEntitlementUpdateStatus;
22
- ids: string[];
23
- }
24
- //# sourceMappingURL=entitlement.external.d.ts.map
@@ -1,17 +0,0 @@
1
- import { mapOptional } from '@d-fischer/shared-utils';
2
- import { extractUserId } from '@twurple/common';
3
- /** @internal */
4
- export function createDropsEntitlementQuery(filters, alwaysApp) {
5
- return {
6
- user_id: alwaysApp ? mapOptional(filters.user, extractUserId) : undefined,
7
- game_id: filters.gameId,
8
- fulfillment_status: filters.fulfillmentStatus,
9
- };
10
- }
11
- /** @internal */
12
- export function createDropsEntitlementUpdateBody(ids, fulfillmentStatus) {
13
- return {
14
- fulfillment_status: fulfillmentStatus,
15
- entitlement_ids: ids,
16
- };
17
- }
@@ -1,26 +0,0 @@
1
- import { type UserIdResolvable } from '@twurple/common';
2
- import { type HelixPagination } from '../../utils/pagination/HelixPagination.js';
3
- import { type HelixDropsEntitlementFulfillmentStatus } from './entitlement.external.js';
4
- /**
5
- * Filters for drops entitlement queries.
6
- */
7
- export interface HelixDropsEntitlementFilter {
8
- /**
9
- * The user to find entitlements for.
10
- */
11
- user: UserIdResolvable;
12
- /**
13
- * The ID of the game to find entitlements for.
14
- */
15
- gameId: string;
16
- /**
17
- * The fulfillment status to find entitlements for.
18
- */
19
- fulfillmentStatus: HelixDropsEntitlementFulfillmentStatus;
20
- }
21
- /**
22
- * @inheritDoc
23
- */
24
- export interface HelixDropsEntitlementPaginatedFilter extends HelixDropsEntitlementFilter, HelixPagination {
25
- }
26
- //# sourceMappingURL=entitlement.input.d.ts.map