@lumiastream/lumia-types 3.7.5 → 3.7.6
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.ts +1 -1
- package/dist/songrequest.types.d.ts +0 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export { BLANK_OVERLAY_TEMPLATE_ID, type OverlayTemplate, type OverlayTemplateLa
|
|
|
10
10
|
export { TiktokGiftsData, TiktokGiftImageSelections } from './tiktok_gifts';
|
|
11
11
|
export { YoutubeSuperstickersData, YoutubeSuperstickerImageSelections } from './youtube_superstickers';
|
|
12
12
|
export { VIEWER_PROFILE_ACHIEVEMENTS, type ViewerProfileAchievementColor, type ViewerProfileAchievementDefinition, type ViewerProfileAchievementMetric, type ViewerProfileCollectionMode, type ViewerProfileCollectionRule, type ViewerProfileCollectionSettings, type ViewerProfileCollectionSource, } from './viewer_profile_achievements';
|
|
13
|
-
export { SongRequestStatus, SongRequestSource, SongRequestProvider, SongRequestPlaybackTarget, type SongRequestItem, type SongRequestConfig, type SongRequestState, type SongRequestQueueUpdatePayload, type
|
|
13
|
+
export { SongRequestStatus, SongRequestSource, SongRequestProvider, SongRequestPlaybackTarget, type SongRequestItem, type SongRequestConfig, type SongRequestState, type SongRequestQueueUpdatePayload, type SongRequestNowPlayingPayload, type SongRequestAddParams, } from './songrequest.types';
|
|
14
14
|
export type { IAlertEvent, AlertPlatform, AlertEventUnion, AlertEventInputMap, SessionAggregateDynamic, SessionAggregateExtraSettings, TwitchFollowerDynamic, TwitchFollowerExtraSettings, TwitchSubscriberDynamic, TwitchSubscriberExtraSettings, TwitchGiftSubscriptionRecipient, TwitchGiftSubscriptionDynamic, TwitchGiftSubscriptionExtraSettings, TwitchBitsDynamic, TwitchBitsExtraSettings, TwitchBitsComboDynamic, TwitchBitsComboExtraSettings, TwitchRaidDynamic, TwitchRaidExtraSettings, TwitchRaidOutDynamic, TwitchRaidOutExtraSettings, TwitchChannelJoinDynamic, TwitchChannelJoinExtraSettings, TwitchChannelLeaveDynamic, TwitchChannelLeaveExtraSettings, TwitchFirstChatterDynamic, TwitchFirstChatterExtraSettings, TwitchEntranceDynamic, TwitchEntranceExtraSettings, TwitchTimeoutDynamic, TwitchTimeoutExtraSettings, TwitchTimeoutOverDynamic, TwitchTimeoutOverExtraSettings, TwitchBannedDynamic, TwitchBannedExtraSettings, TwitchClipDynamic, TwitchClipExtraSettings, TwitchCategoryDynamic, TwitchCategoryExtraSettings, TwitchHypeTrainInfo, TwitchHypeTrainDynamic, TwitchHypeTrainExtraSettings, TwitchHypeTrainStartedDynamic, TwitchHypeTrainStartedExtraSettings, TwitchHypeTrainProgressedDynamic, TwitchHypeTrainProgressedExtraSettings, TwitchHypeTrainLevelProgressedDynamic, TwitchHypeTrainLevelProgressedExtraSettings, TwitchHypeTrainEndedDynamic, TwitchHypeTrainEndedExtraSettings, TwitchPollChoice, TwitchPollInfo, TwitchPollDynamic, TwitchPollExtraSettings, TwitchPollStartedDynamic, TwitchPollStartedExtraSettings, TwitchPollProgressedDynamic, TwitchPollProgressedExtraSettings, TwitchPollEndedDynamic, TwitchPollEndedExtraSettings, TwitchPredictionOutcome, TwitchPredictionInfo, TwitchPredictionDynamic, TwitchPredictionExtraSettings, TwitchPredictionStartedDynamic, TwitchPredictionStartedExtraSettings, TwitchPredictionProgressedDynamic, TwitchPredictionProgressedExtraSettings, TwitchPredictionLockedDynamic, TwitchPredictionLockedExtraSettings, TwitchPredictionEndedDynamic, TwitchPredictionEndedExtraSettings, TwitchGoalInfo, TwitchGoalDynamic, TwitchGoalExtraSettings, TwitchGoalStartedDynamic, TwitchGoalStartedExtraSettings, TwitchGoalProgressedDynamic, TwitchGoalProgressedExtraSettings, TwitchGoalEndedDynamic, TwitchGoalEndedExtraSettings, TwitchCharityDonationDynamic, TwitchCharityDonationExtraSettings, TwitchCharityCampaignDynamic, TwitchCharityCampaignExtraSettings, TwitchCharityCampaignStartedDynamic, TwitchCharityCampaignStartedExtraSettings, TwitchCharityCampaignProgressedDynamic, TwitchCharityCampaignProgressedExtraSettings, TwitchCharityCampaignStoppedDynamic, TwitchCharityCampaignStoppedExtraSettings, TwitchShoutoutReceiveDynamic, TwitchShoutoutReceiveExtraSettings, TwitchAdDynamic, TwitchAdStartedExtraSettings, TwitchAdStoppedExtraSettings, TwitchStreamLiveDynamic, TwitchStreamLiveExtraSettings, TwitchStreamOfflineDynamic, TwitchStreamOfflineExtraSettings, TwitchWatchStreakDynamic, TwitchWatchStreakExtraSettings, TwitchPowerupsDynamic, TwitchPowerupsExtraSettings, TwitchRedemptionDynamic, TwitchRedemptionExtraSettings, TwitchSessionFollowersDynamic, TwitchSessionFollowersExtraSettings, TwitchSessionSubsDynamic, TwitchSessionSubsExtraSettings, TwitchSessionGiftSubscriptionsDynamic, TwitchSessionGiftSubscriptionsExtraSettings, TwitchSessionBitsDynamic, TwitchSessionBitsExtraSettings, KickFollowerDynamic, KickFollowerExtraSettings, KickSubscriberDynamic, KickSubscriberExtraSettings, KickGiftSubscriptionRecipient, KickGiftSubscriptionDynamic, KickGiftSubscriptionExtraSettings, KickKicksDynamic, KickKicksExtraSettings, KickHostDynamic, KickHostExtraSettings, KickBannedDynamic, KickBannedExtraSettings, KickUnbannedDynamic, KickUnbannedExtraSettings, KickFirstChatterDynamic, KickFirstChatterExtraSettings, KickEntranceDynamic, KickEntranceExtraSettings, KickSessionFollowersDynamic, KickSessionFollowersExtraSettings, KickSessionSubsDynamic, KickSessionSubsExtraSettings, KickSessionGiftSubscriptionsDynamic, KickSessionGiftSubscriptionsExtraSettings, KickSessionKicksDynamic, KickSessionKicksExtraSettings, } from './wire.types';
|
|
@@ -94,17 +94,13 @@ export interface SongRequestConfig {
|
|
|
94
94
|
/** Required for free-text → YouTube Data API v3 search. */
|
|
95
95
|
youtubeApiKey?: string;
|
|
96
96
|
preferredPlaybackTarget: SongRequestPlaybackTarget;
|
|
97
|
-
chatTemplateAdded: string;
|
|
98
97
|
chatTemplateNowPlaying: string;
|
|
99
|
-
chatTemplateDenied: string;
|
|
100
98
|
/** Used for dedup / cooldown / queue-full / disallowed-source rejections. */
|
|
101
99
|
chatTemplateRejected: string;
|
|
102
100
|
}
|
|
103
101
|
/** Runtime queue state. Lives in the LumiaStream Redux slice; the dashboard
|
|
104
102
|
* widgets and the overlay module consume slices of this shape. */
|
|
105
103
|
export interface SongRequestState {
|
|
106
|
-
/** Awaiting moderator approval (empty when `approvalRequired: false`). */
|
|
107
|
-
pending: SongRequestItem[];
|
|
108
104
|
/** Approved, waiting to play. Index 0 plays next. */
|
|
109
105
|
queue: SongRequestItem[];
|
|
110
106
|
/** Currently playing item, if any. */
|
|
@@ -117,10 +113,6 @@ export interface SongRequestQueueUpdatePayload {
|
|
|
117
113
|
queue: SongRequestItem[];
|
|
118
114
|
nowPlaying: SongRequestItem | null;
|
|
119
115
|
}
|
|
120
|
-
/** Fired whenever the pending tray changes (drives the moderation widget). */
|
|
121
|
-
export interface SongRequestPendingUpdatePayload {
|
|
122
|
-
pending: SongRequestItem[];
|
|
123
|
-
}
|
|
124
116
|
/** Lighter-weight ping when only nowPlaying changed (e.g., natural advance). */
|
|
125
117
|
export interface SongRequestNowPlayingPayload {
|
|
126
118
|
nowPlaying: SongRequestItem | null;
|
|
@@ -132,14 +124,4 @@ export interface SongRequestAddParams {
|
|
|
132
124
|
requesterPlatform?: LumiaStreamingSites;
|
|
133
125
|
/** Defaults to `LUMIA_ACTION` when omitted (matches the action call site). */
|
|
134
126
|
source?: SongRequestSource;
|
|
135
|
-
/**
|
|
136
|
-
* Streamer / mod additions can skip the pending state. Chat-command
|
|
137
|
-
* additions ignore this flag — chat is always subject to `approvalRequired`.
|
|
138
|
-
*/
|
|
139
|
-
forceApprove?: boolean;
|
|
140
|
-
}
|
|
141
|
-
export interface SongRequestModerationParams {
|
|
142
|
-
id: string;
|
|
143
|
-
/** Optional reason for deny actions (surfaced in chat / mod log). */
|
|
144
|
-
reason?: string;
|
|
145
127
|
}
|