ts-twitch-api 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -840,7 +840,7 @@ interface components {
840
840
  /** @description A URL to the large version (112px x 112px) of the emote. */
841
841
  url_4x: string;
842
842
  };
843
- /** @description 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. */
843
+ /** @description 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. */
844
844
  tier: string;
845
845
  /**
846
846
  * @description The type of emote. The possible values are:
@@ -877,7 +877,7 @@ interface components {
877
877
  theme_mode: ("dark" | "light")[];
878
878
  };
879
879
  GetChannelEmotesResponse: {
880
- /** @description The list of emotes that the specified broadcaster created. If the broadcaster hasn’t created custom emotes, the list is empty. */
880
+ /** @description The list of emotes that the specified broadcaster created. If the broadcaster hasn't created custom emotes, the list is empty. */
881
881
  data: components["schemas"]["ChannelEmote"][];
882
882
  /** @description 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/irc/emotes#cdn-template). You should use this template instead of using the URLs in the `images` object. */
883
883
  template: string;
@@ -3579,9 +3579,9 @@ interface components {
3579
3579
  User: {
3580
3580
  /** @description An ID that identifies the user. */
3581
3581
  id: string;
3582
- /** @description The user’s login name. */
3582
+ /** @description The user's login name. */
3583
3583
  login: string;
3584
- /** @description The user’s display name. */
3584
+ /** @description The user's display name. */
3585
3585
  display_name: string;
3586
3586
  /**
3587
3587
  * @description The type of user. Possible values are:
@@ -3602,28 +3602,28 @@ interface components {
3602
3602
  * @enum {string}
3603
3603
  */
3604
3604
  broadcaster_type: "affiliate" | "partner" | "";
3605
- /** @description The user’s description of their channel. */
3605
+ /** @description The user's description of their channel. */
3606
3606
  description: string;
3607
- /** @description A URL to the user’s profile image. */
3607
+ /** @description A URL to the user's profile image. */
3608
3608
  profile_image_url: string;
3609
- /** @description A URL to the user’s offline image. */
3609
+ /** @description A URL to the user's offline image. */
3610
3610
  offline_image_url: string;
3611
3611
  /**
3612
3612
  * Format: int32
3613
- * @description The number of times the user’s channel has been viewed.
3613
+ * @description The number of times the user's channel has been viewed.
3614
3614
  *
3615
- * **NOTE**: This field has been deprecated (see [Get Users API endpoint – “view\_count” deprecation](https://discuss.dev.twitch.tv/t/get-users-api-endpoint-view-count-deprecation/37777)). Any data in this field is not valid and should not be used.
3615
+ * **NOTE**: This field has been deprecated (see [Get Users API endpoint – "view\_count" deprecation](https://discuss.dev.twitch.tv/t/get-users-api-endpoint-view-count-deprecation/37777)). Any data in this field is not valid and should not be used.
3616
3616
  */
3617
3617
  view_count: number;
3618
3618
  /**
3619
- * @description The user’s verified email address. The object includes this field only if the user access token includes the **user:read:email** scope.
3619
+ * @description The user's verified email address. The object includes this field only if the user access token includes the **user:read:email** scope.
3620
3620
  *
3621
3621
  * If the request contains more than one user, only the user associated with the access token that provided consent will include an email address — the email address for all other users will be empty.
3622
3622
  */
3623
3623
  email?: string;
3624
3624
  /**
3625
3625
  * Format: date-time
3626
- * @description The UTC date and time that the user’s account was created. The timestamp is in RFC3339 format.
3626
+ * @description The UTC date and time that the user's account was created. The timestamp is in RFC3339 format.
3627
3627
  */
3628
3628
  created_at: string;
3629
3629
  };
@@ -3650,9 +3650,9 @@ interface components {
3650
3650
  UserExtension: {
3651
3651
  /** @description An ID that identifies the extension. */
3652
3652
  id: string;
3653
- /** @description The extension’s version. */
3653
+ /** @description The extension's version. */
3654
3654
  version: string;
3655
- /** @description The extension’s name. */
3655
+ /** @description The extension's name. */
3656
3656
  name: string;
3657
3657
  /** @description A Boolean value that determines whether the extension is configured and can be activated. Is **true** if the extension is configured and can be activated. */
3658
3658
  can_activate: boolean;
@@ -3801,17 +3801,17 @@ interface components {
3801
3801
  Video: {
3802
3802
  /** @description An ID that identifies the video. */
3803
3803
  id: string;
3804
- /** @description The ID of the stream that the video originated from if the video’s type is “archive;” otherwise, **null**. */
3804
+ /** @description The ID of the stream that the video originated from if the video's type is "archive;" otherwise, **null**. */
3805
3805
  stream_id: string | null;
3806
3806
  /** @description The ID of the broadcaster that owns the video. */
3807
3807
  user_id: string;
3808
- /** @description The broadcaster’s login name. */
3808
+ /** @description The broadcaster's login name. */
3809
3809
  user_login: string;
3810
- /** @description The broadcaster’s display name. */
3810
+ /** @description The broadcaster's display name. */
3811
3811
  user_name: string;
3812
- /** @description The video’s title. */
3812
+ /** @description The video's title. */
3813
3813
  title: string;
3814
- /** @description The video’s description. */
3814
+ /** @description The video's description. */
3815
3815
  description: string;
3816
3816
  /**
3817
3817
  * Format: date-time
@@ -3823,21 +3823,21 @@ interface components {
3823
3823
  * @description The date and time, in UTC, of when the video was published. The timestamp is in RFC3339 format.
3824
3824
  */
3825
3825
  published_at: string;
3826
- /** @description The video’s URL. */
3826
+ /** @description The video's URL. */
3827
3827
  url: string;
3828
3828
  /** @description A URL to a thumbnail image of the video. Before using the URL, you must replace the `%{width}` and `%{height}` placeholders with the width and height of the thumbnail you want returned. Due to current limitations, `${width}` must be 320 and `${height}` must be 180. */
3829
3829
  thumbnail_url: string;
3830
- /** @description The video’s viewable state. Always set to **public**. */
3830
+ /** @description The video's viewable state. Always set to **public**. */
3831
3831
  viewable: string;
3832
3832
  /**
3833
3833
  * Format: int32
3834
3834
  * @description The number of times that users have watched the video.
3835
3835
  */
3836
3836
  view_count: number;
3837
- /** @description The ISO 639-1 two-letter language code that the video was broadcast in. For example, the language code is DE if the video was broadcast in German. For a list of supported languages, see [Supported Stream Language](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). The language value is “other” if the video was broadcast in a language not in the list of supported languages. */
3837
+ /** @description The ISO 639-1 two-letter language code that the video was broadcast in. For example, the language code is DE if the video was broadcast in German. For a list of supported languages, see [Supported Stream Language](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). The language value is "other" if the video was broadcast in a language not in the list of supported languages. */
3838
3838
  language: string;
3839
3839
  /**
3840
- * @description The video’s type. Possible values are:
3840
+ * @description The video's type. Possible values are:
3841
3841
  *
3842
3842
  * * archive — An on-demand video (VOD) of one of the broadcaster's past streams.
3843
3843
  * * highlight — A highlight reel of one of the broadcaster's past streams. See [Creating Highlights](https://help.twitch.tv/s/article/creating-highlights-and-stream-markers).
@@ -3845,7 +3845,7 @@ interface components {
3845
3845
  * @enum {string}
3846
3846
  */
3847
3847
  type: "archive" | "highlight" | "upload";
3848
- /** @description The video’s length in ISO 8601 duration format. For example, 3m21s represents 3 minutes, 21 seconds. */
3848
+ /** @description The video's length in ISO 8601 duration format. For example, 3m21s represents 3 minutes, 21 seconds. */
3849
3849
  duration: string;
3850
3850
  /** @description The segments that Twitch Audio Recognition muted; otherwise, **null**. */
3851
3851
  muted_segments: {
@@ -3866,7 +3866,7 @@ interface components {
3866
3866
  data: components["schemas"]["Video"][];
3867
3867
  /** @description 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#pagination) */
3868
3868
  pagination?: {
3869
- /** @description The cursor used to get the next page of results. Use the cursor to set the request’s _after_ or _before_ query parameter depending on whether you’re paging forwards or backwards through the results. */
3869
+ /** @description The cursor used to get the next page of results. Use the cursor to set the request's _after_ or _before_ query parameter depending on whether you're paging forwards or backwards through the results. */
3870
3870
  cursor?: string;
3871
3871
  };
3872
3872
  };
@@ -4497,7 +4497,7 @@ interface operations {
4497
4497
  };
4498
4498
  };
4499
4499
  responses: {
4500
- /** @description Successfully retrieved the broadcaster’s list of editors. */
4500
+ /** @description Successfully retrieved the broadcaster's list of editors. */
4501
4501
  200: {
4502
4502
  content: {
4503
4503
  "application/json": components["schemas"]["GetChannelEditorsResponse"];
@@ -4541,7 +4541,7 @@ interface operations {
4541
4541
  };
4542
4542
  };
4543
4543
  responses: {
4544
- /** @description Successfully retrieved the broadcaster’s list of followers. */
4544
+ /** @description Successfully retrieved the broadcaster's list of followers. */
4545
4545
  200: {
4546
4546
  content: {
4547
4547
  "application/json": components["schemas"]["GetFollowedChannelsResponse"];
@@ -5227,7 +5227,7 @@ interface operations {
5227
5227
  };
5228
5228
  };
5229
5229
  responses: {
5230
- /** @description Successfully retrieved broadcaster’s list of custom emotes. */
5230
+ /** @description Successfully retrieved broadcaster's list of custom emotes. */
5231
5231
  200: {
5232
5232
  content: {
5233
5233
  "application/json": components["schemas"]["GetChannelEmotesResponse"];
@@ -5263,7 +5263,7 @@ interface operations {
5263
5263
  */
5264
5264
  "get-global-emotes": {
5265
5265
  responses: {
5266
- /** @description Successfully retrieved Twitch’s list of global emotes. */
5266
+ /** @description Successfully retrieved Twitch's list of global emotes. */
5267
5267
  200: {
5268
5268
  content: {
5269
5269
  "application/json": components["schemas"]["GetGlobalEmotesResponse"];
@@ -8692,8 +8692,8 @@ interface operations {
8692
8692
  };
8693
8693
  };
8694
8694
  /**
8695
- * BETA Gets a list of channels that the specified user has moderator privileges in.
8696
- * @description BETA Gets a list of channels that the specified user has moderator privileges in.
8695
+ * Gets a list of channels that the specified user has moderator privileges in.
8696
+ * @description Gets a list of channels that the specified user has moderator privileges in.
8697
8697
  *
8698
8698
  * __Authorization:__
8699
8699
  *
@@ -10585,7 +10585,7 @@ interface operations {
10585
10585
  };
10586
10586
  };
10587
10587
  responses: {
10588
- /** @description Successfully retrieved the team’s information. */
10588
+ /** @description Successfully retrieved the team's information. */
10589
10589
  200: {
10590
10590
  content: {
10591
10591
  "application/json": components["schemas"]["GetTeamsResponse"];
@@ -10637,7 +10637,7 @@ interface operations {
10637
10637
  };
10638
10638
  };
10639
10639
  responses: {
10640
- /** @description Successfully retrieved the specified users’ information. */
10640
+ /** @description Successfully retrieved the specified users' information. */
10641
10641
  200: {
10642
10642
  content: {
10643
10643
  "application/json": components["schemas"]["GetUsersResponse"];
@@ -10682,7 +10682,7 @@ interface operations {
10682
10682
  };
10683
10683
  };
10684
10684
  responses: {
10685
- /** @description Successfully updated the specified user’s information. */
10685
+ /** @description Successfully updated the specified user's information. */
10686
10686
  200: {
10687
10687
  content: {
10688
10688
  "application/json": components["schemas"]["UpdateUserResponse"];
@@ -10723,7 +10723,7 @@ interface operations {
10723
10723
  };
10724
10724
  };
10725
10725
  responses: {
10726
- /** @description Successfully retrieved the broadcaster’s list of blocked users. */
10726
+ /** @description Successfully retrieved the broadcaster's list of blocked users. */
10727
10727
  200: {
10728
10728
  content: {
10729
10729
  "application/json": components["schemas"]["GetUserBlockListResponse"];
@@ -10877,7 +10877,7 @@ interface operations {
10877
10877
  */
10878
10878
  "get-user-extensions": {
10879
10879
  responses: {
10880
- /** @description Successfully retrieved the user’s installed extensions. */
10880
+ /** @description Successfully retrieved the user's installed extensions. */
10881
10881
  200: {
10882
10882
  content: {
10883
10883
  "application/json": components["schemas"]["GetUserExtensionsResponse"];
@@ -10916,7 +10916,7 @@ interface operations {
10916
10916
  };
10917
10917
  };
10918
10918
  responses: {
10919
- /** @description Successfully retrieved the user’s active extensions. */
10919
+ /** @description Successfully retrieved the user's active extensions. */
10920
10920
  200: {
10921
10921
  content: {
10922
10922
  "application/json": components["schemas"]["GetUserActiveExtensionsResponse"];
@@ -10992,7 +10992,7 @@ interface operations {
10992
10992
  parameters: {
10993
10993
  query?: {
10994
10994
  /**
10995
- * @description A list of IDs that identify the videos you want to get. To get more than one video, include this parameter for each video you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 100 IDs. The endpoint ignores duplicate IDs and IDs that weren’t found (if there’s at least one valid ID).
10995
+ * @description A list of IDs that identify the videos you want to get. To get more than one video, include this parameter for each video you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 100 IDs. The endpoint ignores duplicate IDs and IDs that weren't found (if there's at least one valid ID).
10996
10996
  *
10997
10997
  * The _id_, _user\_id_, and _game\_id_ parameters are mutually exclusive.
10998
10998
  */
@@ -11023,7 +11023,7 @@ interface operations {
11023
11023
  * * month
11024
11024
  * * week
11025
11025
  *
11026
- * The default is “all,” which returns videos published in all periods.
11026
+ * The default is "all," which returns videos published in all periods.
11027
11027
  *
11028
11028
  * Specify this parameter only if you specify the _game\_id_ or _user\_id_ query parameter.
11029
11029
  */
@@ -11035,20 +11035,20 @@ interface operations {
11035
11035
  * * trending — Sort the results in descending order by biggest gains in viewership (i.e., highest trending video first).
11036
11036
  * * views — Sort the results in descending order by most views (i.e., highest number of views first).
11037
11037
  *
11038
- * The default is “time.”
11038
+ * The default is "time."
11039
11039
  *
11040
11040
  * Specify this parameter only if you specify the _game\_id_ or _user\_id_ query parameter.
11041
11041
  */
11042
11042
  sort?: "time" | "trending" | "views";
11043
11043
  /**
11044
- * @description A filter used to filter the list of videos by the video’s type. Possible case-sensitive values are:
11044
+ * @description A filter used to filter the list of videos by the video's type. Possible case-sensitive values are:
11045
11045
  *
11046
11046
  * * all
11047
11047
  * * archive — On-demand videos (VODs) of past streams.
11048
11048
  * * highlight — Highlight reels of past streams.
11049
11049
  * * upload — External videos that the broadcaster uploaded using the Video Producer.
11050
11050
  *
11051
- * The default is “all,” which returns all video types.
11051
+ * The default is "all," which returns all video types.
11052
11052
  *
11053
11053
  * Specify this parameter only if you specify the _game\_id_ or _user\_id_ query parameter.
11054
11054
  */
@@ -11582,9 +11582,9 @@ type CallApiOptions = {
11582
11582
  params?: Record<string, any> | null;
11583
11583
  body?: Record<string, any> | null;
11584
11584
  requiresAuth?: boolean;
11585
- options: {
11586
- clientId?: string | null;
11587
- accessToken?: string | null;
11585
+ options?: {
11586
+ clientId?: string;
11587
+ accessToken?: string;
11588
11588
  requestInit?: RequestInit;
11589
11589
  };
11590
11590
  };
@@ -11645,7 +11645,7 @@ declare class TwitchApi {
11645
11645
  *
11646
11646
  * @see https://dev.twitch.tv/docs/api/reference#start-commercial
11647
11647
  */
11648
- startCommercial: (body: StartCommercialBody, options: CallApiOptions['options']) => Promise<{
11648
+ startCommercial: (body: StartCommercialBody, options?: CallApiOptions['options']) => Promise<{
11649
11649
  ok: true;
11650
11650
  status: 200;
11651
11651
  data: {
@@ -11685,7 +11685,7 @@ declare class TwitchApi {
11685
11685
  *
11686
11686
  * @see https://dev.twitch.tv/docs/api/reference#get-ad-schedule
11687
11687
  */
11688
- getAdSchedule: (params: GetAdScheduleParams, options: CallApiOptions['options']) => Promise<{
11688
+ getAdSchedule: (params: GetAdScheduleParams, options?: CallApiOptions['options']) => Promise<{
11689
11689
  ok: true;
11690
11690
  status: 200;
11691
11691
  data: {
@@ -11734,7 +11734,7 @@ declare class TwitchApi {
11734
11734
  *
11735
11735
  * @see https://dev.twitch.tv/docs/api/reference#snooze-next-ad
11736
11736
  */
11737
- snoozeNextAd: (params: SnoozeNextAdParams, options: CallApiOptions['options']) => Promise<{
11737
+ snoozeNextAd: (params: SnoozeNextAdParams, options?: CallApiOptions['options']) => Promise<{
11738
11738
  ok: true;
11739
11739
  status: 200;
11740
11740
  data: {
@@ -11790,7 +11790,7 @@ declare class TwitchApi {
11790
11790
  *
11791
11791
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-analytics
11792
11792
  */
11793
- getExtensionAnalytics: (params: GetExtensionAnalyticsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
11793
+ getExtensionAnalytics: (params?: GetExtensionAnalyticsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
11794
11794
  ok: true;
11795
11795
  status: 200;
11796
11796
  data: {
@@ -11851,7 +11851,7 @@ declare class TwitchApi {
11851
11851
  *
11852
11852
  * @see https://dev.twitch.tv/docs/api/reference#get-game-analytics
11853
11853
  */
11854
- getGameAnalytics: (params: GetGameAnalyticsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
11854
+ getGameAnalytics: (params?: GetGameAnalyticsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
11855
11855
  ok: false;
11856
11856
  status: 400 | 401 | 404;
11857
11857
  data: unknown;
@@ -11909,7 +11909,7 @@ declare class TwitchApi {
11909
11909
  *
11910
11910
  * @see https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard
11911
11911
  */
11912
- getBitsLeaderboard: (params: GetBitsLeaderboardParams | null | undefined, options: CallApiOptions['options']) => Promise<{
11912
+ getBitsLeaderboard: (params?: GetBitsLeaderboardParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
11913
11913
  ok: true;
11914
11914
  status: 200;
11915
11915
  data: {
@@ -11955,7 +11955,7 @@ declare class TwitchApi {
11955
11955
  *
11956
11956
  * @see https://dev.twitch.tv/docs/api/reference#get-cheermotes
11957
11957
  */
11958
- getCheermotes: (params: GetCheermotesParams | null | undefined, options: CallApiOptions['options']) => Promise<{
11958
+ getCheermotes: (params?: GetCheermotesParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
11959
11959
  ok: true;
11960
11960
  status: 200;
11961
11961
  data: {
@@ -12001,47 +12001,7 @@ declare class TwitchApi {
12001
12001
  };
12002
12002
  can_cheer: boolean;
12003
12003
  show_in_bits_card: boolean;
12004
- }[]; /**
12005
- * Updates the Drop entitlement’s fulfillment status.
12006
- *
12007
- * The following table identifies which entitlements are updated based on the type of access token used.
12008
- *
12009
- * | Access token type | Data that’s updated |
12010
- * | - | - |
12011
- * | App | Updates all entitlements with benefits owned by the organization in the access token. |
12012
- * | User | Updates all entitlements owned by the user in the access token and where the benefits are owned by the organization in the access token. |
12013
- *
12014
- *
12015
- * __Authorization:__
12016
- *
12017
- * Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game.
12018
- *
12019
- * __URL:__
12020
- *
12021
- * `PATCH https://api.twitch.tv/helix/entitlements/drops`
12022
- *
12023
- * __Response Codes:__
12024
- *
12025
- * _200 OK_
12026
- *
12027
- * Successfully requested the updates. Check the response to determine which updates succeeded.
12028
- *
12029
- * _400 Bad Request_
12030
- *
12031
- * * The value in the `fulfillment_status` field is not valid.
12032
- * * The client in the access token is not associated with a known organization.
12033
- * * The owner of the client in the access token is not a member of the organization.
12034
- *
12035
- * _401 Unauthorized_
12036
- *
12037
- * * The Authorization header is required and must specify an app access token or user access token.
12038
- * * The access token is not valid.
12039
- * * The ID in the Client-Id header must match the Client ID in the access token.
12040
- *
12041
- * _500 Internal Server Error_
12042
- *
12043
- * @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
12044
- */
12004
+ }[];
12045
12005
  type: "global_first_party" | "global_third_party" | "channel_custom" | "display_only" | "sponsored";
12046
12006
  order: number;
12047
12007
  last_updated: string;
@@ -12089,7 +12049,7 @@ declare class TwitchApi {
12089
12049
  *
12090
12050
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-transactions
12091
12051
  */
12092
- getExtensionTransactions: (params: GetExtensionTransactionsParams, options: CallApiOptions['options']) => Promise<{
12052
+ getExtensionTransactions: (params: GetExtensionTransactionsParams, options?: CallApiOptions['options']) => Promise<{
12093
12053
  ok: false;
12094
12054
  status: 400 | 401 | 404;
12095
12055
  data: unknown;
@@ -12164,7 +12124,7 @@ declare class TwitchApi {
12164
12124
  *
12165
12125
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-information
12166
12126
  */
12167
- getChannelInformation: (params: GetChannelInformationParams, options: CallApiOptions['options']) => Promise<{
12127
+ getChannelInformation: (params: GetChannelInformationParams, options?: CallApiOptions['options']) => Promise<{
12168
12128
  ok: true;
12169
12129
  status: 200;
12170
12130
  data: {
@@ -12244,7 +12204,7 @@ declare class TwitchApi {
12244
12204
  *
12245
12205
  * @see https://dev.twitch.tv/docs/api/reference#modify-channel-information
12246
12206
  */
12247
- modifyChannelInformation: (params: ModifyChannelInformationParams, body: ModifyChannelInformationBody | null | undefined, options: CallApiOptions['options']) => Promise<{
12207
+ modifyChannelInformation: (params: ModifyChannelInformationParams, body?: ModifyChannelInformationBody | null | undefined, options?: CallApiOptions['options']) => Promise<{
12248
12208
  ok: true;
12249
12209
  status: 204;
12250
12210
  data: void;
@@ -12268,7 +12228,7 @@ declare class TwitchApi {
12268
12228
  *
12269
12229
  * _200 OK_
12270
12230
  *
12271
- * Successfully retrieved the broadcaster’s list of editors.
12231
+ * Successfully retrieved the broadcaster's list of editors.
12272
12232
  *
12273
12233
  * _400 Bad Request_
12274
12234
  *
@@ -12284,7 +12244,7 @@ declare class TwitchApi {
12284
12244
  *
12285
12245
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-editors
12286
12246
  */
12287
- getChannelEditors: (params: GetChannelEditorsParams, options: CallApiOptions['options']) => Promise<{
12247
+ getChannelEditors: (params: GetChannelEditorsParams, options?: CallApiOptions['options']) => Promise<{
12288
12248
  ok: true;
12289
12249
  status: 200;
12290
12250
  data: {
@@ -12314,7 +12274,7 @@ declare class TwitchApi {
12314
12274
  *
12315
12275
  * _200 OK_
12316
12276
  *
12317
- * Successfully retrieved the broadcaster’s list of followers.
12277
+ * Successfully retrieved the broadcaster's list of followers.
12318
12278
  *
12319
12279
  * _400 Bad Request_
12320
12280
  *
@@ -12336,7 +12296,7 @@ declare class TwitchApi {
12336
12296
  *
12337
12297
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-channels
12338
12298
  */
12339
- getFollowedChannels: (params: GetFollowedChannelsParams, options: CallApiOptions['options']) => Promise<{
12299
+ getFollowedChannels: (params: GetFollowedChannelsParams, options?: CallApiOptions['options']) => Promise<{
12340
12300
  ok: false;
12341
12301
  status: 400 | 401;
12342
12302
  data: unknown;
@@ -12347,42 +12307,7 @@ declare class TwitchApi {
12347
12307
  data: {
12348
12308
  broadcaster_id: string;
12349
12309
  broadcaster_login: string;
12350
- broadcaster_name: string; /**
12351
- * Gets a list of broadcasters that are streaming live and have installed or activated the extension.
12352
- *
12353
- * It may take a few minutes for the list to include or remove broadcasters that have recently gone live or stopped broadcasting.
12354
- *
12355
- * __Authorization:__
12356
- *
12357
- * Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
12358
- *
12359
- * __URL:__
12360
- *
12361
- * `GET https://api.twitch.tv/helix/extensions/live`
12362
- *
12363
- * __Response Codes:__
12364
- *
12365
- * _200 OK_
12366
- *
12367
- * Successfully retrieved the list of broadcasters.
12368
- *
12369
- * _400 Bad Request_
12370
- *
12371
- * * The _extension\_id_ query parameter is required.
12372
- * * The pagination cursor is not valid.
12373
- *
12374
- * _401 Unauthorized_
12375
- *
12376
- * * The Authorization header is required and must specify an app access token or user access token.
12377
- * * The access token is not valid.
12378
- * * The ID in the Client-Id header must match the client ID in the access token.
12379
- *
12380
- * _404 Not Found_
12381
- *
12382
- * * The extension specified in the _extension\_id_ query parameter was not found or it's not being used in a live stream.
12383
- *
12384
- * @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
12385
- */
12310
+ broadcaster_name: string;
12386
12311
  followed_at: string;
12387
12312
  }[];
12388
12313
  pagination?: {
@@ -12431,7 +12356,7 @@ declare class TwitchApi {
12431
12356
  *
12432
12357
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-followers
12433
12358
  */
12434
- getChannelFollowers: (params: GetChannelFollowersParams, options: CallApiOptions['options']) => Promise<{
12359
+ getChannelFollowers: (params: GetChannelFollowersParams, options?: CallApiOptions['options']) => Promise<{
12435
12360
  ok: false;
12436
12361
  status: 400 | 401;
12437
12362
  data: unknown;
@@ -12499,7 +12424,7 @@ declare class TwitchApi {
12499
12424
  *
12500
12425
  * @see https://dev.twitch.tv/docs/api/reference#create-custom-rewards
12501
12426
  */
12502
- createCustomRewards: (params: CreateCustomRewardsParams, body: CreateCustomRewardsBody, options: CallApiOptions['options']) => Promise<{
12427
+ createCustomRewards: (params: CreateCustomRewardsParams, body: CreateCustomRewardsBody, options?: CallApiOptions['options']) => Promise<{
12503
12428
  ok: true;
12504
12429
  status: 200;
12505
12430
  data: {
@@ -12592,7 +12517,7 @@ declare class TwitchApi {
12592
12517
  *
12593
12518
  * @see https://dev.twitch.tv/docs/api/reference#delete-custom-reward
12594
12519
  */
12595
- deleteCustomReward: (params: DeleteCustomRewardParams, options: CallApiOptions['options']) => Promise<{
12520
+ deleteCustomReward: (params: DeleteCustomRewardParams, options?: CallApiOptions['options']) => Promise<{
12596
12521
  ok: true;
12597
12522
  status: 204;
12598
12523
  data: void;
@@ -12644,7 +12569,7 @@ declare class TwitchApi {
12644
12569
  *
12645
12570
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward
12646
12571
  */
12647
- getCustomReward: (params: GetCustomRewardParams, options: CallApiOptions['options']) => Promise<{
12572
+ getCustomReward: (params: GetCustomRewardParams, options?: CallApiOptions['options']) => Promise<{
12648
12573
  ok: false;
12649
12574
  status: 400 | 401 | 403 | 404 | 500;
12650
12575
  data: unknown;
@@ -12746,7 +12671,7 @@ declare class TwitchApi {
12746
12671
  *
12747
12672
  * @see https://dev.twitch.tv/docs/api/reference#update-custom-reward
12748
12673
  */
12749
- updateCustomReward: (params: UpdateCustomRewardParams, body: UpdateCustomRewardBody | null | undefined, options: CallApiOptions['options']) => Promise<{
12674
+ updateCustomReward: (params: UpdateCustomRewardParams, body?: UpdateCustomRewardBody | null | undefined, options?: CallApiOptions['options']) => Promise<{
12750
12675
  ok: false;
12751
12676
  status: 400 | 401 | 403 | 404 | 500;
12752
12677
  data: unknown;
@@ -12840,7 +12765,7 @@ declare class TwitchApi {
12840
12765
  *
12841
12766
  * @see https://dev.twitch.tv/docs/api/reference#get-custom-reward-redemption
12842
12767
  */
12843
- getCustomRewardRedemption: (params: GetCustomRewardRedemptionParams, options: CallApiOptions['options']) => Promise<{
12768
+ getCustomRewardRedemption: (params: GetCustomRewardRedemptionParams, options?: CallApiOptions['options']) => Promise<{
12844
12769
  ok: false;
12845
12770
  status: 400 | 401 | 403 | 404 | 500;
12846
12771
  data: unknown;
@@ -12913,7 +12838,7 @@ declare class TwitchApi {
12913
12838
  *
12914
12839
  * @see https://dev.twitch.tv/docs/api/reference#update-redemption-status
12915
12840
  */
12916
- updateRedemptionStatus: (params: UpdateRedemptionStatusParams, body: UpdateRedemptionStatusBody, options: CallApiOptions['options']) => Promise<{
12841
+ updateRedemptionStatus: (params: UpdateRedemptionStatusParams, body: UpdateRedemptionStatusBody, options?: CallApiOptions['options']) => Promise<{
12917
12842
  ok: false;
12918
12843
  status: 400 | 401 | 403 | 404 | 500;
12919
12844
  data: unknown;
@@ -12981,7 +12906,7 @@ declare class TwitchApi {
12981
12906
  *
12982
12907
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign
12983
12908
  */
12984
- getCharityCampaign: (params: GetCharityCampaignParams, options: CallApiOptions['options']) => Promise<{
12909
+ getCharityCampaign: (params: GetCharityCampaignParams, options?: CallApiOptions['options']) => Promise<{
12985
12910
  ok: false;
12986
12911
  status: 400 | 401 | 403;
12987
12912
  data: unknown;
@@ -13049,7 +12974,7 @@ declare class TwitchApi {
13049
12974
  *
13050
12975
  * @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign-donations
13051
12976
  */
13052
- getCharityCampaignDonations: (params: GetCharityCampaignDonationsParams, options: CallApiOptions['options']) => Promise<{
12977
+ getCharityCampaignDonations: (params: GetCharityCampaignDonationsParams, options?: CallApiOptions['options']) => Promise<{
13053
12978
  ok: false;
13054
12979
  status: 400 | 401 | 403;
13055
12980
  data: unknown;
@@ -13057,38 +12982,6 @@ declare class TwitchApi {
13057
12982
  ok: true;
13058
12983
  status: 200;
13059
12984
  data: {
13060
- /**
13061
- * Gets information about specified categories or games.
13062
- *
13063
- * 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.
13064
- *
13065
- * __Authorization:__
13066
- *
13067
- * Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
13068
- *
13069
- * __URL:__
13070
- *
13071
- * `GET https://api.twitch.tv/helix/games`
13072
- *
13073
- * __Response Codes:__
13074
- *
13075
- * _200 OK_
13076
- *
13077
- * Successfully retrieved the specified games.
13078
- *
13079
- * _400 Bad Request_
13080
- *
13081
- * * The request must specify the _id_ or _name_ or _igdb\_id_ query parameter.
13082
- * * The combined number of game IDs (_id_ and _igdb\_id_) and game names that you specify in the request must not exceed 100.
13083
- *
13084
- * _401 Unauthorized_
13085
- *
13086
- * * The Authorization header is required and must specify an app access token or user access token.
13087
- * * The access token is not valid.
13088
- * * The ID in the Client-Id header must match the client ID in the access token.
13089
- *
13090
- * @see https://dev.twitch.tv/docs/api/reference#get-games
13091
- */
13092
12985
  data: {
13093
12986
  id: string;
13094
12987
  campaign_id: string;
@@ -13150,7 +13043,7 @@ declare class TwitchApi {
13150
13043
  *
13151
13044
  * @see https://dev.twitch.tv/docs/api/reference#get-chatters
13152
13045
  */
13153
- getChatters: (params: GetChattersParams, options: CallApiOptions['options']) => Promise<{
13046
+ getChatters: (params: GetChattersParams, options?: CallApiOptions['options']) => Promise<{
13154
13047
  ok: false;
13155
13048
  status: 400 | 401 | 403;
13156
13049
  data: unknown;
@@ -13188,7 +13081,7 @@ declare class TwitchApi {
13188
13081
  *
13189
13082
  * _200 OK_
13190
13083
  *
13191
- * Successfully retrieved broadcaster’s list of custom emotes.
13084
+ * Successfully retrieved broadcaster's list of custom emotes.
13192
13085
  *
13193
13086
  * _400 Bad Request_
13194
13087
  *
@@ -13202,7 +13095,7 @@ declare class TwitchApi {
13202
13095
  *
13203
13096
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-emotes
13204
13097
  */
13205
- getChannelEmotes: (params: GetChannelEmotesParams, options: CallApiOptions['options']) => Promise<{
13098
+ getChannelEmotes: (params: GetChannelEmotesParams, options?: CallApiOptions['options']) => Promise<{
13206
13099
  ok: false;
13207
13100
  status: 400 | 401;
13208
13101
  data: unknown;
@@ -13249,7 +13142,7 @@ declare class TwitchApi {
13249
13142
  *
13250
13143
  * _200 OK_
13251
13144
  *
13252
- * Successfully retrieved Twitch’s list of global emotes.
13145
+ * Successfully retrieved Twitch's list of global emotes.
13253
13146
  *
13254
13147
  * _401 Unauthorized_
13255
13148
  *
@@ -13259,7 +13152,7 @@ declare class TwitchApi {
13259
13152
  *
13260
13153
  * @see https://dev.twitch.tv/docs/api/reference#get-global-emotes
13261
13154
  */
13262
- getGlobalEmotes: (options: CallApiOptions['options']) => Promise<{
13155
+ getGlobalEmotes: (options?: CallApiOptions['options']) => Promise<{
13263
13156
  ok: false;
13264
13157
  status: 401;
13265
13158
  data: unknown;
@@ -13316,7 +13209,7 @@ declare class TwitchApi {
13316
13209
  *
13317
13210
  * @see https://dev.twitch.tv/docs/api/reference#get-emote-sets
13318
13211
  */
13319
- getEmoteSets: (params: GetEmoteSetsParams, options: CallApiOptions['options']) => Promise<{
13212
+ getEmoteSets: (params: GetEmoteSetsParams, options?: CallApiOptions['options']) => Promise<{
13320
13213
  ok: false;
13321
13214
  status: 400 | 401;
13322
13215
  data: unknown;
@@ -13371,7 +13264,7 @@ declare class TwitchApi {
13371
13264
  *
13372
13265
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-chat-badges
13373
13266
  */
13374
- getChannelChatBadges: (params: GetChannelChatBadgesParams, options: CallApiOptions['options']) => Promise<{
13267
+ getChannelChatBadges: (params: GetChannelChatBadgesParams, options?: CallApiOptions['options']) => Promise<{
13375
13268
  ok: false;
13376
13269
  status: 400 | 401;
13377
13270
  data: unknown;
@@ -13423,7 +13316,7 @@ declare class TwitchApi {
13423
13316
  *
13424
13317
  * @see https://dev.twitch.tv/docs/api/reference#get-global-chat-badges
13425
13318
  */
13426
- getGlobalChatBadges: (options: CallApiOptions['options']) => Promise<{
13319
+ getGlobalChatBadges: (options?: CallApiOptions['options']) => Promise<{
13427
13320
  ok: false;
13428
13321
  status: 401;
13429
13322
  data: unknown;
@@ -13477,7 +13370,7 @@ declare class TwitchApi {
13477
13370
  *
13478
13371
  * @see https://dev.twitch.tv/docs/api/reference#get-chat-settings
13479
13372
  */
13480
- getChatSettings: (params: GetChatSettingsParams, options: CallApiOptions['options']) => Promise<{
13373
+ getChatSettings: (params: GetChatSettingsParams, options?: CallApiOptions['options']) => Promise<{
13481
13374
  ok: false;
13482
13375
  status: 400 | 401;
13483
13376
  data: unknown;
@@ -13549,7 +13442,7 @@ declare class TwitchApi {
13549
13442
  *
13550
13443
  * @see https://dev.twitch.tv/docs/api/reference#update-chat-settings
13551
13444
  */
13552
- updateChatSettings: (params: UpdateChatSettingsParams, body: UpdateChatSettingsBody | null | undefined, options: CallApiOptions['options']) => Promise<{
13445
+ updateChatSettings: (params: UpdateChatSettingsParams, body?: UpdateChatSettingsBody | null | undefined, options?: CallApiOptions['options']) => Promise<{
13553
13446
  ok: false;
13554
13447
  status: 400 | 401 | 403;
13555
13448
  data: unknown;
@@ -13605,7 +13498,7 @@ declare class TwitchApi {
13605
13498
  *
13606
13499
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-announcement
13607
13500
  */
13608
- sendChatAnnouncement: (params: SendChatAnnouncementParams, body: SendChatAnnouncementBody, options: CallApiOptions['options']) => Promise<{
13501
+ sendChatAnnouncement: (params: SendChatAnnouncementParams, body: SendChatAnnouncementBody, options?: CallApiOptions['options']) => Promise<{
13609
13502
  ok: true;
13610
13503
  status: 204;
13611
13504
  data: void;
@@ -13666,7 +13559,7 @@ declare class TwitchApi {
13666
13559
  *
13667
13560
  * @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
13668
13561
  */
13669
- sendShoutout: (params: SendShoutoutParams, options: CallApiOptions['options']) => Promise<{
13562
+ sendShoutout: (params: SendShoutoutParams, options?: CallApiOptions['options']) => Promise<{
13670
13563
  ok: true;
13671
13564
  status: 204;
13672
13565
  data: void;
@@ -13719,7 +13612,7 @@ declare class TwitchApi {
13719
13612
  *
13720
13613
  * @see https://dev.twitch.tv/docs/api/reference#send-chat-message
13721
13614
  */
13722
- sendChatMessage: (body: SendChatMessageBody, options: CallApiOptions['options']) => Promise<{
13615
+ sendChatMessage: (body: SendChatMessageBody, options?: CallApiOptions['options']) => Promise<{
13723
13616
  ok: true;
13724
13617
  status: 200;
13725
13618
  data: {
@@ -13766,7 +13659,7 @@ declare class TwitchApi {
13766
13659
  *
13767
13660
  * @see https://dev.twitch.tv/docs/api/reference#get-user-chat-color
13768
13661
  */
13769
- getUserChatColor: (params: GetUserChatColorParams, options: CallApiOptions['options']) => Promise<{
13662
+ getUserChatColor: (params: GetUserChatColorParams, options?: CallApiOptions['options']) => Promise<{
13770
13663
  ok: false;
13771
13664
  status: 400 | 401;
13772
13665
  data: unknown;
@@ -13816,7 +13709,7 @@ declare class TwitchApi {
13816
13709
  *
13817
13710
  * @see https://dev.twitch.tv/docs/api/reference#update-user-chat-color
13818
13711
  */
13819
- updateUserChatColor: (params: UpdateUserChatColorParams, options: CallApiOptions['options']) => Promise<{
13712
+ updateUserChatColor: (params: UpdateUserChatColorParams, options?: CallApiOptions['options']) => Promise<{
13820
13713
  ok: true;
13821
13714
  status: 204;
13822
13715
  data: void;
@@ -13873,7 +13766,7 @@ declare class TwitchApi {
13873
13766
  *
13874
13767
  * @see https://dev.twitch.tv/docs/api/reference#create-clip
13875
13768
  */
13876
- createClip: (params: CreateClipParams, options: CallApiOptions['options']) => Promise<{
13769
+ createClip: (params: CreateClipParams, options?: CallApiOptions['options']) => Promise<{
13877
13770
  ok: true;
13878
13771
  status: 202;
13879
13772
  data: {
@@ -13925,7 +13818,7 @@ declare class TwitchApi {
13925
13818
  *
13926
13819
  * @see https://dev.twitch.tv/docs/api/reference#get-clips
13927
13820
  */
13928
- getClips: (params: GetClipsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
13821
+ getClips: (params?: GetClipsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
13929
13822
  ok: false;
13930
13823
  status: 400 | 401 | 404;
13931
13824
  data: unknown;
@@ -13954,37 +13847,7 @@ declare class TwitchApi {
13954
13847
  }[];
13955
13848
  pagination?: {
13956
13849
  cursor?: string;
13957
- }; /**
13958
- * Gets all users that the broadcaster banned or put in a timeout.
13959
- *
13960
- * __Authorization:__
13961
- *
13962
- * Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** or **moderator:manage:banned\_users** scope.
13963
- *
13964
- * __URL:__
13965
- *
13966
- * `GET https://api.twitch.tv/helix/moderation/banned`
13967
- *
13968
- * __Response Codes:__
13969
- *
13970
- * _200 OK_
13971
- *
13972
- * Successfully retrieved the list of banned users.
13973
- *
13974
- * _400 Bad Request_
13975
- *
13976
- * * The _broadcaster\_id_ query parameter is required.
13977
- *
13978
- * _401 Unauthorized_
13979
- *
13980
- * * The ID in _broadcaster\_id_ must match the user ID in the user access token.
13981
- * * The Authorization header is required and must contain a user access token.
13982
- * * The user access token must include the **moderation:read** scope.
13983
- * * The access token is not valid.
13984
- * * The client ID specified in the Client-Id header does not match the client ID specified in the access token.
13985
- *
13986
- * @see https://dev.twitch.tv/docs/api/reference#get-banned-users
13987
- */
13850
+ };
13988
13851
  };
13989
13852
  }>;
13990
13853
  };
@@ -14012,7 +13875,7 @@ declare class TwitchApi {
14012
13875
  *
14013
13876
  * @see https://dev.twitch.tv/docs/api/reference#get-conduits
14014
13877
  */
14015
- getConduits: (options: CallApiOptions['options']) => Promise<{
13878
+ getConduits: (options?: CallApiOptions['options']) => Promise<{
14016
13879
  ok: false;
14017
13880
  status: 401;
14018
13881
  data: unknown;
@@ -14057,7 +13920,7 @@ declare class TwitchApi {
14057
13920
  *
14058
13921
  * @see https://dev.twitch.tv/docs/api/reference#create-conduits
14059
13922
  */
14060
- createConduits: (body: CreateConduitsBody, options: CallApiOptions['options']) => Promise<{
13923
+ createConduits: (body: CreateConduitsBody, options?: CallApiOptions['options']) => Promise<{
14061
13924
  ok: true;
14062
13925
  status: 200;
14063
13926
  data: {
@@ -14104,7 +13967,7 @@ declare class TwitchApi {
14104
13967
  *
14105
13968
  * @see https://dev.twitch.tv/docs/api/reference#update-conduits
14106
13969
  */
14107
- updateConduits: (body: UpdateConduitsBody, options: CallApiOptions['options']) => Promise<{
13970
+ updateConduits: (body: UpdateConduitsBody, options?: CallApiOptions['options']) => Promise<{
14108
13971
  ok: false;
14109
13972
  status: 400 | 401 | 404;
14110
13973
  data: unknown;
@@ -14150,7 +14013,7 @@ declare class TwitchApi {
14150
14013
  *
14151
14014
  * @see https://dev.twitch.tv/docs/api/reference#delete-conduit
14152
14015
  */
14153
- deleteConduit: (params: DeleteConduitParams, options: CallApiOptions['options']) => Promise<{
14016
+ deleteConduit: (params: DeleteConduitParams, options?: CallApiOptions['options']) => Promise<{
14154
14017
  ok: false;
14155
14018
  status: 400 | 401 | 404;
14156
14019
  data: unknown;
@@ -14191,7 +14054,7 @@ declare class TwitchApi {
14191
14054
  *
14192
14055
  * @see https://dev.twitch.tv/docs/api/reference#get-conduit-shards
14193
14056
  */
14194
- getConduitShards: (params: GetConduitShardsParams, options: CallApiOptions['options']) => Promise<{
14057
+ getConduitShards: (params: GetConduitShardsParams, options?: CallApiOptions['options']) => Promise<{
14195
14058
  ok: false;
14196
14059
  status: 400 | 401 | 404;
14197
14060
  data: unknown;
@@ -14249,7 +14112,7 @@ declare class TwitchApi {
14249
14112
  *
14250
14113
  * @see https://dev.twitch.tv/docs/api/reference#update-conduit-shards
14251
14114
  */
14252
- updateConduitShards: (body: UpdateConduitShardsBody, options: CallApiOptions['options']) => Promise<{
14115
+ updateConduitShards: (body: UpdateConduitShardsBody, options?: CallApiOptions['options']) => Promise<{
14253
14116
  ok: false;
14254
14117
  status: 400 | 401 | 404;
14255
14118
  data: unknown;
@@ -14302,7 +14165,7 @@ declare class TwitchApi {
14302
14165
  *
14303
14166
  * @see https://dev.twitch.tv/docs/api/reference#get-content-classification-labels
14304
14167
  */
14305
- getContentClassificationLabels: (params: GetContentClassificationLabelsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
14168
+ getContentClassificationLabels: (params?: GetContentClassificationLabelsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
14306
14169
  ok: true;
14307
14170
  status: 200;
14308
14171
  data: {
@@ -14372,7 +14235,7 @@ declare class TwitchApi {
14372
14235
  *
14373
14236
  * @see https://dev.twitch.tv/docs/api/reference#get-drops-entitlements
14374
14237
  */
14375
- getDropsEntitlements: (params: GetDropsEntitlementsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
14238
+ getDropsEntitlements: (params?: GetDropsEntitlementsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
14376
14239
  ok: false;
14377
14240
  status: 400 | 401 | 403 | 500;
14378
14241
  data: unknown;
@@ -14435,7 +14298,7 @@ declare class TwitchApi {
14435
14298
  *
14436
14299
  * @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
14437
14300
  */
14438
- updateDropsEntitlements: (body: UpdateDropsEntitlementsBody | null | undefined, options: CallApiOptions['options']) => Promise<{
14301
+ updateDropsEntitlements: (body?: UpdateDropsEntitlementsBody | null | undefined, options?: CallApiOptions['options']) => Promise<{
14439
14302
  ok: false;
14440
14303
  status: 400 | 401 | 500;
14441
14304
  data: unknown;
@@ -14488,7 +14351,7 @@ declare class TwitchApi {
14488
14351
  *
14489
14352
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-configuration-segment
14490
14353
  */
14491
- getExtensionConfigurationSegment: (params: GetExtensionConfigurationSegmentParams, options: CallApiOptions['options']) => Promise<{
14354
+ getExtensionConfigurationSegment: (params: GetExtensionConfigurationSegmentParams, options?: CallApiOptions['options']) => Promise<{
14492
14355
  ok: false;
14493
14356
  status: 400 | 401 | 429;
14494
14357
  data: unknown;
@@ -14535,7 +14398,7 @@ declare class TwitchApi {
14535
14398
  *
14536
14399
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-configuration-segment
14537
14400
  */
14538
- setExtensionConfigurationSegment: (body: SetExtensionConfigurationSegmentBody, options: CallApiOptions['options']) => Promise<{
14401
+ setExtensionConfigurationSegment: (body: SetExtensionConfigurationSegmentBody, options?: CallApiOptions['options']) => Promise<{
14539
14402
  ok: true;
14540
14403
  status: 204;
14541
14404
  data: void;
@@ -14576,7 +14439,7 @@ declare class TwitchApi {
14576
14439
  *
14577
14440
  * @see https://dev.twitch.tv/docs/api/reference#set-extension-required-configuration
14578
14441
  */
14579
- setExtensionRequiredConfiguration: (params: SetExtensionRequiredConfigurationParams, body: SetExtensionRequiredConfigurationBody, options: CallApiOptions['options']) => Promise<{
14442
+ setExtensionRequiredConfiguration: (params: SetExtensionRequiredConfigurationParams, body: SetExtensionRequiredConfigurationBody, options?: CallApiOptions['options']) => Promise<{
14580
14443
  ok: true;
14581
14444
  status: 204;
14582
14445
  data: void;
@@ -14654,7 +14517,7 @@ declare class TwitchApi {
14654
14517
  *
14655
14518
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message
14656
14519
  */
14657
- sendExtensionPubSubMessage: (body: SendExtensionPubSubMessageBody, options: CallApiOptions['options']) => Promise<{
14520
+ sendExtensionPubSubMessage: (body: SendExtensionPubSubMessageBody, options?: CallApiOptions['options']) => Promise<{
14658
14521
  ok: true;
14659
14522
  status: 204;
14660
14523
  data: void;
@@ -14699,7 +14562,7 @@ declare class TwitchApi {
14699
14562
  *
14700
14563
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
14701
14564
  */
14702
- getExtensionLiveChannels: (params: GetExtensionLiveChannelsParams, options: CallApiOptions['options']) => Promise<{
14565
+ getExtensionLiveChannels: (params: GetExtensionLiveChannelsParams, options?: CallApiOptions['options']) => Promise<{
14703
14566
  ok: false;
14704
14567
  status: 400 | 401 | 404;
14705
14568
  data: unknown;
@@ -14746,7 +14609,7 @@ declare class TwitchApi {
14746
14609
  *
14747
14610
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-secrets
14748
14611
  */
14749
- getExtensionSecrets: (options: CallApiOptions['options']) => Promise<{
14612
+ getExtensionSecrets: (options?: CallApiOptions['options']) => Promise<{
14750
14613
  ok: false;
14751
14614
  status: 400 | 401;
14752
14615
  data: unknown;
@@ -14794,7 +14657,7 @@ declare class TwitchApi {
14794
14657
  *
14795
14658
  * @see https://dev.twitch.tv/docs/api/reference#create-extension-secret
14796
14659
  */
14797
- createExtensionSecret: (params: CreateExtensionSecretParams, options: CallApiOptions['options']) => Promise<{
14660
+ createExtensionSecret: (params: CreateExtensionSecretParams, options?: CallApiOptions['options']) => Promise<{
14798
14661
  ok: false;
14799
14662
  status: 400 | 401;
14800
14663
  data: unknown;
@@ -14848,7 +14711,7 @@ declare class TwitchApi {
14848
14711
  *
14849
14712
  * @see https://dev.twitch.tv/docs/api/reference#send-extension-chat-message
14850
14713
  */
14851
- sendExtensionChatMessage: (params: SendExtensionChatMessageParams, body: SendExtensionChatMessageBody, options: CallApiOptions['options']) => Promise<{
14714
+ sendExtensionChatMessage: (params: SendExtensionChatMessageParams, body: SendExtensionChatMessageBody, options?: CallApiOptions['options']) => Promise<{
14852
14715
  ok: true;
14853
14716
  status: 204;
14854
14717
  data: void;
@@ -14891,7 +14754,7 @@ declare class TwitchApi {
14891
14754
  *
14892
14755
  * @see https://dev.twitch.tv/docs/api/reference#get-extensions
14893
14756
  */
14894
- getExtensions: (params: GetExtensionsParams, options: CallApiOptions['options']) => Promise<{
14757
+ getExtensions: (params: GetExtensionsParams, options?: CallApiOptions['options']) => Promise<{
14895
14758
  ok: false;
14896
14759
  status: 400 | 401 | 404;
14897
14760
  data: unknown;
@@ -14989,7 +14852,7 @@ declare class TwitchApi {
14989
14852
  *
14990
14853
  * @see https://dev.twitch.tv/docs/api/reference#get-released-extensions
14991
14854
  */
14992
- getReleasedExtensions: (params: GetReleasedExtensionsParams, options: CallApiOptions['options']) => Promise<{
14855
+ getReleasedExtensions: (params: GetReleasedExtensionsParams, options?: CallApiOptions['options']) => Promise<{
14993
14856
  ok: false;
14994
14857
  status: 400 | 401 | 404;
14995
14858
  data: unknown;
@@ -15083,7 +14946,7 @@ declare class TwitchApi {
15083
14946
  *
15084
14947
  * @see https://dev.twitch.tv/docs/api/reference#get-extension-bits-products
15085
14948
  */
15086
- getExtensionBitsProducts: (params: GetExtensionBitsProductsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
14949
+ getExtensionBitsProducts: (params?: GetExtensionBitsProductsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
15087
14950
  ok: false;
15088
14951
  status: 400 | 401;
15089
14952
  data: unknown;
@@ -15140,7 +15003,7 @@ declare class TwitchApi {
15140
15003
  *
15141
15004
  * @see https://dev.twitch.tv/docs/api/reference#update-extension-bits-product
15142
15005
  */
15143
- updateExtensionBitsProduct: (body: UpdateExtensionBitsProductBody, options: CallApiOptions['options']) => Promise<{
15006
+ updateExtensionBitsProduct: (body: UpdateExtensionBitsProductBody, options?: CallApiOptions['options']) => Promise<{
15144
15007
  ok: false;
15145
15008
  status: 400 | 401;
15146
15009
  data: unknown;
@@ -15219,7 +15082,7 @@ declare class TwitchApi {
15219
15082
  *
15220
15083
  * @see https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription
15221
15084
  */
15222
- createEventSubSubscription: (body: CreateEventSubSubscriptionBody, options: CallApiOptions['options']) => Promise<{
15085
+ createEventSubSubscription: (body: CreateEventSubSubscriptionBody, options?: CallApiOptions['options']) => Promise<{
15223
15086
  ok: true;
15224
15087
  status: 202;
15225
15088
  data: {
@@ -15283,7 +15146,7 @@ declare class TwitchApi {
15283
15146
  *
15284
15147
  * @see https://dev.twitch.tv/docs/api/reference#delete-eventsub-subscription
15285
15148
  */
15286
- deleteEventSubSubscription: (params: DeleteEventSubSubscriptionParams, options: CallApiOptions['options']) => Promise<{
15149
+ deleteEventSubSubscription: (params: DeleteEventSubSubscriptionParams, options?: CallApiOptions['options']) => Promise<{
15287
15150
  ok: false;
15288
15151
  status: 400 | 401 | 404;
15289
15152
  data: unknown;
@@ -15330,7 +15193,7 @@ declare class TwitchApi {
15330
15193
  *
15331
15194
  * @see https://dev.twitch.tv/docs/api/reference#get-eventsub-subscriptions
15332
15195
  */
15333
- getEventSubSubscriptions: (params: GetEventSubSubscriptionsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
15196
+ getEventSubSubscriptions: (params?: GetEventSubSubscriptionsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
15334
15197
  ok: false;
15335
15198
  status: 400 | 401;
15336
15199
  data: unknown;
@@ -15394,7 +15257,7 @@ declare class TwitchApi {
15394
15257
  *
15395
15258
  * @see https://dev.twitch.tv/docs/api/reference#get-top-games
15396
15259
  */
15397
- getTopGames: (params: GetTopGamesParams | null | undefined, options: CallApiOptions['options']) => Promise<{
15260
+ getTopGames: (params?: GetTopGamesParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
15398
15261
  ok: false;
15399
15262
  status: 400 | 401;
15400
15263
  data: unknown;
@@ -15445,7 +15308,7 @@ declare class TwitchApi {
15445
15308
  *
15446
15309
  * @see https://dev.twitch.tv/docs/api/reference#get-games
15447
15310
  */
15448
- getGames: (params: GetGamesParams | null | undefined, options: CallApiOptions['options']) => Promise<{
15311
+ getGames: (params?: GetGamesParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
15449
15312
  ok: false;
15450
15313
  status: 400 | 401;
15451
15314
  data: unknown;
@@ -15496,7 +15359,7 @@ declare class TwitchApi {
15496
15359
  *
15497
15360
  * @see https://dev.twitch.tv/docs/api/reference#get-creator-goals
15498
15361
  */
15499
- getCreatorGoals: (params: GetCreatorGoalsParams, options: CallApiOptions['options']) => Promise<{
15362
+ getCreatorGoals: (params: GetCreatorGoalsParams, options?: CallApiOptions['options']) => Promise<{
15500
15363
  ok: false;
15501
15364
  status: 400 | 401;
15502
15365
  data: unknown;
@@ -15546,7 +15409,7 @@ declare class TwitchApi {
15546
15409
  *
15547
15410
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings
15548
15411
  */
15549
- getChannelGuestStarSettings: (params: GetChannelGuestStarSettingsParams, options: CallApiOptions['options']) => Promise<{
15412
+ getChannelGuestStarSettings: (params: GetChannelGuestStarSettingsParams, options?: CallApiOptions['options']) => Promise<{
15550
15413
  ok: true;
15551
15414
  status: 200;
15552
15415
  data: {
@@ -15587,7 +15450,7 @@ declare class TwitchApi {
15587
15450
  *
15588
15451
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-guest-star-settings
15589
15452
  */
15590
- updateChannelGuestStarSettings: (params: UpdateChannelGuestStarSettingsParams, body: UpdateChannelGuestStarSettingsBody | null | undefined, options: CallApiOptions['options']) => Promise<{
15453
+ updateChannelGuestStarSettings: (params: UpdateChannelGuestStarSettingsParams, body?: UpdateChannelGuestStarSettingsBody | null | undefined, options?: CallApiOptions['options']) => Promise<{
15591
15454
  ok: true;
15592
15455
  status: 204;
15593
15456
  data: void;
@@ -15623,7 +15486,7 @@ declare class TwitchApi {
15623
15486
  *
15624
15487
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-session
15625
15488
  */
15626
- getGuestStarSession: (params: GetGuestStarSessionParams, options: CallApiOptions['options']) => Promise<{
15489
+ getGuestStarSession: (params: GetGuestStarSessionParams, options?: CallApiOptions['options']) => Promise<{
15627
15490
  ok: false;
15628
15491
  status: 400 | 401;
15629
15492
  data: unknown;
@@ -15649,42 +15512,7 @@ declare class TwitchApi {
15649
15512
  video_settings: {
15650
15513
  is_host_enabled: boolean;
15651
15514
  is_guest_enabled: boolean;
15652
- is_available: boolean; /**
15653
- * Removes a broadcast segment from the broadcaster’s streaming schedule.
15654
- *
15655
- * **NOTE**: For recurring segments, removing a segment removes all segments in the recurring schedule.
15656
- *
15657
- * __Authorization:__
15658
- *
15659
- * Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
15660
- *
15661
- * __URL:__
15662
- *
15663
- * `DELETE https://api.twitch.tv/helix/schedule/segment`
15664
- *
15665
- * __Response Codes:__
15666
- *
15667
- * _204 No Content_
15668
- *
15669
- * Successfully removed the broadcast segment.
15670
- *
15671
- * _400 Bad Request_
15672
- *
15673
- * * The _broadcaster\_id_ query parameter is required.
15674
- * * The ID in the _broadcaster\_id_ query parameter is not valid.
15675
- * * The _id_ query parameter is required.
15676
- * * The ID in the _id_ query parameter is not valid.
15677
- *
15678
- * _401 Unauthorized_
15679
- *
15680
- * * The ID in the _broadcaster\_id_ query parameter must match the user ID in the user access token.
15681
- * * The Authorization header is required and must contain a user access token.
15682
- * * The user access token must include the **channel:manage:schedule** scope.
15683
- * * The access token is not valid.
15684
- * * The ID in the Client-Id header must match the client ID in the OAuth token.
15685
- *
15686
- * @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
15687
- */
15515
+ is_available: boolean;
15688
15516
  };
15689
15517
  }[];
15690
15518
  };
@@ -15720,7 +15548,7 @@ declare class TwitchApi {
15720
15548
  *
15721
15549
  * @see https://dev.twitch.tv/docs/api/reference#create-guest-star-session
15722
15550
  */
15723
- createGuestStarSession: (params: CreateGuestStarSessionParams, options: CallApiOptions['options']) => Promise<{
15551
+ createGuestStarSession: (params: CreateGuestStarSessionParams, options?: CallApiOptions['options']) => Promise<{
15724
15552
  ok: false;
15725
15553
  status: 400 | 401 | 403;
15726
15554
  data: unknown;
@@ -15746,42 +15574,7 @@ declare class TwitchApi {
15746
15574
  video_settings: {
15747
15575
  is_host_enabled: boolean;
15748
15576
  is_guest_enabled: boolean;
15749
- is_available: boolean; /**
15750
- * Removes a broadcast segment from the broadcaster’s streaming schedule.
15751
- *
15752
- * **NOTE**: For recurring segments, removing a segment removes all segments in the recurring schedule.
15753
- *
15754
- * __Authorization:__
15755
- *
15756
- * Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
15757
- *
15758
- * __URL:__
15759
- *
15760
- * `DELETE https://api.twitch.tv/helix/schedule/segment`
15761
- *
15762
- * __Response Codes:__
15763
- *
15764
- * _204 No Content_
15765
- *
15766
- * Successfully removed the broadcast segment.
15767
- *
15768
- * _400 Bad Request_
15769
- *
15770
- * * The _broadcaster\_id_ query parameter is required.
15771
- * * The ID in the _broadcaster\_id_ query parameter is not valid.
15772
- * * The _id_ query parameter is required.
15773
- * * The ID in the _id_ query parameter is not valid.
15774
- *
15775
- * _401 Unauthorized_
15776
- *
15777
- * * The ID in the _broadcaster\_id_ query parameter must match the user ID in the user access token.
15778
- * * The Authorization header is required and must contain a user access token.
15779
- * * The user access token must include the **channel:manage:schedule** scope.
15780
- * * The access token is not valid.
15781
- * * The ID in the Client-Id header must match the client ID in the OAuth token.
15782
- *
15783
- * @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
15784
- */
15577
+ is_available: boolean;
15785
15578
  };
15786
15579
  }[];
15787
15580
  };
@@ -15814,7 +15607,7 @@ declare class TwitchApi {
15814
15607
  *
15815
15608
  * @see https://dev.twitch.tv/docs/api/reference#end-guest-star-session
15816
15609
  */
15817
- endGuestStarSession: (params: EndGuestStarSessionParams, options: CallApiOptions['options']) => Promise<{
15610
+ endGuestStarSession: (params: EndGuestStarSessionParams, options?: CallApiOptions['options']) => Promise<{
15818
15611
  ok: true;
15819
15612
  status: 204;
15820
15613
  data: void;
@@ -15846,7 +15639,7 @@ declare class TwitchApi {
15846
15639
  *
15847
15640
  * @see https://dev.twitch.tv/docs/api/reference#get-guest-star-invites
15848
15641
  */
15849
- getGuestStarInvites: (params: GetGuestStarInvitesParams, options: CallApiOptions['options']) => Promise<{
15642
+ getGuestStarInvites: (params: GetGuestStarInvitesParams, options?: CallApiOptions['options']) => Promise<{
15850
15643
  ok: false;
15851
15644
  status: 400;
15852
15645
  data: unknown;
@@ -15896,7 +15689,7 @@ declare class TwitchApi {
15896
15689
  *
15897
15690
  * @see https://dev.twitch.tv/docs/api/reference#send-guest-star-invite
15898
15691
  */
15899
- sendGuestStarInvite: (params: SendGuestStarInviteParams, options: CallApiOptions['options']) => Promise<{
15692
+ sendGuestStarInvite: (params: SendGuestStarInviteParams, options?: CallApiOptions['options']) => Promise<{
15900
15693
  ok: true;
15901
15694
  status: 204;
15902
15695
  data: void;
@@ -15934,7 +15727,7 @@ declare class TwitchApi {
15934
15727
  *
15935
15728
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-invite
15936
15729
  */
15937
- deleteGuestStarInvite: (params: DeleteGuestStarInviteParams, options: CallApiOptions['options']) => Promise<{
15730
+ deleteGuestStarInvite: (params: DeleteGuestStarInviteParams, options?: CallApiOptions['options']) => Promise<{
15938
15731
  ok: true;
15939
15732
  status: 204;
15940
15733
  data: void;
@@ -15982,7 +15775,7 @@ declare class TwitchApi {
15982
15775
  *
15983
15776
  * @see https://dev.twitch.tv/docs/api/reference#assign-guest-star-slot
15984
15777
  */
15985
- assignGuestStarSlot: (params: AssignGuestStarSlotParams, options: CallApiOptions['options']) => Promise<{
15778
+ assignGuestStarSlot: (params: AssignGuestStarSlotParams, options?: CallApiOptions['options']) => Promise<{
15986
15779
  ok: false;
15987
15780
  status: 400 | 401 | 403;
15988
15781
  data: unknown;
@@ -16017,7 +15810,7 @@ declare class TwitchApi {
16017
15810
  *
16018
15811
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot
16019
15812
  */
16020
- updateGuestStarSlot: (params: UpdateGuestStarSlotParams, options: CallApiOptions['options']) => Promise<{
15813
+ updateGuestStarSlot: (params: UpdateGuestStarSlotParams, options?: CallApiOptions['options']) => Promise<{
16021
15814
  ok: true;
16022
15815
  status: 204;
16023
15816
  data: void;
@@ -16062,7 +15855,7 @@ declare class TwitchApi {
16062
15855
  *
16063
15856
  * @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-slot
16064
15857
  */
16065
- deleteGuestStarSlot: (params: DeleteGuestStarSlotParams, options: CallApiOptions['options']) => Promise<{
15858
+ deleteGuestStarSlot: (params: DeleteGuestStarSlotParams, options?: CallApiOptions['options']) => Promise<{
16066
15859
  ok: true;
16067
15860
  status: 204;
16068
15861
  data: void;
@@ -16103,7 +15896,7 @@ declare class TwitchApi {
16103
15896
  *
16104
15897
  * @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot-settings
16105
15898
  */
16106
- updateGuestStarSlotSettings: (params: UpdateGuestStarSlotSettingsParams, options: CallApiOptions['options']) => Promise<{
15899
+ updateGuestStarSlotSettings: (params: UpdateGuestStarSlotSettingsParams, options?: CallApiOptions['options']) => Promise<{
16107
15900
  ok: true;
16108
15901
  status: 204;
16109
15902
  data: void;
@@ -16143,7 +15936,7 @@ declare class TwitchApi {
16143
15936
  *
16144
15937
  * @see https://dev.twitch.tv/docs/api/reference#get-hype-train-events
16145
15938
  */
16146
- getHypeTrainEvents: (params: GetHypeTrainEventsParams, options: CallApiOptions['options']) => Promise<{
15939
+ getHypeTrainEvents: (params: GetHypeTrainEventsParams, options?: CallApiOptions['options']) => Promise<{
16147
15940
  ok: false;
16148
15941
  status: 401;
16149
15942
  data: unknown;
@@ -16238,7 +16031,7 @@ declare class TwitchApi {
16238
16031
  *
16239
16032
  * @see https://dev.twitch.tv/docs/api/reference#check-automod-status
16240
16033
  */
16241
- checkAutoModStatus: (params: CheckAutoModStatusParams, body: CheckAutoModStatusBody, options: CallApiOptions['options']) => Promise<{
16034
+ checkAutoModStatus: (params: CheckAutoModStatusParams, body: CheckAutoModStatusBody, options?: CallApiOptions['options']) => Promise<{
16242
16035
  ok: false;
16243
16036
  status: 400 | 401 | 403 | 429;
16244
16037
  data: unknown;
@@ -16296,7 +16089,7 @@ declare class TwitchApi {
16296
16089
  *
16297
16090
  * @see https://dev.twitch.tv/docs/api/reference#manage-held-automod-messages
16298
16091
  */
16299
- manageHeldAutoModMessages: (body: ManageHeldAutoModMessagesBody, options: CallApiOptions['options']) => Promise<{
16092
+ manageHeldAutoModMessages: (body: ManageHeldAutoModMessagesBody, options?: CallApiOptions['options']) => Promise<{
16300
16093
  ok: true;
16301
16094
  status: 204;
16302
16095
  data: void;
@@ -16341,7 +16134,7 @@ declare class TwitchApi {
16341
16134
  *
16342
16135
  * @see https://dev.twitch.tv/docs/api/reference#get-automod-settings
16343
16136
  */
16344
- getAutoModSettings: (params: GetAutoModSettingsParams, options: CallApiOptions['options']) => Promise<{
16137
+ getAutoModSettings: (params: GetAutoModSettingsParams, options?: CallApiOptions['options']) => Promise<{
16345
16138
  ok: false;
16346
16139
  status: 400 | 401 | 403;
16347
16140
  data: unknown;
@@ -16416,7 +16209,7 @@ declare class TwitchApi {
16416
16209
  *
16417
16210
  * @see https://dev.twitch.tv/docs/api/reference#update-automod-settings
16418
16211
  */
16419
- updateAutoModSettings: (params: UpdateAutoModSettingsParams, body: UpdateAutoModSettingsBody | null | undefined, options: CallApiOptions['options']) => Promise<{
16212
+ updateAutoModSettings: (params: UpdateAutoModSettingsParams, body?: UpdateAutoModSettingsBody | null | undefined, options?: CallApiOptions['options']) => Promise<{
16420
16213
  ok: false;
16421
16214
  status: 400 | 401 | 403;
16422
16215
  data: unknown;
@@ -16470,7 +16263,7 @@ declare class TwitchApi {
16470
16263
  *
16471
16264
  * @see https://dev.twitch.tv/docs/api/reference#get-banned-users
16472
16265
  */
16473
- getBannedUsers: (params: GetBannedUsersParams, options: CallApiOptions['options']) => Promise<{
16266
+ getBannedUsers: (params: GetBannedUsersParams, options?: CallApiOptions['options']) => Promise<{
16474
16267
  ok: false;
16475
16268
  status: 400 | 401;
16476
16269
  data: unknown;
@@ -16550,7 +16343,7 @@ declare class TwitchApi {
16550
16343
  *
16551
16344
  * @see https://dev.twitch.tv/docs/api/reference#ban-user
16552
16345
  */
16553
- banUser: (params: BanUserParams, body: BanUserBody, options: CallApiOptions['options']) => Promise<{
16346
+ banUser: (params: BanUserParams, body: BanUserBody, options?: CallApiOptions['options']) => Promise<{
16554
16347
  ok: false;
16555
16348
  status: 400 | 401 | 403 | 409 | 429;
16556
16349
  data: unknown;
@@ -16615,7 +16408,7 @@ declare class TwitchApi {
16615
16408
  *
16616
16409
  * @see https://dev.twitch.tv/docs/api/reference#unban-user
16617
16410
  */
16618
- unbanUser: (params: UnbanUserParams, options: CallApiOptions['options']) => Promise<{
16411
+ unbanUser: (params: UnbanUserParams, options?: CallApiOptions['options']) => Promise<{
16619
16412
  ok: true;
16620
16413
  status: 204;
16621
16414
  data: void;
@@ -16660,7 +16453,7 @@ declare class TwitchApi {
16660
16453
  *
16661
16454
  * @see https://dev.twitch.tv/docs/api/reference#get-blocked-terms
16662
16455
  */
16663
- getBlockedTerms: (params: GetBlockedTermsParams, options: CallApiOptions['options']) => Promise<{
16456
+ getBlockedTerms: (params: GetBlockedTermsParams, options?: CallApiOptions['options']) => Promise<{
16664
16457
  ok: false;
16665
16458
  status: 400 | 401 | 403;
16666
16459
  data: unknown;
@@ -16720,7 +16513,7 @@ declare class TwitchApi {
16720
16513
  *
16721
16514
  * @see https://dev.twitch.tv/docs/api/reference#add-blocked-term
16722
16515
  */
16723
- addBlockedTerm: (params: AddBlockedTermParams, body: AddBlockedTermBody, options: CallApiOptions['options']) => Promise<{
16516
+ addBlockedTerm: (params: AddBlockedTermParams, body: AddBlockedTermBody, options?: CallApiOptions['options']) => Promise<{
16724
16517
  ok: false;
16725
16518
  status: 400 | 401 | 403;
16726
16519
  data: unknown;
@@ -16776,7 +16569,7 @@ declare class TwitchApi {
16776
16569
  *
16777
16570
  * @see https://dev.twitch.tv/docs/api/reference#remove-blocked-term
16778
16571
  */
16779
- removeBlockedTerm: (params: RemoveBlockedTermParams, options: CallApiOptions['options']) => Promise<{
16572
+ removeBlockedTerm: (params: RemoveBlockedTermParams, options?: CallApiOptions['options']) => Promise<{
16780
16573
  ok: false;
16781
16574
  status: 400 | 401 | 403;
16782
16575
  data: unknown;
@@ -16825,7 +16618,7 @@ declare class TwitchApi {
16825
16618
  *
16826
16619
  * @see https://dev.twitch.tv/docs/api/reference#delete-chat-messages
16827
16620
  */
16828
- deleteChatMessages: (params: DeleteChatMessagesParams, options: CallApiOptions['options']) => Promise<{
16621
+ deleteChatMessages: (params: DeleteChatMessagesParams, options?: CallApiOptions['options']) => Promise<{
16829
16622
  ok: true;
16830
16623
  status: 204;
16831
16624
  data: void;
@@ -16835,7 +16628,7 @@ declare class TwitchApi {
16835
16628
  data: unknown;
16836
16629
  }>;
16837
16630
  /**
16838
- * BETA Gets a list of channels that the specified user has moderator privileges in.
16631
+ * Gets a list of channels that the specified user has moderator privileges in.
16839
16632
  *
16840
16633
  * __Authorization:__
16841
16634
  *
@@ -16860,7 +16653,7 @@ declare class TwitchApi {
16860
16653
  *
16861
16654
  * @see https://dev.twitch.tv/docs/api/reference#get-moderated-channels
16862
16655
  */
16863
- getModeratedChannels: (params: GetModeratedChannelsParams, options: CallApiOptions['options']) => Promise<{
16656
+ getModeratedChannels: (params: GetModeratedChannelsParams, options?: CallApiOptions['options']) => Promise<{
16864
16657
  ok: false;
16865
16658
  status: 400 | 401 | 500;
16866
16659
  data: unknown;
@@ -16909,7 +16702,7 @@ declare class TwitchApi {
16909
16702
  *
16910
16703
  * @see https://dev.twitch.tv/docs/api/reference#get-moderators
16911
16704
  */
16912
- getModerators: (params: GetModeratorsParams, options: CallApiOptions['options']) => Promise<{
16705
+ getModerators: (params: GetModeratorsParams, options?: CallApiOptions['options']) => Promise<{
16913
16706
  ok: false;
16914
16707
  status: 400 | 401;
16915
16708
  data: unknown;
@@ -16971,7 +16764,7 @@ declare class TwitchApi {
16971
16764
  *
16972
16765
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-moderator
16973
16766
  */
16974
- addChannelModerator: (params: AddChannelModeratorParams, options: CallApiOptions['options']) => Promise<{
16767
+ addChannelModerator: (params: AddChannelModeratorParams, options?: CallApiOptions['options']) => Promise<{
16975
16768
  ok: true;
16976
16769
  status: 204;
16977
16770
  data: void;
@@ -17019,7 +16812,7 @@ declare class TwitchApi {
17019
16812
  *
17020
16813
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-moderator
17021
16814
  */
17022
- removeChannelModerator: (params: RemoveChannelModeratorParams, options: CallApiOptions['options']) => Promise<{
16815
+ removeChannelModerator: (params: RemoveChannelModeratorParams, options?: CallApiOptions['options']) => Promise<{
17023
16816
  ok: true;
17024
16817
  status: 204;
17025
16818
  data: void;
@@ -17061,7 +16854,7 @@ declare class TwitchApi {
17061
16854
  *
17062
16855
  * @see https://dev.twitch.tv/docs/api/reference#get-vips
17063
16856
  */
17064
- getVIPs: (params: GetVIPsParams, options: CallApiOptions['options']) => Promise<{
16857
+ getVIPs: (params: GetVIPsParams, options?: CallApiOptions['options']) => Promise<{
17065
16858
  ok: false;
17066
16859
  status: 400 | 401;
17067
16860
  data: unknown;
@@ -17140,7 +16933,7 @@ declare class TwitchApi {
17140
16933
  *
17141
16934
  * @see https://dev.twitch.tv/docs/api/reference#add-channel-vip
17142
16935
  */
17143
- addChannelVIP: (params: AddChannelVIPParams, options: CallApiOptions['options']) => Promise<{
16936
+ addChannelVIP: (params: AddChannelVIPParams, options?: CallApiOptions['options']) => Promise<{
17144
16937
  ok: true;
17145
16938
  status: 204;
17146
16939
  data: void;
@@ -17202,7 +16995,7 @@ declare class TwitchApi {
17202
16995
  *
17203
16996
  * @see https://dev.twitch.tv/docs/api/reference#remove-channel-vip
17204
16997
  */
17205
- removeChannelVIP: (params: RemoveChannelVIPParams, options: CallApiOptions['options']) => Promise<{
16998
+ removeChannelVIP: (params: RemoveChannelVIPParams, options?: CallApiOptions['options']) => Promise<{
17206
16999
  ok: true;
17207
17000
  status: 204;
17208
17001
  data: void;
@@ -17251,7 +17044,7 @@ declare class TwitchApi {
17251
17044
  *
17252
17045
  * @see https://dev.twitch.tv/docs/api/reference#update-shield-mode-status
17253
17046
  */
17254
- updateShieldModeStatus: (params: UpdateShieldModeStatusParams, body: UpdateShieldModeStatusBody, options: CallApiOptions['options']) => Promise<{
17047
+ updateShieldModeStatus: (params: UpdateShieldModeStatusParams, body: UpdateShieldModeStatusBody, options?: CallApiOptions['options']) => Promise<{
17255
17048
  ok: false;
17256
17049
  status: 400 | 401 | 403;
17257
17050
  data: unknown;
@@ -17306,7 +17099,7 @@ declare class TwitchApi {
17306
17099
  *
17307
17100
  * @see https://dev.twitch.tv/docs/api/reference#get-shield-mode-status
17308
17101
  */
17309
- getShieldModeStatus: (params: GetShieldModeStatusParams, options: CallApiOptions['options']) => Promise<{
17102
+ getShieldModeStatus: (params: GetShieldModeStatusParams, options?: CallApiOptions['options']) => Promise<{
17310
17103
  ok: false;
17311
17104
  status: 400 | 401 | 403;
17312
17105
  data: unknown;
@@ -17362,7 +17155,7 @@ declare class TwitchApi {
17362
17155
  *
17363
17156
  * @see https://dev.twitch.tv/docs/api/reference#get-polls
17364
17157
  */
17365
- getPolls: (params: GetPollsParams, options: CallApiOptions['options']) => Promise<{
17158
+ getPolls: (params: GetPollsParams, options?: CallApiOptions['options']) => Promise<{
17366
17159
  ok: false;
17367
17160
  status: 400 | 401 | 404;
17368
17161
  data: unknown;
@@ -17441,7 +17234,7 @@ declare class TwitchApi {
17441
17234
  *
17442
17235
  * @see https://dev.twitch.tv/docs/api/reference#create-poll
17443
17236
  */
17444
- createPoll: (body: CreatePollBody, options: CallApiOptions['options']) => Promise<{
17237
+ createPoll: (body: CreatePollBody, options?: CallApiOptions['options']) => Promise<{
17445
17238
  ok: false;
17446
17239
  status: 400 | 401;
17447
17240
  data: unknown;
@@ -17508,7 +17301,7 @@ declare class TwitchApi {
17508
17301
  *
17509
17302
  * @see https://dev.twitch.tv/docs/api/reference#end-poll
17510
17303
  */
17511
- endPoll: (body: EndPollBody, options: CallApiOptions['options']) => Promise<{
17304
+ endPoll: (body: EndPollBody, options?: CallApiOptions['options']) => Promise<{
17512
17305
  ok: false;
17513
17306
  status: 400 | 401;
17514
17307
  data: unknown;
@@ -17573,7 +17366,7 @@ declare class TwitchApi {
17573
17366
  *
17574
17367
  * @see https://dev.twitch.tv/docs/api/reference#get-predictions
17575
17368
  */
17576
- getPredictions: (params: GetPredictionsParams, options: CallApiOptions['options']) => Promise<{
17369
+ getPredictions: (params: GetPredictionsParams, options?: CallApiOptions['options']) => Promise<{
17577
17370
  ok: false;
17578
17371
  status: 400 | 401;
17579
17372
  data: unknown;
@@ -17657,7 +17450,7 @@ declare class TwitchApi {
17657
17450
  *
17658
17451
  * @see https://dev.twitch.tv/docs/api/reference#create-prediction
17659
17452
  */
17660
- createPrediction: (body: CreatePredictionBody, options: CallApiOptions['options']) => Promise<{
17453
+ createPrediction: (body: CreatePredictionBody, options?: CallApiOptions['options']) => Promise<{
17661
17454
  ok: false;
17662
17455
  status: 400 | 401 | 429;
17663
17456
  data: unknown;
@@ -17736,7 +17529,7 @@ declare class TwitchApi {
17736
17529
  *
17737
17530
  * @see https://dev.twitch.tv/docs/api/reference#end-prediction
17738
17531
  */
17739
- endPrediction: (body: EndPredictionBody, options: CallApiOptions['options']) => Promise<{
17532
+ endPrediction: (body: EndPredictionBody, options?: CallApiOptions['options']) => Promise<{
17740
17533
  ok: false;
17741
17534
  status: 400 | 401 | 404;
17742
17535
  data: unknown;
@@ -17831,7 +17624,7 @@ declare class TwitchApi {
17831
17624
  *
17832
17625
  * @see https://dev.twitch.tv/docs/api/reference#start-a-raid
17833
17626
  */
17834
- startRaid: (params: StartRaidParams | null | undefined, options: CallApiOptions['options']) => Promise<{
17627
+ startRaid: (params?: StartRaidParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
17835
17628
  ok: true;
17836
17629
  status: 200;
17837
17630
  data: {
@@ -17888,7 +17681,7 @@ declare class TwitchApi {
17888
17681
  *
17889
17682
  * @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
17890
17683
  */
17891
- cancelRaid: (params: CancelRaidParams, options: CallApiOptions['options']) => Promise<{
17684
+ cancelRaid: (params: CancelRaidParams, options?: CallApiOptions['options']) => Promise<{
17892
17685
  ok: false;
17893
17686
  status: 400 | 401 | 404 | 429;
17894
17687
  data: unknown;
@@ -17939,7 +17732,7 @@ declare class TwitchApi {
17939
17732
  *
17940
17733
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-stream-schedule
17941
17734
  */
17942
- getChannelStreamSchedule: (params: GetChannelStreamScheduleParams, options: CallApiOptions['options']) => Promise<{
17735
+ getChannelStreamSchedule: (params: GetChannelStreamScheduleParams, options?: CallApiOptions['options']) => Promise<{
17943
17736
  ok: false;
17944
17737
  status: 400 | 401 | 403 | 404;
17945
17738
  data: unknown;
@@ -18003,7 +17796,7 @@ declare class TwitchApi {
18003
17796
  *
18004
17797
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-icalendar
18005
17798
  */
18006
- getChannelICalendar: (params: GetChannelICalendarParams, options: CallApiOptions['options']) => Promise<{
17799
+ getChannelICalendar: (params: GetChannelICalendarParams, options?: CallApiOptions['options']) => Promise<{
18007
17800
  ok: false;
18008
17801
  status: 400;
18009
17802
  data: unknown;
@@ -18051,7 +17844,7 @@ declare class TwitchApi {
18051
17844
  *
18052
17845
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule
18053
17846
  */
18054
- updateChannelStreamSchedule: (params: UpdateChannelStreamScheduleParams, options: CallApiOptions['options']) => Promise<{
17847
+ updateChannelStreamSchedule: (params: UpdateChannelStreamScheduleParams, options?: CallApiOptions['options']) => Promise<{
18055
17848
  ok: false;
18056
17849
  status: 400 | 401 | 404;
18057
17850
  data: unknown;
@@ -18101,7 +17894,7 @@ declare class TwitchApi {
18101
17894
  *
18102
17895
  * @see https://dev.twitch.tv/docs/api/reference#create-channel-stream-schedule-segment
18103
17896
  */
18104
- createChannelStreamScheduleSegment: (params: CreateChannelStreamScheduleSegmentParams, body: CreateChannelStreamScheduleSegmentBody, options: CallApiOptions['options']) => Promise<{
17897
+ createChannelStreamScheduleSegment: (params: CreateChannelStreamScheduleSegmentParams, body: CreateChannelStreamScheduleSegmentBody, options?: CallApiOptions['options']) => Promise<{
18105
17898
  ok: false;
18106
17899
  status: 400 | 401 | 403;
18107
17900
  data: unknown;
@@ -18177,7 +17970,7 @@ declare class TwitchApi {
18177
17970
  *
18178
17971
  * @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule-segment
18179
17972
  */
18180
- updateChannelStreamScheduleSegment: (params: UpdateChannelStreamScheduleSegmentParams, body: UpdateChannelStreamScheduleSegmentBody | null | undefined, options: CallApiOptions['options']) => Promise<{
17973
+ updateChannelStreamScheduleSegment: (params: UpdateChannelStreamScheduleSegmentParams, body?: UpdateChannelStreamScheduleSegmentBody | null | undefined, options?: CallApiOptions['options']) => Promise<{
18181
17974
  ok: false;
18182
17975
  status: 400 | 401 | 404;
18183
17976
  data: unknown;
@@ -18244,7 +18037,7 @@ declare class TwitchApi {
18244
18037
  *
18245
18038
  * @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
18246
18039
  */
18247
- deleteChannelStreamScheduleSegment: (params: DeleteChannelStreamScheduleSegmentParams, options: CallApiOptions['options']) => Promise<{
18040
+ deleteChannelStreamScheduleSegment: (params: DeleteChannelStreamScheduleSegmentParams, options?: CallApiOptions['options']) => Promise<{
18248
18041
  ok: true;
18249
18042
  status: 204;
18250
18043
  data: void;
@@ -18286,7 +18079,7 @@ declare class TwitchApi {
18286
18079
  *
18287
18080
  * @see https://dev.twitch.tv/docs/api/reference#search-categories
18288
18081
  */
18289
- searchCategories: (params: SearchCategoriesParams, options: CallApiOptions['options']) => Promise<{
18082
+ searchCategories: (params: SearchCategoriesParams, options?: CallApiOptions['options']) => Promise<{
18290
18083
  ok: false;
18291
18084
  status: 400 | 401;
18292
18085
  data: unknown;
@@ -18336,7 +18129,7 @@ declare class TwitchApi {
18336
18129
  *
18337
18130
  * @see https://dev.twitch.tv/docs/api/reference#search-channels
18338
18131
  */
18339
- searchChannels: (params: SearchChannelsParams, options: CallApiOptions['options']) => Promise<{
18132
+ searchChannels: (params: SearchChannelsParams, options?: CallApiOptions['options']) => Promise<{
18340
18133
  ok: false;
18341
18134
  status: 400 | 401;
18342
18135
  data: unknown;
@@ -18394,7 +18187,7 @@ declare class TwitchApi {
18394
18187
  *
18395
18188
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-key
18396
18189
  */
18397
- getStreamKey: (params: GetStreamKeyParams, options: CallApiOptions['options']) => Promise<{
18190
+ getStreamKey: (params: GetStreamKeyParams, options?: CallApiOptions['options']) => Promise<{
18398
18191
  ok: false;
18399
18192
  status: 400 | 401;
18400
18193
  data: unknown;
@@ -18436,7 +18229,7 @@ declare class TwitchApi {
18436
18229
  *
18437
18230
  * @see https://dev.twitch.tv/docs/api/reference#get-streams
18438
18231
  */
18439
- getStreams: (params: GetStreamsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
18232
+ getStreams: (params?: GetStreamsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
18440
18233
  ok: false;
18441
18234
  status: 400 | 401;
18442
18235
  data: unknown;
@@ -18497,7 +18290,7 @@ declare class TwitchApi {
18497
18290
  *
18498
18291
  * @see https://dev.twitch.tv/docs/api/reference#get-followed-streams
18499
18292
  */
18500
- getFollowedStreams: (params: GetFollowedStreamsParams, options: CallApiOptions['options']) => Promise<{
18293
+ getFollowedStreams: (params: GetFollowedStreamsParams, options?: CallApiOptions['options']) => Promise<{
18501
18294
  ok: false;
18502
18295
  status: 400 | 401;
18503
18296
  data: unknown;
@@ -18575,7 +18368,7 @@ declare class TwitchApi {
18575
18368
  *
18576
18369
  * @see https://dev.twitch.tv/docs/api/reference#create-stream-marker
18577
18370
  */
18578
- createStreamMarker: (body: CreateStreamMarkerBody, options: CallApiOptions['options']) => Promise<{
18371
+ createStreamMarker: (body: CreateStreamMarkerBody, options?: CallApiOptions['options']) => Promise<{
18579
18372
  ok: false;
18580
18373
  status: 400 | 401 | 403 | 404;
18581
18374
  data: unknown;
@@ -18629,7 +18422,7 @@ declare class TwitchApi {
18629
18422
  *
18630
18423
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-markers
18631
18424
  */
18632
- getStreamMarkers: (params: GetStreamMarkersParams | null | undefined, options: CallApiOptions['options']) => Promise<{
18425
+ getStreamMarkers: (params?: GetStreamMarkersParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
18633
18426
  ok: false;
18634
18427
  status: 400 | 401 | 403 | 404;
18635
18428
  data: unknown;
@@ -18691,7 +18484,7 @@ declare class TwitchApi {
18691
18484
  *
18692
18485
  * @see https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions
18693
18486
  */
18694
- getBroadcasterSubscriptions: (params: GetBroadcasterSubscriptionsParams, options: CallApiOptions['options']) => Promise<{
18487
+ getBroadcasterSubscriptions: (params: GetBroadcasterSubscriptionsParams, options?: CallApiOptions['options']) => Promise<{
18695
18488
  ok: false;
18696
18489
  status: 400 | 401;
18697
18490
  data: unknown;
@@ -18758,7 +18551,7 @@ declare class TwitchApi {
18758
18551
  *
18759
18552
  * @see https://dev.twitch.tv/docs/api/reference#check-user-subscription
18760
18553
  */
18761
- checkUserSubscription: (params: CheckUserSubscriptionParams, options: CallApiOptions['options']) => Promise<{
18554
+ checkUserSubscription: (params: CheckUserSubscriptionParams, options?: CallApiOptions['options']) => Promise<{
18762
18555
  ok: false;
18763
18556
  status: 400 | 401 | 404;
18764
18557
  data: unknown;
@@ -18812,7 +18605,7 @@ declare class TwitchApi {
18812
18605
  *
18813
18606
  * @see https://dev.twitch.tv/docs/api/reference#get-all-stream-tags
18814
18607
  */
18815
- getAllStreamTags: (params: GetAllStreamTagsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
18608
+ getAllStreamTags: (params?: GetAllStreamTagsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
18816
18609
  ok: false;
18817
18610
  status: 400 | 401;
18818
18611
  data: unknown;
@@ -18867,7 +18660,7 @@ declare class TwitchApi {
18867
18660
  *
18868
18661
  * @see https://dev.twitch.tv/docs/api/reference#get-stream-tags
18869
18662
  */
18870
- getStreamTags: (params: GetStreamTagsParams, options: CallApiOptions['options']) => Promise<{
18663
+ getStreamTags: (params: GetStreamTagsParams, options?: CallApiOptions['options']) => Promise<{
18871
18664
  ok: false;
18872
18665
  status: 400 | 401;
18873
18666
  data: unknown;
@@ -18922,7 +18715,7 @@ declare class TwitchApi {
18922
18715
  *
18923
18716
  * @see https://dev.twitch.tv/docs/api/reference#get-channel-teams
18924
18717
  */
18925
- getChannelTeams: (params: GetChannelTeamsParams, options: CallApiOptions['options']) => Promise<{
18718
+ getChannelTeams: (params: GetChannelTeamsParams, options?: CallApiOptions['options']) => Promise<{
18926
18719
  ok: false;
18927
18720
  status: 400 | 401 | 404;
18928
18721
  data: unknown;
@@ -18961,7 +18754,7 @@ declare class TwitchApi {
18961
18754
  *
18962
18755
  * _200 OK_
18963
18756
  *
18964
- * Successfully retrieved the team’s information.
18757
+ * Successfully retrieved the team's information.
18965
18758
  *
18966
18759
  * _400 Bad Request_
18967
18760
  *
@@ -18981,7 +18774,7 @@ declare class TwitchApi {
18981
18774
  *
18982
18775
  * @see https://dev.twitch.tv/docs/api/reference#get-teams
18983
18776
  */
18984
- getTeams: (params: GetTeamsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
18777
+ getTeams: (params?: GetTeamsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
18985
18778
  ok: false;
18986
18779
  status: 400 | 401 | 404;
18987
18780
  data: unknown;
@@ -19030,7 +18823,7 @@ declare class TwitchApi {
19030
18823
  *
19031
18824
  * _200 OK_
19032
18825
  *
19033
- * Successfully retrieved the specified users’ information.
18826
+ * Successfully retrieved the specified users' information.
19034
18827
  *
19035
18828
  * _400 Bad Request_
19036
18829
  *
@@ -19045,7 +18838,7 @@ declare class TwitchApi {
19045
18838
  *
19046
18839
  * @see https://dev.twitch.tv/docs/api/reference#get-users
19047
18840
  */
19048
- getUsers: (params: GetUsersParams | null | undefined, options: CallApiOptions['options']) => Promise<{
18841
+ getUsers: (params?: GetUsersParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
19049
18842
  ok: false;
19050
18843
  status: 400 | 401;
19051
18844
  data: unknown;
@@ -19085,7 +18878,7 @@ declare class TwitchApi {
19085
18878
  *
19086
18879
  * _200 OK_
19087
18880
  *
19088
- * Successfully updated the specified user’s information.
18881
+ * Successfully updated the specified user's information.
19089
18882
  *
19090
18883
  * _400 Bad Request_
19091
18884
  *
@@ -19100,7 +18893,7 @@ declare class TwitchApi {
19100
18893
  *
19101
18894
  * @see https://dev.twitch.tv/docs/api/reference#update-user
19102
18895
  */
19103
- updateUser: (params: UpdateUserParams | null | undefined, options: CallApiOptions['options']) => Promise<{
18896
+ updateUser: (params?: UpdateUserParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
19104
18897
  ok: false;
19105
18898
  status: 400 | 401;
19106
18899
  data: unknown;
@@ -19138,7 +18931,7 @@ declare class TwitchApi {
19138
18931
  *
19139
18932
  * _200 OK_
19140
18933
  *
19141
- * Successfully retrieved the broadcaster’s list of blocked users.
18934
+ * Successfully retrieved the broadcaster's list of blocked users.
19142
18935
  *
19143
18936
  * _400 Bad Request_
19144
18937
  *
@@ -19154,7 +18947,7 @@ declare class TwitchApi {
19154
18947
  *
19155
18948
  * @see https://dev.twitch.tv/docs/api/reference#get-user-block-list
19156
18949
  */
19157
- getUserBlockList: (params: GetUserBlockListParams, options: CallApiOptions['options']) => Promise<{
18950
+ getUserBlockList: (params: GetUserBlockListParams, options?: CallApiOptions['options']) => Promise<{
19158
18951
  ok: false;
19159
18952
  status: 400 | 401;
19160
18953
  data: unknown;
@@ -19204,7 +18997,7 @@ declare class TwitchApi {
19204
18997
  *
19205
18998
  * @see https://dev.twitch.tv/docs/api/reference#block-user
19206
18999
  */
19207
- blockUser: (params: BlockUserParams, options: CallApiOptions['options']) => Promise<{
19000
+ blockUser: (params: BlockUserParams, options?: CallApiOptions['options']) => Promise<{
19208
19001
  ok: true;
19209
19002
  status: 204;
19210
19003
  data: void;
@@ -19243,7 +19036,7 @@ declare class TwitchApi {
19243
19036
  *
19244
19037
  * @see https://dev.twitch.tv/docs/api/reference#unblock-user
19245
19038
  */
19246
- unblockUser: (params: UnblockUserParams, options: CallApiOptions['options']) => Promise<{
19039
+ unblockUser: (params: UnblockUserParams, options?: CallApiOptions['options']) => Promise<{
19247
19040
  ok: true;
19248
19041
  status: 204;
19249
19042
  data: void;
@@ -19267,7 +19060,7 @@ declare class TwitchApi {
19267
19060
  *
19268
19061
  * _200 OK_
19269
19062
  *
19270
- * Successfully retrieved the user’s installed extensions.
19063
+ * Successfully retrieved the user's installed extensions.
19271
19064
  *
19272
19065
  * _401 Unauthorized_
19273
19066
  *
@@ -19278,7 +19071,7 @@ declare class TwitchApi {
19278
19071
  *
19279
19072
  * @see https://dev.twitch.tv/docs/api/reference#get-user-extensions
19280
19073
  */
19281
- getUserExtensions: (options: CallApiOptions['options']) => Promise<{
19074
+ getUserExtensions: (options?: CallApiOptions['options']) => Promise<{
19282
19075
  ok: false;
19283
19076
  status: 401;
19284
19077
  data: unknown;
@@ -19312,7 +19105,7 @@ declare class TwitchApi {
19312
19105
  *
19313
19106
  * _200 OK_
19314
19107
  *
19315
- * Successfully retrieved the user’s active extensions.
19108
+ * Successfully retrieved the user's active extensions.
19316
19109
  *
19317
19110
  * _400 Bad Request_
19318
19111
  *
@@ -19326,7 +19119,7 @@ declare class TwitchApi {
19326
19119
  *
19327
19120
  * @see https://dev.twitch.tv/docs/api/reference#get-user-active-extensions
19328
19121
  */
19329
- getUserActiveExtensions: (params: GetUserActiveExtensionsParams | null | undefined, options: CallApiOptions['options']) => Promise<{
19122
+ getUserActiveExtensions: (params?: GetUserActiveExtensionsParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
19330
19123
  ok: false;
19331
19124
  status: 400 | 401;
19332
19125
  data: unknown;
@@ -19400,7 +19193,7 @@ declare class TwitchApi {
19400
19193
  *
19401
19194
  * @see https://dev.twitch.tv/docs/api/reference#update-user-extensions
19402
19195
  */
19403
- updateUserExtensions: (body: UpdateUserExtensionsBody, options: CallApiOptions['options']) => Promise<{
19196
+ updateUserExtensions: (body: UpdateUserExtensionsBody, options?: CallApiOptions['options']) => Promise<{
19404
19197
  ok: false;
19405
19198
  status: 400 | 401 | 404;
19406
19199
  data: unknown;
@@ -19482,7 +19275,7 @@ declare class TwitchApi {
19482
19275
  *
19483
19276
  * @see https://dev.twitch.tv/docs/api/reference#get-videos
19484
19277
  */
19485
- getVideos: (params: GetVideosParams | null | undefined, options: CallApiOptions['options']) => Promise<{
19278
+ getVideos: (params?: GetVideosParams | null | undefined, options?: CallApiOptions['options']) => Promise<{
19486
19279
  ok: false;
19487
19280
  status: 400 | 401 | 404;
19488
19281
  data: unknown;
@@ -19549,7 +19342,7 @@ declare class TwitchApi {
19549
19342
  *
19550
19343
  * @see https://dev.twitch.tv/docs/api/reference#delete-videos
19551
19344
  */
19552
- deleteVideos: (params: DeleteVideosParams, options: CallApiOptions['options']) => Promise<{
19345
+ deleteVideos: (params: DeleteVideosParams, options?: CallApiOptions['options']) => Promise<{
19553
19346
  ok: false;
19554
19347
  status: 400 | 401;
19555
19348
  data: unknown;
@@ -19618,7 +19411,7 @@ declare class TwitchApi {
19618
19411
  *
19619
19412
  * @see https://dev.twitch.tv/docs/api/reference#send-whisper
19620
19413
  */
19621
- sendWhisper: (params: SendWhisperParams, body: SendWhisperBody, options: CallApiOptions['options']) => Promise<{
19414
+ sendWhisper: (params: SendWhisperParams, body: SendWhisperBody, options?: CallApiOptions['options']) => Promise<{
19622
19415
  ok: true;
19623
19416
  status: 204;
19624
19417
  data: void;