ts-twitch-api 0.3.1 → 0.3.2
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 +1 -2
- package/dist/index.d.cts +2 -6
- package/dist/index.d.mts +2 -6
- package/dist/index.mjs +1 -2
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/twitch-api.ts
|
|
3
3
|
const BASE_URL = "https://api.twitch.tv/helix";
|
|
4
4
|
const getSearchParams = (params) => {
|
|
5
5
|
const kvPairs = [];
|
|
@@ -6693,5 +6693,4 @@ sendWhisper: (params, body, options = {}) => this.callApi({
|
|
|
6693
6693
|
options
|
|
6694
6694
|
}) };
|
|
6695
6695
|
};
|
|
6696
|
-
//#endregion
|
|
6697
6696
|
exports.TwitchApi = TwitchApi;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/twitch-api.generated.d.ts
|
|
2
1
|
interface components {
|
|
3
2
|
schemas: {
|
|
4
3
|
StartCommercialBody: {
|
|
@@ -12851,8 +12850,6 @@ interface operations {
|
|
|
12851
12850
|
};
|
|
12852
12851
|
};
|
|
12853
12852
|
}
|
|
12854
|
-
//#endregion
|
|
12855
|
-
//#region src/twitch-api.d.ts
|
|
12856
12853
|
type Schema<T extends keyof components['schemas']> = components['schemas'][T];
|
|
12857
12854
|
type ParamsSchema<T extends keyof operations> = operations[T] extends {
|
|
12858
12855
|
parameters: {
|
|
@@ -13223,7 +13220,7 @@ type TwitchApiOptions = {
|
|
|
13223
13220
|
accessToken?: string;
|
|
13224
13221
|
clientId?: string;
|
|
13225
13222
|
};
|
|
13226
|
-
declare class TwitchApi {
|
|
13223
|
+
export declare class TwitchApi {
|
|
13227
13224
|
private _accessToken;
|
|
13228
13225
|
private _clientId;
|
|
13229
13226
|
constructor({ accessToken, clientId }?: TwitchApiOptions);
|
|
@@ -19877,5 +19874,4 @@ declare class TwitchApi {
|
|
|
19877
19874
|
sendWhisper: (params: SendWhisperParams, body: SendWhisperBody, options?: CallApiOptions) => ApiResponse<void, 204, 400 | 401 | 403 | 404 | 429>;
|
|
19878
19875
|
};
|
|
19879
19876
|
}
|
|
19880
|
-
|
|
19881
|
-
export { type AddBlockedTermBody, type AddBlockedTermParams, type AddBlockedTermResponse, type AddChannelModeratorParams, type AddChannelVIPParams, type AddSuspiciousStatusToChatUserBody, type AddSuspiciousStatusToChatUserParams, type AddSuspiciousStatusToChatUserResponse, type ApiResponse, type AssignGuestStarSlotParams, type AutoModSettings, type AutoModStatus, type BanUserBody, type BanUserParams, type BanUserResponse, type BannedUser, type BitsLeaderboard, type BlockUserParams, type BlockedTerm, type BroadcasterSubscription, type CancelARaidParams, type Category, type Channel, type ChannelEditor, type ChannelEmote, type ChannelInformation, type ChannelStreamScheduleSegment, type ChannelTeam, type CharityCampaign, type CharityCampaignDonation, type ChatBadge, type ChatSettings, type ChatSettingsUpdated, type Chatter, type CheckAutoModStatusBody, type CheckAutoModStatusParams, type CheckAutoModStatusResponse, type CheckUserSubscriptionParams, type CheckUserSubscriptionResponse, type Cheermote, type CheermoteImageFormat, type CheermoteImageTheme, type CheermoteImages, type Clip, type ContentClassificationLabel, type CreateChannelStreamScheduleSegmentBody, type CreateChannelStreamScheduleSegmentParams, type CreateChannelStreamScheduleSegmentResponse, type CreateClipFromVODParams, type CreateClipFromVODResponse, type CreateClipParams, type CreateClipResponse, type CreateConduitsBody, type CreateConduitsResponse, type CreateCustomRewardsBody, type CreateCustomRewardsParams, type CreateCustomRewardsResponse, type CreateEventSubSubscriptionBody, type CreateEventSubSubscriptionResponse, type CreateExtensionSecretParams, type CreateExtensionSecretResponse, type CreateGuestStarSessionParams, type CreateGuestStarSessionResponse, type CreatePollBody, type CreatePollResponse, type CreatePredictionBody, type CreatePredictionResponse, type CreateStreamMarkerBody, type CreateStreamMarkerResponse, type CreatorGoal, type CustomReward, type CustomRewardRedemption, type DeleteChannelStreamScheduleSegmentParams, type DeleteChatMessagesParams, type DeleteConduitParams, type DeleteCustomRewardParams, type DeleteEventSubSubscriptionParams, type DeleteGuestStarInviteParams, type DeleteGuestStarSlotParams, type DeleteVideosParams, type DeleteVideosResponse, type DropsEntitlement, type DropsEntitlementUpdated, type Emote, type EndGuestStarSessionParams, type EndGuestStarSessionResponse, type EndPollBody, type EndPollResponse, type EndPredictionBody, type EndPredictionResponse, type EventSubSubscription, type Extension, type ExtensionAnalytics, type ExtensionBitsProduct, type ExtensionConfigurationSegment, type ExtensionIconUrls, type ExtensionLiveChannel, type ExtensionSecret, type ExtensionTransaction, type Game, type GameAnalytics, type GetAdScheduleParams, type GetAdScheduleResponse, type GetAllStreamTagsParams, type GetAllStreamTagsResponse, type GetAuthorizationByUserParams, type GetAuthorizationByUserResponse, type GetAutoModSettingsParams, type GetAutoModSettingsResponse, type GetBannedUsersParams, type GetBannedUsersResponse, type GetBitsLeaderboardParams, type GetBitsLeaderboardResponse, type GetBlockedTermsParams, type GetBlockedTermsResponse, type GetBroadcasterSubscriptionsParams, type GetBroadcasterSubscriptionsResponse, type GetChannelChatBadgesParams, type GetChannelChatBadgesResponse, type GetChannelEditorsParams, type GetChannelEditorsResponse, type GetChannelEmotesParams, type GetChannelEmotesResponse, type GetChannelFollowersParams, type GetChannelFollowersResponse, type GetChannelGuestStarSettingsParams, type GetChannelGuestStarSettingsResponse, type GetChannelICalendarParams, type GetChannelInformationParams, type GetChannelInformationResponse, type GetChannelStreamScheduleParams, type GetChannelStreamScheduleResponse, type GetChannelTeamsParams, type GetChannelTeamsResponse, type GetCharityCampaignDonationsParams, type GetCharityCampaignDonationsResponse, type GetCharityCampaignParams, type GetCharityCampaignResponse, type GetChatSettingsParams, type GetChatSettingsResponse, type GetChattersParams, type GetChattersResponse, type GetCheermotesParams, type GetCheermotesResponse, type GetClipsDownloadParams, type GetClipsDownloadResponse, type GetClipsParams, type GetClipsResponse, type GetConduitShardsParams, type GetConduitShardsResponse, type GetConduitsResponse, type GetContentClassificationLabelsParams, type GetContentClassificationLabelsResponse, type GetCreatorGoalsParams, type GetCreatorGoalsResponse, type GetCustomPowerUpParams, type GetCustomPowerUpResponse, type GetCustomRewardParams, type GetCustomRewardRedemptionParams, type GetCustomRewardRedemptionResponse, type GetCustomRewardResponse, type GetDropsEntitlementsParams, type GetDropsEntitlementsResponse, type GetEmoteSetsParams, type GetEmoteSetsResponse, type GetEventSubSubscriptionsParams, type GetEventSubSubscriptionsResponse, type GetExtensionAnalyticsParams, type GetExtensionAnalyticsResponse, type GetExtensionBitsProductsParams, type GetExtensionBitsProductsResponse, type GetExtensionConfigurationSegmentParams, type GetExtensionConfigurationSegmentResponse, type GetExtensionLiveChannelsParams, type GetExtensionLiveChannelsResponse, type GetExtensionSecretsResponse, type GetExtensionTransactionsParams, type GetExtensionTransactionsResponse, type GetExtensionsParams, type GetExtensionsResponse, type GetFollowedChannelsParams, type GetFollowedChannelsResponse, type GetFollowedStreamsParams, type GetFollowedStreamsResponse, type GetGameAnalyticsParams, type GetGameAnalyticsResponse, type GetGamesParams, type GetGamesResponse, type GetGlobalChatBadgesResponse, type GetGlobalEmotesResponse, type GetGuestStarInvitesParams, type GetGuestStarInvitesResponse, type GetGuestStarSessionParams, type GetGuestStarSessionResponse, type GetHypeTrainStatusParams, type GetHypeTrainStatusResponse, type GetModeratedChannelsParams, type GetModeratedChannelsResponse, type GetModeratorsParams, type GetModeratorsResponse, type GetPinnedChatMessageParams, type GetPinnedChatMessageResponse, type GetPollsParams, type GetPollsResponse, type GetPredictionsParams, type GetPredictionsResponse, type GetReleasedExtensionsParams, type GetReleasedExtensionsResponse, type GetSharedChatSessionParams, type GetSharedChatSessionResponse, type GetShieldModeStatusParams, type GetShieldModeStatusResponse, type GetStreamKeyParams, type GetStreamKeyResponse, type GetStreamMarkersParams, type GetStreamMarkersResponse, type GetStreamTagsParams, type GetStreamTagsResponse, type GetStreamsParams, type GetStreamsResponse, type GetTeamsParams, type GetTeamsResponse, type GetTopGamesParams, type GetTopGamesResponse, type GetUnbanRequestsParams, type GetUnbanRequestsResponse, type GetUserActiveExtensionsParams, type GetUserActiveExtensionsResponse, type GetUserBlockListParams, type GetUserBlockListResponse, type GetUserChatColorParams, type GetUserChatColorResponse, type GetUserEmotesParams, type GetUserEmotesResponse, type GetUserExtensionsResponse, type GetUsersParams, type GetUsersResponse, type GetVIPsParams, type GetVIPsResponse, type GetVideosParams, type GetVideosResponse, type GlobalEmote, type Guest, type GuestStarInvite, type GuestStarSession, type ManageHeldAutoModMessagesBody, type ModifyChannelInformationBody, type ModifyChannelInformationParams, type PinChatMessageParams, type Poll, type Prediction, type PredictionOutcome, type RemoveBlockedTermParams, type RemoveChannelModeratorParams, type RemoveChannelVIPParams, type RemoveSuspiciousStatusFromChatUserParams, type RemoveSuspiciousStatusFromChatUserResponse, type ResolveUnbanRequestsParams, type ResolveUnbanRequestsResponse, type SearchCategoriesParams, type SearchCategoriesResponse, type SearchChannelsParams, type SearchChannelsResponse, type SendAShoutoutParams, type SendChatAnnouncementBody, type SendChatAnnouncementParams, type SendChatMessageBody, type SendChatMessageResponse, type SendExtensionChatMessageBody, type SendExtensionChatMessageParams, type SendExtensionPubSubMessageBody, type SendGuestStarInviteParams, type SendWhisperBody, type SendWhisperParams, type SetExtensionConfigurationSegmentBody, type SetExtensionRequiredConfigurationBody, type SetExtensionRequiredConfigurationParams, type SnoozeNextAdParams, type SnoozeNextAdResponse, type StartARaidParams, type StartARaidResponse, type StartCommercialBody, type StartCommercialResponse, type Stream, type StreamMarkerCreated, type StreamMarkers, type StreamTag, type Team, TwitchApi, type TwitchApiOptions, type UnbanUserParams, type UnblockUserParams, type UnpinChatMessageParams, type UpdateAutoModSettingsBody, type UpdateAutoModSettingsParams, type UpdateAutoModSettingsResponse, type UpdateChannelGuestStarSettingsBody, type UpdateChannelGuestStarSettingsParams, type UpdateChannelStreamScheduleParams, type UpdateChannelStreamScheduleSegmentBody, type UpdateChannelStreamScheduleSegmentParams, type UpdateChannelStreamScheduleSegmentResponse, type UpdateChatSettingsBody, type UpdateChatSettingsParams, type UpdateChatSettingsResponse, type UpdateConduitShardsBody, type UpdateConduitShardsResponse, type UpdateConduitsBody, type UpdateConduitsResponse, type UpdateCustomRewardBody, type UpdateCustomRewardParams, type UpdateCustomRewardResponse, type UpdateDropsEntitlementsBody, type UpdateDropsEntitlementsResponse, type UpdateExtensionBitsProductBody, type UpdateExtensionBitsProductResponse, type UpdateGuestStarSlotParams, type UpdateGuestStarSlotSettingsParams, type UpdatePinnedChatMessageParams, type UpdateRedemptionStatusBody, type UpdateRedemptionStatusParams, type UpdateRedemptionStatusResponse, type UpdateShieldModeStatusBody, type UpdateShieldModeStatusParams, type UpdateShieldModeStatusResponse, type UpdateUserChatColorParams, type UpdateUserExtensionsBody, type UpdateUserExtensionsResponse, type UpdateUserParams, type UpdateUserResponse, type User, type UserBlockList, type UserChatColor, type UserExtension, type UserExtensionComponent, type UserExtensionComponentUpdate, type UserExtensionOverlay, type UserExtensionOverlayUpdate, type UserExtensionPanel, type UserExtensionPanelUpdate, type UserModerator, type UserSubscription, type UserVip, type Video, type WarnChatUserBody, type WarnChatUserParams, type WarnChatUserResponse };
|
|
19877
|
+
export type { AddBlockedTermBody, AddBlockedTermParams, AddBlockedTermResponse, AddChannelModeratorParams, AddChannelVIPParams, AddSuspiciousStatusToChatUserBody, AddSuspiciousStatusToChatUserParams, AddSuspiciousStatusToChatUserResponse, ApiResponse, AssignGuestStarSlotParams, AutoModSettings, AutoModStatus, BanUserBody, BanUserParams, BanUserResponse, BannedUser, BitsLeaderboard, BlockUserParams, BlockedTerm, BroadcasterSubscription, CancelARaidParams, Category, Channel, ChannelEditor, ChannelEmote, ChannelInformation, ChannelStreamScheduleSegment, ChannelTeam, CharityCampaign, CharityCampaignDonation, ChatBadge, ChatSettings, ChatSettingsUpdated, Chatter, CheckAutoModStatusBody, CheckAutoModStatusParams, CheckAutoModStatusResponse, CheckUserSubscriptionParams, CheckUserSubscriptionResponse, Cheermote, CheermoteImageFormat, CheermoteImageTheme, CheermoteImages, Clip, ContentClassificationLabel, CreateChannelStreamScheduleSegmentBody, CreateChannelStreamScheduleSegmentParams, CreateChannelStreamScheduleSegmentResponse, CreateClipFromVODParams, CreateClipFromVODResponse, CreateClipParams, CreateClipResponse, CreateConduitsBody, CreateConduitsResponse, CreateCustomRewardsBody, CreateCustomRewardsParams, CreateCustomRewardsResponse, CreateEventSubSubscriptionBody, CreateEventSubSubscriptionResponse, CreateExtensionSecretParams, CreateExtensionSecretResponse, CreateGuestStarSessionParams, CreateGuestStarSessionResponse, CreatePollBody, CreatePollResponse, CreatePredictionBody, CreatePredictionResponse, CreateStreamMarkerBody, CreateStreamMarkerResponse, CreatorGoal, CustomReward, CustomRewardRedemption, DeleteChannelStreamScheduleSegmentParams, DeleteChatMessagesParams, DeleteConduitParams, DeleteCustomRewardParams, DeleteEventSubSubscriptionParams, DeleteGuestStarInviteParams, DeleteGuestStarSlotParams, DeleteVideosParams, DeleteVideosResponse, DropsEntitlement, DropsEntitlementUpdated, Emote, EndGuestStarSessionParams, EndGuestStarSessionResponse, EndPollBody, EndPollResponse, EndPredictionBody, EndPredictionResponse, EventSubSubscription, Extension, ExtensionAnalytics, ExtensionBitsProduct, ExtensionConfigurationSegment, ExtensionIconUrls, ExtensionLiveChannel, ExtensionSecret, ExtensionTransaction, Game, GameAnalytics, GetAdScheduleParams, GetAdScheduleResponse, GetAllStreamTagsParams, GetAllStreamTagsResponse, GetAuthorizationByUserParams, GetAuthorizationByUserResponse, GetAutoModSettingsParams, GetAutoModSettingsResponse, GetBannedUsersParams, GetBannedUsersResponse, GetBitsLeaderboardParams, GetBitsLeaderboardResponse, GetBlockedTermsParams, GetBlockedTermsResponse, GetBroadcasterSubscriptionsParams, GetBroadcasterSubscriptionsResponse, GetChannelChatBadgesParams, GetChannelChatBadgesResponse, GetChannelEditorsParams, GetChannelEditorsResponse, GetChannelEmotesParams, GetChannelEmotesResponse, GetChannelFollowersParams, GetChannelFollowersResponse, GetChannelGuestStarSettingsParams, GetChannelGuestStarSettingsResponse, GetChannelICalendarParams, GetChannelInformationParams, GetChannelInformationResponse, GetChannelStreamScheduleParams, GetChannelStreamScheduleResponse, GetChannelTeamsParams, GetChannelTeamsResponse, GetCharityCampaignDonationsParams, GetCharityCampaignDonationsResponse, GetCharityCampaignParams, GetCharityCampaignResponse, GetChatSettingsParams, GetChatSettingsResponse, GetChattersParams, GetChattersResponse, GetCheermotesParams, GetCheermotesResponse, GetClipsDownloadParams, GetClipsDownloadResponse, GetClipsParams, GetClipsResponse, GetConduitShardsParams, GetConduitShardsResponse, GetConduitsResponse, GetContentClassificationLabelsParams, GetContentClassificationLabelsResponse, GetCreatorGoalsParams, GetCreatorGoalsResponse, GetCustomPowerUpParams, GetCustomPowerUpResponse, GetCustomRewardParams, GetCustomRewardRedemptionParams, GetCustomRewardRedemptionResponse, GetCustomRewardResponse, GetDropsEntitlementsParams, GetDropsEntitlementsResponse, GetEmoteSetsParams, GetEmoteSetsResponse, GetEventSubSubscriptionsParams, GetEventSubSubscriptionsResponse, GetExtensionAnalyticsParams, GetExtensionAnalyticsResponse, GetExtensionBitsProductsParams, GetExtensionBitsProductsResponse, GetExtensionConfigurationSegmentParams, GetExtensionConfigurationSegmentResponse, GetExtensionLiveChannelsParams, GetExtensionLiveChannelsResponse, GetExtensionSecretsResponse, GetExtensionTransactionsParams, GetExtensionTransactionsResponse, GetExtensionsParams, GetExtensionsResponse, GetFollowedChannelsParams, GetFollowedChannelsResponse, GetFollowedStreamsParams, GetFollowedStreamsResponse, GetGameAnalyticsParams, GetGameAnalyticsResponse, GetGamesParams, GetGamesResponse, GetGlobalChatBadgesResponse, GetGlobalEmotesResponse, GetGuestStarInvitesParams, GetGuestStarInvitesResponse, GetGuestStarSessionParams, GetGuestStarSessionResponse, GetHypeTrainStatusParams, GetHypeTrainStatusResponse, GetModeratedChannelsParams, GetModeratedChannelsResponse, GetModeratorsParams, GetModeratorsResponse, GetPinnedChatMessageParams, GetPinnedChatMessageResponse, GetPollsParams, GetPollsResponse, GetPredictionsParams, GetPredictionsResponse, GetReleasedExtensionsParams, GetReleasedExtensionsResponse, GetSharedChatSessionParams, GetSharedChatSessionResponse, GetShieldModeStatusParams, GetShieldModeStatusResponse, GetStreamKeyParams, GetStreamKeyResponse, GetStreamMarkersParams, GetStreamMarkersResponse, GetStreamTagsParams, GetStreamTagsResponse, GetStreamsParams, GetStreamsResponse, GetTeamsParams, GetTeamsResponse, GetTopGamesParams, GetTopGamesResponse, GetUnbanRequestsParams, GetUnbanRequestsResponse, GetUserActiveExtensionsParams, GetUserActiveExtensionsResponse, GetUserBlockListParams, GetUserBlockListResponse, GetUserChatColorParams, GetUserChatColorResponse, GetUserEmotesParams, GetUserEmotesResponse, GetUserExtensionsResponse, GetUsersParams, GetUsersResponse, GetVIPsParams, GetVIPsResponse, GetVideosParams, GetVideosResponse, GlobalEmote, Guest, GuestStarInvite, GuestStarSession, ManageHeldAutoModMessagesBody, ModifyChannelInformationBody, ModifyChannelInformationParams, PinChatMessageParams, Poll, Prediction, PredictionOutcome, RemoveBlockedTermParams, RemoveChannelModeratorParams, RemoveChannelVIPParams, RemoveSuspiciousStatusFromChatUserParams, RemoveSuspiciousStatusFromChatUserResponse, ResolveUnbanRequestsParams, ResolveUnbanRequestsResponse, SearchCategoriesParams, SearchCategoriesResponse, SearchChannelsParams, SearchChannelsResponse, SendAShoutoutParams, SendChatAnnouncementBody, SendChatAnnouncementParams, SendChatMessageBody, SendChatMessageResponse, SendExtensionChatMessageBody, SendExtensionChatMessageParams, SendExtensionPubSubMessageBody, SendGuestStarInviteParams, SendWhisperBody, SendWhisperParams, SetExtensionConfigurationSegmentBody, SetExtensionRequiredConfigurationBody, SetExtensionRequiredConfigurationParams, SnoozeNextAdParams, SnoozeNextAdResponse, StartARaidParams, StartARaidResponse, StartCommercialBody, StartCommercialResponse, Stream, StreamMarkerCreated, StreamMarkers, StreamTag, Team, TwitchApiOptions, UnbanUserParams, UnblockUserParams, UnpinChatMessageParams, UpdateAutoModSettingsBody, UpdateAutoModSettingsParams, UpdateAutoModSettingsResponse, UpdateChannelGuestStarSettingsBody, UpdateChannelGuestStarSettingsParams, UpdateChannelStreamScheduleParams, UpdateChannelStreamScheduleSegmentBody, UpdateChannelStreamScheduleSegmentParams, UpdateChannelStreamScheduleSegmentResponse, UpdateChatSettingsBody, UpdateChatSettingsParams, UpdateChatSettingsResponse, UpdateConduitShardsBody, UpdateConduitShardsResponse, UpdateConduitsBody, UpdateConduitsResponse, UpdateCustomRewardBody, UpdateCustomRewardParams, UpdateCustomRewardResponse, UpdateDropsEntitlementsBody, UpdateDropsEntitlementsResponse, UpdateExtensionBitsProductBody, UpdateExtensionBitsProductResponse, UpdateGuestStarSlotParams, UpdateGuestStarSlotSettingsParams, UpdatePinnedChatMessageParams, UpdateRedemptionStatusBody, UpdateRedemptionStatusParams, UpdateRedemptionStatusResponse, UpdateShieldModeStatusBody, UpdateShieldModeStatusParams, UpdateShieldModeStatusResponse, UpdateUserChatColorParams, UpdateUserExtensionsBody, UpdateUserExtensionsResponse, UpdateUserParams, UpdateUserResponse, User, UserBlockList, UserChatColor, UserExtension, UserExtensionComponent, UserExtensionComponentUpdate, UserExtensionOverlay, UserExtensionOverlayUpdate, UserExtensionPanel, UserExtensionPanelUpdate, UserModerator, UserSubscription, UserVip, Video, WarnChatUserBody, WarnChatUserParams, WarnChatUserResponse };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/twitch-api.generated.d.ts
|
|
2
1
|
interface components {
|
|
3
2
|
schemas: {
|
|
4
3
|
StartCommercialBody: {
|
|
@@ -12851,8 +12850,6 @@ interface operations {
|
|
|
12851
12850
|
};
|
|
12852
12851
|
};
|
|
12853
12852
|
}
|
|
12854
|
-
//#endregion
|
|
12855
|
-
//#region src/twitch-api.d.ts
|
|
12856
12853
|
type Schema<T extends keyof components['schemas']> = components['schemas'][T];
|
|
12857
12854
|
type ParamsSchema<T extends keyof operations> = operations[T] extends {
|
|
12858
12855
|
parameters: {
|
|
@@ -13223,7 +13220,7 @@ type TwitchApiOptions = {
|
|
|
13223
13220
|
accessToken?: string;
|
|
13224
13221
|
clientId?: string;
|
|
13225
13222
|
};
|
|
13226
|
-
declare class TwitchApi {
|
|
13223
|
+
export declare class TwitchApi {
|
|
13227
13224
|
private _accessToken;
|
|
13228
13225
|
private _clientId;
|
|
13229
13226
|
constructor({ accessToken, clientId }?: TwitchApiOptions);
|
|
@@ -19877,5 +19874,4 @@ declare class TwitchApi {
|
|
|
19877
19874
|
sendWhisper: (params: SendWhisperParams, body: SendWhisperBody, options?: CallApiOptions) => ApiResponse<void, 204, 400 | 401 | 403 | 404 | 429>;
|
|
19878
19875
|
};
|
|
19879
19876
|
}
|
|
19880
|
-
|
|
19881
|
-
export { type AddBlockedTermBody, type AddBlockedTermParams, type AddBlockedTermResponse, type AddChannelModeratorParams, type AddChannelVIPParams, type AddSuspiciousStatusToChatUserBody, type AddSuspiciousStatusToChatUserParams, type AddSuspiciousStatusToChatUserResponse, type ApiResponse, type AssignGuestStarSlotParams, type AutoModSettings, type AutoModStatus, type BanUserBody, type BanUserParams, type BanUserResponse, type BannedUser, type BitsLeaderboard, type BlockUserParams, type BlockedTerm, type BroadcasterSubscription, type CancelARaidParams, type Category, type Channel, type ChannelEditor, type ChannelEmote, type ChannelInformation, type ChannelStreamScheduleSegment, type ChannelTeam, type CharityCampaign, type CharityCampaignDonation, type ChatBadge, type ChatSettings, type ChatSettingsUpdated, type Chatter, type CheckAutoModStatusBody, type CheckAutoModStatusParams, type CheckAutoModStatusResponse, type CheckUserSubscriptionParams, type CheckUserSubscriptionResponse, type Cheermote, type CheermoteImageFormat, type CheermoteImageTheme, type CheermoteImages, type Clip, type ContentClassificationLabel, type CreateChannelStreamScheduleSegmentBody, type CreateChannelStreamScheduleSegmentParams, type CreateChannelStreamScheduleSegmentResponse, type CreateClipFromVODParams, type CreateClipFromVODResponse, type CreateClipParams, type CreateClipResponse, type CreateConduitsBody, type CreateConduitsResponse, type CreateCustomRewardsBody, type CreateCustomRewardsParams, type CreateCustomRewardsResponse, type CreateEventSubSubscriptionBody, type CreateEventSubSubscriptionResponse, type CreateExtensionSecretParams, type CreateExtensionSecretResponse, type CreateGuestStarSessionParams, type CreateGuestStarSessionResponse, type CreatePollBody, type CreatePollResponse, type CreatePredictionBody, type CreatePredictionResponse, type CreateStreamMarkerBody, type CreateStreamMarkerResponse, type CreatorGoal, type CustomReward, type CustomRewardRedemption, type DeleteChannelStreamScheduleSegmentParams, type DeleteChatMessagesParams, type DeleteConduitParams, type DeleteCustomRewardParams, type DeleteEventSubSubscriptionParams, type DeleteGuestStarInviteParams, type DeleteGuestStarSlotParams, type DeleteVideosParams, type DeleteVideosResponse, type DropsEntitlement, type DropsEntitlementUpdated, type Emote, type EndGuestStarSessionParams, type EndGuestStarSessionResponse, type EndPollBody, type EndPollResponse, type EndPredictionBody, type EndPredictionResponse, type EventSubSubscription, type Extension, type ExtensionAnalytics, type ExtensionBitsProduct, type ExtensionConfigurationSegment, type ExtensionIconUrls, type ExtensionLiveChannel, type ExtensionSecret, type ExtensionTransaction, type Game, type GameAnalytics, type GetAdScheduleParams, type GetAdScheduleResponse, type GetAllStreamTagsParams, type GetAllStreamTagsResponse, type GetAuthorizationByUserParams, type GetAuthorizationByUserResponse, type GetAutoModSettingsParams, type GetAutoModSettingsResponse, type GetBannedUsersParams, type GetBannedUsersResponse, type GetBitsLeaderboardParams, type GetBitsLeaderboardResponse, type GetBlockedTermsParams, type GetBlockedTermsResponse, type GetBroadcasterSubscriptionsParams, type GetBroadcasterSubscriptionsResponse, type GetChannelChatBadgesParams, type GetChannelChatBadgesResponse, type GetChannelEditorsParams, type GetChannelEditorsResponse, type GetChannelEmotesParams, type GetChannelEmotesResponse, type GetChannelFollowersParams, type GetChannelFollowersResponse, type GetChannelGuestStarSettingsParams, type GetChannelGuestStarSettingsResponse, type GetChannelICalendarParams, type GetChannelInformationParams, type GetChannelInformationResponse, type GetChannelStreamScheduleParams, type GetChannelStreamScheduleResponse, type GetChannelTeamsParams, type GetChannelTeamsResponse, type GetCharityCampaignDonationsParams, type GetCharityCampaignDonationsResponse, type GetCharityCampaignParams, type GetCharityCampaignResponse, type GetChatSettingsParams, type GetChatSettingsResponse, type GetChattersParams, type GetChattersResponse, type GetCheermotesParams, type GetCheermotesResponse, type GetClipsDownloadParams, type GetClipsDownloadResponse, type GetClipsParams, type GetClipsResponse, type GetConduitShardsParams, type GetConduitShardsResponse, type GetConduitsResponse, type GetContentClassificationLabelsParams, type GetContentClassificationLabelsResponse, type GetCreatorGoalsParams, type GetCreatorGoalsResponse, type GetCustomPowerUpParams, type GetCustomPowerUpResponse, type GetCustomRewardParams, type GetCustomRewardRedemptionParams, type GetCustomRewardRedemptionResponse, type GetCustomRewardResponse, type GetDropsEntitlementsParams, type GetDropsEntitlementsResponse, type GetEmoteSetsParams, type GetEmoteSetsResponse, type GetEventSubSubscriptionsParams, type GetEventSubSubscriptionsResponse, type GetExtensionAnalyticsParams, type GetExtensionAnalyticsResponse, type GetExtensionBitsProductsParams, type GetExtensionBitsProductsResponse, type GetExtensionConfigurationSegmentParams, type GetExtensionConfigurationSegmentResponse, type GetExtensionLiveChannelsParams, type GetExtensionLiveChannelsResponse, type GetExtensionSecretsResponse, type GetExtensionTransactionsParams, type GetExtensionTransactionsResponse, type GetExtensionsParams, type GetExtensionsResponse, type GetFollowedChannelsParams, type GetFollowedChannelsResponse, type GetFollowedStreamsParams, type GetFollowedStreamsResponse, type GetGameAnalyticsParams, type GetGameAnalyticsResponse, type GetGamesParams, type GetGamesResponse, type GetGlobalChatBadgesResponse, type GetGlobalEmotesResponse, type GetGuestStarInvitesParams, type GetGuestStarInvitesResponse, type GetGuestStarSessionParams, type GetGuestStarSessionResponse, type GetHypeTrainStatusParams, type GetHypeTrainStatusResponse, type GetModeratedChannelsParams, type GetModeratedChannelsResponse, type GetModeratorsParams, type GetModeratorsResponse, type GetPinnedChatMessageParams, type GetPinnedChatMessageResponse, type GetPollsParams, type GetPollsResponse, type GetPredictionsParams, type GetPredictionsResponse, type GetReleasedExtensionsParams, type GetReleasedExtensionsResponse, type GetSharedChatSessionParams, type GetSharedChatSessionResponse, type GetShieldModeStatusParams, type GetShieldModeStatusResponse, type GetStreamKeyParams, type GetStreamKeyResponse, type GetStreamMarkersParams, type GetStreamMarkersResponse, type GetStreamTagsParams, type GetStreamTagsResponse, type GetStreamsParams, type GetStreamsResponse, type GetTeamsParams, type GetTeamsResponse, type GetTopGamesParams, type GetTopGamesResponse, type GetUnbanRequestsParams, type GetUnbanRequestsResponse, type GetUserActiveExtensionsParams, type GetUserActiveExtensionsResponse, type GetUserBlockListParams, type GetUserBlockListResponse, type GetUserChatColorParams, type GetUserChatColorResponse, type GetUserEmotesParams, type GetUserEmotesResponse, type GetUserExtensionsResponse, type GetUsersParams, type GetUsersResponse, type GetVIPsParams, type GetVIPsResponse, type GetVideosParams, type GetVideosResponse, type GlobalEmote, type Guest, type GuestStarInvite, type GuestStarSession, type ManageHeldAutoModMessagesBody, type ModifyChannelInformationBody, type ModifyChannelInformationParams, type PinChatMessageParams, type Poll, type Prediction, type PredictionOutcome, type RemoveBlockedTermParams, type RemoveChannelModeratorParams, type RemoveChannelVIPParams, type RemoveSuspiciousStatusFromChatUserParams, type RemoveSuspiciousStatusFromChatUserResponse, type ResolveUnbanRequestsParams, type ResolveUnbanRequestsResponse, type SearchCategoriesParams, type SearchCategoriesResponse, type SearchChannelsParams, type SearchChannelsResponse, type SendAShoutoutParams, type SendChatAnnouncementBody, type SendChatAnnouncementParams, type SendChatMessageBody, type SendChatMessageResponse, type SendExtensionChatMessageBody, type SendExtensionChatMessageParams, type SendExtensionPubSubMessageBody, type SendGuestStarInviteParams, type SendWhisperBody, type SendWhisperParams, type SetExtensionConfigurationSegmentBody, type SetExtensionRequiredConfigurationBody, type SetExtensionRequiredConfigurationParams, type SnoozeNextAdParams, type SnoozeNextAdResponse, type StartARaidParams, type StartARaidResponse, type StartCommercialBody, type StartCommercialResponse, type Stream, type StreamMarkerCreated, type StreamMarkers, type StreamTag, type Team, TwitchApi, type TwitchApiOptions, type UnbanUserParams, type UnblockUserParams, type UnpinChatMessageParams, type UpdateAutoModSettingsBody, type UpdateAutoModSettingsParams, type UpdateAutoModSettingsResponse, type UpdateChannelGuestStarSettingsBody, type UpdateChannelGuestStarSettingsParams, type UpdateChannelStreamScheduleParams, type UpdateChannelStreamScheduleSegmentBody, type UpdateChannelStreamScheduleSegmentParams, type UpdateChannelStreamScheduleSegmentResponse, type UpdateChatSettingsBody, type UpdateChatSettingsParams, type UpdateChatSettingsResponse, type UpdateConduitShardsBody, type UpdateConduitShardsResponse, type UpdateConduitsBody, type UpdateConduitsResponse, type UpdateCustomRewardBody, type UpdateCustomRewardParams, type UpdateCustomRewardResponse, type UpdateDropsEntitlementsBody, type UpdateDropsEntitlementsResponse, type UpdateExtensionBitsProductBody, type UpdateExtensionBitsProductResponse, type UpdateGuestStarSlotParams, type UpdateGuestStarSlotSettingsParams, type UpdatePinnedChatMessageParams, type UpdateRedemptionStatusBody, type UpdateRedemptionStatusParams, type UpdateRedemptionStatusResponse, type UpdateShieldModeStatusBody, type UpdateShieldModeStatusParams, type UpdateShieldModeStatusResponse, type UpdateUserChatColorParams, type UpdateUserExtensionsBody, type UpdateUserExtensionsResponse, type UpdateUserParams, type UpdateUserResponse, type User, type UserBlockList, type UserChatColor, type UserExtension, type UserExtensionComponent, type UserExtensionComponentUpdate, type UserExtensionOverlay, type UserExtensionOverlayUpdate, type UserExtensionPanel, type UserExtensionPanelUpdate, type UserModerator, type UserSubscription, type UserVip, type Video, type WarnChatUserBody, type WarnChatUserParams, type WarnChatUserResponse };
|
|
19877
|
+
export type { AddBlockedTermBody, AddBlockedTermParams, AddBlockedTermResponse, AddChannelModeratorParams, AddChannelVIPParams, AddSuspiciousStatusToChatUserBody, AddSuspiciousStatusToChatUserParams, AddSuspiciousStatusToChatUserResponse, ApiResponse, AssignGuestStarSlotParams, AutoModSettings, AutoModStatus, BanUserBody, BanUserParams, BanUserResponse, BannedUser, BitsLeaderboard, BlockUserParams, BlockedTerm, BroadcasterSubscription, CancelARaidParams, Category, Channel, ChannelEditor, ChannelEmote, ChannelInformation, ChannelStreamScheduleSegment, ChannelTeam, CharityCampaign, CharityCampaignDonation, ChatBadge, ChatSettings, ChatSettingsUpdated, Chatter, CheckAutoModStatusBody, CheckAutoModStatusParams, CheckAutoModStatusResponse, CheckUserSubscriptionParams, CheckUserSubscriptionResponse, Cheermote, CheermoteImageFormat, CheermoteImageTheme, CheermoteImages, Clip, ContentClassificationLabel, CreateChannelStreamScheduleSegmentBody, CreateChannelStreamScheduleSegmentParams, CreateChannelStreamScheduleSegmentResponse, CreateClipFromVODParams, CreateClipFromVODResponse, CreateClipParams, CreateClipResponse, CreateConduitsBody, CreateConduitsResponse, CreateCustomRewardsBody, CreateCustomRewardsParams, CreateCustomRewardsResponse, CreateEventSubSubscriptionBody, CreateEventSubSubscriptionResponse, CreateExtensionSecretParams, CreateExtensionSecretResponse, CreateGuestStarSessionParams, CreateGuestStarSessionResponse, CreatePollBody, CreatePollResponse, CreatePredictionBody, CreatePredictionResponse, CreateStreamMarkerBody, CreateStreamMarkerResponse, CreatorGoal, CustomReward, CustomRewardRedemption, DeleteChannelStreamScheduleSegmentParams, DeleteChatMessagesParams, DeleteConduitParams, DeleteCustomRewardParams, DeleteEventSubSubscriptionParams, DeleteGuestStarInviteParams, DeleteGuestStarSlotParams, DeleteVideosParams, DeleteVideosResponse, DropsEntitlement, DropsEntitlementUpdated, Emote, EndGuestStarSessionParams, EndGuestStarSessionResponse, EndPollBody, EndPollResponse, EndPredictionBody, EndPredictionResponse, EventSubSubscription, Extension, ExtensionAnalytics, ExtensionBitsProduct, ExtensionConfigurationSegment, ExtensionIconUrls, ExtensionLiveChannel, ExtensionSecret, ExtensionTransaction, Game, GameAnalytics, GetAdScheduleParams, GetAdScheduleResponse, GetAllStreamTagsParams, GetAllStreamTagsResponse, GetAuthorizationByUserParams, GetAuthorizationByUserResponse, GetAutoModSettingsParams, GetAutoModSettingsResponse, GetBannedUsersParams, GetBannedUsersResponse, GetBitsLeaderboardParams, GetBitsLeaderboardResponse, GetBlockedTermsParams, GetBlockedTermsResponse, GetBroadcasterSubscriptionsParams, GetBroadcasterSubscriptionsResponse, GetChannelChatBadgesParams, GetChannelChatBadgesResponse, GetChannelEditorsParams, GetChannelEditorsResponse, GetChannelEmotesParams, GetChannelEmotesResponse, GetChannelFollowersParams, GetChannelFollowersResponse, GetChannelGuestStarSettingsParams, GetChannelGuestStarSettingsResponse, GetChannelICalendarParams, GetChannelInformationParams, GetChannelInformationResponse, GetChannelStreamScheduleParams, GetChannelStreamScheduleResponse, GetChannelTeamsParams, GetChannelTeamsResponse, GetCharityCampaignDonationsParams, GetCharityCampaignDonationsResponse, GetCharityCampaignParams, GetCharityCampaignResponse, GetChatSettingsParams, GetChatSettingsResponse, GetChattersParams, GetChattersResponse, GetCheermotesParams, GetCheermotesResponse, GetClipsDownloadParams, GetClipsDownloadResponse, GetClipsParams, GetClipsResponse, GetConduitShardsParams, GetConduitShardsResponse, GetConduitsResponse, GetContentClassificationLabelsParams, GetContentClassificationLabelsResponse, GetCreatorGoalsParams, GetCreatorGoalsResponse, GetCustomPowerUpParams, GetCustomPowerUpResponse, GetCustomRewardParams, GetCustomRewardRedemptionParams, GetCustomRewardRedemptionResponse, GetCustomRewardResponse, GetDropsEntitlementsParams, GetDropsEntitlementsResponse, GetEmoteSetsParams, GetEmoteSetsResponse, GetEventSubSubscriptionsParams, GetEventSubSubscriptionsResponse, GetExtensionAnalyticsParams, GetExtensionAnalyticsResponse, GetExtensionBitsProductsParams, GetExtensionBitsProductsResponse, GetExtensionConfigurationSegmentParams, GetExtensionConfigurationSegmentResponse, GetExtensionLiveChannelsParams, GetExtensionLiveChannelsResponse, GetExtensionSecretsResponse, GetExtensionTransactionsParams, GetExtensionTransactionsResponse, GetExtensionsParams, GetExtensionsResponse, GetFollowedChannelsParams, GetFollowedChannelsResponse, GetFollowedStreamsParams, GetFollowedStreamsResponse, GetGameAnalyticsParams, GetGameAnalyticsResponse, GetGamesParams, GetGamesResponse, GetGlobalChatBadgesResponse, GetGlobalEmotesResponse, GetGuestStarInvitesParams, GetGuestStarInvitesResponse, GetGuestStarSessionParams, GetGuestStarSessionResponse, GetHypeTrainStatusParams, GetHypeTrainStatusResponse, GetModeratedChannelsParams, GetModeratedChannelsResponse, GetModeratorsParams, GetModeratorsResponse, GetPinnedChatMessageParams, GetPinnedChatMessageResponse, GetPollsParams, GetPollsResponse, GetPredictionsParams, GetPredictionsResponse, GetReleasedExtensionsParams, GetReleasedExtensionsResponse, GetSharedChatSessionParams, GetSharedChatSessionResponse, GetShieldModeStatusParams, GetShieldModeStatusResponse, GetStreamKeyParams, GetStreamKeyResponse, GetStreamMarkersParams, GetStreamMarkersResponse, GetStreamTagsParams, GetStreamTagsResponse, GetStreamsParams, GetStreamsResponse, GetTeamsParams, GetTeamsResponse, GetTopGamesParams, GetTopGamesResponse, GetUnbanRequestsParams, GetUnbanRequestsResponse, GetUserActiveExtensionsParams, GetUserActiveExtensionsResponse, GetUserBlockListParams, GetUserBlockListResponse, GetUserChatColorParams, GetUserChatColorResponse, GetUserEmotesParams, GetUserEmotesResponse, GetUserExtensionsResponse, GetUsersParams, GetUsersResponse, GetVIPsParams, GetVIPsResponse, GetVideosParams, GetVideosResponse, GlobalEmote, Guest, GuestStarInvite, GuestStarSession, ManageHeldAutoModMessagesBody, ModifyChannelInformationBody, ModifyChannelInformationParams, PinChatMessageParams, Poll, Prediction, PredictionOutcome, RemoveBlockedTermParams, RemoveChannelModeratorParams, RemoveChannelVIPParams, RemoveSuspiciousStatusFromChatUserParams, RemoveSuspiciousStatusFromChatUserResponse, ResolveUnbanRequestsParams, ResolveUnbanRequestsResponse, SearchCategoriesParams, SearchCategoriesResponse, SearchChannelsParams, SearchChannelsResponse, SendAShoutoutParams, SendChatAnnouncementBody, SendChatAnnouncementParams, SendChatMessageBody, SendChatMessageResponse, SendExtensionChatMessageBody, SendExtensionChatMessageParams, SendExtensionPubSubMessageBody, SendGuestStarInviteParams, SendWhisperBody, SendWhisperParams, SetExtensionConfigurationSegmentBody, SetExtensionRequiredConfigurationBody, SetExtensionRequiredConfigurationParams, SnoozeNextAdParams, SnoozeNextAdResponse, StartARaidParams, StartARaidResponse, StartCommercialBody, StartCommercialResponse, Stream, StreamMarkerCreated, StreamMarkers, StreamTag, Team, TwitchApiOptions, UnbanUserParams, UnblockUserParams, UnpinChatMessageParams, UpdateAutoModSettingsBody, UpdateAutoModSettingsParams, UpdateAutoModSettingsResponse, UpdateChannelGuestStarSettingsBody, UpdateChannelGuestStarSettingsParams, UpdateChannelStreamScheduleParams, UpdateChannelStreamScheduleSegmentBody, UpdateChannelStreamScheduleSegmentParams, UpdateChannelStreamScheduleSegmentResponse, UpdateChatSettingsBody, UpdateChatSettingsParams, UpdateChatSettingsResponse, UpdateConduitShardsBody, UpdateConduitShardsResponse, UpdateConduitsBody, UpdateConduitsResponse, UpdateCustomRewardBody, UpdateCustomRewardParams, UpdateCustomRewardResponse, UpdateDropsEntitlementsBody, UpdateDropsEntitlementsResponse, UpdateExtensionBitsProductBody, UpdateExtensionBitsProductResponse, UpdateGuestStarSlotParams, UpdateGuestStarSlotSettingsParams, UpdatePinnedChatMessageParams, UpdateRedemptionStatusBody, UpdateRedemptionStatusParams, UpdateRedemptionStatusResponse, UpdateShieldModeStatusBody, UpdateShieldModeStatusParams, UpdateShieldModeStatusResponse, UpdateUserChatColorParams, UpdateUserExtensionsBody, UpdateUserExtensionsResponse, UpdateUserParams, UpdateUserResponse, User, UserBlockList, UserChatColor, UserExtension, UserExtensionComponent, UserExtensionComponentUpdate, UserExtensionOverlay, UserExtensionOverlayUpdate, UserExtensionPanel, UserExtensionPanelUpdate, UserModerator, UserSubscription, UserVip, Video, WarnChatUserBody, WarnChatUserParams, WarnChatUserResponse };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/twitch-api.ts
|
|
2
2
|
const BASE_URL = "https://api.twitch.tv/helix";
|
|
3
3
|
const getSearchParams = (params) => {
|
|
4
4
|
const kvPairs = [];
|
|
@@ -6692,5 +6692,4 @@ sendWhisper: (params, body, options = {}) => this.callApi({
|
|
|
6692
6692
|
options
|
|
6693
6693
|
}) };
|
|
6694
6694
|
};
|
|
6695
|
-
//#endregion
|
|
6696
6695
|
export { TwitchApi };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-twitch-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Very simple TwitchApi class and TypeScript interfaces for all Twitch API endpoints",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
],
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "dist/index.cjs",
|
|
25
|
-
"module": "dist/index.
|
|
25
|
+
"module": "dist/index.mjs",
|
|
26
26
|
"types": "dist/index.d.ts",
|
|
27
27
|
"exports": {
|
|
28
|
-
"import": "./dist/index.
|
|
28
|
+
"import": "./dist/index.mjs",
|
|
29
29
|
"require": "./dist/index.cjs"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^26.
|
|
33
|
-
"oxfmt": "^0.
|
|
34
|
-
"oxlint": "^1.
|
|
35
|
-
"tsdown": "^0.
|
|
32
|
+
"@types/node": "^26.6.6",
|
|
33
|
+
"oxfmt": "^0.78.0",
|
|
34
|
+
"oxlint": "^1.93.0",
|
|
35
|
+
"tsdown": "^0.23.7",
|
|
36
36
|
"typescript": "^7.0.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|