@distilled.cloud/twitch 0.0.0 → 1.0.0-rc.21

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 (214) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +79 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +31 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +49 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +46 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +19 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +50 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/ads.d.ts +75 -0
  26. package/lib/services/ads.d.ts.map +1 -0
  27. package/lib/services/ads.js +2 -0
  28. package/lib/services/ads.js.map +1 -0
  29. package/lib/services/analytics.d.ts +90 -0
  30. package/lib/services/analytics.d.ts.map +1 -0
  31. package/lib/services/analytics.js +2 -0
  32. package/lib/services/analytics.js.map +1 -0
  33. package/lib/services/bits.d.ts +284 -0
  34. package/lib/services/bits.d.ts.map +1 -0
  35. package/lib/services/bits.js +2 -0
  36. package/lib/services/bits.js.map +1 -0
  37. package/lib/services/ccls.d.ts +26 -0
  38. package/lib/services/ccls.d.ts.map +1 -0
  39. package/lib/services/ccls.js +2 -0
  40. package/lib/services/ccls.js.map +1 -0
  41. package/lib/services/channel_points.d.ts +416 -0
  42. package/lib/services/channel_points.d.ts.map +1 -0
  43. package/lib/services/channel_points.js +2 -0
  44. package/lib/services/channel_points.js.map +1 -0
  45. package/lib/services/channels.d.ts +173 -0
  46. package/lib/services/channels.d.ts.map +1 -0
  47. package/lib/services/channels.js +2 -0
  48. package/lib/services/channels.js.map +1 -0
  49. package/lib/services/charity.d.ts +97 -0
  50. package/lib/services/charity.d.ts.map +1 -0
  51. package/lib/services/charity.js +2 -0
  52. package/lib/services/charity.js.map +1 -0
  53. package/lib/services/chat.d.ts +638 -0
  54. package/lib/services/chat.d.ts.map +1 -0
  55. package/lib/services/chat.js +33 -0
  56. package/lib/services/chat.js.map +1 -0
  57. package/lib/services/clips.d.ts +153 -0
  58. package/lib/services/clips.d.ts.map +1 -0
  59. package/lib/services/clips.js +2 -0
  60. package/lib/services/clips.js.map +1 -0
  61. package/lib/services/conduits.d.ts +172 -0
  62. package/lib/services/conduits.d.ts.map +1 -0
  63. package/lib/services/conduits.js +2 -0
  64. package/lib/services/conduits.js.map +1 -0
  65. package/lib/services/entitlements.d.ts +76 -0
  66. package/lib/services/entitlements.d.ts.map +1 -0
  67. package/lib/services/entitlements.js +2 -0
  68. package/lib/services/entitlements.js.map +1 -0
  69. package/lib/services/eventsub.d.ts +158 -0
  70. package/lib/services/eventsub.d.ts.map +1 -0
  71. package/lib/services/eventsub.js +2 -0
  72. package/lib/services/eventsub.js.map +1 -0
  73. package/lib/services/extensions.d.ts +497 -0
  74. package/lib/services/extensions.d.ts.map +1 -0
  75. package/lib/services/extensions.js +2 -0
  76. package/lib/services/extensions.js.map +1 -0
  77. package/lib/services/games.d.ts +57 -0
  78. package/lib/services/games.d.ts.map +1 -0
  79. package/lib/services/games.js +2 -0
  80. package/lib/services/games.js.map +1 -0
  81. package/lib/services/goals.d.ts +37 -0
  82. package/lib/services/goals.d.ts.map +1 -0
  83. package/lib/services/goals.js +2 -0
  84. package/lib/services/goals.js.map +1 -0
  85. package/lib/services/guest_star.d.ts +314 -0
  86. package/lib/services/guest_star.d.ts.map +1 -0
  87. package/lib/services/guest_star.js +2 -0
  88. package/lib/services/guest_star.js.map +1 -0
  89. package/lib/services/hype_train.d.ts +91 -0
  90. package/lib/services/hype_train.d.ts.map +1 -0
  91. package/lib/services/hype_train.js +2 -0
  92. package/lib/services/hype_train.js.map +1 -0
  93. package/lib/services/index.d.ts +30 -0
  94. package/lib/services/index.d.ts.map +1 -0
  95. package/lib/services/index.js +29 -0
  96. package/lib/services/moderation.d.ts +731 -0
  97. package/lib/services/moderation.d.ts.map +1 -0
  98. package/lib/services/moderation.js +41 -0
  99. package/lib/services/moderation.js.map +1 -0
  100. package/lib/services/polls.d.ts +173 -0
  101. package/lib/services/polls.d.ts.map +1 -0
  102. package/lib/services/polls.js +2 -0
  103. package/lib/services/polls.js.map +1 -0
  104. package/lib/services/predictions.d.ts +221 -0
  105. package/lib/services/predictions.d.ts.map +1 -0
  106. package/lib/services/predictions.js +2 -0
  107. package/lib/services/predictions.js.map +1 -0
  108. package/lib/services/raids.d.ts +34 -0
  109. package/lib/services/raids.d.ts.map +1 -0
  110. package/lib/services/raids.js +2 -0
  111. package/lib/services/raids.js.map +1 -0
  112. package/lib/services/schedule.d.ts +223 -0
  113. package/lib/services/schedule.d.ts.map +1 -0
  114. package/lib/services/schedule.js +2 -0
  115. package/lib/services/schedule.js.map +1 -0
  116. package/lib/services/search.d.ts +89 -0
  117. package/lib/services/search.d.ts.map +1 -0
  118. package/lib/services/search.js +2 -0
  119. package/lib/services/search.js.map +1 -0
  120. package/lib/services/streams.d.ts +235 -0
  121. package/lib/services/streams.d.ts.map +1 -0
  122. package/lib/services/streams.js +2 -0
  123. package/lib/services/streams.js.map +1 -0
  124. package/lib/services/subscriptions.d.ts +96 -0
  125. package/lib/services/subscriptions.d.ts.map +1 -0
  126. package/lib/services/subscriptions.js +2 -0
  127. package/lib/services/subscriptions.js.map +1 -0
  128. package/lib/services/teams.d.ts +90 -0
  129. package/lib/services/teams.d.ts.map +1 -0
  130. package/lib/services/teams.js +2 -0
  131. package/lib/services/teams.js.map +1 -0
  132. package/lib/services/users.d.ts +324 -0
  133. package/lib/services/users.d.ts.map +1 -0
  134. package/lib/services/users.js +2 -0
  135. package/lib/services/users.js.map +1 -0
  136. package/lib/services/videos.d.ts +101 -0
  137. package/lib/services/videos.d.ts.map +1 -0
  138. package/lib/services/videos.js +2 -0
  139. package/lib/services/videos.js.map +1 -0
  140. package/lib/services/whispers.d.ts +17 -0
  141. package/lib/services/whispers.d.ts.map +1 -0
  142. package/lib/services/whispers.js +2 -0
  143. package/lib/services/whispers.js.map +1 -0
  144. package/lib/services.lazy/ads.js +1 -0
  145. package/lib/services.lazy/analytics.js +1 -0
  146. package/lib/services.lazy/bits.js +1 -0
  147. package/lib/services.lazy/ccls.js +1 -0
  148. package/lib/services.lazy/channel_points.js +1 -0
  149. package/lib/services.lazy/channels.js +1 -0
  150. package/lib/services.lazy/charity.js +1 -0
  151. package/lib/services.lazy/chat.js +3 -0
  152. package/lib/services.lazy/clips.js +1 -0
  153. package/lib/services.lazy/conduits.js +1 -0
  154. package/lib/services.lazy/entitlements.js +1 -0
  155. package/lib/services.lazy/eventsub.js +1 -0
  156. package/lib/services.lazy/extensions.js +1 -0
  157. package/lib/services.lazy/games.js +1 -0
  158. package/lib/services.lazy/goals.js +1 -0
  159. package/lib/services.lazy/guest_star.js +1 -0
  160. package/lib/services.lazy/hype_train.js +1 -0
  161. package/lib/services.lazy/index.js +3 -0
  162. package/lib/services.lazy/moderation.js +3 -0
  163. package/lib/services.lazy/polls.js +1 -0
  164. package/lib/services.lazy/predictions.js +1 -0
  165. package/lib/services.lazy/raids.js +1 -0
  166. package/lib/services.lazy/schedule.js +1 -0
  167. package/lib/services.lazy/search.js +1 -0
  168. package/lib/services.lazy/streams.js +1 -0
  169. package/lib/services.lazy/subscriptions.js +1 -0
  170. package/lib/services.lazy/teams.js +1 -0
  171. package/lib/services.lazy/users.js +1 -0
  172. package/lib/services.lazy/videos.js +1 -0
  173. package/lib/services.lazy/whispers.js +1 -0
  174. package/lib/traits.d.ts +10 -0
  175. package/lib/traits.d.ts.map +1 -0
  176. package/lib/traits.js +1 -0
  177. package/package.json +82 -2
  178. package/src/credentials.ts +79 -0
  179. package/src/errors.ts +78 -0
  180. package/src/index.ts +45 -0
  181. package/src/pagination.ts +9 -0
  182. package/src/protocol.ts +43 -0
  183. package/src/retry.ts +69 -0
  184. package/src/services/ads.ts +228 -0
  185. package/src/services/analytics.ts +253 -0
  186. package/src/services/bits.ts +631 -0
  187. package/src/services/ccls.ts +96 -0
  188. package/src/services/channel_points.ts +804 -0
  189. package/src/services/channels.ts +471 -0
  190. package/src/services/charity.ts +250 -0
  191. package/src/services/chat.ts +1547 -0
  192. package/src/services/clips.ts +385 -0
  193. package/src/services/conduits.ts +453 -0
  194. package/src/services/entitlements.ts +219 -0
  195. package/src/services/eventsub.ts +372 -0
  196. package/src/services/extensions.ts +1098 -0
  197. package/src/services/games.ts +184 -0
  198. package/src/services/goals.ts +110 -0
  199. package/src/services/guest_star.ts +762 -0
  200. package/src/services/hype_train.ts +214 -0
  201. package/src/services/index.ts +30 -0
  202. package/src/services/moderation.ts +1817 -0
  203. package/src/services/polls.ts +363 -0
  204. package/src/services/predictions.ts +432 -0
  205. package/src/services/raids.ts +127 -0
  206. package/src/services/schedule.ts +539 -0
  207. package/src/services/search.ts +248 -0
  208. package/src/services/streams.ts +579 -0
  209. package/src/services/subscriptions.ts +247 -0
  210. package/src/services/teams.ts +225 -0
  211. package/src/services/users.ts +729 -0
  212. package/src/services/videos.ts +257 -0
  213. package/src/services/whispers.ts +71 -0
  214. package/src/traits.ts +47 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sources":["../../src/services/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAM1F,YAAY,EAAE,aAAa,EAAE,eAAe,EA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AAC;AAEJ,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;AACzD,6uBAA6uB;AAC7uB,eAAO,MAAM,uBAAuB,EAAE,GAAG,CAAC,eAAe,CACvD,8BAA8B,EAC9B,+BAA+B,EAC/B,4BAA4B,EAC5B,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC;AACrD,6VAA6V;AAC7V,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,eAAe,CAUd,CAAC"}
