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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +79 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +31 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +49 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +46 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +19 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +50 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/ads.d.ts +75 -0
  26. package/lib/services/ads.d.ts.map +1 -0
  27. package/lib/services/ads.js +2 -0
  28. package/lib/services/ads.js.map +1 -0
  29. package/lib/services/analytics.d.ts +90 -0
  30. package/lib/services/analytics.d.ts.map +1 -0
  31. package/lib/services/analytics.js +2 -0
  32. package/lib/services/analytics.js.map +1 -0
  33. package/lib/services/bits.d.ts +284 -0
  34. package/lib/services/bits.d.ts.map +1 -0
  35. package/lib/services/bits.js +2 -0
  36. package/lib/services/bits.js.map +1 -0
  37. package/lib/services/ccls.d.ts +26 -0
  38. package/lib/services/ccls.d.ts.map +1 -0
  39. package/lib/services/ccls.js +2 -0
  40. package/lib/services/ccls.js.map +1 -0
  41. package/lib/services/channel_points.d.ts +416 -0
  42. package/lib/services/channel_points.d.ts.map +1 -0
  43. package/lib/services/channel_points.js +2 -0
  44. package/lib/services/channel_points.js.map +1 -0
  45. package/lib/services/channels.d.ts +173 -0
  46. package/lib/services/channels.d.ts.map +1 -0
  47. package/lib/services/channels.js +2 -0
  48. package/lib/services/channels.js.map +1 -0
  49. package/lib/services/charity.d.ts +97 -0
  50. package/lib/services/charity.d.ts.map +1 -0
  51. package/lib/services/charity.js +2 -0
  52. package/lib/services/charity.js.map +1 -0
  53. package/lib/services/chat.d.ts +638 -0
  54. package/lib/services/chat.d.ts.map +1 -0
  55. package/lib/services/chat.js +33 -0
  56. package/lib/services/chat.js.map +1 -0
  57. package/lib/services/clips.d.ts +153 -0
  58. package/lib/services/clips.d.ts.map +1 -0
  59. package/lib/services/clips.js +2 -0
  60. package/lib/services/clips.js.map +1 -0
  61. package/lib/services/conduits.d.ts +172 -0
  62. package/lib/services/conduits.d.ts.map +1 -0
  63. package/lib/services/conduits.js +2 -0
  64. package/lib/services/conduits.js.map +1 -0
  65. package/lib/services/entitlements.d.ts +76 -0
  66. package/lib/services/entitlements.d.ts.map +1 -0
  67. package/lib/services/entitlements.js +2 -0
  68. package/lib/services/entitlements.js.map +1 -0
  69. package/lib/services/eventsub.d.ts +158 -0
  70. package/lib/services/eventsub.d.ts.map +1 -0
  71. package/lib/services/eventsub.js +2 -0
  72. package/lib/services/eventsub.js.map +1 -0
  73. package/lib/services/extensions.d.ts +497 -0
  74. package/lib/services/extensions.d.ts.map +1 -0
  75. package/lib/services/extensions.js +2 -0
  76. package/lib/services/extensions.js.map +1 -0
  77. package/lib/services/games.d.ts +57 -0
  78. package/lib/services/games.d.ts.map +1 -0
  79. package/lib/services/games.js +2 -0
  80. package/lib/services/games.js.map +1 -0
  81. package/lib/services/goals.d.ts +37 -0
  82. package/lib/services/goals.d.ts.map +1 -0
  83. package/lib/services/goals.js +2 -0
  84. package/lib/services/goals.js.map +1 -0
  85. package/lib/services/guest_star.d.ts +314 -0
  86. package/lib/services/guest_star.d.ts.map +1 -0
  87. package/lib/services/guest_star.js +2 -0
  88. package/lib/services/guest_star.js.map +1 -0
  89. package/lib/services/hype_train.d.ts +91 -0
  90. package/lib/services/hype_train.d.ts.map +1 -0
  91. package/lib/services/hype_train.js +2 -0
  92. package/lib/services/hype_train.js.map +1 -0
  93. package/lib/services/index.d.ts +30 -0
  94. package/lib/services/index.d.ts.map +1 -0
  95. package/lib/services/index.js +29 -0
  96. package/lib/services/moderation.d.ts +731 -0
  97. package/lib/services/moderation.d.ts.map +1 -0
  98. package/lib/services/moderation.js +41 -0
  99. package/lib/services/moderation.js.map +1 -0
  100. package/lib/services/polls.d.ts +173 -0
  101. package/lib/services/polls.d.ts.map +1 -0
  102. package/lib/services/polls.js +2 -0
  103. package/lib/services/polls.js.map +1 -0
  104. package/lib/services/predictions.d.ts +221 -0
  105. package/lib/services/predictions.d.ts.map +1 -0
  106. package/lib/services/predictions.js +2 -0
  107. package/lib/services/predictions.js.map +1 -0
  108. package/lib/services/raids.d.ts +34 -0
  109. package/lib/services/raids.d.ts.map +1 -0
  110. package/lib/services/raids.js +2 -0
  111. package/lib/services/raids.js.map +1 -0
  112. package/lib/services/schedule.d.ts +223 -0
  113. package/lib/services/schedule.d.ts.map +1 -0
  114. package/lib/services/schedule.js +2 -0
  115. package/lib/services/schedule.js.map +1 -0
  116. package/lib/services/search.d.ts +89 -0
  117. package/lib/services/search.d.ts.map +1 -0
  118. package/lib/services/search.js +2 -0
  119. package/lib/services/search.js.map +1 -0
  120. package/lib/services/streams.d.ts +235 -0
  121. package/lib/services/streams.d.ts.map +1 -0
  122. package/lib/services/streams.js +2 -0
  123. package/lib/services/streams.js.map +1 -0
  124. package/lib/services/subscriptions.d.ts +96 -0
  125. package/lib/services/subscriptions.d.ts.map +1 -0
  126. package/lib/services/subscriptions.js +2 -0
  127. package/lib/services/subscriptions.js.map +1 -0
  128. package/lib/services/teams.d.ts +90 -0
  129. package/lib/services/teams.d.ts.map +1 -0
  130. package/lib/services/teams.js +2 -0
  131. package/lib/services/teams.js.map +1 -0
  132. package/lib/services/users.d.ts +324 -0
  133. package/lib/services/users.d.ts.map +1 -0
  134. package/lib/services/users.js +2 -0
  135. package/lib/services/users.js.map +1 -0
  136. package/lib/services/videos.d.ts +101 -0
  137. package/lib/services/videos.d.ts.map +1 -0
  138. package/lib/services/videos.js +2 -0
  139. package/lib/services/videos.js.map +1 -0
  140. package/lib/services/whispers.d.ts +17 -0
  141. package/lib/services/whispers.d.ts.map +1 -0
  142. package/lib/services/whispers.js +2 -0
  143. package/lib/services/whispers.js.map +1 -0
  144. package/lib/services.lazy/ads.js +1 -0
  145. package/lib/services.lazy/analytics.js +1 -0
  146. package/lib/services.lazy/bits.js +1 -0
  147. package/lib/services.lazy/ccls.js +1 -0
  148. package/lib/services.lazy/channel_points.js +1 -0
  149. package/lib/services.lazy/channels.js +1 -0
  150. package/lib/services.lazy/charity.js +1 -0
  151. package/lib/services.lazy/chat.js +3 -0
  152. package/lib/services.lazy/clips.js +1 -0
  153. package/lib/services.lazy/conduits.js +1 -0
  154. package/lib/services.lazy/entitlements.js +1 -0
  155. package/lib/services.lazy/eventsub.js +1 -0
  156. package/lib/services.lazy/extensions.js +1 -0
  157. package/lib/services.lazy/games.js +1 -0
  158. package/lib/services.lazy/goals.js +1 -0
  159. package/lib/services.lazy/guest_star.js +1 -0
  160. package/lib/services.lazy/hype_train.js +1 -0
  161. package/lib/services.lazy/index.js +3 -0
  162. package/lib/services.lazy/moderation.js +3 -0
  163. package/lib/services.lazy/polls.js +1 -0
  164. package/lib/services.lazy/predictions.js +1 -0
  165. package/lib/services.lazy/raids.js +1 -0
  166. package/lib/services.lazy/schedule.js +1 -0
  167. package/lib/services.lazy/search.js +1 -0
  168. package/lib/services.lazy/streams.js +1 -0
  169. package/lib/services.lazy/subscriptions.js +1 -0
  170. package/lib/services.lazy/teams.js +1 -0
  171. package/lib/services.lazy/users.js +1 -0
  172. package/lib/services.lazy/videos.js +1 -0
  173. package/lib/services.lazy/whispers.js +1 -0
  174. package/lib/traits.d.ts +10 -0
  175. package/lib/traits.d.ts.map +1 -0
  176. package/lib/traits.js +1 -0
  177. package/package.json +82 -2
  178. package/src/credentials.ts +79 -0
  179. package/src/errors.ts +78 -0
  180. package/src/index.ts +45 -0
  181. package/src/pagination.ts +9 -0
  182. package/src/protocol.ts +43 -0
  183. package/src/retry.ts +69 -0
  184. package/src/services/ads.ts +228 -0
  185. package/src/services/analytics.ts +253 -0
  186. package/src/services/bits.ts +631 -0
  187. package/src/services/ccls.ts +96 -0
  188. package/src/services/channel_points.ts +804 -0
  189. package/src/services/channels.ts +471 -0
  190. package/src/services/charity.ts +250 -0
  191. package/src/services/chat.ts +1547 -0
  192. package/src/services/clips.ts +385 -0
  193. package/src/services/conduits.ts +453 -0
  194. package/src/services/entitlements.ts +219 -0
  195. package/src/services/eventsub.ts +372 -0
  196. package/src/services/extensions.ts +1098 -0
  197. package/src/services/games.ts +184 -0
  198. package/src/services/goals.ts +110 -0
  199. package/src/services/guest_star.ts +762 -0
  200. package/src/services/hype_train.ts +214 -0
  201. package/src/services/index.ts +30 -0
  202. package/src/services/moderation.ts +1817 -0
  203. package/src/services/polls.ts +363 -0
  204. package/src/services/predictions.ts +432 -0
  205. package/src/services/raids.ts +127 -0
  206. package/src/services/schedule.ts +539 -0
  207. package/src/services/search.ts +248 -0
  208. package/src/services/streams.ts +579 -0
  209. package/src/services/subscriptions.ts +247 -0
  210. package/src/services/teams.ts +225 -0
  211. package/src/services/users.ts +729 -0
  212. package/src/services/videos.ts +257 -0
  213. package/src/services/whispers.ts +71 -0
  214. package/src/traits.ts +47 -0
