@distilled.cloud/twitch 0.0.0-stage → 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.
- package/LICENSE +201 -0
- package/README.md +83 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +31 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +49 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +46 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/ads.d.ts +75 -0
- package/lib/services/ads.d.ts.map +1 -0
- package/lib/services/ads.js +2 -0
- package/lib/services/ads.js.map +1 -0
- package/lib/services/analytics.d.ts +90 -0
- package/lib/services/analytics.d.ts.map +1 -0
- package/lib/services/analytics.js +2 -0
- package/lib/services/analytics.js.map +1 -0
- package/lib/services/bits.d.ts +284 -0
- package/lib/services/bits.d.ts.map +1 -0
- package/lib/services/bits.js +2 -0
- package/lib/services/bits.js.map +1 -0
- package/lib/services/ccls.d.ts +26 -0
- package/lib/services/ccls.d.ts.map +1 -0
- package/lib/services/ccls.js +2 -0
- package/lib/services/ccls.js.map +1 -0
- package/lib/services/channel_points.d.ts +416 -0
- package/lib/services/channel_points.d.ts.map +1 -0
- package/lib/services/channel_points.js +2 -0
- package/lib/services/channel_points.js.map +1 -0
- package/lib/services/channels.d.ts +173 -0
- package/lib/services/channels.d.ts.map +1 -0
- package/lib/services/channels.js +2 -0
- package/lib/services/channels.js.map +1 -0
- package/lib/services/charity.d.ts +97 -0
- package/lib/services/charity.d.ts.map +1 -0
- package/lib/services/charity.js +2 -0
- package/lib/services/charity.js.map +1 -0
- package/lib/services/chat.d.ts +638 -0
- package/lib/services/chat.d.ts.map +1 -0
- package/lib/services/chat.js +33 -0
- package/lib/services/chat.js.map +1 -0
- package/lib/services/clips.d.ts +153 -0
- package/lib/services/clips.d.ts.map +1 -0
- package/lib/services/clips.js +2 -0
- package/lib/services/clips.js.map +1 -0
- package/lib/services/conduits.d.ts +172 -0
- package/lib/services/conduits.d.ts.map +1 -0
- package/lib/services/conduits.js +2 -0
- package/lib/services/conduits.js.map +1 -0
- package/lib/services/entitlements.d.ts +76 -0
- package/lib/services/entitlements.d.ts.map +1 -0
- package/lib/services/entitlements.js +2 -0
- package/lib/services/entitlements.js.map +1 -0
- package/lib/services/eventsub.d.ts +158 -0
- package/lib/services/eventsub.d.ts.map +1 -0
- package/lib/services/eventsub.js +2 -0
- package/lib/services/eventsub.js.map +1 -0
- package/lib/services/extensions.d.ts +497 -0
- package/lib/services/extensions.d.ts.map +1 -0
- package/lib/services/extensions.js +2 -0
- package/lib/services/extensions.js.map +1 -0
- package/lib/services/games.d.ts +57 -0
- package/lib/services/games.d.ts.map +1 -0
- package/lib/services/games.js +2 -0
- package/lib/services/games.js.map +1 -0
- package/lib/services/goals.d.ts +37 -0
- package/lib/services/goals.d.ts.map +1 -0
- package/lib/services/goals.js +2 -0
- package/lib/services/goals.js.map +1 -0
- package/lib/services/guest_star.d.ts +314 -0
- package/lib/services/guest_star.d.ts.map +1 -0
- package/lib/services/guest_star.js +2 -0
- package/lib/services/guest_star.js.map +1 -0
- package/lib/services/hype_train.d.ts +91 -0
- package/lib/services/hype_train.d.ts.map +1 -0
- package/lib/services/hype_train.js +2 -0
- package/lib/services/hype_train.js.map +1 -0
- package/lib/services/index.d.ts +30 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +29 -0
- package/lib/services/moderation.d.ts +731 -0
- package/lib/services/moderation.d.ts.map +1 -0
- package/lib/services/moderation.js +41 -0
- package/lib/services/moderation.js.map +1 -0
- package/lib/services/polls.d.ts +173 -0
- package/lib/services/polls.d.ts.map +1 -0
- package/lib/services/polls.js +2 -0
- package/lib/services/polls.js.map +1 -0
- package/lib/services/predictions.d.ts +221 -0
- package/lib/services/predictions.d.ts.map +1 -0
- package/lib/services/predictions.js +2 -0
- package/lib/services/predictions.js.map +1 -0
- package/lib/services/raids.d.ts +34 -0
- package/lib/services/raids.d.ts.map +1 -0
- package/lib/services/raids.js +2 -0
- package/lib/services/raids.js.map +1 -0
- package/lib/services/schedule.d.ts +223 -0
- package/lib/services/schedule.d.ts.map +1 -0
- package/lib/services/schedule.js +2 -0
- package/lib/services/schedule.js.map +1 -0
- package/lib/services/search.d.ts +89 -0
- package/lib/services/search.d.ts.map +1 -0
- package/lib/services/search.js +2 -0
- package/lib/services/search.js.map +1 -0
- package/lib/services/streams.d.ts +235 -0
- package/lib/services/streams.d.ts.map +1 -0
- package/lib/services/streams.js +2 -0
- package/lib/services/streams.js.map +1 -0
- package/lib/services/subscriptions.d.ts +96 -0
- package/lib/services/subscriptions.d.ts.map +1 -0
- package/lib/services/subscriptions.js +2 -0
- package/lib/services/subscriptions.js.map +1 -0
- package/lib/services/teams.d.ts +90 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +2 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/users.d.ts +324 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +2 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/videos.d.ts +101 -0
- package/lib/services/videos.d.ts.map +1 -0
- package/lib/services/videos.js +2 -0
- package/lib/services/videos.js.map +1 -0
- package/lib/services/whispers.d.ts +17 -0
- package/lib/services/whispers.d.ts.map +1 -0
- package/lib/services/whispers.js +2 -0
- package/lib/services/whispers.js.map +1 -0
- package/lib/services.lazy/ads.js +1 -0
- package/lib/services.lazy/analytics.js +1 -0
- package/lib/services.lazy/bits.js +1 -0
- package/lib/services.lazy/ccls.js +1 -0
- package/lib/services.lazy/channel_points.js +1 -0
- package/lib/services.lazy/channels.js +1 -0
- package/lib/services.lazy/charity.js +1 -0
- package/lib/services.lazy/chat.js +3 -0
- package/lib/services.lazy/clips.js +1 -0
- package/lib/services.lazy/conduits.js +1 -0
- package/lib/services.lazy/entitlements.js +1 -0
- package/lib/services.lazy/eventsub.js +1 -0
- package/lib/services.lazy/extensions.js +1 -0
- package/lib/services.lazy/games.js +1 -0
- package/lib/services.lazy/goals.js +1 -0
- package/lib/services.lazy/guest_star.js +1 -0
- package/lib/services.lazy/hype_train.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/moderation.js +3 -0
- package/lib/services.lazy/polls.js +1 -0
- package/lib/services.lazy/predictions.js +1 -0
- package/lib/services.lazy/raids.js +1 -0
- package/lib/services.lazy/schedule.js +1 -0
- package/lib/services.lazy/search.js +1 -0
- package/lib/services.lazy/streams.js +1 -0
- package/lib/services.lazy/subscriptions.js +1 -0
- package/lib/services.lazy/teams.js +1 -0
- package/lib/services.lazy/users.js +1 -0
- package/lib/services.lazy/videos.js +1 -0
- package/lib/services.lazy/whispers.js +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +88 -3
- package/src/credentials.ts +79 -0
- package/src/errors.ts +78 -0
- package/src/index.ts +45 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +43 -0
- package/src/retry.ts +69 -0
- package/src/services/ads.ts +228 -0
- package/src/services/analytics.ts +253 -0
- package/src/services/bits.ts +631 -0
- package/src/services/ccls.ts +96 -0
- package/src/services/channel_points.ts +804 -0
- package/src/services/channels.ts +471 -0
- package/src/services/charity.ts +250 -0
- package/src/services/chat.ts +1547 -0
- package/src/services/clips.ts +385 -0
- package/src/services/conduits.ts +453 -0
- package/src/services/entitlements.ts +219 -0
- package/src/services/eventsub.ts +372 -0
- package/src/services/extensions.ts +1098 -0
- package/src/services/games.ts +184 -0
- package/src/services/goals.ts +110 -0
- package/src/services/guest_star.ts +762 -0
- package/src/services/hype_train.ts +214 -0
- package/src/services/index.ts +30 -0
- package/src/services/moderation.ts +1817 -0
- package/src/services/polls.ts +363 -0
- package/src/services/predictions.ts +432 -0
- package/src/services/raids.ts +127 -0
- package/src/services/schedule.ts +539 -0
- package/src/services/search.ts +248 -0
- package/src/services/streams.ts +579 -0
- package/src/services/subscriptions.ts +247 -0
- package/src/services/teams.ts +225 -0
- package/src/services/users.ts +729 -0
- package/src/services/videos.ts +257 -0
- package/src/services/whispers.ts +71 -0
- package/src/traits.ts +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation.d.ts","sources":["../../src/services/moderation.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,qBAAqB;IACpC,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAC;IACvB,gKAAgK;IAChK,YAAY,EAAE,MAAM,CAAC;IACrB,ohBAAohB;IACphB,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,8BAA8B;IAC7C,2DAA2D;IAC3D,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,oGAAoG;IACpG,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,GAAG,SA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rB,eAAO,MAAM,kCAAkC,EAAE,GAAG,CAAC,eAAe,CAClE,yCAAyC,EACzC,0CAA0C,EAC1C,uCAAuC,EACvC,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC;AACtD,0cAA0c;AAC1c,eAAO,MAAM,oBAAoB,EAAE,GAAG,CAAC,eAAe,CACpD,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC;AAC3C,sqBAAsqB;AACtqB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC;AACvD,umCAAumC;AACvmC,eAAO,MAAM,qBAAqB,EAAE,GAAG,CAAC,eAAe,CACrD,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,aAAa,CAAC;AACxD,siCAAsiC;AACtiC,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC9C,o4BAAo4B;AACp4B,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,CAUd,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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:`Moderation`,propagate:`w3c`};const x=/*@__PURE__*/ d(e=>e===s?u(`AddBlockedTerm`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),text:$3}).pipe($1({method:"POST",uri:"/moderation/blocked_terms",code:200}));$4({data:$7(#6:1)})`,[i,g,_,n,r,o,__d0,a,l,m,h,b]):c(x,e));const S=/*@__PURE__*/ d(e=>e===s?u(`AddChannelModerator`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),user_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/moderation/moderators",code:200}))`,[i,g,_,n,r,o,__d1,l,m,h,b]):c(S,e));const C=/*@__PURE__*/ d(e=>e===s?u(`AddChannelVip`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({user_id:$3.pipe($2()),broadcaster_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/channels/vips",code:200}))`,[i,g,_,n,r,o,__d1,l,m,h,b]):c(C,e));const w=/*@__PURE__*/ d(e=>e===s?u(`AddSuspiciousStatusToChatUser`,`{input:#1,output:#6:2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),user_id:$3,status:$3}).pipe($1({method:"POST",uri:"/moderation/suspicious_users",code:200}))`,[i,g,_,n,r,o,__d4,l,m,h,b]):c(w,e));const T=/*@__PURE__*/ d(e=>e===s?u(`BanUser`,`{input:#2,output:#5,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>6)@"%RequestData";$5(>7)@"%Request";$5(>8)@"%ResponseDataItem";$8(#3);$5(>9)@"%Response";$4({user_id:$1,duration:$3($2),reason:$3($1)});$4({broadcaster_id:$1.pipe($7()),moderator_id:$1.pipe($7()),data:#1}).pipe($6({method:"POST",uri:"/moderation/bans",code:200}));$4({broadcaster_id:$3($1),moderator_id:$3($1),user_id:$3($1),created_at:$3($1),end_time:$3($1)});$4({data:$3(#4)})`,[i,n,t,a,r,o,g,_,v,l,m,h,b]):c(T,e));const E=/*@__PURE__*/ d(e=>e===s?u(`CheckAutomodStatus`,`{input:#3,output:#6,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$3(>7)@"%RequestDataItem";$4(#1);$3(>8)@"%Request";$3(>9)@"%ResponseDataItem";$4(#4);$3(>10)@"%Response";$2({msg_id:$1,msg_text:$1});$2({broadcaster_id:$1.pipe($6()),data:#2}).pipe($5({method:"POST",uri:"/moderation/enforcements/status",code:200}));$2({msg_id:$7($1),is_permitted:$7($8)});$2({data:$7(#5)})`,[i,n,r,o,v,g,_,a,y,l,m,h,b]):c(E,e));const D=/*@__PURE__*/ d(e=>e===s?u(`DeleteChatMessages`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),message_id:$4($3.pipe($2()))}).pipe($1({method:"DELETE",uri:"/moderation/chat",code:200}))`,[i,g,_,n,a,r,o,__d1,l,m,h,b]):c(D,e));const O=/*@__PURE__*/ d(e=>e===s?u(`GetAutomodSettings`,`{input:#1,output:#6:2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/moderation/automod/settings",code:200}))`,[i,g,_,n,r,o,__d6,l,m,h,b]):c(O,e));const k=/*@__PURE__*/ f(e=>e===s?u(`GetBannedUsers`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$15};$8(>5)@"%Request";$8(>6)@"%ResponseDataItem";$9(#2);$8(>7)@"%Response";$7({broadcaster_id:$3.pipe($2()),user_id:$5(#4:0.pipe($2())),first:$5($6.pipe($2())),after:$5($3.pipe($2()))}).pipe($1({method:"GET",uri:"/moderation/banned",code:200}));$7({user_id:$5($3),user_login:$5($3),user_name:$5($3),expires_at:$5($3),created_at:$5($3),reason:$5($3),moderator_id:$5($3),moderator_login:$5($3),moderator_name:$5($3)});$7({data:#3,pagination:$5(#10:0)})`,[i,g,_,n,__d5,a,t,r,o,v,__d7,l,m,h,b,p]):c(k,e));const A=/*@__PURE__*/ f(e=>e===s?u(`GetBlockedTerms`,`{input:#1,output:#2,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$14};$7(>3)@"%Request";$7(>4)@"%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:"/moderation/blocked_terms",code:200}));$6({data:#8:1,pagination:$5(#9:0)})`,[i,g,_,n,t,a,r,o,__d0,__d7,l,m,h,b,p]):c(A,e));const j=/*@__PURE__*/ f(e=>e===s?u(`GetModeratedChannels`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$14};$7(>5)@"%Request";$7(>6)@"%ResponseDataItem";$8(#2);$7(>7)@"%Response";$6({user_id:$3.pipe($2()),after:$4($3.pipe($2())),first:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/moderation/channels",code:200}));$6({broadcaster_id:$4($3),broadcaster_login:$4($3),broadcaster_name:$4($3)});$6({data:#3,pagination:$4(#9:0)})`,[i,g,_,n,a,t,r,o,v,__d7,l,m,h,b,p]):c(j,e));const M=/*@__PURE__*/ f(e=>e===s?u(`GetModerators`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$15};$8(>5)@"%Request";$8(>6)@"%ResponseDataItem";$9(#2);$8(>7)@"%Response";$7({broadcaster_id:$3.pipe($2()),user_id:$5(#4:0.pipe($2())),first:$5($6.pipe($2())),after:$5($3.pipe($2()))}).pipe($1({method:"GET",uri:"/moderation/moderators",code:200}));$7({user_id:$5($3),user_login:$5($3),user_name:$5($3)});$7({data:#3,pagination:$5(#10:0)})`,[i,g,_,n,__d5,a,t,r,o,v,__d7,l,m,h,b,p]):c(M,e));const N=/*@__PURE__*/ d(e=>e===s?u(`GetShieldModeStatus`,`{input:#1,output:#6:2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/moderation/shield_mode",code:200}))`,[i,g,_,n,r,o,__d2,l,m,h,b]):c(N,e));const P=/*@__PURE__*/ f(e=>e===s?u(`GetUnbanRequests`,`{input:#1,output:#2,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$14};$7(>3)@"%Request";$7(>4)@"%Response";$6({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),status:$3.pipe($2()),user_id:$4($3.pipe($2())),after:$4($3.pipe($2())),first:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/moderation/unban_requests",code:200}));$6({data:#8:1,pagination:$4(#9:0)})`,[i,g,_,n,a,t,r,o,__d3,__d7,l,m,h,b,p]):c(P,e));const F=/*@__PURE__*/ f(e=>e===s?u(`GetVips`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$15};$8(>5)@"%Request";$8(>6)@"%ResponseDataItem";$9(#2);$8(>7)@"%Response";$7({user_id:$4(#3:0.pipe($2())),broadcaster_id:$5.pipe($2()),first:$4($6.pipe($2())),after:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/channels/vips",code:200}));$7({user_id:$4($5),user_name:$4($5),user_login:$4($5)});$7({data:#3,pagination:$4(#10:0)})`,[i,g,_,__d5,a,n,t,r,o,v,__d7,l,m,h,b,p]):c(F,e));const I=/*@__PURE__*/ d(e=>e===s?u(`ManageHeldAutomodMessages`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({user_id:$2,msg_id:$2,action:$2}).pipe($1({method:"POST",uri:"/moderation/automod/message",code:200}))`,[i,g,n,r,o,__d1,l,m,h,b]):c(I,e));const L=/*@__PURE__*/ d(e=>e===s?u(`RemoveBlockedTerm`,`{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()),id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/moderation/blocked_terms",code:200}))`,[i,g,_,n,r,o,__d1,l,m,h,b]):c(L,e));const R=/*@__PURE__*/ d(e=>e===s?u(`RemoveChannelModerator`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),user_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/moderation/moderators",code:200}))`,[i,g,_,n,r,o,__d1,l,m,h,b]):c(R,e));const z=/*@__PURE__*/ d(e=>e===s?u(`RemoveChannelVip`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({user_id:$3.pipe($2()),broadcaster_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/channels/vips",code:200}))`,[i,g,_,n,r,o,__d1,l,m,h,b]):c(z,e));const B=/*@__PURE__*/ d(e=>e===s?u(`RemoveSuspiciousStatusFromChatUser`,`{input:#1,output:#6:2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),user_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/moderation/suspicious_users",code:200}))`,[i,g,_,n,r,o,__d4,l,m,h,b]):c(B,e));const V=/*@__PURE__*/ d(e=>e===s?u(`ResolveUnbanRequests`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),unban_request_id:$3.pipe($2()),status:$3.pipe($2()),resolution_text:$4($3.pipe($2()))}).pipe($1({method:"PATCH",uri:"/moderation/unban_requests",code:200}));$5({data:$4(#7:1)})`,[i,g,_,n,a,r,o,__d3,l,m,h,b]):c(V,e));const H=/*@__PURE__*/ d(e=>e===s?u(`UnbanUser`,`{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()),user_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/moderation/bans",code:200}))`,[i,g,_,n,r,o,__d1,l,m,h,b]):c(H,e));const U=/*@__PURE__*/ d(e=>e===s?u(`UpdateAutomodSettings`,`{input:#1,output:#8:2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),aggression:$5($4),bullying:$5($4),disability:$5($4),misogyny:$5($4),overall_level:$5($4),race_ethnicity_or_religion:$5($4),sex_based_terms:$5($4),sexuality_sex_or_gender:$5($4),swearing:$5($4)}).pipe($1({method:"PUT",uri:"/moderation/automod/settings",code:200}))`,[i,g,_,n,t,a,r,o,__d6,l,m,h,b]):c(U,e));const W=/*@__PURE__*/ d(e=>e===s?u(`UpdateShieldModeStatus`,`{input:#1,output:#7:2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),is_active:$4}).pipe($1({method:"PUT",uri:"/moderation/shield_mode",code:200}))`,[i,g,_,n,y,r,o,__d2,l,m,h,b]):c(W,e));const G=/*@__PURE__*/ d(e=>e===s?u(`WarnChatUser`,`{input:#2,output:#5,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$3(>6)@"%RequestData";$3(>7)@"%Request";$3(>8)@"%ResponseDataItem";$7(#3);$3(>9)@"%Response";$2({user_id:$1,reason:$1});$2({broadcaster_id:$1.pipe($5()),moderator_id:$1.pipe($5()),data:#1}).pipe($4({method:"POST",uri:"/moderation/warnings",code:200}));$2({broadcaster_id:$6($1),user_id:$6($1),moderator_id:$6($1),reason:$6($1)});$2({data:$6(#4)})`,[i,n,r,o,g,_,a,v,l,m,h,b]):c(G,e));function __d0(){return[`$4(>2)@"AddBlockedTermResponseDataItem";$5(#0);$3({broadcaster_id:$2($1),moderator_id:$2($1),id:$2($1),text:$2($1),created_at:$2($1),updated_at:$2($1),expires_at:$2($1)})`,[i,n,a,r,o,v]]}function __d1(){return[`$2(>1)@"AddChannelModeratorResponse";$1({})`,[i,r,o]]}function __d2(){return[`$5(>3)@"GetShieldModeStatusResponseDataItem";$6(#0);$5(>4)@"GetShieldModeStatusResponse";$4({is_active:$2($1),moderator_id:$2($3),moderator_login:$2($3),moderator_name:$2($3),last_activated_at:$2($3)});$4({data:$2(#1)})`,[i,y,a,n,r,o,v]]}function __d3(){return[`$5(>2)@"GetUnbanRequestsResponseDataItem";$6(#0);$4({id:$2($1),broadcaster_id:$2($1),broadcaster_login:$2($1),broadcaster_name:$2($1),moderator_id:$2($3($1)),moderator_login:$2($3($1)),moderator_name:$2($3($1)),user_id:$2($1),user_login:$2($1),user_name:$2($1),text:$2($1),status:$2($1),created_at:$2($1),resolved_at:$2($3($1)),resolution_text:$2($3($1))})`,[i,n,a,e,r,o,v]]}function __d4(){return[`$5(>3)@"AddSuspiciousStatusToChatUserResponseDataItem";$6(#0);$5(>4)@"AddSuspiciousStatusToChatUserResponse";$4({user_id:$2($1),broadcaster_id:$2($1),moderator_id:$2($1),updated_at:$2($1),status:$2($1),types:$2(#3:0)});$4({data:$2(#1)})`,[i,n,a,__d5,r,o,v]]}function __d5(){return[`$2($1)`,[i,n,v]]}function __d6(){return[`$6(>3)@"GetAutomodSettingsResponseDataItem";$7(#0);$6(>4)@"GetAutomodSettingsResponse";$5({broadcaster_id:$2($1),moderator_id:$2($1),overall_level:$2($4($3)),disability:$2($3),aggression:$2($3),sexuality_sex_or_gender:$2($3),misogyny:$2($3),bullying:$2($3),swearing:$2($3),race_ethnicity_or_religion:$2($3),sex_based_terms:$2($3)});$5({data:$2(#1)})`,[i,n,a,t,e,r,o,v]]}function __d7(){return[`$4(>1)@"GetBannedUsersResponsePagination";$3({cursor:$2($1)})`,[i,n,a,r,o]]}export{x as addBlockedTerm,S as addChannelModerator,C as addChannelVip,w as addSuspiciousStatusToChatUser,T as banUser,E as checkAutomodStatus,D as deleteChatMessages,O as getAutomodSettings,k as getBannedUsers,A as getBlockedTerms,j as getModeratedChannels,M as getModerators,N as getShieldModeStatus,P as getUnbanRequests,F as getVips,I as manageHeldAutomodMessages,L as removeBlockedTerm,R as removeChannelModerator,z as removeChannelVip,B as removeSuspiciousStatusFromChatUser,V as resolveUnbanRequests,H as unbanUser,U as updateAutomodSettings,W as updateShieldModeStatus,G as warnChatUser};
|
|
2
|
+
/*
|
|
3
|
+
20 34
|
|
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
|
+
000000001m0003b0004x000700008k000af000c9000e1000g0000hy000k0000ly000nr000pq000ri000tf000v6000x2000ys001100012w0014f0016e0018c0019z001ab001bc001c7001da001ed001fh001gc001hh001ig
|
|
6
|
+
2 fr pk x|=AddBlockedTerm;gk oi;4,g,h,2,3,6,1a,5,9,e,f,19
|
|
7
|
+
2 qa yo S|=AddChannelModerator;r8 xo;4,g,h,2,3,6,1b,9,e,f,19
|
|
8
|
+
2 ze 17e C|=AddChannelVip;106 16e;4,g,h,2,3,6,1b,9,e,f,19
|
|
9
|
+
2 184 1ho w|=AddSuspiciousStatusToChatUser;19c 1go;4,g,h,2,3,6,1e,9,e,f,19
|
|
10
|
+
2 1ie 1x9 T|=BanUser;1j0 1w8;4,2,1,5,3,6,g,h,i,9,e,f,19
|
|
11
|
+
2 1xz 2b1 E|=CheckAutomodStatus;1yw 2a0;4,2,3,6,i,g,h,5,j,9,e,f,19
|
|
12
|
+
2 2br 2l1 D|=DeleteChatMessages;2co 2jz;4,g,h,2,5,3,6,1b,9,e,f,19
|
|
13
|
+
2 2lr 2ue O|=GetAutomodSettings;2mo 2te;4,g,h,2,3,6,1g,9,e,f,19
|
|
14
|
+
2 2v4 3fo k|=GetBannedUsers;2vx 3eb;4,g,h,2,1f,5,1,3,6,i,1h,9,e,f,19,d
|
|
15
|
+
2 3ge 3vf A|=GetBlockedTerms;3h8 3u4;4,g,h,2,1,5,3,6,1a,1h,9,e,f,19,d
|
|
16
|
+
2 3w5 4d6 j|=GetModeratedChannels;3x4 4by;4,g,h,2,5,1,3,6,i,1h,9,e,f,19,d
|
|
17
|
+
2 4dw 4vc M|=GetModerators;4eo 4tz;4,g,h,2,1f,5,1,3,6,i,1h,9,e,f,19,d
|
|
18
|
+
2 4w2 54l N|=GetShieldModeStatus;4x0 53l;4,g,h,2,3,6,1c,9,e,f,19
|
|
19
|
+
2 55b 5lp P|=GetUnbanRequests;566 5ke;4,g,h,2,5,1,3,6,1d,1h,9,e,f,19,d
|
|
20
|
+
2 5mf 63h F|=GetVips;5n1 624;4,g,h,1f,5,2,1,3,6,i,1h,9,e,f,19,d
|
|
21
|
+
2 647 6c9 I|=ManageHeldAutomodMessages;65b 6bb;4,g,2,3,6,1b,9,e,f,19
|
|
22
|
+
2 6cz 6m2 L|=RemoveBlockedTerm;6dv 6l2;4,g,h,2,3,6,1b,9,e,f,19
|
|
23
|
+
2 6ms 6vb R|=RemoveChannelModerator;6nt 6ub;4,g,h,2,3,6,1b,9,e,f,19
|
|
24
|
+
2 6w1 746 z|=RemoveChannelVip;6ww 736;4,g,h,2,3,6,1b,9,e,f,19
|
|
25
|
+
2 74w 7eo B|=RemoveSuspiciousStatusFromChatUser;769 7do;4,g,h,2,3,6,1e,9,e,f,19
|
|
26
|
+
2 7fe 7rl V|=ResolveUnbanRequests;7gd 7qj;4,g,h,2,5,3,6,1d,9,e,f,19
|
|
27
|
+
2 7sb 812 H|=UnbanUser;7sz 802;4,g,h,2,3,6,1b,9,e,f,19
|
|
28
|
+
2 81s 8g1 U|=UpdateAutomodSettings;82s 8ex;4,g,h,2,1,5,3,6,1g,9,e,f,19
|
|
29
|
+
2 8gr 8pt W|=UpdateShieldModeStatus;8hs 8or;4,g,h,2,j,3,6,1c,9,e,f,19
|
|
30
|
+
2 8qj 94g G|=WarnChatUser;8ra 93h;4,2,3,6,g,h,5,i,9,e,f,19
|
|
31
|
+
0 82 f2 b||
|
|
32
|
+
1 94i 9ad __d0|=;956 99w;4,2,5,3,6,i
|
|
33
|
+
1 9ad 9cj __d1|=;9b1 9c8;4,3,6
|
|
34
|
+
1 9cj 9jt __d2|=;9d7 9ja;4,j,5,2,3,6,i
|
|
35
|
+
1 9jt 9uw __d3|=;9kh 9ud;4,2,5,0,3,6,i
|
|
36
|
+
1 9uw a2q __d4|=;9vk a24;4,2,5,1f,3,6,i
|
|
37
|
+
1 a2q a3v __d5|=;a3e a3k;4,2,i
|
|
38
|
+
1 a3v aet __d6|=;a4j ae8;4,2,5,1,0,3,6,i
|
|
39
|
+
1 aet ahl __d7|=;afh ah6;4,2,5,3,6
|
|
40
|
+
*/
|
|
41
|
+
//# sourceMappingURL=moderation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.Struct","S.suspend","S.optional","Retry.Retry","API.call","S.Number","S.Array","S.Boolean","S.NullOr","NullOr","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","named","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","Boolean","TELEMETRY","addBlockedTerm","i","addChannelModerator","addChannelVip","addSuspiciousStatusToChatUser","banUser","checkAutomodStatus","deleteChatMessages","getAutomodSettings","getBannedUsers","getBlockedTerms","getModeratedChannels","getModerators","getShieldModeStatus","getUnbanRequests","getVips","manageHeldAutomodMessages","removeBlockedTerm","removeChannelModerator","removeChannelVip","removeSuspiciousStatusFromChatUser","resolveUnbanRequests","unbanUser","updateAutomodSettings","updateShieldModeStatus","warnChatUser"],"sources":["../../src/services/moderation.ts"],"mappings":"0RAaA,MAAMmC,EAAY,CAChB,OAAQ,aACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oC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CAAC,CAC/C,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,gWAAiW,CAACV,EAAQG,EAAUG,EAAYG,EAAUG,EAAUR,EAAUC,EAAWK,CAAO,CAAC,CAC3b,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,gEAAiE,CAACV,EAAQG,EAAUG,EAAYF,EAAUC,CAAS,CAAC,CAC9H"}
|
|
@@ -0,0 +1,173 @@
|
|
|
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 CreatePollRequestChoicesItem {
|
|
5
|
+
/** One of the choices the viewer may select. The choice may contain a maximum of 25 characters. */
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
/** A list of choices that viewers may choose from. The list must contain a minimum of 2 choices and up to a maximum of 5 choices. */
|
|
9
|
+
export type CreatePollRequestChoicesList = Array<CreatePollRequestChoicesItem>;
|
|
10
|
+
export interface CreatePollRequest {
|
|
11
|
+
/** The ID of the broadcaster that's running the poll. This ID must match the user ID in the user access token. */
|
|
12
|
+
broadcaster_id: string;
|
|
13
|
+
/** The question that viewers will vote on. For example, *What game should I play next?* The question may contain a maximum of 60 characters. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** A list of choices that viewers may choose from. The list must contain a minimum of 2 choices and up to a maximum of 5 choices. */
|
|
16
|
+
choices: CreatePollRequestChoicesList;
|
|
17
|
+
/** The length of time (in seconds) that the poll will run for. The minimum is 15 seconds and the maximum is 1800 seconds (30 minutes). */
|
|
18
|
+
duration: number;
|
|
19
|
+
/** A Boolean value that indicates whether viewers may cast additional votes using Channel Points. If **true**, the viewer may cast more than one vote but each additional vote costs the number of Channel Points specified in *channel_points_per_vote*. The default is **false** (viewers may cast only one vote). For information about Channel Points, see [Channel Points Guide](https://help.twitch.tv/s/article/channel-points-guide). */
|
|
20
|
+
channel_points_voting_enabled?: boolean | undefined;
|
|
21
|
+
/** The number of points that the viewer must spend to cast one additional vote. The minimum is 1 and the maximum is 1000000. Set only if *channel_points_voting_enabled* is **true**. */
|
|
22
|
+
channel_points_per_vote?: number | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface CreatePollResponseDataItemChoicesItem {
|
|
25
|
+
/** An ID that identifies this choice. */
|
|
26
|
+
id?: string | undefined;
|
|
27
|
+
/** The choice's title. The title may contain a maximum of 25 characters. */
|
|
28
|
+
title?: string | undefined;
|
|
29
|
+
/** The total number of votes cast for this choice. */
|
|
30
|
+
votes?: number | undefined;
|
|
31
|
+
/** The number of votes cast using Channel Points. */
|
|
32
|
+
channel_points_votes?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** A list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices. */
|
|
35
|
+
export type CreatePollResponseDataItemChoicesList = Array<CreatePollResponseDataItemChoicesItem>;
|
|
36
|
+
export interface CreatePollResponseDataItem {
|
|
37
|
+
/** An ID that identifies the poll. */
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
/** An ID that identifies the broadcaster that created the poll. */
|
|
40
|
+
broadcaster_id?: string | undefined;
|
|
41
|
+
/** The broadcaster's display name. */
|
|
42
|
+
broadcaster_name?: string | undefined;
|
|
43
|
+
/** The broadcaster's login name. */
|
|
44
|
+
broadcaster_login?: string | undefined;
|
|
45
|
+
/** The question that viewers are voting on. For example, *What game should I play next?* The title may contain a maximum of 60 characters. */
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
/** A list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices. */
|
|
48
|
+
choices?: CreatePollResponseDataItemChoicesList | undefined;
|
|
49
|
+
/** A Boolean value that indicates whether viewers may cast additional votes using Channel Points. For information about Channel Points, see [Channel Points Guide](https://help.twitch.tv/s/article/channel-points-guide). */
|
|
50
|
+
channel_points_voting_enabled?: boolean | undefined;
|
|
51
|
+
/** The number of points the viewer must spend to cast one additional vote. */
|
|
52
|
+
channel_points_per_vote?: number | undefined;
|
|
53
|
+
/** The poll's status. Possible values: - `ACTIVE`: The poll is running. - `COMPLETED`: The poll ended on schedule (see the `duration` field). - `TERMINATED`: The poll was terminated before its scheduled end. - `ARCHIVED`: The poll has been archived and is no longer visible on the channel. - `MODERATED`: The poll was deleted. - `INVALID`: Something went wrong while determining the state. */
|
|
54
|
+
status?: string | undefined;
|
|
55
|
+
/** The length of time (in seconds) that the poll will run for. */
|
|
56
|
+
duration?: number | undefined;
|
|
57
|
+
/** The UTC date and time (in RFC3339 format) of when the poll began. */
|
|
58
|
+
started_at?: string | undefined;
|
|
59
|
+
/** The UTC date and time (in RFC3339 format) of when the poll ended. If `status` is ACTIVE, the object doesn't include this field. */
|
|
60
|
+
ended_at?: string | undefined;
|
|
61
|
+
}
|
|
62
|
+
/** A list that contains the single poll that you created. */
|
|
63
|
+
export type CreatePollResponseDataList = Array<CreatePollResponseDataItem>;
|
|
64
|
+
export interface CreatePollResponse {
|
|
65
|
+
/** A list that contains the single poll that you created. */
|
|
66
|
+
data?: CreatePollResponseDataList | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface EndPollRequest {
|
|
69
|
+
/** The ID of the broadcaster that's running the poll. This ID must match the user ID in the user access token. */
|
|
70
|
+
broadcaster_id: string;
|
|
71
|
+
/** The ID of the poll to update. */
|
|
72
|
+
id: string;
|
|
73
|
+
/** The status to set the poll to. Possible values: - `TERMINATED`: Ends the poll before the poll is scheduled to end. The poll remains publicly visible. - `ARCHIVED`: Ends the poll before the poll is scheduled to end, and then archives it so it's no longer publicly visible. */
|
|
74
|
+
status: string;
|
|
75
|
+
}
|
|
76
|
+
export type EndPollResponseDataItemChoicesItem = CreatePollResponseDataItemChoicesItem;
|
|
77
|
+
/** A list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices. */
|
|
78
|
+
export type EndPollResponseDataItemChoicesList = Array<CreatePollResponseDataItemChoicesItem>;
|
|
79
|
+
export interface EndPollResponseDataItem {
|
|
80
|
+
/** An ID that identifies the poll. */
|
|
81
|
+
id?: string | undefined;
|
|
82
|
+
/** An ID that identifies the broadcaster that created the poll. */
|
|
83
|
+
broadcaster_id?: string | undefined;
|
|
84
|
+
/** The broadcaster's display name. */
|
|
85
|
+
broadcaster_name?: string | undefined;
|
|
86
|
+
/** The broadcaster's login name. */
|
|
87
|
+
broadcaster_login?: string | undefined;
|
|
88
|
+
/** The question that viewers are voting on. For example, *What game should I play next?* The title may contain a maximum of 60 characters. */
|
|
89
|
+
title?: string | undefined;
|
|
90
|
+
/** A list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices. */
|
|
91
|
+
choices?: EndPollResponseDataItemChoicesList | undefined;
|
|
92
|
+
/** A Boolean value that indicates whether viewers may cast additional votes using Channel Points. For information about Channel Points, see [Channel Points Guide](https://help.twitch.tv/s/article/channel-points-guide). */
|
|
93
|
+
channel_points_voting_enabled?: boolean | undefined;
|
|
94
|
+
/** The number of points the viewer must spend to cast one additional vote. */
|
|
95
|
+
channel_points_per_vote?: number | undefined;
|
|
96
|
+
/** The poll's status. Possible values: - `ACTIVE`: The poll is running. - `COMPLETED`: The poll ended on schedule (see the `duration` field). - `TERMINATED`: The poll was terminated before its scheduled end. - `ARCHIVED`: The poll has been archived and is no longer visible on the channel. - `MODERATED`: The poll was deleted. - `INVALID`: Something went wrong while determining the state. */
|
|
97
|
+
status?: string | undefined;
|
|
98
|
+
/** The length of time (in seconds) that the poll will run for. */
|
|
99
|
+
duration?: number | undefined;
|
|
100
|
+
/** The UTC date and time (in RFC3339 format) of when the poll began. */
|
|
101
|
+
started_at?: string | undefined;
|
|
102
|
+
/** The UTC date and time (in RFC3339 format) of when the poll ended. If `status` is ACTIVE, the object doesn't include this field. */
|
|
103
|
+
ended_at?: string | undefined;
|
|
104
|
+
}
|
|
105
|
+
/** A list that contains the poll that you ended. */
|
|
106
|
+
export type EndPollResponseDataList = Array<EndPollResponseDataItem>;
|
|
107
|
+
export interface EndPollResponse {
|
|
108
|
+
/** A list that contains the poll that you ended. */
|
|
109
|
+
data?: EndPollResponseDataList | undefined;
|
|
110
|
+
}
|
|
111
|
+
export type GetPollsRequestIdList = Array<string>;
|
|
112
|
+
export interface GetPollsRequest {
|
|
113
|
+
/** The ID of the broadcaster that created the polls. This ID must match the user ID in the user access token. */
|
|
114
|
+
broadcaster_id: string;
|
|
115
|
+
/** A list of IDs that identify the polls to return. To specify more than one ID, include this parameter for each poll you want to get. For example, 'id=1234&id=5678'. You may specify a maximum of 20 IDs. Specify this parameter only if you want to filter the list that the request returns. The endpoint ignores duplicate IDs and those not owned by this broadcaster. */
|
|
116
|
+
id?: GetPollsRequestIdList | undefined;
|
|
117
|
+
/** The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 20 items per page. The default is 20. */
|
|
118
|
+
first?: number | undefined;
|
|
119
|
+
/** 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) */
|
|
120
|
+
after?: string | undefined;
|
|
121
|
+
}
|
|
122
|
+
export type GetPollsResponseDataItemChoicesItem = CreatePollResponseDataItemChoicesItem;
|
|
123
|
+
/** A list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices. */
|
|
124
|
+
export type GetPollsResponseDataItemChoicesList = Array<CreatePollResponseDataItemChoicesItem>;
|
|
125
|
+
export interface GetPollsResponseDataItem {
|
|
126
|
+
/** An ID that identifies the poll. */
|
|
127
|
+
id?: string | undefined;
|
|
128
|
+
/** An ID that identifies the broadcaster that created the poll. */
|
|
129
|
+
broadcaster_id?: string | undefined;
|
|
130
|
+
/** The broadcaster's display name. */
|
|
131
|
+
broadcaster_name?: string | undefined;
|
|
132
|
+
/** The broadcaster's login name. */
|
|
133
|
+
broadcaster_login?: string | undefined;
|
|
134
|
+
/** The question that viewers are voting on. For example, *What game should I play next?* The title may contain a maximum of 60 characters. */
|
|
135
|
+
title?: string | undefined;
|
|
136
|
+
/** A list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices. */
|
|
137
|
+
choices?: GetPollsResponseDataItemChoicesList | undefined;
|
|
138
|
+
/** A Boolean value that indicates whether viewers may cast additional votes using Channel Points. For information about Channel Points, see [Channel Points Guide](https://help.twitch.tv/s/article/channel-points-guide). */
|
|
139
|
+
channel_points_voting_enabled?: boolean | undefined;
|
|
140
|
+
/** The number of points the viewer must spend to cast one additional vote. */
|
|
141
|
+
channel_points_per_vote?: number | undefined;
|
|
142
|
+
/** The poll's status. Possible values: - `ACTIVE`: The poll is running. - `COMPLETED`: The poll ended on schedule (see the `duration` field). - `TERMINATED`: The poll was terminated before its scheduled end. - `ARCHIVED`: The poll has been archived and is no longer visible on the channel. - `INVALID`: Something went wrong while determining the state. */
|
|
143
|
+
status?: string | undefined;
|
|
144
|
+
/** The length of time (in seconds) that the poll will run for. */
|
|
145
|
+
duration?: number | undefined;
|
|
146
|
+
/** The UTC date and time (in RFC3339 format) of when the poll began. */
|
|
147
|
+
started_at?: string | undefined;
|
|
148
|
+
/** The UTC date and time (in RFC3339 format) of when the poll ended. If `status` is ACTIVE, the object doesn't include this field. */
|
|
149
|
+
ended_at?: string | undefined;
|
|
150
|
+
}
|
|
151
|
+
/** A list of polls. The polls are returned in descending order of start time unless you specify IDs in the request, in which case they're returned in the same order as you passed them in the request. The list is empty if the broadcaster hasn't created polls. */
|
|
152
|
+
export type GetPollsResponseDataList = Array<GetPollsResponseDataItem>;
|
|
153
|
+
/** Contains 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) */
|
|
154
|
+
export interface GetPollsResponsePagination {
|
|
155
|
+
/** The cursor used to get the next page of results. Use the cursor to set the request's *after* query parameter. */
|
|
156
|
+
cursor?: string | undefined;
|
|
157
|
+
}
|
|
158
|
+
export interface GetPollsResponse {
|
|
159
|
+
/** A list of polls. The polls are returned in descending order of start time unless you specify IDs in the request, in which case they're returned in the same order as you passed them in the request. The list is empty if the broadcaster hasn't created polls. */
|
|
160
|
+
data: GetPollsResponseDataList;
|
|
161
|
+
/** Contains 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) */
|
|
162
|
+
pagination?: GetPollsResponsePagination | undefined;
|
|
163
|
+
}
|
|
164
|
+
export type CreatePollError = TwitchOpError;
|
|
165
|
+
/** Create Poll Creates a poll that viewers in the broadcaster's channel can vote on. The poll begins as soon as it's created. You may run only one poll at a time. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:manage:polls** scope. Reference: https://dev.twitch.tv/docs/api/reference/polls/#create-poll */
|
|
166
|
+
export declare const createPoll: API.OperationMethod<CreatePollRequest, CreatePollResponse, CreatePollError, TwitchOpContext>;
|
|
167
|
+
export type EndPollError = TwitchOpError;
|
|
168
|
+
/** End Poll Ends an active poll. You have the option to end it or end it and archive it. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:manage:polls** scope. Reference: https://dev.twitch.tv/docs/api/reference/polls/#end-poll */
|
|
169
|
+
export declare const endPoll: API.OperationMethod<EndPollRequest, EndPollResponse, EndPollError, TwitchOpContext>;
|
|
170
|
+
export type GetPollsError = TwitchOpError;
|
|
171
|
+
/** Get Polls Polls are available for 90 days after they're created. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:read:polls** or **channel:manage:polls** scope. Reference: https://dev.twitch.tv/docs/api/reference/polls/#get-polls */
|
|
172
|
+
export declare const getPolls: API.PaginatedOperationMethod<GetPollsRequest, GetPollsResponse, GetPollsError, TwitchOpContext, GetPollsResponseDataItem>;
|
|
173
|
+
//# sourceMappingURL=polls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polls.d.ts","sources":["../../src/services/polls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GA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Aa,CAAC;AAC5C,saAAsa;AACta,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;AACzC,yVAAyV;AACzV,eAAO,MAAM,OAAO,EAAE,GAAG,CAAC,eAAe,CACvC,cAAc,EACd,eAAe,EACf,YAAY,EACZ,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAC1C,+VAA+V;AAC/V,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,wBAAwB,CACjD,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,wBAAwB,CAoBlB,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,wc as _,xc 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:`Polls`,propagate:`w3c`};const b=/*@__PURE__*/ u(u=>u===o?l(`CreatePoll`,`{input:#3,output:#9:0,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$3(>4)@"%RequestChoicesItem";$4(#1);$3(>5)@"%Request";$2({title:$1});$2({broadcaster_id:$1,title:$1,choices:#2,duration:$6,channel_points_voting_enabled:$8($7),channel_points_per_vote:$8($6)}).pipe($5({method:"POST",uri:"/polls",code:200}))`,[r,t,n,a,_,h,e,v,i,__d0,c,p,m,y]):s(b,u));const x=/*@__PURE__*/ u(e=>e===o?l(`EndPoll`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({broadcaster_id:$2,id:$2,status:$2}).pipe($1({method:"PATCH",uri:"/polls",code:200}))`,[r,h,t,n,a,__d0,c,p,m,y]):s(x,e));const S=/*@__PURE__*/ d(u=>u===o?l(`GetPolls`,`{input:#2,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$14};$2($1);$8(>5)@"%Request";$8(>6)@"%ResponsePagination";$8(>7)@"%Response";$7({broadcaster_id:$1.pipe($4()),id:$5(#1.pipe($4())),first:$5($6.pipe($4())),after:$5($1.pipe($4()))}).pipe($3({method:"GET",uri:"/polls",code:200}));$7({cursor:$5($1)});$7({data:#9:3,pagination:$5(#3)})`,[r,t,_,h,g,i,e,n,a,__d1,c,p,m,y,f]):s(S,u));function __d0(){return[`$4(>1)@"CreatePollResponse";$3({data:$2(#1:3)})`,[r,__d1,i,n,a]]}function __d1(){return[`$5(>4)@"CreatePollResponseDataItemChoicesItem";$6(#0);$5(>5)@"CreatePollResponseDataItem";$6(#2);$4({id:$2($1),title:$2($1),votes:$2($3),channel_points_votes:$2($3)});$4({id:$2($1),broadcaster_id:$2($1),broadcaster_name:$2($1),broadcaster_login:$2($1),title:$2($1),choices:$2(#1),channel_points_voting_enabled:$2($7),channel_points_per_vote:$2($3),status:$2($1),duration:$2($3),started_at:$2($1),ended_at:$2($1)})`,[r,t,i,e,n,a,_,v]]}export{b as createPoll,x as endPoll,S as getPolls};
|
|
2
|
+
//# sourceMappingURL=polls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polls.js","names":["API.D","API.named","__L.at","S.String","S.Struct","S.suspend","S.Array","T.Http","S.Number","S.Boolean","S.optional","Retry.Retry","API.call","T.Query","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","Boolean","TELEMETRY","createPoll","i","named","endPoll","getPolls"],"sources":["../../src/services/polls.ts"],"mappings":"6QAaA,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,QACT,UAAW,KACb,EAoKA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMlC,EAAQC,EAAU,aAAc,oVAAqV,CAACC,EAAQC,EAAUC,EAAUC,EAAWC,EAASC,EAAQC,EAAUC,EAAWC,EAAY,KAAMY,EAAqBI,EAAgBf,EAAaqB,CAAS,CAAC,EAAIpB,EAASqB,EAAYC,CAAC,CAAC,EAI5lB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMlC,EAAQC,EAAU,UAAW,0MAA2M,CAACC,EAAQK,EAAQJ,EAAUC,EAAUC,EAAW,KAAMiB,EAAqBI,EAAgBf,EAAaqB,CAAS,CAAC,EAAIpB,EAASwB,EAASF,CAAC,CAAC,EAIla,MAAaG,EAMK,gBAAiB,GAAgBH,IAAMlC,EAAQC,EAAU,WAAY,gfAAif,CAACC,EAAQC,EAAUG,EAASC,EAAQM,EAASH,EAAYF,EAAUJ,EAAUC,EAAW,KAAMiB,EAAqBI,EAAgBf,EAAaqB,EAAWP,CAAc,CAAC,EAAIb,EAASyB,EAAUH,CAAC,CAAC,EAM3wB,SAAS,MAAY,CACnB,MAAO,CAAC,kDAAmD,CAAChC,EAAQ,KAAMQ,EAAYN,EAAUC,CAAS,CAAC,CAC5G,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,gaAAia,CAACH,EAAQC,EAAUO,EAAYF,EAAUJ,EAAUC,EAAWC,EAASG,CAAS,CAAC,CAC5f"}
|
|
@@ -0,0 +1,221 @@
|
|
|
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 CreatePredictionRequestOutcomesItem {
|
|
5
|
+
/** The text of one of the outcomes that the viewer may select. The title is limited to a maximum of 25 characters. */
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
/** The list of possible outcomes that the viewers may choose from. The list must contain a minimum of 2 choices and up to a maximum of 10 choices. */
|
|
9
|
+
export type CreatePredictionRequestOutcomesList = Array<CreatePredictionRequestOutcomesItem>;
|
|
10
|
+
export interface CreatePredictionRequest {
|
|
11
|
+
/** The ID of the broadcaster that's running the prediction. This ID must match the user ID in the user access token. */
|
|
12
|
+
broadcaster_id: string;
|
|
13
|
+
/** The question that the broadcaster is asking. For example, *Will I finish this entire pizza?* The title is limited to a maximum of 45 characters. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** The list of possible outcomes that the viewers may choose from. The list must contain a minimum of 2 choices and up to a maximum of 10 choices. */
|
|
16
|
+
outcomes: CreatePredictionRequestOutcomesList;
|
|
17
|
+
/** The length of time (in seconds) that the prediction will run for. The minimum is 1 second and the maximum is 1800 seconds (30 minutes). */
|
|
18
|
+
prediction_window: number;
|
|
19
|
+
}
|
|
20
|
+
export interface CreatePredictionResponseDataItemOutcomesItemTopPredictorsItem {
|
|
21
|
+
/** An ID that identifies the viewer. */
|
|
22
|
+
user_id?: string | undefined;
|
|
23
|
+
/** The viewer's display name. */
|
|
24
|
+
user_name?: string | undefined;
|
|
25
|
+
/** The viewer's login name. */
|
|
26
|
+
user_login?: string | undefined;
|
|
27
|
+
/** The number of Channel Points the viewer spent. */
|
|
28
|
+
channel_points_used?: number | undefined;
|
|
29
|
+
/** The number of Channel Points distributed to the viewer. */
|
|
30
|
+
channel_points_won?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
/** A list of viewers who were the top predictors; otherwise, **null** if none. */
|
|
33
|
+
export type CreatePredictionResponseDataItemOutcomesItemTopPredictorsList = Array<CreatePredictionResponseDataItemOutcomesItemTopPredictorsItem>;
|
|
34
|
+
export interface CreatePredictionResponseDataItemOutcomesItem {
|
|
35
|
+
/** An ID that identifies this outcome. */
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
/** The outcome's text. */
|
|
38
|
+
title?: string | undefined;
|
|
39
|
+
/** The number of unique viewers that chose this outcome. */
|
|
40
|
+
users?: number | undefined;
|
|
41
|
+
/** The number of Channel Points spent by viewers on this outcome. */
|
|
42
|
+
channel_points?: number | undefined;
|
|
43
|
+
/** A list of viewers who were the top predictors; otherwise, **null** if none. */
|
|
44
|
+
top_predictors?: CreatePredictionResponseDataItemOutcomesItemTopPredictorsList | undefined;
|
|
45
|
+
/** The color that visually identifies this outcome in the UX. If the prediction has two outcomes, the first outcome is BLUE and the second is PINK. If it has more than two outcomes, all of them are BLUE. Possible values: - `BLUE` - `PINK` */
|
|
46
|
+
color?: string | undefined;
|
|
47
|
+
}
|
|
48
|
+
/** The list of possible outcomes for the prediction. */
|
|
49
|
+
export type CreatePredictionResponseDataItemOutcomesList = Array<CreatePredictionResponseDataItemOutcomesItem>;
|
|
50
|
+
export interface CreatePredictionResponseDataItem {
|
|
51
|
+
/** An ID that identifies this prediction. */
|
|
52
|
+
id?: string | undefined;
|
|
53
|
+
/** An ID that identifies the broadcaster that created the prediction. */
|
|
54
|
+
broadcaster_id?: string | undefined;
|
|
55
|
+
/** The broadcaster's display name. */
|
|
56
|
+
broadcaster_name?: string | undefined;
|
|
57
|
+
/** The broadcaster's login name. */
|
|
58
|
+
broadcaster_login?: string | undefined;
|
|
59
|
+
/** The question that the prediction asks. For example, *Will I finish this entire pizza?* */
|
|
60
|
+
title?: string | undefined;
|
|
61
|
+
/** The ID of the winning outcome. Is **null** unless `status` is RESOLVED. */
|
|
62
|
+
winning_outcome_id?: string | undefined;
|
|
63
|
+
/** The list of possible outcomes for the prediction. */
|
|
64
|
+
outcomes?: CreatePredictionResponseDataItemOutcomesList | undefined;
|
|
65
|
+
/** The length of time (in seconds) that the prediction will run for. */
|
|
66
|
+
prediction_window?: number | undefined;
|
|
67
|
+
/** The prediction's status. Possible values: - `ACTIVE`: The Prediction is running and viewers can make predictions. - `CANCELED`: The broadcaster canceled the Prediction and refunded the Channel Points to the participants. - `LOCKED`: The broadcaster locked the Prediction, which means viewers can no longer make predictions. - `RESOLVED`: The winning outcome was determined and the Channel Points were distributed to the viewers who predicted the correct outcome. */
|
|
68
|
+
status?: string | undefined;
|
|
69
|
+
/** The UTC date and time of when the Prediction began. */
|
|
70
|
+
created_at?: string | undefined;
|
|
71
|
+
/** The UTC date and time of when the Prediction ended. If `status` is ACTIVE, this is set to **null**. */
|
|
72
|
+
ended_at?: string | undefined;
|
|
73
|
+
/** The UTC date and time of when the Prediction was locked. Is **null** if the Prediction hasn't been locked. */
|
|
74
|
+
locked_at?: string | undefined;
|
|
75
|
+
}
|
|
76
|
+
/** A list that contains the single prediction that you created. */
|
|
77
|
+
export type CreatePredictionResponseDataList = Array<CreatePredictionResponseDataItem>;
|
|
78
|
+
export interface CreatePredictionResponse {
|
|
79
|
+
/** A list that contains the single prediction that you created. */
|
|
80
|
+
data?: CreatePredictionResponseDataList | undefined;
|
|
81
|
+
}
|
|
82
|
+
export interface EndPredictionRequest {
|
|
83
|
+
/** The ID of the broadcaster that's running the prediction. This ID must match the user ID in the user access token. */
|
|
84
|
+
broadcaster_id: string;
|
|
85
|
+
/** The ID of the prediction to update. */
|
|
86
|
+
id: string;
|
|
87
|
+
/** The status to set the prediction to. Possible values: - `RESOLVED`: The winning outcome is determined and the Channel Points are distributed to the viewers who predicted the correct outcome. - `CANCELED`: The broadcaster is canceling the prediction and sending refunds to the participants. - `LOCKED`: The broadcaster is locking the prediction, which means viewers may no longer make predictions. */
|
|
88
|
+
status: string;
|
|
89
|
+
/** The ID of the winning outcome. You must set this parameter if you set *status* to RESOLVED. */
|
|
90
|
+
winning_outcome_id?: string | undefined;
|
|
91
|
+
}
|
|
92
|
+
export type EndPredictionResponseDataItemOutcomesItemTopPredictorsItem = CreatePredictionResponseDataItemOutcomesItemTopPredictorsItem;
|
|
93
|
+
/** A list of viewers who were the top predictors; otherwise, **null** if none. */
|
|
94
|
+
export type EndPredictionResponseDataItemOutcomesItemTopPredictorsList = Array<CreatePredictionResponseDataItemOutcomesItemTopPredictorsItem>;
|
|
95
|
+
export interface EndPredictionResponseDataItemOutcomesItem {
|
|
96
|
+
/** An ID that identifies this outcome. */
|
|
97
|
+
id?: string | undefined;
|
|
98
|
+
/** The outcome's text. */
|
|
99
|
+
title?: string | undefined;
|
|
100
|
+
/** The number of unique viewers that chose this outcome. */
|
|
101
|
+
users?: number | undefined;
|
|
102
|
+
/** The number of Channel Points spent by viewers on this outcome. */
|
|
103
|
+
channel_points?: number | undefined;
|
|
104
|
+
/** A list of viewers who were the top predictors; otherwise, **null** if none. */
|
|
105
|
+
top_predictors?: EndPredictionResponseDataItemOutcomesItemTopPredictorsList | undefined;
|
|
106
|
+
/** The color that visually identifies this outcome in the UX. Possible values: - `BLUE` - `PINK` */
|
|
107
|
+
color?: string | undefined;
|
|
108
|
+
}
|
|
109
|
+
/** The list of possible outcomes for the prediction. */
|
|
110
|
+
export type EndPredictionResponseDataItemOutcomesList = Array<EndPredictionResponseDataItemOutcomesItem>;
|
|
111
|
+
export interface EndPredictionResponseDataItem {
|
|
112
|
+
/** An ID that identifies this prediction. */
|
|
113
|
+
id?: string | undefined;
|
|
114
|
+
/** An ID that identifies the broadcaster that created the prediction. */
|
|
115
|
+
broadcaster_id?: string | undefined;
|
|
116
|
+
/** The broadcaster's display name. */
|
|
117
|
+
broadcaster_name?: string | undefined;
|
|
118
|
+
/** The broadcaster's login name. */
|
|
119
|
+
broadcaster_login?: string | undefined;
|
|
120
|
+
/** The question that the prediction asks. For example, *Will I finish this entire pizza?* */
|
|
121
|
+
title?: string | undefined;
|
|
122
|
+
/** The ID of the winning outcome. Is **null** unless `status` is RESOLVED. */
|
|
123
|
+
winning_outcome_id?: string | undefined;
|
|
124
|
+
/** The list of possible outcomes for the prediction. */
|
|
125
|
+
outcomes?: EndPredictionResponseDataItemOutcomesList | undefined;
|
|
126
|
+
/** The length of time (in seconds) that the prediction will run for. */
|
|
127
|
+
prediction_window?: number | undefined;
|
|
128
|
+
/** The prediction's status. Possible values: - `ACTIVE`: The Prediction is running and viewers can make predictions. - `CANCELED`: The broadcaster canceled the Prediction and refunded the Channel Points to the participants. - `LOCKED`: The broadcaster locked the Prediction, which means viewers can no longer make predictions. - `RESOLVED`: The winning outcome was determined and the Channel Points were distributed to the viewers who predicted the correct outcome. */
|
|
129
|
+
status?: string | undefined;
|
|
130
|
+
/** The UTC date and time of when the Prediction began. */
|
|
131
|
+
created_at?: string | undefined;
|
|
132
|
+
/** The UTC date and time of when the Prediction ended. If `status` is ACTIVE, this is set to **null**. */
|
|
133
|
+
ended_at?: string | undefined;
|
|
134
|
+
/** The UTC date and time of when the Prediction was locked. Is **null** if the Prediction hasn't been locked. */
|
|
135
|
+
locked_at?: string | undefined;
|
|
136
|
+
}
|
|
137
|
+
/** A list that contains the single prediction that you updated. */
|
|
138
|
+
export type EndPredictionResponseDataList = Array<EndPredictionResponseDataItem>;
|
|
139
|
+
export interface EndPredictionResponse {
|
|
140
|
+
/** A list that contains the single prediction that you updated. */
|
|
141
|
+
data?: EndPredictionResponseDataList | undefined;
|
|
142
|
+
}
|
|
143
|
+
export type GetPredictionsRequestIdList = Array<string>;
|
|
144
|
+
export interface GetPredictionsRequest {
|
|
145
|
+
/** The ID of the broadcaster whose predictions you want to get. This ID must match the user ID in the user access token. */
|
|
146
|
+
broadcaster_id: string;
|
|
147
|
+
/** The ID of the prediction to get. To specify more than one ID, include this parameter for each prediction you want to get. For example, 'id=1234&id=5678'. You may specify a maximum of 25 IDs. The endpoint ignores duplicate IDs and those not owned by the broadcaster. */
|
|
148
|
+
id?: GetPredictionsRequestIdList | undefined;
|
|
149
|
+
/** The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 25 items per page. The default is 20. */
|
|
150
|
+
first?: number | undefined;
|
|
151
|
+
/** 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) */
|
|
152
|
+
after?: string | undefined;
|
|
153
|
+
}
|
|
154
|
+
export type GetPredictionsResponseDataItemOutcomesItemTopPredictorsItem = CreatePredictionResponseDataItemOutcomesItemTopPredictorsItem;
|
|
155
|
+
/** A list of viewers who were the top predictors; otherwise, **null** if none. */
|
|
156
|
+
export type GetPredictionsResponseDataItemOutcomesItemTopPredictorsList = Array<CreatePredictionResponseDataItemOutcomesItemTopPredictorsItem>;
|
|
157
|
+
export interface GetPredictionsResponseDataItemOutcomesItem {
|
|
158
|
+
/** An ID that identifies this outcome. */
|
|
159
|
+
id?: string | undefined;
|
|
160
|
+
/** The outcome's text. */
|
|
161
|
+
title?: string | undefined;
|
|
162
|
+
/** The number of unique viewers that chose this outcome. */
|
|
163
|
+
users?: number | undefined;
|
|
164
|
+
/** The number of Channel Points spent by viewers on this outcome. */
|
|
165
|
+
channel_points?: number | undefined;
|
|
166
|
+
/** A list of viewers who were the top predictors; otherwise, **null** if none. */
|
|
167
|
+
top_predictors?: GetPredictionsResponseDataItemOutcomesItemTopPredictorsList | undefined;
|
|
168
|
+
/** The color that visually identifies this outcome in the UX. Possible values: - `BLUE` - `PINK` */
|
|
169
|
+
color?: string | undefined;
|
|
170
|
+
}
|
|
171
|
+
/** The list of possible outcomes for the prediction. */
|
|
172
|
+
export type GetPredictionsResponseDataItemOutcomesList = Array<GetPredictionsResponseDataItemOutcomesItem>;
|
|
173
|
+
export interface GetPredictionsResponseDataItem {
|
|
174
|
+
/** An ID that identifies this prediction. */
|
|
175
|
+
id?: string | undefined;
|
|
176
|
+
/** An ID that identifies the broadcaster that created the prediction. */
|
|
177
|
+
broadcaster_id?: string | undefined;
|
|
178
|
+
/** The broadcaster's display name. */
|
|
179
|
+
broadcaster_name?: string | undefined;
|
|
180
|
+
/** The broadcaster's login name. */
|
|
181
|
+
broadcaster_login?: string | undefined;
|
|
182
|
+
/** The question that the prediction asks. For example, *Will I finish this entire pizza?* */
|
|
183
|
+
title?: string | undefined;
|
|
184
|
+
/** The ID of the winning outcome. Is **null** unless `status` is RESOLVED. */
|
|
185
|
+
winning_outcome_id?: string | undefined;
|
|
186
|
+
/** The list of possible outcomes for the prediction. */
|
|
187
|
+
outcomes?: GetPredictionsResponseDataItemOutcomesList | undefined;
|
|
188
|
+
/** The length of time (in seconds) that the prediction will run for. */
|
|
189
|
+
prediction_window?: number | undefined;
|
|
190
|
+
/** The prediction's status. Possible values: - `ACTIVE`: The Prediction is running and viewers can make predictions. - `CANCELED`: The broadcaster canceled the Prediction and refunded the Channel Points to the participants. - `LOCKED`: The broadcaster locked the Prediction, which means viewers can no longer make predictions. - `RESOLVED`: The winning outcome was determined and the Channel Points were distributed to the viewers who predicted the correct outcome. */
|
|
191
|
+
status?: string | undefined;
|
|
192
|
+
/** The UTC date and time of when the Prediction began. */
|
|
193
|
+
created_at?: string | undefined;
|
|
194
|
+
/** The UTC date and time of when the Prediction ended. If `status` is ACTIVE, this is set to **null**. */
|
|
195
|
+
ended_at?: string | undefined;
|
|
196
|
+
/** The UTC date and time of when the Prediction was locked. Is **null** if the Prediction hasn't been locked. */
|
|
197
|
+
locked_at?: string | undefined;
|
|
198
|
+
}
|
|
199
|
+
/** The broadcaster's list of Channel Points Predictions. The list is sorted in descending order by when the prediction began (the most recent prediction is first) unless you specify IDs in the request, in which case the predictions are in the same order as the IDs. The list is empty if the broadcaster hasn't created predictions. */
|
|
200
|
+
export type GetPredictionsResponseDataList = Array<GetPredictionsResponseDataItem>;
|
|
201
|
+
/** Contains 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) */
|
|
202
|
+
export interface GetPredictionsResponsePagination {
|
|
203
|
+
/** The cursor used to get the next page of results. Use the cursor to set the request's *after* query parameter. */
|
|
204
|
+
cursor?: string | undefined;
|
|
205
|
+
}
|
|
206
|
+
export interface GetPredictionsResponse {
|
|
207
|
+
/** The broadcaster's list of Channel Points Predictions. The list is sorted in descending order by when the prediction began (the most recent prediction is first) unless you specify IDs in the request, in which case the predictions are in the same order as the IDs. The list is empty if the broadcaster hasn't created predictions. */
|
|
208
|
+
data: GetPredictionsResponseDataList;
|
|
209
|
+
/** Contains 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) */
|
|
210
|
+
pagination?: GetPredictionsResponsePagination | undefined;
|
|
211
|
+
}
|
|
212
|
+
export type CreatePredictionError = TwitchOpError;
|
|
213
|
+
/** Create Prediction Creates a Channel Points Prediction. With a Channel Points Prediction, the broadcaster poses a question and viewers try to predict the outcome. The prediction runs as soon as it's created. The broadcaster may run only one prediction at a time. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:manage:predictions** scope. Reference: https://dev.twitch.tv/docs/api/reference/predictions/#create-prediction */
|
|
214
|
+
export declare const createPrediction: API.OperationMethod<CreatePredictionRequest, CreatePredictionResponse, CreatePredictionError, TwitchOpContext>;
|
|
215
|
+
export type EndPredictionError = TwitchOpError;
|
|
216
|
+
/** End Prediction Locks, resolves, or cancels a Channel Points Prediction. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:manage:predictions** scope. Reference: https://dev.twitch.tv/docs/api/reference/predictions/#end-prediction */
|
|
217
|
+
export declare const endPrediction: API.OperationMethod<EndPredictionRequest, EndPredictionResponse, EndPredictionError, TwitchOpContext>;
|
|
218
|
+
export type GetPredictionsError = TwitchOpError;
|
|
219
|
+
/** Get Predictions Gets a list of Channel Points Predictions that the broadcaster created. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:read:predictions** or **channel:manage:predictions** scope. Reference: https://dev.twitch.tv/docs/api/reference/predictions/#get-predictions */
|
|
220
|
+
export declare const getPredictions: API.PaginatedOperationMethod<GetPredictionsRequest, GetPredictionsResponse, GetPredictionsError, TwitchOpContext, GetPredictionsResponseDataItem>;
|
|
221
|
+
//# sourceMappingURL=predictions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictions.d.ts","sources":["../../src/services/predictions.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,mCAAmC;IAClD,sHAAsH;IACtH,KAAK,EAAE,MAAM,CAAC;CACf;AACD,sJAAsJ;AACtJ,MAAM,MAAM,mCAAmC,GAAG,KAAK,CAAC,mCAAmC,CAAC,CAAC;AAC7F,MAAM,WAAW,uBAAuB;IACtC,wHAAwH;IACxH,cAAc,EAAE,MAAM,CAAC;IACvB,uJAAuJ;IACvJ,KAAK,EAAE,MAAM,CAAC;IACd,sJAAsJ;IACtJ,QAAQ,EAAE,mCAAmC,CAAC;IAC9C,8IAA8I;IAC9I,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AACD,MAAM,WAAW,6DAA6D;IAC5E,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AACD,kFAAkF;AAClF,MAAM,MAAM,6DAA6D,GACvE,KAAK,CAAC,6DAA6D,CAAC,CAAC;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,GAAG,SAAS,CAAC;IAChC,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,iHAAiH;IACjH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AACD,8UAA8U;AAC9U,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,8BAA8B,CAAC,CAAC;AACnF,8MAA8M;AAC9M,MAAM,WAAW,gCAAgC;IAC/C,oHAAoH;IACpH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AACD,MAAM,WAAW,sBAAsB;IACrC,8UAA8U;IAC9U,IAAI,EAAE,8BAA8B,CAAC;IACrC,8MAA8M;IAC9M,UAAU,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAC;CAC3D;AACD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAClD,8hBAA8hB;AAC9hB,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAC/C,6VAA6V;AAC7V,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAChD,8YAA8Y;AAC9Y,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,wBAAwB,CACvD,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,8BAA8B,CAoBxB,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,wc as _}from"../_bundle/sdk.js";const v={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:`Predictions`,propagate:`w3c`};const y=/*@__PURE__*/ u(i=>i===o?l(`CreatePrediction`,`{input:#3,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$3(>4)@"%RequestOutcomesItem";$4(#1);$3(>5)@"%Request";$2({title:$1});$2({broadcaster_id:$1,title:$1,outcomes:#2,prediction_window:$6}).pipe($5({method:"POST",uri:"/predictions",code:200}))`,[r,t,n,a,_,h,e,__d0,c,p,m,v]):s(y,i));const b=/*@__PURE__*/ u(e=>e===o?l(`EndPrediction`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$2,id:$2,status:$2,winning_outcome_id:$3($2)}).pipe($1({method:"PATCH",uri:"/predictions",code:200}))`,[r,h,t,i,n,a,__d0,c,p,m,v]):s(b,e));const x=/*@__PURE__*/ d(u=>u===o?l(`GetPredictions`,`{input:#2,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$14};$2($1);$8(>5)@"%Request";$8(>6)@"%ResponsePagination";$8(>7)@"%Response";$7({broadcaster_id:$1.pipe($4()),id:$5(#1.pipe($4())),first:$5($6.pipe($4())),after:$5($1.pipe($4()))}).pipe($3({method:"GET",uri:"/predictions",code:200}));$7({cursor:$5($1)});$7({data:#9:5,pagination:$5(#3)})`,[r,t,_,h,g,i,e,n,a,__d1,c,p,m,v,f]):s(x,u));function __d0(){return[`$4(>1)@"CreatePredictionResponse";$3({data:$2(#1:5)})`,[r,__d1,i,n,a]]}function __d1(){return[`$5(>6)@"CreatePredictionResponseDataItemOutcomesItemTopPredictorsItem";$6(#0);$5(>7)@"CreatePredictionResponseDataItemOutcomesItem";$6(#2);$5(>8)@"CreatePredictionResponseDataItem";$6(#4);$4({user_id:$2($1),user_name:$2($1),user_login:$2($1),channel_points_used:$2($3),channel_points_won:$2($3)});$4({id:$2($1),title:$2($1),users:$2($3),channel_points:$2($3),top_predictors:$2(#1),color:$2($1)});$4({id:$2($1),broadcaster_id:$2($1),broadcaster_name:$2($1),broadcaster_login:$2($1),title:$2($1),winning_outcome_id:$2($1),outcomes:$2(#3),prediction_window:$2($3),status:$2($1),created_at:$2($1),ended_at:$2($1),locked_at:$2($1)})`,[r,t,i,e,n,a,_]]}export{y as createPrediction,b as endPrediction,x as getPredictions};
|
|
2
|
+
//# sourceMappingURL=predictions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictions.js","names":["API.D","API.named","__L.at","S.String","S.Struct","S.suspend","S.Array","T.Http","S.Number","Retry.Retry","API.call","S.optional","T.Query","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","TELEMETRY","createPrediction","named","endPrediction","i","getPredictions"],"sources":["../../src/services/predictions.ts"],"mappings":"qQAaA,MAAM8B,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,cACT,UAAW,KACb,EA4NA,MAAaC,EAKK,gBAAQ,GAAgB,IAAM/B,EAAQC,EAAU,mBAAoB,+RAAgS,CAACC,EAAQC,EAAUC,EAAUC,EAAWC,EAASC,EAAQC,EAAU,KAAMa,EAAqBI,EAAgBhB,EAAaqB,CAAS,CAAC,EAAIpB,EAASqB,EAAkB,CAAC,CAAC,EAI5hB,MAAaE,EAKK,gBAAQ,GAAgBC,IAAMlC,EAAQC,EAAU,gBAAiB,2OAA4O,CAACC,EAAQK,EAAQJ,EAAUQ,EAAYP,EAAUC,EAAW,KAAMgB,EAAqBI,EAAgBhB,EAAaqB,CAAS,CAAC,EAAIpB,EAASuB,EAAeC,CAAC,CAAC,EAI3d,MAAaC,EAMK,gBAAiB,GAAgBD,IAAMlC,EAAQC,EAAU,iBAAkB,sfAAuf,CAACC,EAAQC,EAAUG,EAASC,EAAQK,EAASD,EAAYH,EAAUJ,EAAUC,EAAW,KAAMgB,EAAqBI,EAAgBhB,EAAaqB,EAAWN,CAAc,CAAC,EAAId,EAASyB,EAAgBD,CAAC,CAAC,EAM7xB,SAAS,MAAY,CACnB,MAAO,CAAC,wDAAyD,CAAChC,EAAQ,KAAMS,EAAYP,EAAUC,CAAS,CAAC,CAClH,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,snBAAunB,CAACH,EAAQC,EAAUQ,EAAYH,EAAUJ,EAAUC,EAAWC,CAAO,CAAC,CACvsB"}
|