@@ -0,0 +1,33 @@
1
+ import{Fc as e,Gc as t,Jc as n,Kc as r,Rc as i,Wc as a,Xc as o,a as s,b as c,errors$TwitchServiceErrors as l,l as u,n as d,o as f,pagination$paginateCursor as p,protocol$TwitchProtocol as m,retry$Retry as h,traits$Http as g,traits$Query as _,wc as v,xc as y}from"../_bundle/sdk.js";const b={system:`twitch-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Twitch`,service:`Chat`,propagate:`w3c`};const x=/*@__PURE__*/ d(e=>e===s?u(`GetChannelChatBadges`,`{input:#1,output:#6:4,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/chat/badges",code:200}))`,[i,g,_,n,r,o,__d0,l,m,h,b]):c(x,e));const S=/*@__PURE__*/ d(e=>e===s?u(`GetChannelEmotes`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$9(#2);$5(>7)@"%Response";$4({broadcaster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/chat/emotes",code:200}));$4({id:$6($3),name:$6($3),images:$6(#7:0),tier:$6($3),emote_type:$6($3),emote_set_id:$6($3),format:$6(#8:0),scale:$6(#8:0),theme_mode:$6(#8:0)});$4({data:$6(#3),template:$6($3)})`,[i,g,_,n,r,o,a,__d1,__d2,v,l,m,h,b]):c(S,e));const C=/*@__PURE__*/ d(d=>d===s?u(`GetChatSettings`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$6(>5)@"%Request";$6(>6)@"%ResponseDataItem";$10(#2);$6(>7)@"%Response";$5({broadcaster_id:$3.pipe($2()),moderator_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/chat/settings",code:200}));$5({broadcaster_id:$4($3),emote_mode:$4($7),follower_mode:$4($7),follower_mode_duration:$4($9($8)),moderator_id:$4($3),non_moderator_chat_delay:$4($7),non_moderator_chat_delay_duration:$4($9($8)),slow_mode:$4($7),slow_mode_wait_time:$4($9($8)),subscriber_mode:$4($7),unique_chat_mode:$4($7)});$5({data:$4(#3)})`,[i,g,_,n,a,r,o,y,t,e,v,l,m,h,b]):c(C,d));const w=/*@__PURE__*/ f(e=>e===s?u(`GetChatters`,`{input:#1,output:#3,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$15};$7(>4)@"%Request";$9(#8:0);$7(>5)@"%Response";$6({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),first:$5($4.pipe($2())),after:$5($3.pipe($2()))}).pipe($1({method:"GET",uri:"/chat/chatters",code:200}));$6({data:#2,pagination:$5(#10:0),total:$5($4)})`,[i,g,_,n,t,a,r,o,__d5,v,__d4,l,m,h,b,p]):c(w,e));const T=/*@__PURE__*/ d(e=>e===s?u(`GetEmoteSets`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$9(#2);$5(>7)@"%Response";$4({emote_set_id:#3:0.pipe($2())}).pipe($1({method:"GET",uri:"/chat/emotes/set",code:200}));$4({id:$7($6),name:$7($6),images:$7(#8:0),emote_type:$7($6),emote_set_id:$7($6),owner_id:$7($6),format:$7(#3:0),scale:$7(#3:0),theme_mode:$7(#3:0)});$4({data:$7(#3),template:$7($6)})`,[i,g,_,__d2,r,o,n,a,__d1,v,l,m,h,b]):c(T,e));const E=/*@__PURE__*/ d(e=>e===s?u(`GetGlobalChatBadges`,`{input:#1,output:#4:4,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"GET",uri:"/chat/badges/global",code:200}))`,[i,g,r,o,__d0,l,m,h,b]):c(E,e));const D=/*@__PURE__*/ d(e=>e===s?u(`GetGlobalEmotes`,`{input:#1,output:#4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$3(>5)@"%Request";$3(>6)@"%ResponseDataItem";$8(#2);$3(>7)@"%Response";$2({}).pipe($1({method:"GET",uri:"/chat/emotes/global",code:200}));$2({id:$5($4),name:$5($4),images:$5(#6:0),format:$5(#7:0),scale:$5(#7:0),theme_mode:$5(#7:0)});$2({data:$5(#3),template:$5($4)})`,[i,g,r,o,n,a,__d1,__d2,v,l,m,h,b]):c(D,e));const O=/*@__PURE__*/ d(d=>d===s?u(`GetPinnedChatMessageResponseDataItem`,`{input:#1,output:#9,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"GetPinnedChatMessage"};$5(>10)@"GetPinnedChatMessageRequest";$5(>11)@"%MessageFragmentsItemCheermote";$5(>12)@"%MessageFragmentsItemEmote";$5(>13)@"%MessageFragmentsItem";$11(#4);$5(>14)@"%Message";$5(>15)@"%";$11(#7);$5(>16)@"GetPinnedChatMessageResponse";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/chat/pins",code:200}));$4({prefix:$6($3),bits:$6($7),tier:$6($7)});$4({id:$6($3),emote_set_id:$6($3),owner_id:$6($3),format:$6(#8:0)});$4({type:$6($3),text:$6($3),cheermote:$6($9(#2)),emote:$6($9(#3)),mention:$6($9(#10:0))});$4({text:$6($3),fragments:$6(#5)});$4({message_id:$6($3),broadcaster_id:$6($3),sender_user_id:$6($3),sender_user_login:$6($3),sender_user_name:$6($3),pinned_by_user_id:$6($3),pinned_by_user_login:$6($3),pinned_by_user_name:$6($3),message:$6($9(#6)),starts_at:$6($3),ends_at:$6($9($3)),updated_at:$6($3)});$4({data:$6(#8)})`,[i,g,_,n,r,o,a,t,__d2,e,__d5,v,l,m,h,b]):c(O,d));const k=/*@__PURE__*/ d(e=>e===s?u(`GetSharedChatSession`,`{input:#1,output:#6,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>7)@"%Request";$5(>8)@"%ResponseDataItemParticipantsItem";$7(#2);$5(>9)@"%ResponseDataItem";$7(#4);$5(>10)@"%Response";$4({broadcaster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/shared_chat/session",code:200}));$4({broadcaster_id:$6($3)});$4({session_id:$6($3),host_broadcaster_id:$6($3),participants:$6(#3),created_at:$6($3),updated_at:$6($3)});$4({data:$6(#5)})`,[i,g,_,n,r,o,a,v,l,m,h,b]):c(k,e));const A=/*@__PURE__*/ d(t=>t===s?u(`GetUserChatColor`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$8(#2);$5(>7)@"%Response";$4({user_id:#3:0.pipe($2())}).pipe($1({method:"GET",uri:"/chat/color",code:200}));$4({user_id:$7($6),user_login:$7($6),user_name:$7($6),color:$7($6)});$4({data:$7($9(#3))})`,[i,g,_,__d2,r,o,n,a,v,e,l,m,h,b]):c(A,t));const j=/*@__PURE__*/ f(e=>e===s?u(`GetUserEmotes`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data"},strategy:$14};$6(>5)@"%Request";$6(>6)@"%ResponseDataItem";$8(#2);$6(>7)@"%Response";$5({user_id:$3.pipe($2()),after:$4($3.pipe($2())),broadcaster_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/chat/emotes/user",code:200}));$5({id:$4($3),name:$4($3),emote_type:$4($3),emote_set_id:$4($3),owner_id:$4($3),format:$4(#7:0),scale:$4(#7:0),theme_mode:$4(#7:0)});$5({data:#3,template:$4($3),pagination:$4(#9:0)})`,[i,g,_,n,a,r,o,__d2,v,__d4,l,m,h,b,p]):c(j,e));const M=/*@__PURE__*/ d(e=>e===s?u(`PinChatMessage`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),message_id:$3.pipe($2()),duration_seconds:$5($4.pipe($2()))}).pipe($1({method:"PUT",uri:"/chat/pins",code:200}))`,[i,g,_,n,t,a,r,o,__d3,l,m,h,b]):c(M,e));const N=/*@__PURE__*/ d(e=>e===s?u(`SendAShoutout`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({from_broadcaster_id:$3.pipe($2()),to_broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/chat/shoutouts",code:200}))`,[i,g,_,n,r,o,__d3,l,m,h,b]):c(N,e));const P=/*@__PURE__*/ d(e=>e===s?u(`SendChatAnnouncement`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),message:$3,color:$4($3),for_source_only:$4($5)}).pipe($1({method:"POST",uri:"/chat/announcements",code:200}))`,[i,g,_,n,a,y,r,o,__d3,l,m,h,b]):c(P,e));const F=/*@__PURE__*/ d(t=>t===s?u(`SendChatMessage`,`{input:#1,output:#5,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>6)@"%Request";$6(>7)@"%ResponseDataItemDropReason";$6(>8)@"%ResponseDataItem";$8(#3);$6(>9)@"%Response";$5({broadcaster_id:$2,sender_id:$2,message:$2,reply_parent_message_id:$3($2),for_source_only:$3($4),pin:$3($4)}).pipe($1({method:"POST",uri:"/chat/messages",code:200}));$5({code:$3($2),message:$3($2)});$5({message_id:$3($2),is_sent:$3($4),drop_reason:$3($7(#2))});$5({data:$3(#4)})`,[i,g,n,a,y,r,o,e,v,l,m,h,b]):c(F,t));const I=/*@__PURE__*/ d(e=>e===s?u(`UnpinChatMessage`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),message_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/chat/pins",code:200}))`,[i,g,_,n,r,o,__d3,l,m,h,b]):c(I,e));const L=/*@__PURE__*/ d(e=>e===s?u(`UpdateChatSettings`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$8(>5)@"%Request";$8(>6)@"%ResponseDataItem";$9(#2);$8(>7)@"%Response";$7({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),emote_mode:$5($4),follower_mode:$5($4),follower_mode_duration:$5($6),non_moderator_chat_delay:$5($4),non_moderator_chat_delay_duration:$5($6),slow_mode:$5($4),slow_mode_wait_time:$5($6),subscriber_mode:$5($4),unique_chat_mode:$5($4)}).pipe($1({method:"PATCH",uri:"/chat/settings",code:200}));$7({broadcaster_id:$5($3),emote_mode:$5($4),follower_mode:$5($4),follower_mode_duration:$5($6),moderator_id:$5($3),non_moderator_chat_delay:$5($4),non_moderator_chat_delay_duration:$5($6),slow_mode:$5($4),slow_mode_wait_time:$5($6),subscriber_mode:$5($4),unique_chat_mode:$5($4)});$7({data:$5(#3)})`,[i,g,_,n,y,a,t,r,o,v,l,m,h,b]):c(L,e));const R=/*@__PURE__*/ d(e=>e===s?u(`UpdatePinnedChatMessage`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),message_id:$3.pipe($2()),duration_seconds:$5($4.pipe($2()))}).pipe($1({method:"PATCH",uri:"/chat/pins",code:200}))`,[i,g,_,n,t,a,r,o,__d3,l,m,h,b]):c(R,e));const z=/*@__PURE__*/ d(e=>e===s?u(`UpdateUserChatColor`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({user_id:$3.pipe($2()),color:$3.pipe($2())}).pipe($1({method:"PUT",uri:"/chat/color",code:200}))`,[i,g,_,n,r,o,__d3,l,m,h,b]):c(z,e));function __d0(){return[`$5(>5)@"GetChannelChatBadgesResponseDataItemVersionsItem";$6(#0);$5(>6)@"GetChannelChatBadgesResponseDataItem";$6(#2);$5(>7)@"GetChannelChatBadgesResponse";$4({id:$2($1),image_url_1x:$2($1),image_url_2x:$2($1),image_url_4x:$2($1),title:$2($1),description:$2($1),click_action:$2($3($1)),click_url:$2($3($1))});$4({set_id:$2($1),versions:$2(#1)});$4({data:$2(#3)})`,[i,n,a,e,r,o,v]]}function __d1(){return[`$4(>1)@"GetChannelEmotesResponseDataItemImages";$3({url_1x:$2($1),url_2x:$2($1),url_4x:$2($1)})`,[i,n,a,r,o]]}function __d2(){return[`$2($1)`,[i,n,v]]}function __d3(){return[`$2(>1)@"PinChatMessageResponse";$1({})`,[i,r,o]]}function __d4(){return[`$4(>1)@"GetChattersResponsePagination";$3({cursor:$2($1)})`,[i,n,a,r,o]]}function __d5(){return[`$4(>1)@"GetChattersResponseDataItem";$3({user_id:$2($1),user_login:$2($1),user_name:$2($1)})`,[i,n,a,r,o]]}export{x as getChannelChatBadges,S as getChannelEmotes,C as getChatSettings,w as getChatters,T as getEmoteSets,E as getGlobalChatBadges,D as getGlobalEmotes,O as getPinnedChatMessage,k as getSharedChatSession,A as getUserChatColor,j as getUserEmotes,M as pinChatMessage,N as sendAShoutout,P as sendChatAnnouncement,F as sendChatMessage,I as unpinChatMessage,L as updateChatSettings,R as updatePinnedChatMessage,z as updateUserChatColor};
2
+ /*
3
+ 20 26
4
+ e:0:Fc t:0:Gc n:0:Jc r:0:Kc i:0:Rc a:0:Wc o:0:Xc s:0:a c:0:b l:0:errors$TwitchServiceErrors u:0:l d:0:n f:0:o p:0:pagination$paginateCursor m:0:protocol$TwitchProtocol h:0:retry$Retry g:0:traits$Http _:0:traits$Query v:0:wc y:0:xc
5
+ 000000001q0003l0005h0007d00096000av000cp000fa000h5000j1000kx000mp000oc000qa000s2000ts000vp000xq000zj000zv0010y0011x0012s0013n0014m0015l
6
+ 2 fl n3 x|=GetChannelChatBadges;gk m3;4,g,h,2,3,6,14,9,e,f,13
7
+ 2 nt 11x S|=GetChannelEmotes;oo 10o;4,g,h,2,3,6,5,15,16,i,9,e,f,13
8
+ 2 12n 1l8 C|=GetChatSettings;13h 1k3;4,g,h,2,5,3,6,j,1,0,i,9,e,f,13
9
+ 2 1ly 217 w|=GetChatters;1mo 1zu;4,g,h,2,1,5,3,6,19,i,18,9,e,f,13,d
10
+ 2 21x 2g5 T|=GetEmoteSets;22o 2ew;4,g,h,16,3,6,2,5,15,i,9,e,f,13
11
+ 2 2gv 2nm E|=GetGlobalChatBadges;2ht 2mq;4,g,3,6,14,9,e,f,13
12
+ 2 2oc 30d D|=GetGlobalEmotes;2p6 2z6;4,g,3,6,2,5,15,16,i,9,e,f,13
13
+ 2 313 3v8 O|=GetPinnedChatMessageResponseDataItem;32i 3tv;4,g,h,2,3,6,5,1,16,0,19,i,9,e,f,13
14
+ 2 3vy 4ar k|=GetSharedChatSession;3wx 49s;4,g,h,2,3,6,5,i,9,e,f,13
15
+ 2 4bh 4mw A|=GetUserChatColor;4cc 4lq;4,g,h,16,3,6,2,5,i,0,9,e,f,13
16
+ 2 4nm 568 j|=GetUserEmotes;4oe 54x;4,g,h,2,5,3,6,16,i,18,9,e,f,13,d
17
+ 2 56y 5gt M|=PinChatMessage;57r 5fp;4,g,h,2,1,5,3,6,17,9,e,f,13
18
+ 2 5hj 5qq N|=SendAShoutout;5ib 5pq;4,g,h,2,3,6,17,9,e,f,13
19
+ 2 5rg 61e P|=SendChatAnnouncement;5sf 60a;4,g,h,2,5,j,3,6,17,9,e,f,13
20
+ 2 624 6he F|=SendChatMessage;62y 6gd;4,g,2,5,j,3,6,0,i,9,e,f,13
21
+ 2 6i4 6qz I|=UnpinChatMessage;6iz 6pz;4,g,h,2,3,6,17,9,e,f,13
22
+ 2 6rp 7gd L|=UpdateChatSettings;6sm 7fa;4,g,h,2,j,5,1,3,6,i,9,e,f,13
23
+ 2 7h3 7r9 R|=UpdatePinnedChatMessage;7i5 7q5;4,g,h,2,1,5,3,6,17,9,e,f,13
24
+ 2 7rz 7zs z|=UpdateUserChatColor;7sx 7ys;4,g,h,2,3,6,17,9,e,f,13
25
+ 0 82 ew b||
26
+ 1 7zu 8b3 __d0|=;80i 8ak;4,2,5,0,3,6,i
27
+ 1 8b3 8et __d1|=;8br 8ee;4,2,5,3,6
28
+ 1 8et 8fy __d2|=;8fh 8fn;4,2,i
29
+ 1 8fy 8hz __d3|=;8gm 8ho;4,3,6
30
+ 1 8hz 8ko __d4|=;8in 8k9;4,2,5,3,6
31
+ 1 8ko 8ob __d5|=;8lc 8nw;4,2,5,3,6
32
+ */
33
+ //# sourceMappingURL=chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.Struct","S.suspend","Retry.Retry","API.call","S.optional","S.Array","S.Boolean","S.Number","S.NullOr","NullOr","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","named","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","Boolean","TELEMETRY","getChannelChatBadges","i","getChannelEmotes","getChatSettings","getChatters","getEmoteSets","getGlobalChatBadges","getGlobalEmotes","getPinnedChatMessage","getSharedChatSession","getUserChatColor","getUserEmotes","pinChatMessage","sendAShoutout","sendChatAnnouncement","sendChatMessage","unpinChatMessage","updateChatSettings","updatePinnedChatMessage","updateUserChatColor"],"sources":["../../src/services/chat.ts"],"mappings":"0RAaA,MAAMmC,EAAY,CAChB,OAAQ,aACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,SACR,QAAS,OACT,UAAW,KACb,EAkkBA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMrC,EAAQC,EAAU,uBAAwB,0MAA2M,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAW,KAAMiB,EAAqBK,EAAgBrB,EAAa2B,CAAS,CAAC,EAAI1B,EAAS2B,EAAsBC,CAAC,CAAC,EAIrc,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMrC,EAAQC,EAAU,mBAAoB,mbAAob,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAWG,EAAY,KAAM,KAAMC,EAASa,EAAqBK,EAAgBrB,EAAa2B,CAAS,CAAC,EAAI1B,EAAS6B,EAAkBD,CAAC,CAAC,EAIjsB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMrC,EAAQC,EAAU,kBAAmB,ylBAA0lB,CAACC,EAAQC,EAAQC,EAASC,EAAUK,EAAYJ,EAAUC,EAAWK,EAAWC,EAAUC,EAAUH,EAASa,EAAqBK,EAAgBrB,EAAa2B,CAAS,CAAC,EAAI1B,EAAS8B,EAAiBF,CAAC,CAAC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,CAACT,EAAQG,EAAUK,EAAYJ,EAAUC,CAAS,CAAC,CAChK,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,SAAU,CAACL,EAAQG,EAAUM,CAAO,CAAC,CAC/C,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,yCAA0C,CAACT,EAAQI,EAAUC,CAAS,CAAC,CACjF,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,6DAA8D,CAACL,EAAQG,EAAUK,EAAYJ,EAAUC,CAAS,CAAC,CAC3H,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,+FAAgG,CAACL,EAAQG,EAAUK,EAAYJ,EAAUC,CAAS,CAAC,CAC7J"}
@@ -0,0 +1,153 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import { type TwitchOpError, type TwitchOpContext } from "../protocol.ts";
3
+ export type { TwitchOpError, TwitchOpContext };
4
+ export interface CreateClipRequest {
5
+ /** The ID of the broadcaster whose stream you want to create a clip from. */
6
+ broadcaster_id: string;
7
+ /** The title of the clip. */
8
+ title?: string | undefined;
9
+ /** The length of the clip in seconds. Possible values range from 5 to 60 inclusively with a precision of 0.1. The default is 30. */
10
+ duration?: number | undefined;
11
+ }
12
+ export interface CreateClipResponseDataItem {
13
+ /** An ID that uniquely identifies the clip. */
14
+ id?: string | undefined;
15
+ /** A URL that you can use to edit the clip's title, identify the part of the clip to publish, and publish the clip. [Learn More](https://help.twitch.tv/s/article/how-to-use-clips) The URL is valid for up to 24 hours or until the clip is published, whichever comes first. */
16
+ edit_url?: string | undefined;
17
+ }
18
+ /** A list containing the created clip. */
19
+ export type CreateClipResponseDataList = Array<CreateClipResponseDataItem>;
20
+ export interface CreateClipResponse {
21
+ /** A list containing the created clip. */
22
+ data?: CreateClipResponseDataList | undefined;
23
+ }
24
+ export interface CreateClipFromVodRequest {
25
+ /** The user ID of the editor for the channel you want to create a clip for. If using the broadcaster's auth token, this is the same as broadcaster_id. This must match the user_id in the user access token. */
26
+ editor_id: string;
27
+ /** The user ID for the channel you want to create a clip for. */
28
+ broadcaster_id: string;
29
+ /** ID of the VOD the user wants to clip. */
30
+ vod_id: string;
31
+ /** The zero-based offset, in seconds, to where the clip should end in the video (VOD). See this endpoint's description for more information on how to use this parameter. */
32
+ vod_offset: number;
33
+ /** The length of the clip, in seconds. Precision is 0.1. Defaults to 30. Min: 5 seconds, Max: 60 seconds. */
34
+ duration?: number | undefined;
35
+ /** The title of the clip. */
36
+ title: string;
37
+ }
38
+ export interface CreateClipFromVodResponseDataItem {
39
+ /** An ID that uniquely identifies the clip. */
40
+ id?: string | undefined;
41
+ /** A URL you can use to edit the clip's title, feature the clip, create a portrait version of the clip, download the clip media, and share the clip directly to third-party platforms. */
42
+ edit_url?: string | undefined;
43
+ }
44
+ /** A list containing the created clip. */
45
+ export type CreateClipFromVodResponseDataList = Array<CreateClipFromVodResponseDataItem>;
46
+ export interface CreateClipFromVodResponse {
47
+ /** A list containing the created clip. */
48
+ data?: CreateClipFromVodResponseDataList | undefined;
49
+ }
50
+ export type GetClipsRequestIdList = Array<string>;
51
+ export interface GetClipsRequest {
52
+ /** An ID that identifies the broadcaster whose video clips you want to get. Use this parameter to get clips that were captured from the broadcaster's streams. */
53
+ broadcaster_id?: string | undefined;
54
+ /** An ID that identifies the game whose clips you want to get. Use this parameter to get clips that were captured from streams that were playing this game. */
55
+ game_id?: string | undefined;
56
+ /** An ID that identifies the clip to get. To specify more than one ID, include this parameter for each clip you want to get. For example, 'id=foo&id=bar'. You may specify a maximum of 100 IDs. The API ignores duplicate IDs and IDs that aren't found. If you specify *id*, the API ignores the *started_at*, *ended_at*, *is_featured*, *first*, and *after* query parameters, and the response doesn't include a cursor. */
57
+ id?: GetClipsRequestIdList | undefined;
58
+ /** The start date used to filter clips. The API returns only clips within the start and end date window. Specify the date and time in RFC3339 format. The API truncates the start and end times to the minute. */
59
+ started_at?: string | undefined;
60
+ /** The end date used to filter clips. If not specified, the time window is the start date plus one week. Specify the date and time in RFC3339 format. The API ignores this parameter if you don't specify *started_at*. */
61
+ ended_at?: string | undefined;
62
+ /** The maximum number of clips to return per page in the response. The minimum page size is 1 clip per page and the maximum is 100. The default is 20. */
63
+ first?: number | undefined;
64
+ /** The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor's value. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
65
+ after?: string | undefined;
66
+ /** A Boolean value that determines whether the response includes featured clips. If **true**, returns only clips that are featured. If **false**, returns only clips that aren't featured. All clips are returned if this parameter is not present. */
67
+ is_featured?: boolean | undefined;
68
+ }
69
+ export interface GetClipsResponseDataItem {
70
+ /** An ID that uniquely identifies the clip. */
71
+ id?: string | undefined;
72
+ /** A URL to the clip. */
73
+ url?: string | undefined;
74
+ /** A URL that you can use in an iframe to embed the clip (see [Embedding Video and Clips](https://dev.twitch.tv/docs/embed/video-and-clips.md)). */
75
+ embed_url?: string | undefined;
76
+ /** An ID that identifies the broadcaster that the video was clipped from. */
77
+ broadcaster_id?: string | undefined;
78
+ /** The broadcaster's display name. */
79
+ broadcaster_name?: string | undefined;
80
+ /** An ID that identifies the user that created the clip. */
81
+ creator_id?: string | undefined;
82
+ /** The user's display name. */
83
+ creator_name?: string | undefined;
84
+ /** An ID that identifies the video that the clip came from. This field contains an empty string if the video is not available. */
85
+ video_id?: string | undefined;
86
+ /** The ID of the game that was being played when the clip was created. */
87
+ game_id?: string | undefined;
88
+ /** The ISO 639-1 two-letter language code that the broadcaster broadcasts in. For example, *en* for English. The value is *other* if the broadcaster uses a language that Twitch doesn't support. */
89
+ language?: string | undefined;
90
+ /** The title of the clip. */
91
+ title?: string | undefined;
92
+ /** The number of times the clip has been viewed. */
93
+ view_count?: number | undefined;
94
+ /** The date and time of when the clip was created. The date and time is in RFC3339 format. */
95
+ created_at?: string | undefined;
96
+ /** A URL to a thumbnail image of the clip. */
97
+ thumbnail_url?: string | undefined;
98
+ /** The length of the clip, in seconds. Precision is 0.1. */
99
+ duration?: number | undefined;
100
+ /** The zero-based offset, in seconds, to where the clip starts in the video (VOD). Is **null** if the video is not available or hasn't been created yet from the live stream (see `video_id`). Note that there's a delay between when a clip is created during a broadcast and when the offset is set. During the delay period, `vod_offset` is **null**. The delay is indeterminant but is typically minutes long. */
101
+ vod_offset?: number | null | undefined;
102
+ /** A Boolean value that indicates if the clip is featured or not. */
103
+ is_featured?: boolean | undefined;
104
+ }
105
+ /** The list of video clips. For clips returned by *game_id* or *broadcaster_id*, the list is in descending order by view count. For lists returned by *id*, the order isn't guaranteed to match the order of the input IDs. The list is always empty if the request comes from a region where videos aren't available. */
106
+ export type GetClipsResponseDataList = Array<GetClipsResponseDataItem>;
107
+ /** The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
108
+ export interface GetClipsResponsePagination {
109
+ /** The cursor used to get the next page of results. Set the request's *after* query parameter to this value. */
110
+ cursor?: string | undefined;
111
+ }
112
+ export interface GetClipsResponse {
113
+ /** The list of video clips. For clips returned by *game_id* or *broadcaster_id*, the list is in descending order by view count. For lists returned by *id*, the order isn't guaranteed to match the order of the input IDs. The list is always empty if the request comes from a region where videos aren't available. */
114
+ data: GetClipsResponseDataList;
115
+ /** The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
116
+ pagination?: GetClipsResponsePagination | undefined;
117
+ }
118
+ export type GetClipsDownloadRequestClipIdList = Array<string>;
119
+ export interface GetClipsDownloadRequest {
120
+ /** The User ID of the editor for the channel you want to download a clip for. If using the broadcaster's auth token, this is the same as _broadcaster_id_. This must match the `user_id` in the user access token. */
121
+ editor_id: string;
122
+ /** The ID of the broadcaster you want to download clips for. */
123
+ broadcaster_id: string;
124
+ /** The ID that identifies the clip you want to download. Include this parameter for each clip you want to download, up to a maximum of 10 clips. For example, 'clip_id=SleepyGiftedPeppermintNerfRedBlaster-KbkBXYt3lOk3jy8-&clip_id=WimpyAltruisticKleeKeyboardCat-EiY5yMrEwZ4i4gwC'. */
125
+ clip_id: GetClipsDownloadRequestClipIdList;
126
+ }
127
+ export interface GetClipsDownloadResponseDataItem {
128
+ /** An ID that uniquely identifies the clip. */
129
+ clip_id?: string | undefined;
130
+ /** The landscape URL to download the clip. This field is **null** if the URL is not available. */
131
+ landscape_download_url?: string | null | undefined;
132
+ /** The portrait URL to download the clip. This field is **null** if the URL is not available. */
133
+ portrait_download_url?: string | null | undefined;
134
+ }
135
+ /** List of clips and their download URLs. Clips that weren't found, that the editor may not access, or that belong to a different broadcaster are left out of the list. */
136
+ export type GetClipsDownloadResponseDataList = Array<GetClipsDownloadResponseDataItem>;
137
+ export interface GetClipsDownloadResponse {
138
+ /** List of clips and their download URLs. Clips that weren't found, that the editor may not access, or that belong to a different broadcaster are left out of the list. */
139
+ data?: GetClipsDownloadResponseDataList | undefined;
140
+ }
141
+ export type CreateClipError = TwitchOpError;
142
+ /** Create Clip Creates a clip from the broadcaster's stream. This API captures up to 90 seconds of the broadcaster's stream. The 90 seconds spans the point in the stream from when you called the API. For example, if you call the API at the 4:00 minute mark, the API captures from approximately the 2:35 mark to approximately the 4:05 minute mark. Twitch tries its best to capture 90 seconds of the stream, but the actual length may be less. This may occur if you begin capturing the clip near the beginning or end of the stream. By default, Twitch publishes up to the last 30 seconds of the 90 seconds window and provides a default title for the clip. To specify the title and the portion of the 90 seconds window that's used for the clip, use the URL in the response's `edit_url` field. You can specify a clip that's from 5 seconds to 60 seconds in length. The URL is valid for up to 24 hours or until the clip is published, whichever comes first. Creating a clip is an asynchronous process that can take a short amount of time to complete. To determine whether the clip was successfully created, call [Get Clips](#get-clips) using the clip ID that this request returned. If Get Clips returns the clip, the clip was successfully created. If after 60 seconds Get Clips hasn't returned the clip, assume it failed. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **clips:edit** scope. Reference: https://dev.twitch.tv/docs/api/reference/clips/#create-clip */
143
+ export declare const createClip: API.OperationMethod<CreateClipRequest, CreateClipResponse, CreateClipError, TwitchOpContext>;
144
+ export type CreateClipFromVodError = TwitchOpError;
145
+ /** Create Clip From VOD Creates a clip from the broadcaster's VOD. Creates a clip from a broadcaster's VOD on behalf of the broadcaster or an editor of the channel. Since a live stream is actively creating a VOD, this endpoint can also be used to create a clip from earlier in the current stream. The duration of a clip can be from 5 seconds to 60 seconds in length, with a default of 30 seconds if not specified. *vod_offset* indicates where the clip will end. In other words, the clip will start at (*vod_offset* - *duration*) and end at *vod_offset*. This means that the value of *vod_offset* must greater than or equal to the value of *duration*. The URL in the response's `edit_url` field allows you to edit the clip's title, feature the clip, create a portrait version of the clip, download the clip media, and share the clip directly to social platforms. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **editor:manage:clips** or **channel:manage:clips** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **editor:manage:clips** or **channel:manage:clips** scope for the user represented by the *editor_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/clips/#create-clip-from-vod */
146
+ export declare const createClipFromVod: API.OperationMethod<CreateClipFromVodRequest, CreateClipFromVodResponse, CreateClipFromVodError, TwitchOpContext>;
147
+ export type GetClipsError = TwitchOpError;
148
+ /** Get Clips Gets one or more video clips that were captured from streams. For information about clips, see [How to use clips](https://help.twitch.tv/s/article/how-to-use-clips). You must specify exactly one of the *broadcaster_id*, *game_id* and *id* query parameters; the request fails if you specify none of them or more than one. When using pagination for clips, note that the maximum number of results returned over multiple requests will be approximately 1,000. If additional results are necessary, paginate over different query parameters such as multiple *started_at* and *ended_at* timeframes to refine the search. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens). - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/clips/#get-clips */
149
+ export declare const getClips: API.PaginatedOperationMethod<GetClipsRequest, GetClipsResponse, GetClipsError, TwitchOpContext, GetClipsResponseDataItem>;
150
+ export type GetClipsDownloadError = TwitchOpError;
151
+ /** Get Clips Download Provides URLs to download the video file(s) for the specified clips. For information about clips, see [How to use clips](https://help.twitch.tv/s/article/how-to-use-clips). These links are temporary and should have a long-term expectation to expire. **Rate Limits**: Limited to 100 requests per minute. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **editor:manage:clips** or **channel:manage:clips** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **editor:manage:clips** or **channel:manage:clips** scope for the user represented by the *editor_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/clips/#get-clips-download */
152
+ export declare const getClipsDownload: API.OperationMethod<GetClipsDownloadRequest, GetClipsDownloadResponse, GetClipsDownloadError, TwitchOpContext>;
153
+ //# sourceMappingURL=clips.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clips.d.ts","sources":["../../src/services/clips.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAM1F,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAc/C,MAAM,WAAW,iBAAiB;IAChC,6EAA6E;IAC7E,cAAc,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,oIAAoI;IACpI,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AACD,MAAM,WAAW,0BAA0B;IACzC,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,kRAAkR;IAClR,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AACD,0CAA0C;AAC1C,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,0BAA0B,CAAC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MAAM,sBAAsB,GAAG,aAAa,CAAC;AACnD,i6CAAi6C;AACj6C,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,eAAe,CACjD,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAC1C,y5BAAy5B;AACz5B,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,wBAAwB,CACjD,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,wBAAwB,CAoBlB,CAAC;AAET,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAClD,s4BAAs4B;AACt4B,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,CAUd,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{Fc as e,Gc as t,Jc as n,Kc as r,Rc as i,Wc as a,Xc as o,a as s,b as c,errors$TwitchServiceErrors as l,l as u,n as d,o as f,pagination$paginateCursor as p,protocol$TwitchProtocol as m,retry$Retry as h,traits$Http as g,traits$Query as _,wc as v,xc as y}from"../_bundle/sdk.js";const b={system:`twitch-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Twitch`,service:`Clips`,propagate:`w3c`};const x=/*@__PURE__*/ d(e=>e===s?u(`CreateClip`,`{input:#1,output:#8:2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({broadcaster_id:$3.pipe($2()),title:$4($3.pipe($2())),duration:$4($5.pipe($2()))}).pipe($1({method:"POST",uri:"/clips",code:200}))`,[i,g,_,n,a,t,r,o,__d0,l,m,h,b]):c(x,e));const S=/*@__PURE__*/ d(e=>e===s?u(`CreateClipFromVod`,`{input:#1,output:#8:2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({editor_id:$3.pipe($2()),broadcaster_id:$3.pipe($2()),vod_id:$3.pipe($2()),vod_offset:$4.pipe($2()),duration:$5($4.pipe($2())),title:$3.pipe($2())}).pipe($1({method:"POST",uri:"/videos/clips",code:200}))`,[i,g,_,n,t,a,r,o,__d0,l,m,h,b]):c(S,e));const C=/*@__PURE__*/ f(d=>d===s?u(`GetClipsResponse`,`{input:#1,output:#5,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"GetClips",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$16};$9(>6)@"GetClipsRequest";$9(>7)@"%DataItem";$11(#2);$9(>8)@"%Pagination";$9(>9)@"%";$8({broadcaster_id:$4($3.pipe($2())),game_id:$4($3.pipe($2())),id:$4(#5:0.pipe($2())),started_at:$4($3.pipe($2())),ended_at:$4($3.pipe($2())),first:$4($6.pipe($2())),after:$4($3.pipe($2())),is_featured:$4($7.pipe($2()))}).pipe($1({method:"GET",uri:"/clips",code:200}));$8({id:$4($3),url:$4($3),embed_url:$4($3),broadcaster_id:$4($3),broadcaster_name:$4($3),creator_id:$4($3),creator_name:$4($3),video_id:$4($3),game_id:$4($3),language:$4($3),title:$4($3),view_count:$4($6),created_at:$4($3),thumbnail_url:$4($3),duration:$4($6),vod_offset:$4($10($6)),is_featured:$4($7)});$8({cursor:$4($3)});$8({data:#3,pagination:$4(#4)})`,[i,g,_,n,a,__d1,t,y,r,o,e,v,l,m,h,b,p]):c(C,d));const w=/*@__PURE__*/ d(t=>t===s?u(`GetClipsDownload`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$6(>5)@"%Request";$6(>6)@"%ResponseDataItem";$9(#2);$6(>7)@"%Response";$5({editor_id:$3.pipe($2()),broadcaster_id:$3.pipe($2()),clip_id:#4:0.pipe($2())}).pipe($1({method:"GET",uri:"/clips/downloads",code:200}));$5({clip_id:$7($3),landscape_download_url:$7($8($3)),portrait_download_url:$7($8($3))});$5({data:$7(#3)})`,[i,g,_,n,__d1,r,o,a,e,v,l,m,h,b]):c(w,t));function __d0(){return[`$4(>3)@"CreateClipResponseDataItem";$5(#0);$4(>4)@"CreateClipResponse";$3({id:$2($1),edit_url:$2($1)});$3({data:$2(#1)})`,[i,n,a,r,o,v]]}function __d1(){return[`$2($1)`,[i,n,v]]}export{x as createClip,S as createClipFromVod,C as getClips,w as getClipsDownload};
2
+ //# sourceMappingURL=clips.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clips.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.optional","S.Number","S.Struct","S.suspend","Retry.Retry","API.call","S.Boolean","S.NullOr","S.Array","NullOr","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","named","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","Boolean","TELEMETRY","createClip","i","createClipFromVod","getClips","getClipsDownload"],"sources":["../../src/services/clips.ts"],"mappings":"0RAaA,MAAMmC,EAAY,CAChB,OAAQ,aACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,SACR,QAAS,QACT,UAAW,KACb,EA6IA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMrC,EAAQC,EAAU,aAAc,0PAA2P,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAYC,EAAUC,EAAUC,EAAW,KAAMe,EAAqBK,EAAgBnB,EAAayB,CAAS,CAAC,EAAIxB,EAASyB,EAAYC,CAAC,CAAC,EAIvf,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMrC,EAAQC,EAAU,oBAAqB,mUAAoU,CAACC,EAAQC,EAAQC,EAASC,EAAUE,EAAUD,EAAYE,EAAUC,EAAW,KAAMe,EAAqBK,EAAgBnB,EAAayB,CAAS,CAAC,EAAIxB,EAAS2B,EAAmBD,CAAC,CAAC,EAI9kB,MAAaE,EAMK,gBAAiB,GAAgBF,IAAMrC,EAAQC,EAAU,mBAAoB,q6BAAs6B,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAY,KAAMC,EAAUK,EAAWJ,EAAUC,EAAWI,EAAUC,EAASU,EAAqBK,EAAgBnB,EAAayB,EAAWP,CAAc,CAAC,EAAIjB,EAAS4B,EAAUF,CAAC,CAAC,EAI7tC,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMrC,EAAQC,EAAU,mBAAoB,8ZAA+Z,CAACC,EAAQC,EAAQC,EAASC,EAAU,KAAMG,EAAUC,EAAWH,EAAYO,EAAUC,EAASU,EAAqBK,EAAgBnB,EAAayB,CAAS,CAAC,EAAIxB,EAAS6B,EAAkBH,CAAC,CAAC,EAMhrB,SAAS,MAAY,CACnB,MAAO,CAAC,2HAA4H,CAACnC,EAAQG,EAAUC,EAAYE,EAAUC,EAAWK,CAAO,CAAC,CAClM,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,SAAU,CAACZ,EAAQG,EAAUS,CAAO,CAAC,CAC/C"}
@@ -0,0 +1,172 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import type * as Redacted from "effect/Redacted";
3
+ import { type TwitchOpError, type TwitchOpContext } from "../protocol.ts";
4
+ export type { TwitchOpError, TwitchOpContext };
5
+ export interface CreateConduitsRequest {
6
+ /** The number of shards to create for this conduit. The minimum is 1 and the maximum is 20,000. */
7
+ shard_count: number;
8
+ }
9
+ export interface CreateConduitsResponseDataItem {
10
+ /** Conduit ID. */
11
+ id?: string | undefined;
12
+ /** Number of shards created for this conduit. */
13
+ shard_count?: number | undefined;
14
+ }
15
+ /** A list that contains the conduit that you created. */
16
+ export type CreateConduitsResponseDataList = Array<CreateConduitsResponseDataItem>;
17
+ export interface CreateConduitsResponse {
18
+ /** A list that contains the conduit that you created. */
19
+ data?: CreateConduitsResponseDataList | undefined;
20
+ }
21
+ export interface DeleteConduitRequest {
22
+ /** Conduit ID. */
23
+ id: string;
24
+ }
25
+ export interface DeleteConduitResponse {
26
+ }
27
+ export interface GetConduitsRequest {
28
+ }
29
+ export interface GetConduitsResponseDataItem {
30
+ /** Conduit ID. */
31
+ id?: string | undefined;
32
+ /** Number of shards associated with this conduit. */
33
+ shard_count?: number | undefined;
34
+ }
35
+ /** List of information about the client's conduits. */
36
+ export type GetConduitsResponseDataList = Array<GetConduitsResponseDataItem>;
37
+ export interface GetConduitsResponse {
38
+ /** List of information about the client's conduits. */
39
+ data?: GetConduitsResponseDataList | undefined;
40
+ }
41
+ export interface GetConduitShardsRequest {
42
+ /** Conduit ID. */
43
+ conduit_id: string;
44
+ /** Status to filter by. Possible values: - `enabled`: The shard is enabled. - `webhook_callback_verification_pending`: The shard is pending verification of the specified callback URL. - `webhook_callback_verification_failed`: The specified callback URL failed verification. - `notification_failures_exceeded`: The notification delivery failure rate was too high. - `websocket_disconnected`: The client closed the connection. - `websocket_failed_ping_pong`: The client failed to respond to a ping message. - `websocket_received_inbound_traffic`: The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). - `websocket_connection_unused`: The client failed to subscribe to events within the required time. - `websocket_internal_error`: The Twitch WebSocket server experienced an unexpected error. - `websocket_network_timeout`: The Twitch WebSocket server timed out writing the message to the client. - `websocket_network_error`: The Twitch WebSocket server experienced a network error writing the message to the client. - `websocket_failed_to_reconnect`: The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. */
45
+ status?: string | undefined;
46
+ /** The cursor used to get the next page of results. The pagination object in the response contains the cursor's value. */
47
+ after?: string | undefined;
48
+ }
49
+ /** The transport details used to send the notifications. */
50
+ export interface GetConduitShardsResponseDataItemTransport {
51
+ /** The transport method. Possible values: - `webhook` - `websocket` */
52
+ method?: string | undefined;
53
+ /** The callback URL where the notifications are sent. Included only if method is set to webhook. */
54
+ callback?: string | undefined;
55
+ /** An ID that identifies the WebSocket that notifications are sent to. Included only if method is set to websocket. */
56
+ session_id?: string | undefined;
57
+ /** The UTC date and time that the WebSocket connection was established. Included only if method is set to websocket. */
58
+ connected_at?: string | undefined;
59
+ /** The UTC date and time that the WebSocket connection was lost. Included only if method is set to websocket. */
60
+ disconnected_at?: string | undefined;
61
+ }
62
+ export interface GetConduitShardsResponseDataItem {
63
+ /** Shard ID. */
64
+ id?: string | undefined;
65
+ /** The shard status. The subscriber receives events only for enabled shards. Possible values: - `enabled`: The shard is enabled. - `webhook_callback_verification_pending`: The shard is pending verification of the specified callback URL. - `webhook_callback_verification_failed`: The specified callback URL failed verification. - `notification_failures_exceeded`: The notification delivery failure rate was too high. - `websocket_disconnected`: The client closed the connection. - `websocket_failed_ping_pong`: The client failed to respond to a ping message. - `websocket_received_inbound_traffic`: The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). - `websocket_connection_unused`: The client failed to subscribe to events within the required time. - `websocket_internal_error`: The Twitch WebSocket server experienced an unexpected error. - `websocket_network_timeout`: The Twitch WebSocket server timed out writing the message to the client. - `websocket_network_error`: The Twitch WebSocket server experienced a network error writing the message to the client. - `websocket_failed_to_reconnect`: The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. */
66
+ status?: string | undefined;
67
+ /** The transport details used to send the notifications. */
68
+ transport?: GetConduitShardsResponseDataItemTransport | undefined;
69
+ }
70
+ /** List of information about a conduit's shards. */
71
+ export type GetConduitShardsResponseDataList = Array<GetConduitShardsResponseDataItem>;
72
+ /** Contains information used to page through a list of results. The object is empty if there are no more pages left to page through. */
73
+ export interface GetConduitShardsResponsePagination {
74
+ /** The cursor used to get the next page of results. Use the cursor to set the request's after query parameter. */
75
+ cursor?: string | undefined;
76
+ }
77
+ export interface GetConduitShardsResponse {
78
+ /** List of information about a conduit's shards. */
79
+ data: GetConduitShardsResponseDataList;
80
+ /** Contains information used to page through a list of results. The object is empty if there are no more pages left to page through. */
81
+ pagination?: GetConduitShardsResponsePagination | undefined;
82
+ }
83
+ export interface UpdateConduitsRequest {
84
+ /** Conduit ID. */
85
+ id: string;
86
+ /** The new number of shards for this conduit. The minimum is 1 and the maximum is 20,000. */
87
+ shard_count: number;
88
+ }
89
+ export interface UpdateConduitsResponseDataItem {
90
+ /** Conduit ID. */
91
+ id?: string | undefined;
92
+ /** Number of shards associated with this conduit after the update. */
93
+ shard_count?: number | undefined;
94
+ }
95
+ /** A list that contains the updated conduit. */
96
+ export type UpdateConduitsResponseDataList = Array<UpdateConduitsResponseDataItem>;
97
+ export interface UpdateConduitsResponse {
98
+ /** A list that contains the updated conduit. */
99
+ data?: UpdateConduitsResponseDataList | undefined;
100
+ }
101
+ /** The transport details that you want Twitch to use when sending you notifications. */
102
+ export interface UpdateConduitShardsRequestShardsItemTransport {
103
+ /** The transport method. Possible values: - `webhook` - `websocket` */
104
+ method: string;
105
+ /** The callback URL where the notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an event. Specify this field only if method is set to webhook. **NOTE:** Redirects are not followed. */
106
+ callback?: string | undefined;
107
+ /** The secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message. Specify this field only if method is set to webhook. */
108
+ secret?: string | Redacted.Redacted<string> | undefined;
109
+ /** An ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message. Specify this field only if method is set to websocket. */
110
+ session_id?: string | undefined;
111
+ }
112
+ export interface UpdateConduitShardsRequestShardsItem {
113
+ /** Shard ID. */
114
+ id: string;
115
+ /** The transport details that you want Twitch to use when sending you notifications. */
116
+ transport: UpdateConduitShardsRequestShardsItemTransport;
117
+ }
118
+ /** List of shards to update. */
119
+ export type UpdateConduitShardsRequestShardsList = Array<UpdateConduitShardsRequestShardsItem>;
120
+ export interface UpdateConduitShardsRequest {
121
+ /** Conduit ID. */
122
+ conduit_id: string;
123
+ /** List of shards to update. */
124
+ shards: UpdateConduitShardsRequestShardsList;
125
+ }
126
+ /** The transport details used to send the notifications. */
127
+ export type UpdateConduitShardsResponseDataItemTransport = GetConduitShardsResponseDataItemTransport;
128
+ export interface UpdateConduitShardsResponseDataItem {
129
+ /** Shard ID. */
130
+ id?: string | undefined;
131
+ /** The shard status. The subscriber receives events only for enabled shards. Possible values: - `enabled`: The shard is enabled. - `webhook_callback_verification_pending`: The shard is pending verification of the specified callback URL. - `webhook_callback_verification_failed`: The specified callback URL failed verification. - `notification_failures_exceeded`: The notification delivery failure rate was too high. - `websocket_disconnected`: The client closed the connection. - `websocket_failed_ping_pong`: The client failed to respond to a ping message. - `websocket_received_inbound_traffic`: The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). - `websocket_internal_error`: The Twitch WebSocket server experienced an unexpected error. - `websocket_network_timeout`: The Twitch WebSocket server timed out writing the message to the client. - `websocket_network_error`: The Twitch WebSocket server experienced a network error writing the message to the client. - `websocket_failed_to_reconnect`: The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. */
132
+ status?: string | undefined;
133
+ /** The transport details used to send the notifications. */
134
+ transport?: GetConduitShardsResponseDataItemTransport | undefined;
135
+ }
136
+ /** List of successful shard updates. */
137
+ export type UpdateConduitShardsResponseDataList = Array<UpdateConduitShardsResponseDataItem>;
138
+ export interface UpdateConduitShardsResponseErrorsItem {
139
+ /** Shard ID. */
140
+ id?: string | undefined;
141
+ /** The error that occurred while updating the shard. Possible errors: - `invalid shard id, must be a number greater or equal to 0 and less than N` -- The shard ID must be a number from 0 through N - 1, where N is the conduit's shard count. - `failed webhook transport validation: callback, must provide valid https callback with standard port in creation request` -- The URL in the callback field must use the HTTPS protocol and port 443. - `failed webhook transport validation: secret, must be between 10 and 100 characters` - `failed websocket transport validation: session_id, websocket transport session does not exist or has already disconnected` - `Duplicate shards in request` -- The request specifies the shard ID more than once. None of the entries for that shard are applied. - `Internal error` -- An internal error occurred while updating the shard. Try again later. */
142
+ message?: string | undefined;
143
+ /** Error codes used to represent a specific error condition while attempting to update shards. Possible values: - `invalid_parameter`: The shard ID or transport isn't valid, or the request specifies the shard ID more than once. - `internal_error`: An internal error occurred. Try again later. */
144
+ code?: string | undefined;
145
+ }
146
+ /** List of unsuccessful updates. */
147
+ export type UpdateConduitShardsResponseErrorsList = Array<UpdateConduitShardsResponseErrorsItem>;
148
+ export interface UpdateConduitShardsResponse {
149
+ /** List of successful shard updates. */
150
+ data?: UpdateConduitShardsResponseDataList | undefined;
151
+ /** List of unsuccessful updates. */
152
+ errors?: UpdateConduitShardsResponseErrorsList | undefined;
153
+ }
154
+ export type CreateConduitsError = TwitchOpError;
155
+ /** Create Conduits Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events.md). Authorization: Requires one of the following: - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/conduits/#create-conduits */
156
+ export declare const createConduits: API.OperationMethod<CreateConduitsRequest, CreateConduitsResponse, CreateConduitsError, TwitchOpContext>;
157
+ export type DeleteConduitError = TwitchOpError;
158
+ /** Delete Conduit Deletes a specified [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events.md). Note that it may take some time for Eventsub subscriptions on a deleted [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events.md) to show as disabled when calling [Get Eventsub Subscriptions](https://dev.twitch.tv/docs/api/reference/eventsub.md#get-eventsub-subscriptions). Authorization: Requires one of the following: - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/conduits/#delete-conduit */
159
+ export declare const deleteConduit: API.OperationMethod<DeleteConduitRequest, DeleteConduitResponse, DeleteConduitError, TwitchOpContext>;
160
+ export type GetConduitsError = TwitchOpError;
161
+ /** Get Conduits Gets the [conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events.md) for a client ID. Authorization: Requires one of the following: - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/conduits/#get-conduits */
162
+ export declare const getConduits: API.OperationMethod<GetConduitsRequest, GetConduitsResponse, GetConduitsError, TwitchOpContext>;
163
+ export type GetConduitShardsError = TwitchOpError;
164
+ /** Get Conduit Shards Gets a list of shards for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events.md). The list includes only shards that you've assigned a transport to using [Update Conduit Shards](https://dev.twitch.tv/docs/api/reference/conduits.md#update-conduit-shards), so it's empty for a new conduit. Authorization: Requires one of the following: - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/conduits/#get-conduit-shards */
165
+ export declare const getConduitShards: API.PaginatedOperationMethod<GetConduitShardsRequest, GetConduitShardsResponse, GetConduitShardsError, TwitchOpContext, GetConduitShardsResponseDataItem>;
166
+ export type UpdateConduitsError = TwitchOpError;
167
+ /** Update Conduits Updates a [conduit's](https://dev.twitch.tv/docs/eventsub/handling-conduit-events.md) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are deleted. Authorization: Requires one of the following: - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/conduits/#update-conduits */
168
+ export declare const updateConduits: API.OperationMethod<UpdateConduitsRequest, UpdateConduitsResponse, UpdateConduitsError, TwitchOpContext>;
169
+ export type UpdateConduitShardsError = TwitchOpError;
170
+ /** Update Conduit Shards Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events.md). You can update up to 100 shards in a single request. > **Note** Shard IDs are indexed starting at 0, so a conduit with a `shard_count` of 5 will have shards with IDs 0 through 4. Authorization: Requires one of the following: - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/conduits/#update-conduit-shards */
171
+ export declare const updateConduitShards: API.OperationMethod<UpdateConduitShardsRequest, UpdateConduitShardsResponse, UpdateConduitShardsError, TwitchOpContext>;
172
+ //# sourceMapping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,CAAC,wBAAwB,CACzD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,gCAAgC,CAmB1B,CAAC;AAET,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAChD,+hBAA+hB;AAC/hB,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC;AACrD,4gBAA4gB;AAC5gB,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,eAAe,CAUd,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{Gc as e,Jc as t,Kc as n,Rc as r,Wc as i,Xc as a,a as o,b as s,errors$TwitchServiceErrors as c,l,n as u,o as d,pagination$paginateCursor as f,protocol$TwitchProtocol as p,retry$Retry as m,traits$Http as h,traits$Query as g,traits$SensitiveValue as _,wc as v}from"../_bundle/sdk.js";const y={system:`twitch-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Twitch`,service:`Conduits`,propagate:`w3c`};const b=/*@__PURE__*/ u(t=>t===o?l(`CreateConduits`,`{input:#1,output:#5:2,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({shard_count:$2}).pipe($1({method:"POST",uri:"/eventsub/conduits",code:200}))`,[r,h,e,n,a,__d0,c,p,m,y]):s(b,t));const x=/*@__PURE__*/ u(e=>e===o?l(`DeleteConduit`,`{input:#1,output:#2,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/eventsub/conduits",code:200}));$4({})`,[r,h,g,t,n,a,c,p,m,y]):s(x,e));const S=/*@__PURE__*/ u(e=>e===o?l(`GetConduits`,`{input:#1,output:#4:2,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"GET",uri:"/eventsub/conduits",code:200}))`,[r,h,n,a,__d0,c,p,m,y]):s(S,e));const C=/*@__PURE__*/ d(e=>e===o?l(`GetConduitShards`,`{input:#1,output:#3,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data"},strategy:$12};$6(>4)@"%Request";$6(>5)@"%ResponsePagination";$6(>6)@"%Response";$5({conduit_id:$3.pipe($2()),status:$4($3.pipe($2())),after:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/eventsub/conduits/shards",code:200}));$5({cursor:$4($3)});$5({data:#7:2,pagination:$4(#2)})`,[r,h,g,t,i,n,a,__d1,c,p,m,y,f]):s(C,e));const w=/*@__PURE__*/ u(i=>i===o?l(`UpdateConduits`,`{input:#1,output:#6:2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({id:$2,shard_count:$3}).pipe($1({method:"PATCH",uri:"/eventsub/conduits",code:200}))`,[r,h,t,e,n,a,__d0,c,p,m,y]):s(w,i));const T=/*@__PURE__*/ u(e=>e===o?l(`UpdateConduitShards`,`{input:#4,output:#7,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>8)@"%RequestShardsItemTransport";$5(>9)@"%RequestShardsItem";$6(#2);$5(>10)@"%Request";$5(>11)@"%ResponseErrorsItem";$6(#5);$5(>12)@"%Response";$4({method:$1,callback:$2($1),secret:$2($1.pipe($3({}))),session_id:$2($1)});$4({id:$1,transport:#1});$4({conduit_id:$1,shards:#3}).pipe($7({method:"PATCH",uri:"/eventsub/conduits/shards",code:200}));$4({id:$2($1),message:$2($1),code:$2($1)});$4({data:$2(#8:2),errors:$2(#6)})`,[r,t,i,_,n,a,v,h,__d1,c,p,m,y]):s(T,e));function __d0(){return[`$5(>3)@"CreateConduitsResponseDataItem";$6(#0);$5(>4)@"CreateConduitsResponse";$4({id:$2($1),shard_count:$2($3)});$4({data:$2(#1)})`,[r,t,i,e,n,a,v]]}function __d1(){return[`$4(>3)@"GetConduitShardsResponseDataItemTransport";$4(>4)@"GetConduitShardsResponseDataItem";$5(#1);$3({method:$2($1),callback:$2($1),session_id:$2($1),connected_at:$2($1),disconnected_at:$2($1)});$3({id:$2($1),status:$2($1),transport:$2(#0)})`,[r,t,i,n,a,v]]}export{b as createConduits,x as deleteConduit,C as getConduitShards,S as getConduits,T as updateConduitShards,w as updateConduits};
2
+ //# sourceMappingURL=conduits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conduits.js","names":["API.D","API.named","__L.at","T.Http","S.Number","S.Struct","S.suspend","Retry.Retry","API.call","T.Query","S.String","S.optional","T.SensitiveValue","S.Array","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","SensitiveValue","Array","TELEMETRY","createConduits","i","named","deleteConduit","getConduits","getConduitShards","updateConduits","updateConduitShards"],"sources":["../../src/services/conduits.ts"],"mappings":"gSAcA,MAAMgC,EAAY,CAChB,OAAQ,aACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,SACR,QAAS,WACT,UAAW,KACb,EAwJA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMlC,EAAQC,EAAU,iBAAkB,kMAAmM,CAACC,EAAQC,EAAQC,EAAUC,EAAUC,EAAW,KAAMgB,EAAqBI,EAAgBnB,EAAayB,CAAS,CAAC,EAAIxB,EAASyB,EAAgBC,CAAC,CAAC,EAIxa,MAA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