@@ -0,0 +1,638 @@
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 GetChannelChatBadgesRequest {
5
+ /** The ID of the broadcaster whose chat badges you want to get. */
6
+ broadcaster_id: string;
7
+ }
8
+ export interface GetChannelChatBadgesResponseDataItemVersionsItem {
9
+ /** An ID that identifies this version of the badge. The ID can be any value. For example, for Bits, the ID is the Bits tier level, but for World of Warcraft, it could be Alliance or Horde. */
10
+ id?: string | undefined;
11
+ /** A URL to the small version (18px x 18px) of the badge. */
12
+ image_url_1x?: string | undefined;
13
+ /** A URL to the medium version (36px x 36px) of the badge. */
14
+ image_url_2x?: string | undefined;
15
+ /** A URL to the large version (72px x 72px) of the badge. */
16
+ image_url_4x?: string | undefined;
17
+ /** The title of the badge. */
18
+ title?: string | undefined;
19
+ /** The description of the badge. */
20
+ description?: string | undefined;
21
+ /** The action to take when clicking on the badge. Set to **null** if no action is specified. */
22
+ click_action?: string | null | undefined;
23
+ /** The URL to navigate to when clicking on the badge. Set to **null** if no URL is specified. */
24
+ click_url?: string | null | undefined;
25
+ }
26
+ /** The list of chat badges in this set. */
27
+ export type GetChannelChatBadgesResponseDataItemVersionsList = Array<GetChannelChatBadgesResponseDataItemVersionsItem>;
28
+ export interface GetChannelChatBadgesResponseDataItem {
29
+ /** An ID that identifies this set of chat badges. For example, Bits or Subscriber. */
30
+ set_id?: string | undefined;
31
+ /** The list of chat badges in this set. */
32
+ versions?: GetChannelChatBadgesResponseDataItemVersionsList | undefined;
33
+ }
34
+ /** The list of chat badges. The list is sorted in ascending order by `set_id`, and within a set, the list is sorted in ascending order by `id`. The IDs are compared as strings, not as numbers, so '10000' sorts before '5000'. */
35
+ export type GetChannelChatBadgesResponseDataList = Array<GetChannelChatBadgesResponseDataItem>;
36
+ export interface GetChannelChatBadgesResponse {
37
+ /** The list of chat badges. The list is sorted in ascending order by `set_id`, and within a set, the list is sorted in ascending order by `id`. The IDs are compared as strings, not as numbers, so '10000' sorts before '5000'. */
38
+ data?: GetChannelChatBadgesResponseDataList | undefined;
39
+ }
40
+ export interface GetChannelEmotesRequest {
41
+ /** An ID that identifies the broadcaster whose emotes you want to get. */
42
+ broadcaster_id: string;
43
+ }
44
+ /** The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. */
45
+ export interface GetChannelEmotesResponseDataItemImages {
46
+ /** A URL to the small version (28px x 28px) of the emote. */
47
+ url_1x?: string | undefined;
48
+ /** A URL to the medium version (56px x 56px) of the emote. */
49
+ url_2x?: string | undefined;
50
+ /** A URL to the large version (112px x 112px) of the emote. */
51
+ url_4x?: string | undefined;
52
+ }
53
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only **static**. But if the emote is available as a static PNG and an animated GIF, the array contains **static** and **animated**. The possible formats are: - animated -- An animated GIF is available for this emote. - static -- A static PNG file is available for this emote. */
54
+ export type GetChannelEmotesResponseDataItemFormatList = Array<string>;
55
+ /** The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0. Possible sizes are: - 1.0 -- A small version (28px x 28px) is available. - 2.0 -- A medium version (56px x 56px) is available. - 3.0 -- A large version (112px x 112px) is available. */
56
+ export type GetChannelEmotesResponseDataItemScaleList = Array<string>;
57
+ /** The background themes that the emote is available in. Possible themes are: - dark - light */
58
+ export type GetChannelEmotesResponseDataItemThemeModeList = Array<string>;
59
+ export interface GetChannelEmotesResponseDataItem {
60
+ /** An ID that identifies this emote. */
61
+ id?: string | undefined;
62
+ /** The name of the emote. This is the name that viewers type in the chat window to get the emote to appear. */
63
+ name?: string | undefined;
64
+ /** The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. */
65
+ images?: GetChannelEmotesResponseDataItemImages | undefined;
66
+ /** The subscriber tier at which the emote is unlocked. This field contains the tier information only if `emote_type` is set to **subscriptions**, otherwise, it's an empty string. */
67
+ tier?: string | undefined;
68
+ /** The type of emote. Possible values: - `none`: No emote type was assigned to this emote. - `bitstier`: A custom Bits tier emote. - `follower`: A custom follower emote. - `subscriptions`: A custom subscriber emote. - `channelpoints`: An emote granted by using channel points. - `rewards`: An emote granted to the user through a special event. - `hypetrain`: An emote granted for participation in a Hype Train. - `prime`: An emote granted for linking an Amazon Prime account. - `turbo`: An emote granted for having Twitch Turbo. - `smilies`: Emoticons supported by Twitch. - `globals`: An emote accessible by everyone. - `owl2019`: Emotes related to Overwatch League 2019. - `twofactor`: Emotes granted by enabling two-factor authentication on an account. - `limitedtime`: Emotes that were granted for only a limited time. */
69
+ emote_type?: string | undefined;
70
+ /** An ID that identifies the emote set that the emote belongs to. */
71
+ emote_set_id?: string | undefined;
72
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only **static**. But if the emote is available as a static PNG and an animated GIF, the array contains **static** and **animated**. The possible formats are: - animated -- An animated GIF is available for this emote. - static -- A static PNG file is available for this emote. */
73
+ format?: GetChannelEmotesResponseDataItemFormatList | undefined;
74
+ /** The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0. Possible sizes are: - 1.0 -- A small version (28px x 28px) is available. - 2.0 -- A medium version (56px x 56px) is available. - 3.0 -- A large version (112px x 112px) is available. */
75
+ scale?: GetChannelEmotesResponseDataItemScaleList | undefined;
76
+ /** The background themes that the emote is available in. Possible themes are: - dark - light */
77
+ theme_mode?: GetChannelEmotesResponseDataItemThemeModeList | undefined;
78
+ }
79
+ /** The list of emotes that the specified broadcaster created. If the broadcaster hasn't created custom emotes, the list is empty. */
80
+ export type GetChannelEmotesResponseDataList = Array<GetChannelEmotesResponseDataItem>;
81
+ export interface GetChannelEmotesResponse {
82
+ /** The list of emotes that the specified broadcaster created. If the broadcaster hasn't created custom emotes, the list is empty. */
83
+ data?: GetChannelEmotesResponseDataList | undefined;
84
+ /** A templated URL. Use the values from the `id`, `format`, `scale`, and `theme_mode` fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL format](https://dev.twitch.tv/docs/chat/send-receive-messages.md#handling-emotes). You should use this template instead of using the URLs in the `images` object. */
85
+ template?: string | undefined;
86
+ }
87
+ export interface GetChatSettingsRequest {
88
+ /** The ID of the broadcaster whose chat settings you want to get. */
89
+ broadcaster_id: string;
90
+ /** The ID of the broadcaster or one of the broadcaster's moderators. This field is required only if you want to include the `non_moderator_chat_delay` and `non_moderator_chat_delay_duration` settings in the response. To get these settings, this ID must match the user ID in the user access token. If it doesn't, or if you use an app access token, the request still succeeds but the response doesn't include these settings. */
91
+ moderator_id?: string | undefined;
92
+ }
93
+ export interface GetChatSettingsResponseDataItem {
94
+ /** The ID of the broadcaster specified in the request. */
95
+ broadcaster_id?: string | undefined;
96
+ /** A Boolean value that determines whether chat messages must contain only emotes. Is **true** if chat messages may contain only emotes; otherwise, **false**. */
97
+ emote_mode?: boolean | undefined;
98
+ /** A Boolean value that determines whether the broadcaster restricts the chat room to followers only. Is **true** if the broadcaster restricts the chat room to followers only; otherwise, **false**. See the `follower_mode_duration` field for how long users must follow the broadcaster before being able to participate in the chat room. */
99
+ follower_mode?: boolean | undefined;
100
+ /** The length of time, in minutes, that users must follow the broadcaster before being able to participate in the chat room. Is **null** if `follower_mode` is **false**. */
101
+ follower_mode_duration?: number | null | undefined;
102
+ /** The moderator's ID. The response includes this field only if it also includes the `non_moderator_chat_delay` and `non_moderator_chat_delay_duration` fields. */
103
+ moderator_id?: string | undefined;
104
+ /** A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message. See the `non_moderator_chat_delay_duration` field for the length of the delay. Is **true** if the broadcaster applies a delay; otherwise, **false**. The response includes this field only if the request specifies a user access token that includes the **moderator:read:chat_settings** or **moderator:manage:chat_settings** scope, the ID in the *moderator_id* query parameter matches the user ID in the token, and that user is the broadcaster or a moderator with permission to view the chat delay settings. */
105
+ non_moderator_chat_delay?: boolean | undefined;
106
+ /** The amount of time, in seconds, that messages are delayed before appearing in chat. Is **null** if `non_moderator_chat_delay` is **false**. The response includes this field only if the request specifies a user access token that includes the **moderator:read:chat_settings** or **moderator:manage:chat_settings** scope, the ID in the *moderator_id* query parameter matches the user ID in the token, and that user is the broadcaster or a moderator with permission to view the chat delay settings. */
107
+ non_moderator_chat_delay_duration?: number | null | undefined;
108
+ /** A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages. Is **true** if the broadcaster applies a delay; otherwise, **false**. See the `slow_mode_wait_time` field for the delay. */
109
+ slow_mode?: boolean | undefined;
110
+ /** The amount of time, in seconds, that users must wait between sending messages. Is **null** if slow_mode is **false**. */
111
+ slow_mode_wait_time?: number | null | undefined;
112
+ /** A Boolean value that determines whether only users that subscribe to the broadcaster's channel may talk in the chat room. Is **true** if the broadcaster restricts the chat room to subscribers only; otherwise, **false**. */
113
+ subscriber_mode?: boolean | undefined;
114
+ /** A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room. Is **true** if the broadcaster requires unique messages only; otherwise, **false**. */
115
+ unique_chat_mode?: boolean | undefined;
116
+ }
117
+ /** The list of chat settings. The list contains a single object with all the settings. */
118
+ export type GetChatSettingsResponseDataList = Array<GetChatSettingsResponseDataItem>;
119
+ export interface GetChatSettingsResponse {
120
+ /** The list of chat settings. The list contains a single object with all the settings. */
121
+ data?: GetChatSettingsResponseDataList | undefined;
122
+ }
123
+ export interface GetChattersRequest {
124
+ /** The ID of the broadcaster whose list of chatters you want to get. */
125
+ broadcaster_id: string;
126
+ /** The ID of the broadcaster or one of the broadcaster's moderators. This ID must match the user ID in the user access token. */
127
+ moderator_id: string;
128
+ /** 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 1,000. The default is 100. */
129
+ first?: number | undefined;
130
+ /** 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) */
131
+ after?: string | undefined;
132
+ }
133
+ export interface GetChattersResponseDataItem {
134
+ /** The ID of a user that's connected to the broadcaster's chat room. */
135
+ user_id?: string | undefined;
136
+ /** The user's login name. */
137
+ user_login?: string | undefined;
138
+ /** The user's display name. */
139
+ user_name?: string | undefined;
140
+ }
141
+ /** The list of users that are connected to the broadcaster's chat room. The list is empty if no users are connected to the chat room. */
142
+ export type GetChattersResponseDataList = Array<GetChattersResponseDataItem>;
143
+ /** 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) */
144
+ export interface GetChattersResponsePagination {
145
+ /** The cursor used to get the next page of results. Use the cursor to set the request's *after* query parameter. */
146
+ cursor?: string | undefined;
147
+ }
148
+ export interface GetChattersResponse {
149
+ /** The list of users that are connected to the broadcaster's chat room. The list is empty if no users are connected to the chat room. */
150
+ data: GetChattersResponseDataList;
151
+ /** 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) */
152
+ pagination?: GetChattersResponsePagination | undefined;
153
+ /** The total number of users that are connected to the broadcaster's chat room. As you page through the list, the number of users may change as users join and leave the chat room. */
154
+ total?: number | undefined;
155
+ }
156
+ export type GetEmoteSetsRequestEmoteSetIdList = Array<string>;
157
+ export interface GetEmoteSetsRequest {
158
+ /** An ID that identifies the emote set to get. Include this parameter for each emote set you want to get. For example, 'emote_set_id=1234&emote_set_id=5678'. You may specify a maximum of 25 IDs. The response contains only the IDs that were found and ignores duplicate IDs. To get emote set IDs, use the [Get Channel Emotes](#get-channel-emotes) API. */
159
+ emote_set_id: GetEmoteSetsRequestEmoteSetIdList;
160
+ }
161
+ /** The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. */
162
+ export type GetEmoteSetsResponseDataItemImages = GetChannelEmotesResponseDataItemImages;
163
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only **static**. But if the emote is available as a static PNG and an animated GIF, the array contains **static** and **animated**. The possible formats are: - animated &mdash; An animated GIF is available for this emote. - static &mdash; A static PNG file is available for this emote. */
164
+ export type GetEmoteSetsResponseDataItemFormatList = Array<string>;
165
+ /** The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0. Possible sizes are: - 1.0 &mdash; A small version (28px x 28px) is available. - 2.0 &mdash; A medium version (56px x 56px) is available. - 3.0 &mdash; A large version (112px x 112px) is available. */
166
+ export type GetEmoteSetsResponseDataItemScaleList = Array<string>;
167
+ /** The background themes that the emote is available in. Possible themes are: - dark - light */
168
+ export type GetEmoteSetsResponseDataItemThemeModeList = Array<string>;
169
+ export interface GetEmoteSetsResponseDataItem {
170
+ /** An ID that uniquely identifies this emote. */
171
+ id?: string | undefined;
172
+ /** The name of the emote. This is the name that viewers type in the chat window to get the emote to appear. */
173
+ name?: string | undefined;
174
+ /** The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. */
175
+ images?: GetChannelEmotesResponseDataItemImages | undefined;
176
+ /** The type of emote. Possible values: - `none`: No emote type was assigned to this emote. - `bitstier`: A Bits tier emote. - `follower`: A follower emote. - `subscriptions`: A subscriber emote. - `channelpoints`: An emote granted by using channel points. - `rewards`: An emote granted to the user through a special event. - `hypetrain`: An emote granted for participation in a Hype Train. - `prime`: An emote granted for linking an Amazon Prime account. - `turbo`: An emote granted for having Twitch Turbo. - `smilies`: Emoticons supported by Twitch. - `globals`: An emote accessible by everyone. - `owl2019`: Emotes related to Overwatch League 2019. - `twofactor`: Emotes granted by enabling two-factor authentication on an account. - `limitedtime`: Emotes that were granted for only a limited time. */
177
+ emote_type?: string | undefined;
178
+ /** An ID that identifies the emote set that the emote belongs to. */
179
+ emote_set_id?: string | undefined;
180
+ /** The ID of the broadcaster who owns the emote. */
181
+ owner_id?: string | undefined;
182
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only **static**. But if the emote is available as a static PNG and an animated GIF, the array contains **static** and **animated**. The possible formats are: - animated &mdash; An animated GIF is available for this emote. - static &mdash; A static PNG file is available for this emote. */
183
+ format?: GetEmoteSetsResponseDataItemFormatList | undefined;
184
+ /** The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0. Possible sizes are: - 1.0 &mdash; A small version (28px x 28px) is available. - 2.0 &mdash; A medium version (56px x 56px) is available. - 3.0 &mdash; A large version (112px x 112px) is available. */
185
+ scale?: GetEmoteSetsResponseDataItemScaleList | undefined;
186
+ /** The background themes that the emote is available in. Possible themes are: - dark - light */
187
+ theme_mode?: GetEmoteSetsResponseDataItemThemeModeList | undefined;
188
+ }
189
+ /** The list of emotes found in the specified emote sets. The list is empty if none of the IDs were found. Emotes from the same set are listed together, but the sets aren't in any particular order and may not match the order of the IDs in the request. Each set contains one or more emoticons. */
190
+ export type GetEmoteSetsResponseDataList = Array<GetEmoteSetsResponseDataItem>;
191
+ export interface GetEmoteSetsResponse {
192
+ /** The list of emotes found in the specified emote sets. The list is empty if none of the IDs were found. Emotes from the same set are listed together, but the sets aren't in any particular order and may not match the order of the IDs in the request. Each set contains one or more emoticons. */
193
+ data?: GetEmoteSetsResponseDataList | undefined;
194
+ /** A templated URL. Use the values from the `id`, `format`, `scale`, and `theme_mode` fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL format](https://dev.twitch.tv/docs/chat/send-receive-messages.md#handling-emotes). You should use this template instead of using the URLs in the `images` object. */
195
+ template?: string | undefined;
196
+ }
197
+ export interface GetGlobalChatBadgesRequest {
198
+ }
199
+ export type GetGlobalChatBadgesResponseDataItemVersionsItem = GetChannelChatBadgesResponseDataItemVersionsItem;
200
+ /** The list of chat badges in this set. */
201
+ export type GetGlobalChatBadgesResponseDataItemVersionsList = Array<GetChannelChatBadgesResponseDataItemVersionsItem>;
202
+ export interface GetGlobalChatBadgesResponseDataItem {
203
+ /** An ID that identifies this set of chat badges. For example, Bits or Subscriber. */
204
+ set_id?: string | undefined;
205
+ /** The list of chat badges in this set. */
206
+ versions?: GetGlobalChatBadgesResponseDataItemVersionsList | undefined;
207
+ }
208
+ /** The list of chat badges. The list is sorted in ascending order by `set_id`, and within a set, the list is sorted in ascending order by `id`. The IDs are compared as strings, not as numbers, so '10000' sorts before '5000'. */
209
+ export type GetGlobalChatBadgesResponseDataList = Array<GetGlobalChatBadgesResponseDataItem>;
210
+ export interface GetGlobalChatBadgesResponse {
211
+ /** The list of chat badges. The list is sorted in ascending order by `set_id`, and within a set, the list is sorted in ascending order by `id`. The IDs are compared as strings, not as numbers, so '10000' sorts before '5000'. */
212
+ data?: GetGlobalChatBadgesResponseDataList | undefined;
213
+ }
214
+ export interface GetGlobalEmotesRequest {
215
+ }
216
+ /** The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. */
217
+ export type GetGlobalEmotesResponseDataItemImages = GetChannelEmotesResponseDataItemImages;
218
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only **static**. But if the emote is available as a static PNG and an animated GIF, the array contains **static** and **animated**. The possible formats are: - animated -- An animated GIF is available for this emote. - static -- A static PNG file is available for this emote. */
219
+ export type GetGlobalEmotesResponseDataItemFormatList = Array<string>;
220
+ /** The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0. Possible sizes are: - 1.0 -- A small version (28px x 28px) is available. - 2.0 -- A medium version (56px x 56px) is available. - 3.0 -- A large version (112px x 112px) is available. */
221
+ export type GetGlobalEmotesResponseDataItemScaleList = Array<string>;
222
+ /** The background themes that the emote is available in. Possible themes are: - dark - light */
223
+ export type GetGlobalEmotesResponseDataItemThemeModeList = Array<string>;
224
+ export interface GetGlobalEmotesResponseDataItem {
225
+ /** An ID that identifies this emote. */
226
+ id?: string | undefined;
227
+ /** The name of the emote. This is the name that viewers type in the chat window to get the emote to appear. */
228
+ name?: string | undefined;
229
+ /** The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. */
230
+ images?: GetChannelEmotesResponseDataItemImages | undefined;
231
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only **static**. But if the emote is available as a static PNG and an animated GIF, the array contains **static** and **animated**. The possible formats are: - animated -- An animated GIF is available for this emote. - static -- A static PNG file is available for this emote. */
232
+ format?: GetGlobalEmotesResponseDataItemFormatList | undefined;
233
+ /** The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0. Possible sizes are: - 1.0 -- A small version (28px x 28px) is available. - 2.0 -- A medium version (56px x 56px) is available. - 3.0 -- A large version (112px x 112px) is available. */
234
+ scale?: GetGlobalEmotesResponseDataItemScaleList | undefined;
235
+ /** The background themes that the emote is available in. Possible themes are: - dark - light */
236
+ theme_mode?: GetGlobalEmotesResponseDataItemThemeModeList | undefined;
237
+ }
238
+ /** The list of global emotes. */
239
+ export type GetGlobalEmotesResponseDataList = Array<GetGlobalEmotesResponseDataItem>;
240
+ export interface GetGlobalEmotesResponse {
241
+ /** The list of global emotes. */
242
+ data?: GetGlobalEmotesResponseDataList | undefined;
243
+ /** A templated URL. Use the values from the `id`, `format`, `scale`, and `theme_mode` fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL format](https://dev.twitch.tv/docs/chat/send-receive-messages.md#handling-emotes). You should use this template instead of using the URLs in the `images` object. */
244
+ template?: string | undefined;
245
+ }
246
+ export interface GetPinnedChatMessageRequest {
247
+ /** The ID of the broadcaster that owns the chat room. */
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
+ }
252
+ /** Cheermote metadata. Null if not a cheermote fragment. */
253
+ export interface GetPinnedChatMessageResponseDataItemMessageFragmentsItemCheermote {
254
+ /** The cheermote prefix. */
255
+ prefix?: string | undefined;
256
+ /** The number of bits cheered. */
257
+ bits?: number | undefined;
258
+ /** The cheermote tier. */
259
+ tier?: number | undefined;
260
+ }
261
+ /** The emote's format, as a single-item list: **animated** if the emote is animated; otherwise, **static**. */
262
+ export type GetPinnedChatMessageResponseDataItemMessageFragmentsItemEmoteFormatList = Array<string>;
263
+ /** Emote metadata. Null if not an emote fragment. */
264
+ export interface GetPinnedChatMessageResponseDataItemMessageFragmentsItemEmote {
265
+ /** The emote ID. */
266
+ id?: string | undefined;
267
+ /** The emote set ID. */
268
+ emote_set_id?: string | undefined;
269
+ /** The ID of the emote owner. */
270
+ owner_id?: string | undefined;
271
+ /** The emote's format, as a single-item list: **animated** if the emote is animated; otherwise, **static**. */
272
+ format?: GetPinnedChatMessageResponseDataItemMessageFragmentsItemEmoteFormatList | undefined;
273
+ }
274
+ /** Mention metadata. Null if not a mention fragment. */
275
+ export interface GetPinnedChatMessageResponseDataItemMessageFragmentsItemMention {
276
+ /** The mentioned user's ID. */
277
+ user_id?: string | undefined;
278
+ /** The mentioned user's login. */
279
+ user_login?: string | undefined;
280
+ /** The mentioned user's display name. */
281
+ user_name?: string | undefined;
282
+ }
283
+ export interface GetPinnedChatMessageResponseDataItemMessageFragmentsItem {
284
+ /** The fragment type. Possible values: - `text` - `emote` - `cheermote` - `mention` */
285
+ type?: string | undefined;
286
+ /** Fragment text. */
287
+ text?: string | undefined;
288
+ /** Cheermote metadata. Null if not a cheermote fragment. */
289
+ cheermote?: GetPinnedChatMessageResponseDataItemMessageFragmentsItemCheermote | null | undefined;
290
+ /** Emote metadata. Null if not an emote fragment. */
291
+ emote?: GetPinnedChatMessageResponseDataItemMessageFragmentsItemEmote | null | undefined;
292
+ /** Mention metadata. Null if not a mention fragment. */
293
+ mention?: GetPinnedChatMessageResponseDataItemMessageFragmentsItemMention | null | undefined;
294
+ }
295
+ /** Ordered list of message fragments. */
296
+ export type GetPinnedChatMessageResponseDataItemMessageFragmentsList = Array<GetPinnedChatMessageResponseDataItemMessageFragmentsItem>;
297
+ /** The pinned message content. Null if the content isn't available. */
298
+ export interface GetPinnedChatMessageResponseDataItemMessage {
299
+ /** Plain text of the message. */
300
+ text?: string | undefined;
301
+ /** Ordered list of message fragments. */
302
+ fragments?: GetPinnedChatMessageResponseDataItemMessageFragmentsList | undefined;
303
+ }
304
+ export interface GetPinnedChatMessageResponseDataItem {
305
+ /** The ID of the pinned chat message. */
306
+ message_id?: string | undefined;
307
+ /** The ID of the broadcaster. */
308
+ broadcaster_id?: string | undefined;
309
+ /** The ID of the user who sent the pinned message. */
310
+ sender_user_id?: string | undefined;
311
+ /** The login of the user who sent the pinned message. */
312
+ sender_user_login?: string | undefined;
313
+ /** The display name of the user who sent the pinned message. */
314
+ sender_user_name?: string | undefined;
315
+ /** The ID of the user who pinned the message. */
316
+ pinned_by_user_id?: string | undefined;
317
+ /** The login of the user who pinned the message. */
318
+ pinned_by_user_login?: string | undefined;
319
+ /** The display name of the user who pinned the message. */
320
+ pinned_by_user_name?: string | undefined;
321
+ /** The pinned message content. Null if the content isn't available. */
322
+ message?: GetPinnedChatMessageResponseDataItemMessage | null | undefined;
323
+ /** RFC3339 timestamp of when the message was pinned. */
324
+ starts_at?: string | undefined;
325
+ /** RFC3339 expiry timestamp. Null if pinned until stream ends. */
326
+ ends_at?: string | null | undefined;
327
+ /** RFC3339 timestamp of last update. */
328
+ updated_at?: string | undefined;
329
+ }
330
+ /** Pinned messages. Empty if none pinned. */
331
+ export type GetPinnedChatMessageResponseDataList = Array<GetPinnedChatMessageResponseDataItem>;
332
+ export interface GetPinnedChatMessageResponse {
333
+ /** Pinned messages. Empty if none pinned. */
334
+ data?: GetPinnedChatMessageResponseDataList | undefined;
335
+ }
336
+ export interface GetSharedChatSessionRequest {
337
+ /** The User ID of the channel broadcaster. */
338
+ broadcaster_id: string;
339
+ }
340
+ export interface GetSharedChatSessionResponseDataItemParticipantsItem {
341
+ /** The User ID of the participant channel. */
342
+ broadcaster_id?: string | undefined;
343
+ }
344
+ /** The list of channels that are active participants in the session. Channels that were invited but haven't joined, or that left the session, aren't included. */
345
+ export type GetSharedChatSessionResponseDataItemParticipantsList = Array<GetSharedChatSessionResponseDataItemParticipantsItem>;
346
+ export interface GetSharedChatSessionResponseDataItem {
347
+ /** The unique identifier for the shared chat session. */
348
+ session_id?: string | undefined;
349
+ /** The User ID of the host channel. */
350
+ host_broadcaster_id?: string | undefined;
351
+ /** The list of channels that are active participants in the session. Channels that were invited but haven't joined, or that left the session, aren't included. */
352
+ participants?: GetSharedChatSessionResponseDataItemParticipantsList | undefined;
353
+ /** The UTC date and time (in RFC3339 format) for when the session was created. The timestamp may include fractional seconds. */
354
+ created_at?: string | undefined;
355
+ /** The UTC date and time (in RFC3339 format) for when the session was last updated. The timestamp may include fractional seconds. */
356
+ updated_at?: string | undefined;
357
+ }
358
+ export type GetSharedChatSessionResponseDataList = Array<GetSharedChatSessionResponseDataItem>;
359
+ export interface GetSharedChatSessionResponse {
360
+ data?: GetSharedChatSessionResponseDataList | undefined;
361
+ }
362
+ export type GetUserChatColorRequestUserIdList = Array<string>;
363
+ export interface GetUserChatColorRequest {
364
+ /** The ID of the user whose username color you want to get. To specify more than one user, include the *user_id* parameter for each user to get. For example, '&user_id=1234&user_id=5678'. The maximum number of IDs that you may specify is 100. The API ignores duplicate IDs and IDs that weren't found, but duplicate IDs count toward the maximum. */
365
+ user_id: GetUserChatColorRequestUserIdList;
366
+ }
367
+ export interface GetUserChatColorResponseDataItem {
368
+ /** An ID that uniquely identifies the user. */
369
+ user_id?: string | undefined;
370
+ /** The user's login name. */
371
+ user_login?: string | undefined;
372
+ /** The user's display name. */
373
+ user_name?: string | undefined;
374
+ /** The Hex color code that the user uses in chat for their name. If the user hasn't specified a color in their settings, the string is empty. */
375
+ color?: string | undefined;
376
+ }
377
+ /** The list of users and the color code they use for their name. Is **null** if none of the specified users were found. */
378
+ export type GetUserChatColorResponseDataList = Array<GetUserChatColorResponseDataItem>;
379
+ export interface GetUserChatColorResponse {
380
+ /** The list of users and the color code they use for their name. Is **null** if none of the specified users were found. */
381
+ data?: GetUserChatColorResponseDataList | null | undefined;
382
+ }
383
+ export interface GetUserEmotesRequest {
384
+ /** The ID of the user. This ID must match the user ID in the user access token. */
385
+ user_id: string;
386
+ /** The cursor used to get the next page of results. The Pagination object in the response contains the cursor's value. */
387
+ after?: string | undefined;
388
+ /** The User ID of a broadcaster you wish to get follower emotes of. Using this query parameter adds the broadcaster's follower emotes to the first page of results, if the user has access to them, for example, because the user follows the broadcaster. **Note:** The response includes a broadcaster's follower emotes only if you specify that broadcaster in this parameter. Subscribing to the broadcaster doesn't add them. */
389
+ broadcaster_id?: string | undefined;
390
+ }
391
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only static. But if the emote is available as a static PNG and an animated GIF, the array contains static and animated. - **animated** -- An animated GIF is available for this emote. - **static** -- A static PNG file is available for this emote. */
392
+ export type GetUserEmotesResponseDataItemFormatList = Array<string>;
393
+ /** The sizes that the emote is available in. The array always contains all three sizes. - **1.0** -- A small version (28px x 28px) is available. - **2.0** -- A medium version (56px x 56px) is available. - **3.0** -- A large version (112px x 112px) is available. */
394
+ export type GetUserEmotesResponseDataItemScaleList = Array<string>;
395
+ /** The background themes that the emote is available in. The array always contains both themes. - **dark** - **light** */
396
+ export type GetUserEmotesResponseDataItemThemeModeList = Array<string>;
397
+ export interface GetUserEmotesResponseDataItem {
398
+ /** An ID that uniquely identifies this emote. */
399
+ id?: string | undefined;
400
+ /** The case-sensitive name of the emote. This is the name that viewers type in the chat window to get the emote to appear. */
401
+ name?: string | undefined;
402
+ /** The type of emote. If the emote's type is not one of the following values, this field is an empty string. Possible values: - `none`: No emote type was assigned to this emote. - `bitstier`: A Bits tier emote. - `follower`: A follower emote. - `subscriptions`: A subscriber emote. - `channelpoints`: An emote granted by using channel points. - `rewards`: An emote granted to the user through a special event. - `hypetrain`: An emote granted for participation in a Hype Train. - `prime`: An emote granted for linking an Amazon Prime account. - `turbo`: An emote granted for having Twitch Turbo. - `smilies`: Emoticons supported by Twitch. - `globals`: An emote accessible by everyone. - `owl2019`: Emotes related to Overwatch League 2019. - `twofactor`: Emotes granted by enabling two-factor authentication on an account. - `limitedtime`: Emotes that were granted for only a limited time. */
403
+ emote_type?: string | undefined;
404
+ /** An ID that identifies the emote set that the emote belongs to. If the emote does not belong to a set, this field will be an empty string. */
405
+ emote_set_id?: string | undefined;
406
+ /** The ID of the broadcaster who owns the emote. If this emote does not have an owner, this field will be an empty string. */
407
+ owner_id?: string | undefined;
408
+ /** The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only static. But if the emote is available as a static PNG and an animated GIF, the array contains static and animated. - **animated** -- An animated GIF is available for this emote. - **static** -- A static PNG file is available for this emote. */
409
+ format?: GetUserEmotesResponseDataItemFormatList | undefined;
410
+ /** The sizes that the emote is available in. The array always contains all three sizes. - **1.0** -- A small version (28px x 28px) is available. - **2.0** -- A medium version (56px x 56px) is available. - **3.0** -- A large version (112px x 112px) is available. */
411
+ scale?: GetUserEmotesResponseDataItemScaleList | undefined;
412
+ /** The background themes that the emote is available in. The array always contains both themes. - **dark** - **light** */
413
+ theme_mode?: GetUserEmotesResponseDataItemThemeModeList | undefined;
414
+ }
415
+ export type GetUserEmotesResponseDataList = Array<GetUserEmotesResponseDataItem>;
416
+ /** 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. For more information about pagination support, see [Twitch API Guide - Pagination](https://dev.twitch.tv/docs/api/guide.md#pagination). */
417
+ export interface GetUserEmotesResponsePagination {
418
+ /** The cursor used to get the next page of results. Use the cursor to set the request's after query parameter. */
419
+ cursor?: string | undefined;
420
+ }
421
+ export interface GetUserEmotesResponse {
422
+ data: GetUserEmotesResponseDataList;
423
+ /** A templated URL. Uses the values from the `id`, `format`, `scale`, and `theme_mode` fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL](https://dev.twitch.tv/docs/chat/send-receive-messages.md#handling-emotes) format. */
424
+ template?: string | undefined;
425
+ /** 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. For more information about pagination support, see [Twitch API Guide - Pagination](https://dev.twitch.tv/docs/api/guide.md#pagination). */
426
+ pagination?: GetUserEmotesResponsePagination | undefined;
427
+ }
428
+ export interface PinChatMessageRequest {
429
+ /** The ID of the broadcaster that owns the chat room. */
430
+ broadcaster_id: string;
431
+ /** 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. */
432
+ moderator_id: string;
433
+ /** The ID of the message to pin. */
434
+ message_id: string;
435
+ /** The number of seconds the message should be pinned for. Minimum: 30. Maximum: 1800. If not specified, the message will be pinned until the stream ends. */
436
+ duration_seconds?: number | undefined;
437
+ }
438
+ export interface PinChatMessageResponse {
439
+ }
440
+ export interface SendAShoutoutRequest {
441
+ /** The ID of the broadcaster that's sending the Shoutout. */
442
+ from_broadcaster_id: string;
443
+ /** The ID of the broadcaster that's receiving the Shoutout. */
444
+ to_broadcaster_id: string;
445
+ /** The ID of the broadcaster or a user that is one of the broadcaster's moderators. This ID must match the user ID in the access token. */
446
+ moderator_id: string;
447
+ }
448
+ export interface SendAShoutoutResponse {
449
+ }
450
+ export interface SendChatAnnouncementRequest {
451
+ /** The ID of the broadcaster that owns the chat room to send the announcement to. */
452
+ broadcaster_id: string;
453
+ /** The ID of a user who has permission to moderate the broadcaster's chat room, or the broadcaster's ID if they're sending the announcement. This ID must match the user ID in the user access token. */
454
+ moderator_id: string;
455
+ /** The announcement to make in the broadcaster's chat room. Announcements are limited to a maximum of 500 characters; announcements longer than 500 characters are truncated. */
456
+ message: string;
457
+ /** The color used to highlight the announcement. Possible values: - `blue` - `green` - `orange` - `purple` - `primary`: This is the default value. */
458
+ color?: string | undefined;
459
+ /** **NOTE:** This parameter can only be set when utilizing an App Access Token. It cannot be specified when a User Access Token is used, and will instead result in an HTTP 400 error. Determines if the chat announcement is sent only to the source channel (defined by *broadcaster_id*) during a shared chat session. This has no effect if the announcement is not sent during a shared chat session. The default value when using an App Access Token is **true**. If you prefer to send an announcement to all channels in a shared chat session, set this parameter to **false**. */
460
+ for_source_only?: boolean | undefined;
461
+ }
462
+ export interface SendChatAnnouncementResponse {
463
+ }
464
+ export interface SendChatMessageRequest {
465
+ /** The ID of the broadcaster whose chat room the message will be sent to. */
466
+ broadcaster_id: string;
467
+ /** The ID of the user sending the message. This ID must match the user ID in the user access token. */
468
+ sender_id: string;
469
+ /** The message to send. The message is limited to a maximum of 500 characters. Chat messages can also include emoticons. To include emoticons, use the name of the emote. The names are case sensitive. Don't include colons around the name (e.g., :bleedPurple:). If Twitch recognizes the name, Twitch converts the name to the emote before writing the chat message to the chat room */
470
+ message: string;
471
+ /** The ID of the chat message being replied to. */
472
+ reply_parent_message_id?: string | undefined;
473
+ /** **NOTE:** This parameter can only be set when utilizing an App Access Token. It cannot be specified when a User Access Token is used, and will instead result in an HTTP 400 error. Determines if the chat message is sent only to the source channel (defined by *broadcaster_id*) during a shared chat session. This has no effect if the message is not sent during a shared chat session. If this parameter is not set, the default value when using an App Access Token is **true**. If you prefer to send a chat message to all channels in a shared chat session, set this parameter to **false**. */
474
+ for_source_only?: boolean | undefined;
475
+ /** NEW If true, the message will be sent and immediately pinned. Default: false. Cannot be combined with *reply_parent_message_id* or *for_source_only*. When *pin* is true, additionally requires the **moderator:manage:chat_messages** scope and the sender must be the broadcaster or a moderator. Messages pinned via this endpoint are always pinned for 20 minutes. If the pin fails, the message is not sent. */
476
+ pin?: boolean | undefined;
477
+ }
478
+ /** The reason the message was dropped, if any. Is **null** if the message was sent. */
479
+ export interface SendChatMessageResponseDataItemDropReason {
480
+ /** Code for why the message was dropped. Possible values: - `msg_duplicate`: The message is identical to the previous message the sender sent less than 30 seconds ago. - `user_banned`: The sender is permanently banned from the chat room. - `user_warned`: The sender has a warning they must acknowledge before they can chat. - `user_timed_out`: The sender is timed out in the chat room. - `emote_only_mode`: The chat room is in emote-only mode. - `slow_mode`: The chat room is in slow mode and the sender is sending messages too quickly. - `followers_only_mode`: The chat room is in followers-only mode. - `subs_only_mode`: The chat room is in subscribers-only mode. - `unique_mode`: The chat room is in unique-chat mode and the message is not unique. - `verified_account`: The chat room requires a verified account to chat. - `channel_settings`: The message conflicts with the channel's moderation settings. - `automod_held`: AutoMod is holding the message for review. - `msg_rejected`: The message could not be sent. See `message` for details. - `msg_bad_characters`: The message contains too many characters that cannot be processed. - `banned_email_alias`: The sender's email address is banned from the channel. - `banned_phone_alias`: The sender's phone number is banned from the channel. - `verified_phone_number`: The chat room requires a verified phone number to chat. - `channel_suspended`: The channel does not exist or is suspended. */
481
+ code?: string | undefined;
482
+ /** Message for why the message was dropped. */
483
+ message?: string | undefined;
484
+ }
485
+ export interface SendChatMessageResponseDataItem {
486
+ /** The message id for the message that was sent. */
487
+ message_id?: string | undefined;
488
+ /** If the message passed all checks and was sent. */
489
+ is_sent?: boolean | undefined;
490
+ /** The reason the message was dropped, if any. Is **null** if the message was sent. */
491
+ drop_reason?: SendChatMessageResponseDataItemDropReason | null | undefined;
492
+ }
493
+ export type SendChatMessageResponseDataList = Array<SendChatMessageResponseDataItem>;
494
+ export interface SendChatMessageResponse {
495
+ data?: SendChatMessageResponseDataList | undefined;
496
+ }
497
+ export interface UnpinChatMessageRequest {
498
+ /** The ID of the broadcaster that owns the chat room. */
499
+ broadcaster_id: string;
500
+ /** 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. */
501
+ moderator_id: string;
502
+ /** The ID of the message to unpin. */
503
+ message_id: string;
504
+ }
505
+ export interface UnpinChatMessageResponse {
506
+ }
507
+ export interface UpdateChatSettingsRequest {
508
+ /** The ID of the broadcaster whose chat settings you want to update. */
509
+ broadcaster_id: string;
510
+ /** The ID of a user that has permission to moderate the broadcaster's chat room, or the broadcaster's ID if they're making the update. This ID must match the user ID in the user access token. */
511
+ moderator_id: string;
512
+ /** A Boolean value that determines whether chat messages must contain only emotes. Set to **true** if only emotes are allowed; otherwise, **false**. The default is **false**. */
513
+ emote_mode?: boolean | undefined;
514
+ /** A Boolean value that determines whether the broadcaster restricts the chat room to followers only. Set to **true** if the broadcaster restricts the chat room to followers only; otherwise, **false**. The default is **false**. To specify how long users must follow the broadcaster before being able to participate in the chat room, see the *follower_mode_duration* field. */
515
+ follower_mode?: boolean | undefined;
516
+ /** The length of time, in minutes, that users must follow the broadcaster before being able to participate in the chat room. Set only if *follower_mode* is **true**. Possible values are: **0** (no restriction) through **129600** (3 months). The default is 0. */
517
+ follower_mode_duration?: number | undefined;
518
+ /** A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message. Set to **true** if the broadcaster applies a delay; otherwise, **false**. The default is **false**. To specify the length of the delay, see the *non_moderator_chat_delay_duration* field. */
519
+ non_moderator_chat_delay?: boolean | undefined;
520
+ /** The amount of time, in seconds, that messages are delayed before appearing in chat. Set only if *non_moderator_chat_delay* is **true**. Possible values: - `2`: 2 second delay (recommended) - `4`: 4 second delay - `6`: 6 second delay */
521
+ non_moderator_chat_delay_duration?: number | undefined;
522
+ /** A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages. Set to **true** if the broadcaster applies a wait period between messages; otherwise, **false**. The default is **false**. To specify the delay, see the *slow_mode_wait_time* field. */
523
+ slow_mode?: boolean | undefined;
524
+ /** The amount of time, in seconds, that users must wait between sending messages. Set only if *slow_mode* is **true**. Possible values are **3** (3 second delay) through **120** (2 minute delay). The default is 30 seconds. */
525
+ slow_mode_wait_time?: number | undefined;
526
+ /** A Boolean value that determines whether only users that subscribe to the broadcaster's channel may talk in the chat room. Set to **true** if the broadcaster restricts the chat room to subscribers only; otherwise, **false**. The default is **false**. */
527
+ subscriber_mode?: boolean | undefined;
528
+ /** A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room. Set to **true** if the broadcaster allows only unique messages; otherwise, **false**. The default is **false**. */
529
+ unique_chat_mode?: boolean | undefined;
530
+ }
531
+ export interface UpdateChatSettingsResponseDataItem {
532
+ /** The ID of the broadcaster specified in the request. */
533
+ broadcaster_id?: string | undefined;
534
+ /** A Boolean value that determines whether chat messages must contain only emotes. Is **true** if chat messages may contain only emotes; otherwise, **false**. */
535
+ emote_mode?: boolean | undefined;
536
+ /** A Boolean value that determines whether the broadcaster restricts the chat room to followers only. Is **true** if the broadcaster restricts the chat room to followers only; otherwise, **false**. See the `follower_mode_duration` field for how long users must follow the broadcaster before being able to participate in the chat room. */
537
+ follower_mode?: boolean | undefined;
538
+ /** The length of time, in minutes, that users must follow the broadcaster before being able to participate in the chat room. Is **null** if `follower_mode` is **false**. */
539
+ follower_mode_duration?: number | undefined;
540
+ /** The ID of the moderator specified in the request. */
541
+ moderator_id?: string | undefined;
542
+ /** A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message. See the `non_moderator_chat_delay_duration` field for the length of the delay. Is **true** if the broadcaster applies a delay; otherwise, **false**. */
543
+ non_moderator_chat_delay?: boolean | undefined;
544
+ /** The amount of time, in seconds, that messages are delayed before appearing in chat. Is **null** if `non_moderator_chat_delay` is **false**. */
545
+ non_moderator_chat_delay_duration?: number | undefined;
546
+ /** A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages. Is **true** if the broadcaster applies a delay; otherwise, **false**. See the `slow_mode_wait_time` field for the delay. */
547
+ slow_mode?: boolean | undefined;
548
+ /** The amount of time, in seconds, that users must wait between sending messages. Is **null** if slow_mode is **false**. */
549
+ slow_mode_wait_time?: number | undefined;
550
+ /** A Boolean value that determines whether only users that subscribe to the broadcaster's channel may talk in the chat room. Is **true** if the broadcaster restricts the chat room to subscribers only; otherwise, **false**. */
551
+ subscriber_mode?: boolean | undefined;
552
+ /** A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room. Is **true** if the broadcaster requires unique messages only; otherwise, **false**. */
553
+ unique_chat_mode?: boolean | undefined;
554
+ }
555
+ /** The list of chat settings. The list contains a single object with all the settings. */
556
+ export type UpdateChatSettingsResponseDataList = Array<UpdateChatSettingsResponseDataItem>;
557
+ export interface UpdateChatSettingsResponse {
558
+ /** The list of chat settings. The list contains a single object with all the settings. */
559
+ data?: UpdateChatSettingsResponseDataList | undefined;
560
+ }
561
+ export interface UpdatePinnedChatMessageRequest {
562
+ /** The ID of the broadcaster that owns the chat room. */
563
+ broadcaster_id: string;
564
+ /** 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. */
565
+ moderator_id: string;
566
+ /** The ID of the pinned message to update. */
567
+ message_id: string;
568
+ /** The new number of seconds the message should remain pinned, starting from now. Minimum: 30. Maximum: 1800. If not specified, the message will be pinned until the stream ends. */
569
+ duration_seconds?: number | undefined;
570
+ }
571
+ export interface UpdatePinnedChatMessageResponse {
572
+ }
573
+ export interface UpdateUserChatColorRequest {
574
+ /** The ID of the user whose chat color you want to update. This ID must match the user ID in the access token. */
575
+ user_id: string;
576
+ /** The color to use for the user's name in chat. All users may specify one of the following named color values. Possible values: - `(any hex code)`: Turbo and Prime users may specify a named color or a Hex color code such as #9146FF. If you use a Hex color code, remember to URL encode it. - `blue` - `blue_violet` - `cadet_blue` - `chocolate` - `coral` - `dodger_blue` - `firebrick` - `golden_rod` - `green` - `hot_pink` - `orange_red` - `red` - `sea_green` - `spring_green` - `yellow_green` */
577
+ color: string;
578
+ }
579
+ export interface UpdateUserChatColorResponse {
580
+ }
581
+ export type GetChannelChatBadgesError = TwitchOpError;
582
+ /** Get Channel Chat Badges Gets the broadcaster's list of custom chat badges. The list is empty if the broadcaster hasn't created custom chat badges. For information about custom badges, see [subscriber badges](https://help.twitch.tv/s/article/subscriber-badge-guide) and [Bits badges](https://help.twitch.tv/s/article/custom-bit-badges-guide). 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/chat/#get-channel-chat-badges */
583
+ export declare const getChannelChatBadges: API.OperationMethod<GetChannelChatBadgesRequest, GetChannelChatBadgesResponse, GetChannelChatBadgesError, TwitchOpContext>;
584
+ export type GetChannelEmotesError = TwitchOpError;
585
+ /** Get Channel Emotes Gets the broadcaster's list of custom emotes. Broadcasters create these custom emotes for users who subscribe to or follow the channel or cheer Bits in the channel's chat window. [Learn More](https://dev.twitch.tv/docs/chat/irc.md) For information about the custom emotes, see [subscriber emotes](https://help.twitch.tv/s/article/subscriber-emote-guide), [Bits tier emotes](https://help.twitch.tv/s/article/custom-bit-badges-guide?language=bg#slots), and [follower emotes](https://blog.twitch.tv/en/2021/06/04/kicking-off-10-years-with-our-biggest-emote-update-ever/). **NOTE:** With the exception of custom follower emotes, users may use custom emotes in any Twitch chat. 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/chat/#get-channel-emotes */
586
+ export declare const getChannelEmotes: API.OperationMethod<GetChannelEmotesRequest, GetChannelEmotesResponse, GetChannelEmotesError, TwitchOpContext>;
587
+ export type GetChatSettingsError = TwitchOpError;
588
+ /** Get Chat Settings Gets the broadcaster's chat settings. For an overview of chat settings, see [Chat Commands for Broadcasters and Moderators](https://help.twitch.tv/s/article/chat-commands#AllMods) and [Moderator Preferences](https://help.twitch.tv/s/article/setting-up-moderation-for-your-twitch-channel#modpreferences). 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/chat/#get-chat-settings */
589
+ export declare const getChatSettings: API.OperationMethod<GetChatSettingsRequest, GetChatSettingsResponse, GetChatSettingsError, TwitchOpContext>;
590
+ export type GetChattersError = TwitchOpError;
591
+ /** Get Chatters Gets the list of users that are connected to the broadcaster's chat session. To determine whether a user is a moderator or VIP, use the [Get Moderators](https://dev.twitch.tv/docs/api/reference/moderation.md#get-moderators) and [Get VIPs](https://dev.twitch.tv/docs/api/reference/moderation.md#get-vips) endpoints. You can check the roles of up to 100 users. > **Note** There is a delay between when users join and leave a chat and when the list is updated accordingly. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:read:chatters** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **moderator:read:chatters** scope for the user represented by the *moderator_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#get-chatters */
592
+ export declare const getChatters: API.PaginatedOperationMethod<GetChattersRequest, GetChattersResponse, GetChattersError, TwitchOpContext, GetChattersResponseDataItem>;
593
+ export type GetEmoteSetsError = TwitchOpError;
594
+ /** Get Emote Sets Gets emotes for one or more specified emote sets. An emote set groups emotes that have a similar context. For example, Twitch places all the subscriber emotes that a broadcaster uploads for their channel in the same emote set. [Learn More](https://dev.twitch.tv/docs/chat/irc.md) 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/chat/#get-emote-sets */
595
+ export declare const getEmoteSets: API.OperationMethod<GetEmoteSetsRequest, GetEmoteSetsResponse, GetEmoteSetsError, TwitchOpContext>;
596
+ export type GetGlobalChatBadgesError = TwitchOpError;
597
+ /** Get Global Chat Badges Gets Twitch's list of chat badges, which users may use in any channel's chat room. For information about chat badges, see [Twitch Chat Badges Guide](https://help.twitch.tv/s/article/twitch-chat-badges-guide). 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/chat/#get-global-chat-badges */
598
+ export declare const getGlobalChatBadges: API.OperationMethod<GetGlobalChatBadgesRequest, GetGlobalChatBadgesResponse, GetGlobalChatBadgesError, TwitchOpContext>;
599
+ export type GetGlobalEmotesError = TwitchOpError;
600
+ /** Get Global Emotes Gets the list of [global emotes](https://www.twitch.tv/creatorcamp/en/learn-the-basics/emotes/). Global emotes are Twitch-created emotes that users can use in any Twitch chat. [Learn More](https://dev.twitch.tv/docs/chat/irc.md) 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/chat/#get-global-emotes */
601
+ export declare const getGlobalEmotes: API.OperationMethod<GetGlobalEmotesRequest, GetGlobalEmotesResponse, GetGlobalEmotesError, TwitchOpContext>;
602
+ export type GetPinnedChatMessageError = TwitchOpError;
603
+ /** Get Pinned Chat Message Gets the currently pinned message for the specified broadcaster's chat room, including message fragments. Only one mod-pinned message can be active per channel 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 **moderator:manage:chat_messages** or **moderator:read:chat_messages** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - All of the following, for the user represented by the *moderator_id* query parameter: - **moderator:manage:chat_messages** or **moderator:read:chat_messages** - **user:bot** - The **channel:bot** scope for the user represented by the *broadcaster_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#get-pinned-chat-message */
604
+ export declare const getPinnedChatMessage: API.OperationMethod<GetPinnedChatMessageRequest, GetPinnedChatMessageResponse, GetPinnedChatMessageError, TwitchOpContext>;
605
+ export type GetSharedChatSessionError = TwitchOpError;
606
+ /** Get Shared Chat Session Retrieves the active shared chat session for a channel. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/chat/#get-shared-chat-session */
607
+ export declare const getSharedChatSession: API.OperationMethod<GetSharedChatSessionRequest, GetSharedChatSessionResponse, GetSharedChatSessionError, TwitchOpContext>;
608
+ export type GetUserChatColorError = TwitchOpError;
609
+ /** Get User Chat Color Gets the color used for the user's name in chat. 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/chat/#get-user-chat-color */
610
+ export declare const getUserChatColor: API.OperationMethod<GetUserChatColorRequest, GetUserChatColorResponse, GetUserChatColorError, TwitchOpContext>;
611
+ export type GetUserEmotesError = TwitchOpError;
612
+ /** Get User Emotes Retrieves emotes available to the user across all channels. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **user:read:emotes** scope. The User ID associated with the token must match the *user_id* in the query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#get-user-emotes */
613
+ export declare const getUserEmotes: API.PaginatedOperationMethod<GetUserEmotesRequest, GetUserEmotesResponse, GetUserEmotesError, TwitchOpContext, GetUserEmotesResponseDataItem>;
614
+ export type PinChatMessageError = TwitchOpError;
615
+ /** Pin Chat Message Pins a chat message to the top of the specified broadcaster's chat room. Only one mod-pinned message can be active per channel at a time. If a mod-pinned message already exists, it is automatically replaced. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:chat_messages** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **moderator:manage:chat_messages**, **user:bot** scopes for the user represented by the *moderator_id* query parameter. - The **channel:bot** scope for the user represented by the *broadcaster_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#pin-chat-message */
616
+ export declare const pinChatMessage: API.OperationMethod<PinChatMessageRequest, PinChatMessageResponse, PinChatMessageError, TwitchOpContext>;
617
+ export type SendAShoutoutError = TwitchOpError;
618
+ /** Send a Shoutout Sends a Shoutout to the specified broadcaster. Typically, you send Shoutouts when you or one of your moderators notice another broadcaster in your chat, the other broadcaster is coming up in conversation, or after they raid your broadcast. Twitch's Shoutout feature is a great way for you to show support for other broadcasters and help them grow. Viewers who do not follow the other broadcaster will see a pop-up Follow button in your chat that they can click to follow the other broadcaster. [Learn More](https://help.twitch.tv/s/article/shoutouts) **Rate Limits**: The broadcaster may send a Shoutout once every 2 minutes. They may send the same broadcaster a Shoutout once every 60 minutes. To receive notifications when a Shoutout is sent or received, subscribe to the [channel.shoutout.create](https://dev.twitch.tv/docs/eventsub/reference/channel.md#channel-shoutout-create) and [channel.shoutout.receive](https://dev.twitch.tv/docs/eventsub/reference/channel.md#channel-shoutout-receive) subscription types. The **channel.shoutout.create** event includes cooldown periods that indicate when the broadcaster may send another Shoutout without exceeding the endpoint's rate limit. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:shoutouts** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **moderator:manage:shoutouts**, **user:bot** scopes for the user represented by the *moderator_id* query parameter. - The **channel:bot** scope for the user represented by the *from_broadcaster_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#send-a-shoutout */
619
+ export declare const sendAShoutout: API.OperationMethod<SendAShoutoutRequest, SendAShoutoutResponse, SendAShoutoutError, TwitchOpContext>;
620
+ export type SendChatAnnouncementError = TwitchOpError;
621
+ /** Send Chat Announcement Sends an announcement to the broadcaster's chat room. **Rate Limits**: One announcement may be sent every 2 seconds. **NOTE:** When sending announcements during a Shared Chat session, behaviors differ depending on your authentication token type: - When using an *App Access Token*, announcements will only be sent to the source channel (defined by the _broadcaster_id_ parameter) by default. Announcements can be sent to all channels by using the *for_source_only* parameter and setting it to `false`. - When using a *User Access Token*, announcements will be sent to all channels in the shared chat session, including the source channel. This behavior cannot be changed with this token type. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:announcements** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **moderator:manage:announcements**, **user:bot** scopes for the user represented by the *moderator_id* query parameter. - The **channel:bot** scope for the user represented by the *broadcaster_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#send-chat-announcement */
622
+ export declare const sendChatAnnouncement: API.OperationMethod<SendChatAnnouncementRequest, SendChatAnnouncementResponse, SendChatAnnouncementError, TwitchOpContext>;
623
+ export type SendChatMessageError = TwitchOpError;
624
+ /** Send Chat Message Sends a message to the broadcaster's chat room. **NOTE:** When sending messages to a Shared Chat session, behaviors differ depending on your authentication token type: - When using an *App Access Token*, messages will only be sent to the source channel (defined by the _broadcaster_id_ parameter) by default starting on May 19, 2025. Messages can be sent to all channels by using the *for_source_only* parameter and setting it to `false`. - When using a *User Access Token*, messages will be sent to all channels in the shared chat session, including the source channel. This behavior cannot be changed with this token type. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **user:write:chat** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **user:write:chat**, **user:bot** scopes for the user represented by the *sender_id* body field. - The **channel:bot** scope for the user represented by the *broadcaster_id* body field. Not required if the user in *sender_id* is the broadcaster or already has moderator status. Reference: https://dev.twitch.tv/docs/api/reference/chat/#send-chat-message */
625
+ export declare const sendChatMessage: API.OperationMethod<SendChatMessageRequest, SendChatMessageResponse, SendChatMessageError, TwitchOpContext>;
626
+ export type UnpinChatMessageError = TwitchOpError;
627
+ /** Unpin Chat Message Unpins a pinned chat message from the specified broadcaster's chat room. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:chat_messages** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **moderator:manage:chat_messages**, **user:bot** scopes for the user represented by the *moderator_id* query parameter. - The **channel:bot** scope for the user represented by the *broadcaster_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#unpin-chat-message */
628
+ export declare const unpinChatMessage: API.OperationMethod<UnpinChatMessageRequest, UnpinChatMessageResponse, UnpinChatMessageError, TwitchOpContext>;
629
+ export type UpdateChatSettingsError = TwitchOpError;
630
+ /** Update Chat Settings Updates the broadcaster's chat settings. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:chat_settings** scope. The User ID associated with the token must match the *moderator_id* in the query parameter. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **moderator:manage:chat_settings** scope for the user represented by the *moderator_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#update-chat-settings */
631
+ export declare const updateChatSettings: API.OperationMethod<UpdateChatSettingsRequest, UpdateChatSettingsResponse, UpdateChatSettingsError, TwitchOpContext>;
632
+ export type UpdatePinnedChatMessageError = TwitchOpError;
633
+ /** Update Pinned Chat Message Updates the duration of an existing pinned chat message. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **moderator:manage:chat_messages** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **moderator:manage:chat_messages**, **user:bot** scopes for the user represented by the *moderator_id* query parameter. - The **channel:bot** scope for the user represented by the *broadcaster_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/chat/#update-pinned-chat-message */
634
+ export declare const updatePinnedChatMessage: API.OperationMethod<UpdatePinnedChatMessageRequest, UpdatePinnedChatMessageResponse, UpdatePinnedChatMessageError, TwitchOpContext>;
635
+ export type UpdateUserChatColorError = TwitchOpError;
636
+ /** Update User Chat Color Updates the color used for the user's name in chat. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **user:manage:chat_color** scope. Reference: https://dev.twitch.tv/docs/api/reference/chat/#update-user-chat-color */
637
+ export declare const updateUserChatColor: API.OperationMethod<UpdateUserChatColorRequest, UpdateUserChatColorResponse, UpdateUserChatColorError, TwitchOpContext>;
638
+ //# sourceMappingURL=chat.d.ts.map