ts-twitch-api 0.2.8 → 0.3.0

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.cjs CHANGED
@@ -1536,7 +1536,7 @@ var TwitchApi = class {
1536
1536
  *
1537
1537
  * @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
1538
1538
  */
1539
- sendShoutout: (params, options = {}) => this.callApi({
1539
+ sendAShoutout: (params, options = {}) => this.callApi({
1540
1540
  path: "/chat/shoutouts",
1541
1541
  method: "POST",
1542
1542
  params,
@@ -3154,7 +3154,7 @@ var TwitchApi = class {
3154
3154
  *
3155
3155
  * __Response Codes:__
3156
3156
  *
3157
- * _204 No Content_
3157
+ * _200 OK_
3158
3158
  *
3159
3159
  * _400 Bad Request_
3160
3160
  *
@@ -4555,7 +4555,7 @@ var TwitchApi = class {
4555
4555
  options
4556
4556
  }),
4557
4557
  /**
4558
- * NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning).
4558
+ * Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning).
4559
4559
  *
4560
4560
  * __Authorization:__
4561
4561
  *
@@ -4612,6 +4612,92 @@ var TwitchApi = class {
4612
4612
  params,
4613
4613
  body,
4614
4614
  options
4615
+ }),
4616
+ /**
4617
+ * BETA Adds a suspicious user status to a chatter on the broadcaster’s channel.
4618
+ *
4619
+ * __Authorization:__
4620
+ *
4621
+ * 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) that includes the **moderator:manage:suspicious\_users** scope.
4622
+ *
4623
+ * __URL:__
4624
+ *
4625
+ * `POST https://api.twitch.tv/helix/moderation/suspicious_users`
4626
+ *
4627
+ * __Response Codes:__
4628
+ *
4629
+ * _200 OK_
4630
+ *
4631
+ * Successfully applied a suspicious user status.
4632
+ *
4633
+ * _400 Bad Request_
4634
+ *
4635
+ * * Validation errors: Missing required fields.
4636
+ * * The ID in the broadcaster\_id query parameter was not found.
4637
+ * * The status specified was invalid. Must either be ACTIVE\_MONITORING or RESTRICTED
4638
+ * * The status update is not allowed for this user.
4639
+ *
4640
+ * _401 Unauthorized_
4641
+ *
4642
+ * * The Authorization header is required and must specify user access token.
4643
+ * * The user access token must include the **moderator:manage:suspicious\_users** scope.
4644
+ * * The OAuth token is not valid.
4645
+ * * The ID in the Client-Id header must match the Client ID in the OAuth token.
4646
+ *
4647
+ * _403 Forbidden_
4648
+ *
4649
+ * * The user in the moderator\_id query parameter is not one of the broadcaster's moderators.
4650
+ *
4651
+ * @see https://dev.twitch.tv/docs/api/reference#add-suspicious-status-to-chat-user
4652
+ */
4653
+ addSuspiciousStatusToChatUser: (params, body, options = {}) => this.callApi({
4654
+ path: "/moderation/suspicious_users",
4655
+ method: "POST",
4656
+ params,
4657
+ body,
4658
+ options
4659
+ }),
4660
+ /**
4661
+ * BETA Remove a suspicious user status from a chatter on broadcaster’s channel.
4662
+ *
4663
+ * __Authorization:__
4664
+ *
4665
+ * 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) that includes the **moderator:manage:suspicious\_users** scope.
4666
+ *
4667
+ * __URL:__
4668
+ *
4669
+ * `DELETE https://api.twitch.tv/helix/moderation/suspicious_users`
4670
+ *
4671
+ * __Response Codes:__
4672
+ *
4673
+ * _200 OK_
4674
+ *
4675
+ * Successfully removed a suspicious user status.
4676
+ *
4677
+ * _400 Bad Request_
4678
+ *
4679
+ * * Validation errors: Missing required fields.
4680
+ * * The ID in the broadcaster\_id query parameter was not found.
4681
+ * * The status update is not allowed for this user.
4682
+ *
4683
+ * _401 Unauthorized_
4684
+ *
4685
+ * * The Authorization header is required and must specify user access token.
4686
+ * * The user access token must include the **moderator:manage:suspicious\_users** scope.
4687
+ * * The OAuth token is not valid.
4688
+ * * The ID in the Client-Id header must match the Client ID in the OAuth token.
4689
+ *
4690
+ * _403 Forbidden_
4691
+ *
4692
+ * * The user in the moderator\_id query parameter is not one of the broadcaster's moderators.
4693
+ *
4694
+ * @see https://dev.twitch.tv/docs/api/reference#remove-suspicious-status-from-chat-user
4695
+ */
4696
+ removeSuspiciousStatusFromChatUser: (params, options = {}) => this.callApi({
4697
+ path: "/moderation/suspicious_users",
4698
+ method: "DELETE",
4699
+ params,
4700
+ options
4615
4701
  })
4616
4702
  };
4617
4703
  polls = {
@@ -4942,7 +5028,7 @@ var TwitchApi = class {
4942
5028
  *
4943
5029
  * @see https://dev.twitch.tv/docs/api/reference#start-a-raid
4944
5030
  */
4945
- startRaid: (params = null, options = {}) => this.callApi({
5031
+ startARaid: (params = null, options = {}) => this.callApi({
4946
5032
  path: "/raids",
4947
5033
  method: "POST",
4948
5034
  params,
@@ -4991,7 +5077,7 @@ var TwitchApi = class {
4991
5077
  *
4992
5078
  * @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
4993
5079
  */
4994
- cancelRaid: (params, options = {}) => this.callApi({
5080
+ cancelARaid: (params, options = {}) => this.callApi({
4995
5081
  path: "/raids",
4996
5082
  method: "DELETE",
4997
5083
  params,