@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.
Files changed (214) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +83 -2
  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 +88 -3
  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,57 @@
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 type GetGamesRequestIdList = Array<string>;
5
+ export type GetGamesRequestNameList = Array<string>;
6
+ export type GetGamesRequestIgdbIdList = Array<string>;
7
+ export interface GetGamesRequest {
8
+ /** The ID of the category or game to get. Include this parameter for each category or game you want to get. For example, '&id=1234&id=5678'. You may specify a maximum of 100 IDs. The endpoint ignores duplicate and invalid IDs or IDs that weren't found. */
9
+ id?: GetGamesRequestIdList | undefined;
10
+ /** The name of the category or game to get. The name must exactly match the category's or game's title. Include this parameter for each category or game you want to get. For example, '&name=foo&name=bar'. You may specify a maximum of 100 names. The endpoint ignores duplicate names and names that weren't found. */
11
+ name?: GetGamesRequestNameList | undefined;
12
+ /** The [IGDB](https://www.igdb.com/) ID of the game to get. Include this parameter for each game you want to get. For example, '&igdb_id=1234&igdb_id=5678'. You may specify a maximum of 100 IDs. The endpoint ignores duplicate and invalid IDs or IDs that weren't found. */
13
+ igdb_id?: GetGamesRequestIgdbIdList | undefined;
14
+ }
15
+ export interface GetGamesResponseDataItem {
16
+ /** An ID that identifies the category or game. */
17
+ id?: string | undefined;
18
+ /** The category's or game's name. */
19
+ name?: string | undefined;
20
+ /** A URL to the category's or game's box art. You must replace the '{width}x{height}' placeholder with the size of image you want. */
21
+ box_art_url?: string | undefined;
22
+ /** The ID that [IGDB](https://www.igdb.com/)uses to identify this game. If the IGDB ID is not available to Twitch, this field is set to an empty string. */
23
+ igdb_id?: string | undefined;
24
+ }
25
+ /** The list of categories and games. The list is empty if the specified categories and games weren't found. */
26
+ export type GetGamesResponseDataList = Array<GetGamesResponseDataItem>;
27
+ export interface GetGamesResponse {
28
+ /** The list of categories and games. The list is empty if the specified categories and games weren't found. */
29
+ data?: GetGamesResponseDataList | undefined;
30
+ }
31
+ export interface GetTopGamesRequest {
32
+ /** 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 100 items per page. The default is 20. */
33
+ first?: number | undefined;
34
+ /** 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) */
35
+ after?: string | undefined;
36
+ }
37
+ export type GetTopGamesResponseDataItem = GetGamesResponseDataItem;
38
+ /** The list of categories and games. The list is sorted by the number of viewers, with the most popular first. A page may contain fewer than *first* items even if more pages remain. */
39
+ export type GetTopGamesResponseDataList = Array<GetGamesResponseDataItem>;
40
+ /** 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) */
41
+ export interface GetTopGamesResponsePagination {
42
+ /** The cursor used to get the next page of results. Use the cursor to set the request's *after* query parameter. */
43
+ cursor?: string | undefined;
44
+ }
45
+ export interface GetTopGamesResponse {
46
+ /** The list of categories and games. The list is sorted by the number of viewers, with the most popular first. A page may contain fewer than *first* items even if more pages remain. */
47
+ data: GetTopGamesResponseDataList;
48
+ /** 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) */
49
+ pagination?: GetTopGamesResponsePagination | undefined;
50
+ }
51
+ export type GetGamesError = TwitchOpError;
52
+ /** Get Games Gets information about specified categories or games. You may get up to 100 categories or games by specifying their ID or name. You may specify all IDs, all names, or a combination of IDs and names. If you specify a combination of IDs and names, the total number of IDs and names must not exceed 100. You must specify at least one *id*, *name*, or *igdb_id* query parameter. 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/games/#get-games */
53
+ export declare const getGames: API.OperationMethod<GetGamesRequest, GetGamesResponse, GetGamesError, TwitchOpContext>;
54
+ export type GetTopGamesError = TwitchOpError;
55
+ /** Get Top Games Gets information about the categories and games that have the most viewers on Twitch. 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/games/#get-top-games */
56
+ export declare const getTopGames: API.PaginatedOperationMethod<GetTopGamesRequest, GetTopGamesResponse, GetTopGamesError, TwitchOpContext, GetGamesResponseDataItem>;
57
+ //# source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AAC;IAC3B,8LAA8L;IAC9L,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AACD,MAAM,MAAM,2BAA2B,GAAG,wBAAwB,CAAC;AACnE,yLAAyL;AACzL,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC1E,8MAA8M;AAC9M,MAAM,WAAW,6BAA6B;IAC5C,oHAAoH;IACpH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AACD,MAAM,WAAW,mBAAmB;IAClC,yLAAyL;IACzL,IAAI,EAAE,2BAA2B,CAAC;IAClC,8MAA8M;IAC9M,UAAU,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;CACxD;AACD,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAC1C,6qBAA6qB;AAC7qB,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAC7C,oZAAoZ;AACpZ,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,wBAAwB,CACpD,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,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 _}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:`Games`,propagate:`w3c`};const y=/*@__PURE__*/ u(e=>e===o?l(`GetGames`,`{input:#2,output:#3,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$2($1);$7(>4)@"%Request";$7(>5)@"%Response";$6({id:$5(#1.pipe($4())),name:$5(#1.pipe($4())),igdb_id:$5(#1.pipe($4()))}).pipe($3({method:"GET",uri:"/games",code:200}));$6({data:$5(#8:1)})`,[r,t,_,h,g,i,n,a,__d0,c,p,m,v]):s(y,e));const b=/*@__PURE__*/ d(u=>u===o?l(`GetTopGames`,`{input:#1,output:#3,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$13};$7(>4)@"%Request";$7(>5)@"%ResponsePagination";$7(>6)@"%Response";$6({first:$4($3.pipe($2())),after:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/games/top",code:200}));$6({cursor:$4($5)});$6({data:#8:1,pagination:$4(#2)})`,[r,h,g,e,i,t,n,a,__d0,c,p,m,v,f]):s(b,u));function __d0(){return[`$4(>2)@"GetGamesResponseDataItem";$5(#0);$3({id:$2($1),name:$2($1),box_art_url:$2($1),igdb_id:$2($1)})`,[r,t,i,n,a,_]]}export{y as getGames,b as getTopGames};
2
+ //# sourceMappingURL=games.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"games.js","names":["API.D","API.named","__L.at","S.String","S.Array","T.Http","T.Query","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Number","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","TELEMETRY","getGames","i","named","getTopGames"],"sources":["../../src/services/games.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,QACT,UAAW,KACb,EAmDA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMhC,EAAQC,EAAU,WAAY,2RAA4R,CAACC,EAAQC,EAAUC,EAASC,EAAQC,EAASC,EAAYC,EAAUC,EAAW,KAAMY,EAAqBI,EAAgBf,EAAaoB,CAAS,CAAC,EAAInB,EAASoB,EAAUC,CAAC,CAAC,EAInhB,MAAaE,EAMK,gBAAiB,GAAgBF,IAAMhC,EAAQC,EAAU,cAAe,0bAA2b,CAACC,EAAQG,EAAQC,EAASM,EAAUL,EAAYJ,EAAUK,EAAUC,EAAW,KAAMY,EAAqBI,EAAgBf,EAAaoB,EAAWN,CAAc,CAAC,EAAIb,EAASuB,EAAaF,CAAC,CAAC,EAMltB,SAAS,MAAY,CACnB,MAAO,CAAC,yGAA0G,CAAC9B,EAAQC,EAAUI,EAAYC,EAAUC,EAAWL,CAAO,CAAC,CAChL"}
@@ -0,0 +1,37 @@
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 GetCreatorGoalsRequest {
5
+ /** The ID of the broadcaster that created the goals. This ID must match the user ID in the user access token. */
6
+ broadcaster_id: string;
7
+ }
8
+ export interface GetCreatorGoalsResponseDataItem {
9
+ /** An ID that identifies this goal. */
10
+ id?: string | undefined;
11
+ /** An ID that identifies the broadcaster that created the goal. */
12
+ broadcaster_id?: string | undefined;
13
+ /** The broadcaster's display name. */
14
+ broadcaster_name?: string | undefined;
15
+ /** The broadcaster's login name. */
16
+ broadcaster_login?: string | undefined;
17
+ /** The type of goal. Possible values: - `follower`: The goal is to increase followers. - `subscription`: The goal is to increase subscriptions. This type shows the broadcaster's total tier points from subscriptions, which increase and decrease as users subscribe and unsubscribe. - `subscription_count`: The goal is to increase subscriptions. This type shows the broadcaster's total number of subscriptions, which increases and decreases as users subscribe and unsubscribe. - `new_subscription`: The goal is to increase subscriptions. This type shows only the net increase in tier points associated with the subscriptions (it does not account for users that unsubscribed since the goal started). - `new_subscription_count`: The goal is to increase subscriptions. This type shows only the net increase in the number of subscriptions (it does not account for users that unsubscribed since the goal started). - `new_bit`: The goal is to increase the amount of Bits used on the channel. - `new_cheerer`: The goal is to increase the amount of unique Cheerers on to Cheer on the channel. */
18
+ type?: string | undefined;
19
+ /** A description of the goal. Is an empty string if not specified. */
20
+ description?: string | undefined;
21
+ /** The goal's current value. The goal's `type` determines how this value is increased or decreased. - If `type` is follower, this field is set to the broadcaster's current number of followers. This number increases with new followers and decreases when users unfollow the broadcaster. - If `type` is subscription, this field is increased and decreased by the points value associated with the subscription tier. For example, if a tier-two subscription is worth 2 points, this field is increased or decreased by 2, not 1. - If `type` is subscription_count, this field is increased by 1 for each new subscription and decreased by 1 for each user that unsubscribes. - If `type` is new_subscription, this field is increased by the points value associated with the subscription tier. For example, if a tier-two subscription is worth 2 points, this field is increased by 2, not 1. - If `type` is new_subscription_count, this field is increased by 1 for each new subscription. - If `type` is new_bit, this field is increased by the number of Bits used on the channel. - If `type` is new_cheerer, this field is increased by 1 the first time each user Cheers on the channel after the goal starts. Other ways of using Bits don't count. */
22
+ current_amount?: number | undefined;
23
+ /** The goal's target value. For example, if the broadcaster has 200 followers before creating the goal, and their goal is to double that number, this field is set to 400. */
24
+ target_amount?: number | undefined;
25
+ /** The UTC date and time (in RFC3339 format) that the broadcaster created the goal. */
26
+ created_at?: string | undefined;
27
+ }
28
+ /** The list of goals. The list is empty if the broadcaster hasn't created goals. */
29
+ export type GetCreatorGoalsResponseDataList = Array<GetCreatorGoalsResponseDataItem>;
30
+ export interface GetCreatorGoalsResponse {
31
+ /** The list of goals. The list is empty if the broadcaster hasn't created goals. */
32
+ data?: GetCreatorGoalsResponseDataList | undefined;
33
+ }
34
+ export type GetCreatorGoalsError = TwitchOpError;
35
+ /** Get Creator Goals Gets the broadcaster's list of active goals. Use this endpoint to get the current progress of each goal. Instead of polling for the progress of a goal, consider [subscribing](https://dev.twitch.tv/docs/eventsub/manage-subscriptions.md) to receive notifications when a goal makes progress using the [channel.goal.progress](https://dev.twitch.tv/docs/eventsub/reference/goal.md#channel-goal-progress) subscription type. [Read More](https://dev.twitch.tv/docs/api/goals.md#requesting-event-notifications) 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:goals** scope. Reference: https://dev.twitch.tv/docs/api/reference/goals/#get-creator-goals */
36
+ export declare const getCreatorGoals: API.OperationMethod<GetCreatorGoalsRequest, GetCreatorGoalsResponse, GetCreatorGoalsError, TwitchOpContext>;
37
+ //# sourceMappingURL=goals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goals.d.ts","sources":["../../src/services/goals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAM1F,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAc/C,MAAM,WAAW,sBAAsB;IACrC,iHAAiH;IACjH,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,+BAA+B;IAC9C,uCAAuC;IACvC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,6jCAA6jC;IAC7jC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,4sCAA4sC;IAC5sC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,8KAA8K;IAC9K,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AACD,oFAAoF;AACpF,MAAM,MAAM,+BAA+B,GAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC;AACrF,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,IAAI,CAAC,EAAE,+BAA+B,GAAG,SAAS,CAAC;CACpD;AACD,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC;AACjD,kxBAAkxB;AAClxB,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,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,protocol$TwitchProtocol as d,retry$Retry as f,traits$Http as p,traits$Query as m,wc as h}from"../_bundle/sdk.js";const g={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:`Goals`,propagate:`w3c`};const _=/*@__PURE__*/ u(u=>u===o?l(`GetCreatorGoals`,`{input:#1,output:#4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$8(#2);$5(>7)@"%Response";$4({broadcaster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/goals",code:200}));$4({id:$6($3),broadcaster_id:$6($3),broadcaster_name:$6($3),broadcaster_login:$6($3),type:$6($3),description:$6($3),current_amount:$6($7),target_amount:$6($7),created_at:$6($3)});$4({data:$6(#3)})`,[r,p,m,t,n,a,i,e,h,c,d,f,g]):s(_,u));export{_ as getCreatorGoals};
2
+ //# sourceMappingURL=goals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goals.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.Struct","S.suspend","S.optional","S.Number","S.Array","Retry.Retry","API.call","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","op","TwitchProtocol","Retry","Http","Query","Array","TELEMETRY","getCreatorGoals","i","named"],"sources":["../../src/services/goals.ts"],"mappings":"+NAYA,MAAM4B,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,EAkCA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAM9B,EAAQC,EAAU,kBAAmB,8bAA+b,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAWC,EAAYC,EAAUC,EAASW,EAAqBE,EAAgBZ,EAAaiB,CAAS,CAAC,EAAIhB,EAASiB,EAAiBC,CAAC,CAAC"}
@@ -0,0 +1,314 @@
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 AssignGuestStarSlotRequest {
6
+ /** The ID of the broadcaster running the Guest Star session. */
7
+ broadcaster_id: string;
8
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the `user_id` in the user access token. */
9
+ moderator_id: string;
10
+ /** The ID of the Guest Star session in which to assign the slot. */
11
+ session_id: string;
12
+ /** The Twitch User ID corresponding to the guest to assign a slot in the session. This user must already have an invite to this session, and have indicated that they are ready to join. */
13
+ guest_id: string;
14
+ /** The slot assignment to give to the user. Must be a numeric identifier between "1" and "N" where N is the max number of slots for the session. Max number of slots allowed for the session is reported by [Get Channel Guest Star Settings](#get-channel-guest-star-settings). If another guest already holds the slot, that guest is removed from the slot and replaced. */
15
+ slot_id: string;
16
+ }
17
+ export interface AssignGuestStarSlotResponse {
18
+ }
19
+ export interface CreateGuestStarSessionRequest {
20
+ /** The ID of the broadcaster you want to create a Guest Star session for. Provided _broadcaster_id_ must match the `user_id` in the authentication token. */
21
+ broadcaster_id: string;
22
+ }
23
+ /** Information about the guest's audio settings */
24
+ export interface CreateGuestStarSessionResponseDataItemGuestsItemAudio {
25
+ /** Flag determining whether the host is allowing the guest's audio to be seen or heard within the session. */
26
+ is_host_enabled?: boolean | undefined;
27
+ /** Flag determining whether the guest is allowing their audio to be transmitted to the session. */
28
+ is_guest_enabled?: boolean | undefined;
29
+ /** Flag determining whether the guest has an appropriate audio device available to be transmitted to the session. */
30
+ is_available?: boolean | undefined;
31
+ }
32
+ /** Information about the guest's video settings */
33
+ export interface CreateGuestStarSessionResponseDataItemGuestsItemVideo {
34
+ /** Flag determining whether the host is allowing the guest's video to be seen or heard within the session. */
35
+ is_host_enabled?: boolean | undefined;
36
+ /** Flag determining whether the guest is allowing their video to be transmitted to the session. */
37
+ is_guest_enabled?: boolean | undefined;
38
+ /** Flag determining whether the guest has an appropriate video device available to be transmitted to the session. */
39
+ is_available?: boolean | undefined;
40
+ }
41
+ export interface CreateGuestStarSessionResponseDataItemGuestsItem {
42
+ /** ID representing this guest's slot assignment. - Host is always in slot "0" - Guests are assigned the following consecutive IDs (e.g, "1", "2", "3", etc) - Screen Share is represented as a special guest with the ID "SCREENSHARE" - The identifier here matches the ID referenced in browser source links used in broadcasting software. */
43
+ slot_id?: string | undefined;
44
+ /** Flag determining whether or not the guest is visible in the browser source in the host's streaming software. */
45
+ is_live?: boolean | undefined;
46
+ /** User ID of the guest assigned to this slot. */
47
+ user_id?: string | undefined;
48
+ /** Value from 0 to 200 representing the host's volume setting for this guest. The default is **100**. */
49
+ volume?: number | undefined;
50
+ /** Timestamp when this guest was assigned a slot in the session. */
51
+ assigned_at?: string | undefined;
52
+ /** Information about the guest's audio settings */
53
+ audio?: CreateGuestStarSessionResponseDataItemGuestsItemAudio | undefined;
54
+ /** Information about the guest's video settings */
55
+ video?: CreateGuestStarSessionResponseDataItemGuestsItemVideo | undefined;
56
+ }
57
+ /** List of guests currently interacting with the Guest Star session. On creation, the session will contain the broadcaster as a solo guest. */
58
+ export type CreateGuestStarSessionResponseDataItemGuestsList = Array<CreateGuestStarSessionResponseDataItemGuestsItem>;
59
+ export interface CreateGuestStarSessionResponseDataItem {
60
+ /** ID uniquely representing the Guest Star session. */
61
+ id?: string | undefined;
62
+ /** List of guests currently interacting with the Guest Star session. On creation, the session will contain the broadcaster as a solo guest. */
63
+ guests?: CreateGuestStarSessionResponseDataItemGuestsList | undefined;
64
+ }
65
+ /** Summary of the session details. */
66
+ export type CreateGuestStarSessionResponseDataList = Array<CreateGuestStarSessionResponseDataItem>;
67
+ export interface CreateGuestStarSessionResponse {
68
+ /** Summary of the session details. */
69
+ data?: CreateGuestStarSessionResponseDataList | undefined;
70
+ }
71
+ export interface DeleteGuestStarInviteRequest {
72
+ /** The ID of the broadcaster running the Guest Star session. */
73
+ broadcaster_id: string;
74
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the `user_id` in the user access token. */
75
+ moderator_id: string;
76
+ /** The ID of the session for the invite to be revoked on behalf of the broadcaster. */
77
+ session_id: string;
78
+ /** Twitch User ID for the guest to revoke the Guest Star session invite from. */
79
+ guest_id: string;
80
+ }
81
+ export interface DeleteGuestStarInviteResponse {
82
+ }
83
+ export interface DeleteGuestStarSlotRequest {
84
+ /** The ID of the broadcaster running the Guest Star session. */
85
+ broadcaster_id: string;
86
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the user ID in the user access token. */
87
+ moderator_id: string;
88
+ /** The ID of the Guest Star session in which to remove the slot assignment. */
89
+ session_id: string;
90
+ /** The Twitch User ID corresponding to the guest to remove from the session. */
91
+ guest_id: string;
92
+ /** The slot ID representing the slot assignment to remove from the session. */
93
+ slot_id: string;
94
+ /** Flag signaling that the guest should be reinvited to the session, sending them back to the invite queue. */
95
+ should_reinvite_guest?: boolean | undefined;
96
+ }
97
+ export interface DeleteGuestStarSlotResponse {
98
+ }
99
+ export interface EndGuestStarSessionRequest {
100
+ /** The ID of the broadcaster you want to end a Guest Star session for. Provided _broadcaster_id_ must match the `user_id` in the authentication token. */
101
+ broadcaster_id: string;
102
+ /** ID for the session to end on behalf of the broadcaster. */
103
+ session_id: string;
104
+ }
105
+ /** Information about the guest's audio settings */
106
+ export type EndGuestStarSessionResponseDataItemGuestsItemAudio = CreateGuestStarSessionResponseDataItemGuestsItemAudio;
107
+ /** Information about the guest's video settings */
108
+ export type EndGuestStarSessionResponseDataItemGuestsItemVideo = CreateGuestStarSessionResponseDataItemGuestsItemVideo;
109
+ export type EndGuestStarSessionResponseDataItemGuestsItem = CreateGuestStarSessionResponseDataItemGuestsItem;
110
+ /** List of guests currently interacting with the Guest Star session. */
111
+ export type EndGuestStarSessionResponseDataItemGuestsList = Array<CreateGuestStarSessionResponseDataItemGuestsItem>;
112
+ export interface EndGuestStarSessionResponseDataItem {
113
+ /** ID uniquely representing the Guest Star session. */
114
+ id?: string | undefined;
115
+ /** List of guests currently interacting with the Guest Star session. */
116
+ guests?: EndGuestStarSessionResponseDataItemGuestsList | undefined;
117
+ }
118
+ /** Summary of the session details when the session was ended. */
119
+ export type EndGuestStarSessionResponseDataList = Array<EndGuestStarSessionResponseDataItem>;
120
+ export interface EndGuestStarSessionResponse {
121
+ /** Summary of the session details when the session was ended. */
122
+ data?: EndGuestStarSessionResponseDataList | undefined;
123
+ }
124
+ export interface GetChannelGuestStarSettingsRequest {
125
+ /** The ID of the broadcaster you want to get guest star settings for. */
126
+ broadcaster_id: string;
127
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the user ID in the user access token. */
128
+ moderator_id: string;
129
+ }
130
+ export interface GetChannelGuestStarSettingsResponseDataItem {
131
+ /** Flag determining if [Guest Star moderators](https://help.twitch.tv/s/article/stream-together#settings:~:text=Stream%20Together%20mods%20can%20take%20actions%20like%20inviting%20guests%2C%20reporting%20guests%2C%20removing%20guests%2C%20muting%20guests%2C%20and%20turning%20off%20guests%20video.) can make a guest live once the guest is assigned to a slot. */
132
+ is_moderator_send_live_enabled?: boolean | undefined;
133
+ /** Number of slots the Guest Star call interface will allow the host to add to a call. Required to be between 1 and 6. */
134
+ slot_count?: number | undefined;
135
+ /** Flag determining if Browser Sources subscribed to sessions on this channel should output audio */
136
+ is_browser_source_audio_enabled?: boolean | undefined;
137
+ /** This setting determines how the guests within a session should be laid out within the browser source. Layouts other than the ones listed here are reported as "TILED". Possible values: - `TILED`: All live guests are tiled within the browser source with the same size. - `SCREENSHARE`: All live guests are tiled within the browser source with the same size. If there is an active screen share, it is sized larger than the other guests. */
138
+ group_layout?: string | undefined;
139
+ /** View only token to generate browser source URLs. Is **null** if the user in *moderator_id* isn't the broadcaster. */
140
+ browser_source_token?: string | Redacted.Redacted<string> | null | undefined;
141
+ }
142
+ /** A list that contains the channel's Guest Star settings. */
143
+ export type GetChannelGuestStarSettingsResponseDataList = Array<GetChannelGuestStarSettingsResponseDataItem>;
144
+ export interface GetChannelGuestStarSettingsResponse {
145
+ /** A list that contains the channel's Guest Star settings. */
146
+ data?: GetChannelGuestStarSettingsResponseDataList | undefined;
147
+ }
148
+ export interface GetGuestStarInvitesRequest {
149
+ /** The ID of the broadcaster running the Guest Star session. */
150
+ broadcaster_id: string;
151
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the `user_id` in the user access token. */
152
+ moderator_id: string;
153
+ /** The session ID to query for invite status. */
154
+ session_id: string;
155
+ }
156
+ export interface GetGuestStarInvitesResponseDataItem {
157
+ /** Twitch User ID corresponding to the invited guest */
158
+ user_id?: string | undefined;
159
+ /** Timestamp when the invite was created or last updated. */
160
+ invited_at?: string | undefined;
161
+ /** Status representing the invited user's join state. The list includes only users still in the "INVITED" state. Possible values: - `INVITED`: The user has been invited to the session but has not acknowledged it. */
162
+ status?: string | undefined;
163
+ /** Flag signaling that the invited user has chosen to disable their local video device. The user has hidden themselves, but they may choose to reveal their video feed upon joining the session. */
164
+ is_video_enabled?: boolean | undefined;
165
+ /** Flag signaling that the invited user has chosen to disable their local audio device. The user has muted themselves, but they may choose to unmute their audio feed upon joining the session. */
166
+ is_audio_enabled?: boolean | undefined;
167
+ /** Flag signaling that the invited user has a video device available for sharing. */
168
+ is_video_available?: boolean | undefined;
169
+ /** Flag signaling that the invited user has an audio device available for sharing. */
170
+ is_audio_available?: boolean | undefined;
171
+ }
172
+ /** A list of invite objects describing the invited users. */
173
+ export type GetGuestStarInvitesResponseDataList = Array<GetGuestStarInvitesResponseDataItem>;
174
+ export interface GetGuestStarInvitesResponse {
175
+ /** A list of invite objects describing the invited users. */
176
+ data?: GetGuestStarInvitesResponseDataList | undefined;
177
+ }
178
+ export interface GetGuestStarSessionRequest {
179
+ /** ID for the user hosting the Guest Star session. */
180
+ broadcaster_id: string;
181
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the user ID in the user access token. */
182
+ moderator_id: string;
183
+ }
184
+ /** Information about the guest's audio settings */
185
+ export type GetGuestStarSessionResponseDataItemGuestsItemAudio = CreateGuestStarSessionResponseDataItemGuestsItemAudio;
186
+ /** Information about the guest's video settings */
187
+ export type GetGuestStarSessionResponseDataItemGuestsItemVideo = CreateGuestStarSessionResponseDataItemGuestsItemVideo;
188
+ export interface GetGuestStarSessionResponseDataItemGuestsItem {
189
+ /** ID representing this guest's slot assignment. - Host is in slot "0", except when the user in *moderator_id* holds a guest slot in the session. Slots are then numbered from that guest's point of view, with the guest in slot "0". - Guests are assigned the following consecutive IDs (e.g, "1", "2", "3", etc) - Screen Share is represented as a special guest with the ID "SCREENSHARE" - The identifier here matches the ID referenced in browser source links used in broadcasting software. */
190
+ slot_id?: string | undefined;
191
+ /** Flag determining whether or not the guest is visible in the browser source in the host's streaming software. */
192
+ is_live?: boolean | undefined;
193
+ /** User ID of the guest assigned to this slot. */
194
+ user_id?: string | undefined;
195
+ /** Value from 0 to 200 representing the host's volume setting for this guest. The default is **100**. */
196
+ volume?: number | undefined;
197
+ /** Timestamp when this guest was assigned a slot in the session. */
198
+ assigned_at?: string | undefined;
199
+ /** Information about the guest's audio settings */
200
+ audio?: CreateGuestStarSessionResponseDataItemGuestsItemAudio | undefined;
201
+ /** Information about the guest's video settings */
202
+ video?: CreateGuestStarSessionResponseDataItemGuestsItemVideo | undefined;
203
+ }
204
+ /** List of guests currently interacting with the Guest Star session. */
205
+ export type GetGuestStarSessionResponseDataItemGuestsList = Array<GetGuestStarSessionResponseDataItemGuestsItem>;
206
+ export interface GetGuestStarSessionResponseDataItem {
207
+ /** ID uniquely representing the Guest Star session. */
208
+ id?: string | undefined;
209
+ /** List of guests currently interacting with the Guest Star session. */
210
+ guests?: GetGuestStarSessionResponseDataItemGuestsList | undefined;
211
+ }
212
+ /** Summary of the session details. The list is empty if the broadcaster has no active session, or if the user in *moderator_id* isn't the broadcaster, a guest or invited user in the session, or one of the broadcaster's [Guest Star moderators](https://help.twitch.tv/s/article/stream-together#settings:~:text=Stream%20Together%20mods%20can%20take%20actions%20like%20inviting%20guests%2C%20reporting%20guests%2C%20removing%20guests%2C%20muting%20guests%2C%20and%20turning%20off%20guests%20video.). */
213
+ export type GetGuestStarSessionResponseDataList = Array<GetGuestStarSessionResponseDataItem>;
214
+ export interface GetGuestStarSessionResponse {
215
+ /** Summary of the session details. The list is empty if the broadcaster has no active session, or if the user in *moderator_id* isn't the broadcaster, a guest or invited user in the session, or one of the broadcaster's [Guest Star moderators](https://help.twitch.tv/s/article/stream-together#settings:~:text=Stream%20Together%20mods%20can%20take%20actions%20like%20inviting%20guests%2C%20reporting%20guests%2C%20removing%20guests%2C%20muting%20guests%2C%20and%20turning%20off%20guests%20video.). */
216
+ data?: GetGuestStarSessionResponseDataList | undefined;
217
+ }
218
+ export interface SendGuestStarInviteRequest {
219
+ /** The ID of the broadcaster running the Guest Star session. */
220
+ broadcaster_id: string;
221
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the `user_id` in the user access token. */
222
+ moderator_id: string;
223
+ /** The session ID for the invite to be sent on behalf of the broadcaster. */
224
+ session_id: string;
225
+ /** Twitch User ID for the guest to invite to the Guest Star session. */
226
+ guest_id: string;
227
+ }
228
+ export interface SendGuestStarInviteResponse {
229
+ }
230
+ export interface UpdateChannelGuestStarSettingsRequest {
231
+ /** The ID of the broadcaster you want to update Guest Star settings for. */
232
+ broadcaster_id: string;
233
+ /** Flag determining if [Guest Star moderators](https://help.twitch.tv/s/article/stream-together#settings:~:text=Stream%20Together%20mods%20can%20take%20actions%20like%20inviting%20guests%2C%20reporting%20guests%2C%20removing%20guests%2C%20muting%20guests%2C%20and%20turning%20off%20guests%20video.) can make a guest live once the guest is assigned to a slot. */
234
+ is_moderator_send_live_enabled?: boolean | undefined;
235
+ /** Number of slots the Guest Star call interface will allow the host to add to a call. Required to be between 1 and 6. */
236
+ slot_count?: number | undefined;
237
+ /** Flag determining if Browser Sources subscribed to sessions on this channel should output audio */
238
+ is_browser_source_audio_enabled?: boolean | undefined;
239
+ /** This setting determines how the guests within a session should be laid out within the browser source. Possible values: - `TILED`: All live guests are tiled within the browser source with the same size. - `SCREENSHARE`: All live guests are tiled within the browser source with the same size. If there is an active screen share, it is sized larger than the other guests. */
240
+ group_layout?: string | undefined;
241
+ /** Flag determining if Guest Star should regenerate the auth token associated with the channel's browser sources. Providing a true value for this will immediately invalidate all browser sources previously configured in your streaming software. */
242
+ regenerate_browser_sources?: boolean | undefined;
243
+ }
244
+ export interface UpdateChannelGuestStarSettingsResponse {
245
+ }
246
+ export interface UpdateGuestStarSlotRequest {
247
+ /** The ID of the broadcaster running the Guest Star session. */
248
+ broadcaster_id: string;
249
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the `user_id` in the user access token. */
250
+ moderator_id: string;
251
+ /** The ID of the Guest Star session in which to update slot settings. */
252
+ session_id: string;
253
+ /** The slot assignment previously assigned to a user. */
254
+ source_slot_id: string;
255
+ /** The slot to move this user assignment to. If the destination slot is occupied, the user assigned will be swapped into *source_slot_id*. */
256
+ destination_slot_id: string;
257
+ }
258
+ export interface UpdateGuestStarSlotResponse {
259
+ }
260
+ export interface UpdateGuestStarSlotSettingsRequest {
261
+ /** The ID of the broadcaster running the Guest Star session. */
262
+ broadcaster_id: string;
263
+ /** The ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the user ID in the user access token. */
264
+ moderator_id: string;
265
+ /** The ID of the Guest Star session in which to update a slot's settings. */
266
+ session_id: string;
267
+ /** The slot assignment that has previously been assigned to a user. */
268
+ slot_id: string;
269
+ /** Flag indicating whether the slot is allowed to share their audio with the rest of the session. If false, the slot will be muted in any views containing the slot. */
270
+ is_audio_enabled?: boolean | undefined;
271
+ /** Flag indicating whether the slot is allowed to share their video with the rest of the session. If false, the slot will have no video shared in any views containing the slot. */
272
+ is_video_enabled?: boolean | undefined;
273
+ /** Flag indicating whether the user assigned to this slot is visible/can be heard from any public subscriptions. Generally, this determines whether or not the slot is enabled in any broadcasting software integrations. */
274
+ is_live?: boolean | undefined;
275
+ }
276
+ export interface UpdateGuestStarSlotSettingsResponse {
277
+ }
278
+ export type AssignGuestStarSlotError = TwitchOpError;
279
+ /** Assign Guest Star Slot Allows a previously invited user to be assigned a slot within the active Guest Star session, once that guest has indicated they are ready to join. 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:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#assign-guest-star-slot */
280
+ export declare const assignGuestStarSlot: API.OperationMethod<AssignGuestStarSlotRequest, AssignGuestStarSlotResponse, AssignGuestStarSlotError, TwitchOpContext>;
281
+ export type CreateGuestStarSessionError = TwitchOpError;
282
+ /** Create Guest Star Session Requires the broadcaster to be present in the call interface. The session ends automatically when no one in it is connected to the call interface, for example, if the broadcaster doesn't join after creating the session. If guests are connected but the broadcaster isn't, the broadcaster is removed from their slot and the session continues until the last participant leaves. > **Note** Query parameter _broadcaster_id_ must match the `user_id` in the [User-Access > token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) 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:guest_star** scope. Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#create-guest-star-session */
283
+ export declare const createGuestStarSession: API.OperationMethod<CreateGuestStarSessionRequest, CreateGuestStarSessionResponse, CreateGuestStarSessionError, TwitchOpContext>;
284
+ export type DeleteGuestStarInviteError = TwitchOpError;
285
+ /** Delete Guest Star Invite Revokes a previously sent invite for a Guest Star session. 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:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#delete-guest-star-invite */
286
+ export declare const deleteGuestStarInvite: API.OperationMethod<DeleteGuestStarInviteRequest, DeleteGuestStarInviteResponse, DeleteGuestStarInviteError, TwitchOpContext>;
287
+ export type DeleteGuestStarSlotError = TwitchOpError;
288
+ /** Delete Guest Star Slot Allows a caller to remove a slot assignment from a user participating in an active Guest Star session. This revokes their access to the session immediately and disables their access to publish or subscribe to media within the session. 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:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#delete-guest-star-slot */
289
+ export declare const deleteGuestStarSlot: API.OperationMethod<DeleteGuestStarSlotRequest, DeleteGuestStarSlotResponse, DeleteGuestStarSlotError, TwitchOpContext>;
290
+ export type EndGuestStarSessionError = TwitchOpError;
291
+ /** End Guest Star Session Performs the same action as if the host clicked the "End Call" button in the Guest Star UI. Programmatically ends a Guest Star session on behalf of the broadcaster. > **Note** Query parameter _broadcaster_id_ must match the `user_id` in the [User-Access > token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) 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:guest_star** scope. Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#end-guest-star-session */
292
+ export declare const endGuestStarSession: API.OperationMethod<EndGuestStarSessionRequest, EndGuestStarSessionResponse, EndGuestStarSessionError, TwitchOpContext>;
293
+ export type GetChannelGuestStarSettingsError = TwitchOpError;
294
+ /** Get Channel Guest Star Settings Gets the channel settings for configuration of the Guest Star feature for a particular host. 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:guest_star** or **channel:manage:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:read:guest_star** or **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#get-channel-guest-star-settings */
295
+ export declare const getChannelGuestStarSettings: API.OperationMethod<GetChannelGuestStarSettingsRequest, GetChannelGuestStarSettingsResponse, GetChannelGuestStarSettingsError, TwitchOpContext>;
296
+ export type GetGuestStarInvitesError = TwitchOpError;
297
+ /** Get Guest Star Invites Provides the caller with a list of pending invites to a Guest Star session. > **Note** Query parameter _moderator_id_ must match the `user_id` in the [User-Access > token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) 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:guest_star** or **channel:manage:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:read:guest_star** or **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#get-guest-star-invites */
298
+ export declare const getGuestStarInvites: API.OperationMethod<GetGuestStarInvitesRequest, GetGuestStarInvitesResponse, GetGuestStarInvitesError, TwitchOpContext>;
299
+ export type GetGuestStarSessionError = TwitchOpError;
300
+ /** Get Guest Star Session Gets information about an ongoing Guest Star session for a particular channel. > **Note** Guests must be either invited or assigned a slot within the session 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:guest_star** or **channel:manage:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:read:guest_star** or **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#get-guest-star-session */
301
+ export declare const getGuestStarSession: API.OperationMethod<GetGuestStarSessionRequest, GetGuestStarSessionResponse, GetGuestStarSessionError, TwitchOpContext>;
302
+ export type SendGuestStarInviteError = TwitchOpError;
303
+ /** Send Guest Star Invite Sends an invite to a specified guest on behalf of the broadcaster for a Guest Star session in progress. 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:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#send-guest-star-invite */
304
+ export declare const sendGuestStarInvite: API.OperationMethod<SendGuestStarInviteRequest, SendGuestStarInviteResponse, SendGuestStarInviteError, TwitchOpContext>;
305
+ export type UpdateChannelGuestStarSettingsError = TwitchOpError;
306
+ /** Update Channel Guest Star Settings Mutates the channel settings for configuration of the Guest Star feature for a particular host. > **Note** Query parameter _broadcaster_id_ must match the `user_id` in the [User-Access > token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) 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:guest_star** scope. Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#update-channel-guest-star-settings */
307
+ export declare const updateChannelGuestStarSettings: API.OperationMethod<UpdateChannelGuestStarSettingsRequest, UpdateChannelGuestStarSettingsResponse, UpdateChannelGuestStarSettingsError, TwitchOpContext>;
308
+ export type UpdateGuestStarSlotError = TwitchOpError;
309
+ /** Update Guest Star Slot Allows a user to update the assigned slot for a particular user within the active Guest Star session. 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:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#update-guest-star-slot */
310
+ export declare const updateGuestStarSlot: API.OperationMethod<UpdateGuestStarSlotRequest, UpdateGuestStarSlotResponse, UpdateGuestStarSlotError, TwitchOpContext>;
311
+ export type UpdateGuestStarSlotSettingsError = TwitchOpError;
312
+ /** Update Guest Star Slot Settings Allows a user to update slot settings for a particular guest within a Guest Star session, such as allowing the user to share audio or video within the call as a host. These settings will be broadcasted to all subscribers which control their view of the guest in that slot. One or more of the optional parameters to this API can be specified at any 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:guest_star** scope. For requests by the broadcaster (*moderator_id* matches *broadcaster_id*). - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:guest_star** scope. For requests by a moderator (*moderator_id* doesn't match *broadcaster_id*). Reference: https://dev.twitch.tv/docs/api/reference/guest-star/#update-guest-star-slot-settings */
313
+ export declare const updateGuestStarSlotSettings: API.OperationMethod<UpdateGuestStarSlotSettingsRequest, UpdateGuestStarSlotSettingsResponse, UpdateGuestStarSlotSettingsError, TwitchOpContext>;
314
+ //# sourceMappingURL=guest_star.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guest_star.d.ts","sources":["../../src/services/guest_star.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAIjD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAM1F,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAc/C,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,kKAAkK;IAClK,YAAY,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,4LAA4L;IAC5L,QAAQ,EAAE,MAAM,CAAC;IACjB,+WAA+W;IAC/W,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,2BAA2B;CAAG;AAC/C,MAAM,WAAW,6BAA6B;IAC5C,6JAA6J;IAC7J,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,mDAAmD;AACnD,MAAM,WAAW,qDAAqD;IACpE,8GAA8G;IAC9G,eAAe,CAAC,EAAE,OAAO,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M,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,gCAAgC,GAAG,aAAa,CAAC;AAC7D,g9BAAg9B;AACh9B,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,eAAe,CAC3D,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,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,protocol$TwitchProtocol as f,retry$Retry as p,traits$Http as m,traits$Query as h,traits$SensitiveValue 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:`GuestStar`,propagate:`w3c`};const b=/*@__PURE__*/ d(e=>e===s?u(`AssignGuestStarSlot`,`{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()),session_id:$3.pipe($2()),guest_id:$3.pipe($2()),slot_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/guest_star/slot",code:200}))`,[i,m,h,n,r,o,__d0,l,f,p,y]):c(b,e));const x=/*@__PURE__*/ d(e=>e===s?u(`CreateGuestStarSession`,`{input:#1,output:#6:5,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/guest_star/session",code:200}))`,[i,m,h,n,r,o,__d1,l,f,p,y]):c(x,e));const S=/*@__PURE__*/ d(e=>e===s?u(`DeleteGuestStarInvite`,`{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()),session_id:$3.pipe($2()),guest_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/guest_star/invites",code:200}))`,[i,m,h,n,r,o,__d0,l,f,p,y]):c(S,e));const C=/*@__PURE__*/ d(e=>e===s?u(`DeleteGuestStarSlot`,`{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()),session_id:$3.pipe($2()),guest_id:$3.pipe($2()),slot_id:$3.pipe($2()),should_reinvite_guest:$5($4.pipe($2()))}).pipe($1({method:"DELETE",uri:"/guest_star/slot",code:200}))`,[i,m,h,n,v,a,r,o,__d0,l,f,p,y]):c(C,e));const w=/*@__PURE__*/ d(e=>e===s?u(`EndGuestStarSession`,`{input:#1,output:#6:5,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({broadcaster_id:$3.pipe($2()),session_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/guest_star/session",code:200}))`,[i,m,h,n,r,o,__d1,l,f,p,y]):c(w,e));const T=/*@__PURE__*/ d(d=>d===s?u(`GetChannelGuestStarSettings`,`{input:#1,output:#4,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$11(#2);$5(>7)@"%Response";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/guest_star/channel_settings",code:200}));$4({is_moderator_send_live_enabled:$7($6),slot_count:$7($8),is_browser_source_audio_enabled:$7($6),group_layout:$7($3),browser_source_token:$7($10($3).pipe($9({})))});$4({data:$7(#3)})`,[i,m,h,n,r,o,v,a,t,g,e,_,l,f,p,y]):c(T,d));const E=/*@__PURE__*/ d(e=>e===s?u(`GetGuestStarInvites`,`{input:#1,output:#4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$8(#2);$5(>7)@"%Response";$4({broadcaster_id:$3.pipe($2()),moderator_id:$3.pipe($2()),session_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/guest_star/invites",code:200}));$4({user_id:$6($3),invited_at:$6($3),status:$6($3),is_video_enabled:$6($7),is_audio_enabled:$6($7),is_video_available:$6($7),is_audio_available:$6($7)});$4({data:$6(#3)})`,[i,m,h,n,r,o,a,v,_,l,f,p,y]):c(E,e));const D=/*@__PURE__*/ d(e=>e===s?u(`GetGuestStarSession`,`{input:#1,output:#6:5,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:"/guest_star/session",code:200}))`,[i,m,h,n,r,o,__d1,l,f,p,y]):c(D,e));const O=/*@__PURE__*/ d(e=>e===s?u(`SendGuestStarInvite`,`{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()),session_id:$3.pipe($2()),guest_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/guest_star/invites",code:200}))`,[i,m,h,n,r,o,__d0,l,f,p,y]):c(O,e));const k=/*@__PURE__*/ d(e=>e===s?u(`UpdateChannelGuestStarSettings`,`{input:#1,output:#9:0,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$8(>2)@"%Request";$7({broadcaster_id:$3.pipe($2()),is_moderator_send_live_enabled:$5($4),slot_count:$5($6),is_browser_source_audio_enabled:$5($4),group_layout:$5($3),regenerate_browser_sources:$5($4)}).pipe($1({method:"PATCH",uri:"/guest_star/channel_settings",code:200}))`,[i,m,h,n,v,a,t,r,o,__d0,l,f,p,y]):c(k,e));const A=/*@__PURE__*/ d(e=>e===s?u(`UpdateGuestStarSlot`,`{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()),session_id:$3.pipe($2()),source_slot_id:$3.pipe($2()),destination_slot_id:$3.pipe($2())}).pipe($1({method:"PATCH",uri:"/guest_star/slot",code:200}))`,[i,m,h,n,r,o,__d0,l,f,p,y]):c(A,e));const j=/*@__PURE__*/ d(e=>e===s?u(`UpdateGuestStarSlotSettings`,`{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()),session_id:$3.pipe($2()),slot_id:$3.pipe($2()),is_audio_enabled:$5($4.pipe($2())),is_video_enabled:$5($4.pipe($2())),is_live:$5($4.pipe($2()))}).pipe($1({method:"PATCH",uri:"/guest_star/slot_settings",code:200}))`,[i,m,h,n,v,a,r,o,__d0,l,f,p,y]):c(j,e));function __d0(){return[`$2(>1)@"AssignGuestStarSlotResponse";$1({})`,[i,r,o]]}function __d1(){return[`$4(>6)@"CreateGuestStarSessionResponseDataItemGuestsItemAudio";$4(>7)@"CreateGuestStarSessionResponseDataItemGuestsItem";$7(#1);$4(>8)@"CreateGuestStarSessionResponseDataItem";$7(#3);$4(>9)@"CreateGuestStarSessionResponse";$3({is_host_enabled:$2($1),is_guest_enabled:$2($1),is_available:$2($1)});$3({slot_id:$2($5),is_live:$2($1),user_id:$2($5),volume:$2($6),assigned_at:$2($5),audio:$2(#0),video:$2(#0)});$3({id:$2($5),guests:$2(#2)});$3({data:$2(#4)})`,[i,v,a,r,o,n,t,_]]}export{b as assignGuestStarSlot,x as createGuestStarSession,S as deleteGuestStarInvite,C as deleteGuestStarSlot,w as endGuestStarSession,T as getChannelGuestStarSettings,E as getGuestStarInvites,D as getGuestStarSession,O as sendGuestStarInvite,k as updateChannelGuestStarSettings,A as updateGuestStarSlot,j as updateGuestStarSlotSettings};
2
+ //# sourceMappingURL=guest_star.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guest_star.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.Struct","S.suspend","Retry.Retry","API.call","S.Boolean","S.optional","S.Number","T.SensitiveValue","S.NullOr","S.Array","NullOr","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","named","op","TwitchProtocol","Retry","Http","Query","SensitiveValue","Array","Boolean","TELEMETRY","assignGuestStarSlot","i","createGuestStarSession","deleteGuestStarInvite","deleteGuestStarSlot","endGuestStarSession","getChannelGuestStarSettings","getGuestStarInvites","getGuestStarSession","sendGuestStarInvite","updateChannelGuestStarSettings","updateGuestStarSlot","updateGuestStarSlotSettings"],"sources":["../../src/services/guest_star.ts"],"mappings":"+QAaA,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,YACT,UAAW,KACb,EAuRA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMrC,EAAQC,EAAU,sBAAuB,gTAAiT,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAW,KAAMkB,EAAqBG,EAAgBpB,EAAa2B,CAAS,CAAC,EAAI1B,EAAS2B,EAAqBC,CAAC,CAAC,EAIziB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMrC,EAAQC,EAAU,yBAA0B,kNAAmN,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAW,KAAMkB,EAAqBG,EAAgBpB,EAAa2B,CAAS,CAAC,EAAI1B,EAAS6B,EAAwBD,CAAC,CAA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