@lumiastream/lumia-types 3.4.0 → 3.4.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/custom-overlays/custom-overlays.d.ts +2 -0
- package/dist/custom-overlays.d.ts +2 -0
- package/dist/esm/eventlist.types.js +1 -43
- package/dist/esm/variables.types.js +33 -3
- package/dist/eventlist.types.js +1 -43
- package/dist/variables.types.d.ts +2 -0
- package/dist/variables.types.js +33 -3
- package/package.json +1 -1
|
@@ -1154,6 +1154,8 @@ export declare enum SystemVariables {
|
|
|
1154
1154
|
TRANSLATE = "translate",
|
|
1155
1155
|
/** Get the ai response from ai integration. Example: {{ai_prompt={{message}}}}. Use as {{ai_prompt}}. */
|
|
1156
1156
|
AI_PROMPT = "ai_prompt",
|
|
1157
|
+
/** Current weather for a location via wttr.in. Returns a one-line summary like */
|
|
1158
|
+
WEATHER = "weather",
|
|
1157
1159
|
/** Commands URL/page. Use in overlays as {{commands_url}}. */
|
|
1158
1160
|
COMMANDS_URL = "commands_url",
|
|
1159
1161
|
/** Session start time (ISO). Use as {{session_start_date}}. */
|
|
@@ -1154,6 +1154,8 @@ export declare enum SystemVariables {
|
|
|
1154
1154
|
TRANSLATE = "translate",
|
|
1155
1155
|
/** Get the ai response from ai integration. Example: {{ai_prompt={{message}}}}. Use as {{ai_prompt}}. */
|
|
1156
1156
|
AI_PROMPT = "ai_prompt",
|
|
1157
|
+
/** Current weather for a location via wttr.in. Returns a one-line summary like */
|
|
1158
|
+
WEATHER = "weather",
|
|
1157
1159
|
/** Commands URL/page. Use in overlays as {{commands_url}}. */
|
|
1158
1160
|
COMMANDS_URL = "commands_url",
|
|
1159
1161
|
/** Session start time (ISO). Use as {{session_start_date}}. */
|
|
@@ -72,9 +72,6 @@ export var LumiaEventListTypes;
|
|
|
72
72
|
export const LumiaMapAlertTypeToEventListType = {
|
|
73
73
|
// --- Lumia Stream native ---
|
|
74
74
|
[LumiaAlertValues.LUMIASTREAM_DONATION]: LumiaEventListTypes.DONATION,
|
|
75
|
-
// Raffle / spinwheel / roulette / slots winners are explicitly hidden via
|
|
76
|
-
// `AlertsToFilter` below — they're stream-side games, not viewer-facing
|
|
77
|
-
// activity feed events.
|
|
78
75
|
// --- Twitch ---
|
|
79
76
|
[LumiaAlertValues.TWITCH_EXTENSION]: LumiaEventListTypes.EXTENSION,
|
|
80
77
|
[LumiaAlertValues.TWITCH_POINTS]: LumiaEventListTypes.POINTS,
|
|
@@ -89,22 +86,11 @@ export const LumiaMapAlertTypeToEventListType = {
|
|
|
89
86
|
[LumiaAlertValues.TWITCH_BITS]: LumiaEventListTypes.BITS,
|
|
90
87
|
[LumiaAlertValues.TWITCH_BITS_COMBO]: LumiaEventListTypes.BITS,
|
|
91
88
|
[LumiaAlertValues.TWITCH_SESSION_BITS]: LumiaEventListTypes.BITS,
|
|
92
|
-
// TWITCH_REDEMPTION is explicitly hidden via `AlertsToFilter` — its
|
|
93
|
-
// payload is too channel-points-specific for a generic activity feed.
|
|
94
|
-
// Streamlabs Redemption (loyalty points) is in the REDEMPTION category
|
|
95
|
-
// below if that semantic is needed.
|
|
96
89
|
[LumiaAlertValues.TWITCH_HYPETRAIN_STARTED]: LumiaEventListTypes.HYPETRAIN,
|
|
97
|
-
// HYPETRAIN_PROGRESSED / LEVEL_PROGRESSED / ENDED are hidden via
|
|
98
|
-
// `AlertsToFilter` — only the STARTED event reads as a real "event" in
|
|
99
|
-
// the feed; the rest are progress ticks the streamer doesn't want
|
|
100
|
-
// cluttering things.
|
|
101
90
|
[LumiaAlertValues.TWITCH_CHARITY_DONATION]: LumiaEventListTypes.DONATION,
|
|
102
91
|
[LumiaAlertValues.TWITCH_POWERUPS]: LumiaEventListTypes.BITS,
|
|
103
92
|
[LumiaAlertValues.TWITCH_POWERUPS_POINTS]: LumiaEventListTypes.POINTS,
|
|
104
93
|
// --- YouTube ---
|
|
105
|
-
// YouTube "subscribers" are free follows in YT-speak — categorize as
|
|
106
|
-
// FOLLOWER so a "Recent Followers" widget unifies Twitch follows + YT
|
|
107
|
-
// subs. Paid memberships are categorized as SUBSCRIBERS below.
|
|
108
94
|
[LumiaAlertValues.YOUTUBE_SUBSCRIBER]: LumiaEventListTypes.FOLLOWER,
|
|
109
95
|
[LumiaAlertValues.YOUTUBE_SESSION_SUBS]: LumiaEventListTypes.FOLLOWER,
|
|
110
96
|
[LumiaAlertValues.YOUTUBE_MEMBER]: LumiaEventListTypes.SUBSCRIBERS,
|
|
@@ -117,16 +103,10 @@ export const LumiaMapAlertTypeToEventListType = {
|
|
|
117
103
|
[LumiaAlertValues.YOUTUBE_SESSION_SUPERSTICKERS]: LumiaEventListTypes.SUPERSTICKERS,
|
|
118
104
|
[LumiaAlertValues.YOUTUBE_GIFTS]: LumiaEventListTypes.GIFTS,
|
|
119
105
|
[LumiaAlertValues.YOUTUBE_SESSION_GIFTS]: LumiaEventListTypes.GIFTS,
|
|
120
|
-
// YOUTUBE_LIKE / TIKTOK_LIKE / TIKTOK_TOTAL_LIKES / TWITTER_LIKE are
|
|
121
|
-
// hidden via `AlertsToFilter` — likes are too frequent / noisy for a
|
|
122
|
-
// recent-activity feed.
|
|
123
106
|
// --- Facebook ---
|
|
124
107
|
[LumiaAlertValues.FACEBOOK_FOLLOWER]: LumiaEventListTypes.FOLLOWER,
|
|
125
108
|
[LumiaAlertValues.FACEBOOK_REACTION]: LumiaEventListTypes.LIKES,
|
|
126
109
|
[LumiaAlertValues.FACEBOOK_STAR]: LumiaEventListTypes.STARS,
|
|
127
|
-
// FB Supporters are paid subscriptions, FB Fans are free fan-status, FB
|
|
128
|
-
// Gift Subscriptions are gifted Supporters → keep all three in their
|
|
129
|
-
// distinct categories.
|
|
130
110
|
[LumiaAlertValues.FACEBOOK_SUPPORT]: LumiaEventListTypes.SUBSCRIBERS,
|
|
131
111
|
[LumiaAlertValues.FACEBOOK_GIFT_SUBSCRIPTION]: LumiaEventListTypes.GIFTS,
|
|
132
112
|
[LumiaAlertValues.FACEBOOK_SHARE]: LumiaEventListTypes.SHARES,
|
|
@@ -134,9 +114,6 @@ export const LumiaMapAlertTypeToEventListType = {
|
|
|
134
114
|
// --- TikTok ---
|
|
135
115
|
[LumiaAlertValues.TIKTOK_FOLLOWER]: LumiaEventListTypes.FOLLOWER,
|
|
136
116
|
[LumiaAlertValues.TIKTOK_GIFT]: LumiaEventListTypes.GIFTS,
|
|
137
|
-
// TikTok Super Fan = paid membership (subscriber-equivalent). Super Fan
|
|
138
|
-
// BOX is a separate gift-style event where a viewer receives a fan-only
|
|
139
|
-
// drop — categorize as GIFTS to keep the SUBSCRIBERS feed sub-only.
|
|
140
117
|
[LumiaAlertValues.TIKTOK_SUPER_FAN]: LumiaEventListTypes.SUBSCRIBERS,
|
|
141
118
|
[LumiaAlertValues.TIKTOK_SUPER_FAN_BOX]: LumiaEventListTypes.GIFTS,
|
|
142
119
|
[LumiaAlertValues.TIKTOK_TREASURE_CHEST]: LumiaEventListTypes.GIFTS,
|
|
@@ -157,18 +134,12 @@ export const LumiaMapAlertTypeToEventListType = {
|
|
|
157
134
|
[LumiaAlertValues.STREAMLABS_DONATION]: LumiaEventListTypes.DONATION,
|
|
158
135
|
[LumiaAlertValues.STREAMLABS_CHARITY]: LumiaEventListTypes.DONATION,
|
|
159
136
|
[LumiaAlertValues.STREAMLABS_MERCH]: LumiaEventListTypes.PURCHASES,
|
|
160
|
-
// Streamlabs Redemption was previously miscategorized as PURCHASES. It's
|
|
161
|
-
// a Streamlabs loyalty-points redemption — the dedicated REDEMPTION
|
|
162
|
-
// category is the correct home, mirroring TWITCH_REDEMPTION.
|
|
163
137
|
[LumiaAlertValues.STREAMLABS_REDEMPTION]: LumiaEventListTypes.REDEMPTION,
|
|
164
138
|
[LumiaAlertValues.STREAMLABS_PRIMEGIFT]: LumiaEventListTypes.GIFTS,
|
|
165
139
|
[LumiaAlertValues.STREAMELEMENTS_DONATION]: LumiaEventListTypes.DONATION,
|
|
166
140
|
[LumiaAlertValues.EXTRALIFE_DONATION]: LumiaEventListTypes.DONATION,
|
|
167
141
|
[LumiaAlertValues.DONORDRIVE_DONATION]: LumiaEventListTypes.DONATION,
|
|
168
142
|
[LumiaAlertValues.TILTIFY_DONATION]: LumiaEventListTypes.DONATION,
|
|
169
|
-
// Throne is a viewer wishlist platform — a "gift purchase" is a viewer
|
|
170
|
-
// buying an item off the streamer's wishlist. Treat all three Throne
|
|
171
|
-
// events as PURCHASES so they don't leak into the SUBSCRIBERS feed.
|
|
172
143
|
[LumiaAlertValues.THRONE_GIFT_PURCHASE]: LumiaEventListTypes.PURCHASES,
|
|
173
144
|
[LumiaAlertValues.THRONE_CONTRIBUTION_PURCHASE]: LumiaEventListTypes.PURCHASES,
|
|
174
145
|
[LumiaAlertValues.THRONE_GIFT_CROWDFUNDED]: LumiaEventListTypes.PURCHASES,
|
|
@@ -373,17 +344,4 @@ export const AlertsToFilter = [
|
|
|
373
344
|
* before the event lands in the eventlist DB at all. Was duplicated in
|
|
374
345
|
* LumiaStream `Integrations.types.ts` before being consolidated here.
|
|
375
346
|
*/
|
|
376
|
-
export const PlatformsToFilter = [
|
|
377
|
-
'obs',
|
|
378
|
-
'slobs',
|
|
379
|
-
'meld',
|
|
380
|
-
'paypal',
|
|
381
|
-
'pulsoid',
|
|
382
|
-
'hyperate',
|
|
383
|
-
'spotify',
|
|
384
|
-
'youtubemusic',
|
|
385
|
-
'nowplaying',
|
|
386
|
-
'vlc',
|
|
387
|
-
'streamerbot',
|
|
388
|
-
'vtubestudio',
|
|
389
|
-
];
|
|
347
|
+
export const PlatformsToFilter = ['obs', 'slobs', 'meld', 'paypal', 'pulsoid', 'hyperate', 'spotify', 'youtubemusic', 'nowplaying', 'vlc', 'streamerbot', 'vtubestudio'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// [AI] When SystemVariables is used, update custom-overlays.d.ts
|
|
2
|
-
export const getAcceptedVariableName = (entry) => typeof entry === 'string' ? entry : entry.name;
|
|
2
|
+
export const getAcceptedVariableName = (entry) => (typeof entry === 'string' ? entry : entry.name);
|
|
3
3
|
export const getAcceptedVariableNames = (entries) => entries.map(getAcceptedVariableName);
|
|
4
4
|
// Use the **string values** of this enum inside overlays: e.g. {{twitch_total_subscriber_count}}, not {{TWITCH_TOTAL_SUBSCRIBER_COUNT}}.
|
|
5
5
|
export var SystemVariables;
|
|
@@ -73,6 +73,8 @@ export var SystemVariables;
|
|
|
73
73
|
SystemVariables["TRANSLATE"] = "translate";
|
|
74
74
|
/** Get the ai response from ai integration. Example: {{ai_prompt={{message}}}}. Use as {{ai_prompt}}. */
|
|
75
75
|
SystemVariables["AI_PROMPT"] = "ai_prompt";
|
|
76
|
+
/** Current weather for a location via wttr.in. Returns a one-line summary like */
|
|
77
|
+
SystemVariables["WEATHER"] = "weather";
|
|
76
78
|
// ─────────────────────────────────── General Variables ───────────────────────
|
|
77
79
|
/** Commands URL/page. Use in overlays as {{commands_url}}. */
|
|
78
80
|
SystemVariables["COMMANDS_URL"] = "commands_url";
|
|
@@ -2099,7 +2101,21 @@ export const AllVariables = {
|
|
|
2099
2101
|
sessionFollowers: ['total', 'previousTotal'],
|
|
2100
2102
|
subscriber: ['username', 'avatar', 'tier', 'recipient', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
2101
2103
|
sessionSubs: ['total', 'previousTotal'],
|
|
2102
|
-
subscriptionGift: [
|
|
2104
|
+
subscriptionGift: [
|
|
2105
|
+
'username',
|
|
2106
|
+
'avatar',
|
|
2107
|
+
'tier',
|
|
2108
|
+
'giftAmount',
|
|
2109
|
+
'recipients',
|
|
2110
|
+
KICK_RECIPIENTS_RAW_EXAMPLE,
|
|
2111
|
+
'gifter',
|
|
2112
|
+
'totalGifts',
|
|
2113
|
+
'subMonths',
|
|
2114
|
+
'streakMonths',
|
|
2115
|
+
'message',
|
|
2116
|
+
'subPlan',
|
|
2117
|
+
'subPlanName',
|
|
2118
|
+
],
|
|
2103
2119
|
sessionGiftSubscriptions: ['total', 'previousTotal'],
|
|
2104
2120
|
kicks: ['username', 'avatar', 'amount', 'name', 'type', 'tier', 'id', 'message'],
|
|
2105
2121
|
sessionKicks: ['total', 'previousTotal'],
|
|
@@ -2443,7 +2459,21 @@ export const AllVariables = {
|
|
|
2443
2459
|
sessionFollowers: ['total', 'previousTotal'],
|
|
2444
2460
|
subscriber: ['username', 'avatar', 'tier', 'recipient', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
2445
2461
|
sessionSubs: ['total', 'previousTotal'],
|
|
2446
|
-
giftSubscription: [
|
|
2462
|
+
giftSubscription: [
|
|
2463
|
+
'username',
|
|
2464
|
+
'avatar',
|
|
2465
|
+
'tier',
|
|
2466
|
+
'giftAmount',
|
|
2467
|
+
'recipients',
|
|
2468
|
+
TWITCH_RECIPIENTS_RAW_EXAMPLE,
|
|
2469
|
+
'gifter',
|
|
2470
|
+
'totalGifts',
|
|
2471
|
+
'subMonths',
|
|
2472
|
+
'streakMonths',
|
|
2473
|
+
'message',
|
|
2474
|
+
'subPlan',
|
|
2475
|
+
'subPlanName',
|
|
2476
|
+
],
|
|
2447
2477
|
sessionGiftSubscriptions: ['total', 'previousTotal'],
|
|
2448
2478
|
bits: ['username', 'avatar', 'amount', 'message'],
|
|
2449
2479
|
bitsCombo: ['username', 'avatar', 'amount', 'bitsType', 'message'],
|
package/dist/eventlist.types.js
CHANGED
|
@@ -75,9 +75,6 @@ var LumiaEventListTypes;
|
|
|
75
75
|
exports.LumiaMapAlertTypeToEventListType = {
|
|
76
76
|
// --- Lumia Stream native ---
|
|
77
77
|
[activity_types_1.LumiaAlertValues.LUMIASTREAM_DONATION]: LumiaEventListTypes.DONATION,
|
|
78
|
-
// Raffle / spinwheel / roulette / slots winners are explicitly hidden via
|
|
79
|
-
// `AlertsToFilter` below — they're stream-side games, not viewer-facing
|
|
80
|
-
// activity feed events.
|
|
81
78
|
// --- Twitch ---
|
|
82
79
|
[activity_types_1.LumiaAlertValues.TWITCH_EXTENSION]: LumiaEventListTypes.EXTENSION,
|
|
83
80
|
[activity_types_1.LumiaAlertValues.TWITCH_POINTS]: LumiaEventListTypes.POINTS,
|
|
@@ -92,22 +89,11 @@ exports.LumiaMapAlertTypeToEventListType = {
|
|
|
92
89
|
[activity_types_1.LumiaAlertValues.TWITCH_BITS]: LumiaEventListTypes.BITS,
|
|
93
90
|
[activity_types_1.LumiaAlertValues.TWITCH_BITS_COMBO]: LumiaEventListTypes.BITS,
|
|
94
91
|
[activity_types_1.LumiaAlertValues.TWITCH_SESSION_BITS]: LumiaEventListTypes.BITS,
|
|
95
|
-
// TWITCH_REDEMPTION is explicitly hidden via `AlertsToFilter` — its
|
|
96
|
-
// payload is too channel-points-specific for a generic activity feed.
|
|
97
|
-
// Streamlabs Redemption (loyalty points) is in the REDEMPTION category
|
|
98
|
-
// below if that semantic is needed.
|
|
99
92
|
[activity_types_1.LumiaAlertValues.TWITCH_HYPETRAIN_STARTED]: LumiaEventListTypes.HYPETRAIN,
|
|
100
|
-
// HYPETRAIN_PROGRESSED / LEVEL_PROGRESSED / ENDED are hidden via
|
|
101
|
-
// `AlertsToFilter` — only the STARTED event reads as a real "event" in
|
|
102
|
-
// the feed; the rest are progress ticks the streamer doesn't want
|
|
103
|
-
// cluttering things.
|
|
104
93
|
[activity_types_1.LumiaAlertValues.TWITCH_CHARITY_DONATION]: LumiaEventListTypes.DONATION,
|
|
105
94
|
[activity_types_1.LumiaAlertValues.TWITCH_POWERUPS]: LumiaEventListTypes.BITS,
|
|
106
95
|
[activity_types_1.LumiaAlertValues.TWITCH_POWERUPS_POINTS]: LumiaEventListTypes.POINTS,
|
|
107
96
|
// --- YouTube ---
|
|
108
|
-
// YouTube "subscribers" are free follows in YT-speak — categorize as
|
|
109
|
-
// FOLLOWER so a "Recent Followers" widget unifies Twitch follows + YT
|
|
110
|
-
// subs. Paid memberships are categorized as SUBSCRIBERS below.
|
|
111
97
|
[activity_types_1.LumiaAlertValues.YOUTUBE_SUBSCRIBER]: LumiaEventListTypes.FOLLOWER,
|
|
112
98
|
[activity_types_1.LumiaAlertValues.YOUTUBE_SESSION_SUBS]: LumiaEventListTypes.FOLLOWER,
|
|
113
99
|
[activity_types_1.LumiaAlertValues.YOUTUBE_MEMBER]: LumiaEventListTypes.SUBSCRIBERS,
|
|
@@ -120,16 +106,10 @@ exports.LumiaMapAlertTypeToEventListType = {
|
|
|
120
106
|
[activity_types_1.LumiaAlertValues.YOUTUBE_SESSION_SUPERSTICKERS]: LumiaEventListTypes.SUPERSTICKERS,
|
|
121
107
|
[activity_types_1.LumiaAlertValues.YOUTUBE_GIFTS]: LumiaEventListTypes.GIFTS,
|
|
122
108
|
[activity_types_1.LumiaAlertValues.YOUTUBE_SESSION_GIFTS]: LumiaEventListTypes.GIFTS,
|
|
123
|
-
// YOUTUBE_LIKE / TIKTOK_LIKE / TIKTOK_TOTAL_LIKES / TWITTER_LIKE are
|
|
124
|
-
// hidden via `AlertsToFilter` — likes are too frequent / noisy for a
|
|
125
|
-
// recent-activity feed.
|
|
126
109
|
// --- Facebook ---
|
|
127
110
|
[activity_types_1.LumiaAlertValues.FACEBOOK_FOLLOWER]: LumiaEventListTypes.FOLLOWER,
|
|
128
111
|
[activity_types_1.LumiaAlertValues.FACEBOOK_REACTION]: LumiaEventListTypes.LIKES,
|
|
129
112
|
[activity_types_1.LumiaAlertValues.FACEBOOK_STAR]: LumiaEventListTypes.STARS,
|
|
130
|
-
// FB Supporters are paid subscriptions, FB Fans are free fan-status, FB
|
|
131
|
-
// Gift Subscriptions are gifted Supporters → keep all three in their
|
|
132
|
-
// distinct categories.
|
|
133
113
|
[activity_types_1.LumiaAlertValues.FACEBOOK_SUPPORT]: LumiaEventListTypes.SUBSCRIBERS,
|
|
134
114
|
[activity_types_1.LumiaAlertValues.FACEBOOK_GIFT_SUBSCRIPTION]: LumiaEventListTypes.GIFTS,
|
|
135
115
|
[activity_types_1.LumiaAlertValues.FACEBOOK_SHARE]: LumiaEventListTypes.SHARES,
|
|
@@ -137,9 +117,6 @@ exports.LumiaMapAlertTypeToEventListType = {
|
|
|
137
117
|
// --- TikTok ---
|
|
138
118
|
[activity_types_1.LumiaAlertValues.TIKTOK_FOLLOWER]: LumiaEventListTypes.FOLLOWER,
|
|
139
119
|
[activity_types_1.LumiaAlertValues.TIKTOK_GIFT]: LumiaEventListTypes.GIFTS,
|
|
140
|
-
// TikTok Super Fan = paid membership (subscriber-equivalent). Super Fan
|
|
141
|
-
// BOX is a separate gift-style event where a viewer receives a fan-only
|
|
142
|
-
// drop — categorize as GIFTS to keep the SUBSCRIBERS feed sub-only.
|
|
143
120
|
[activity_types_1.LumiaAlertValues.TIKTOK_SUPER_FAN]: LumiaEventListTypes.SUBSCRIBERS,
|
|
144
121
|
[activity_types_1.LumiaAlertValues.TIKTOK_SUPER_FAN_BOX]: LumiaEventListTypes.GIFTS,
|
|
145
122
|
[activity_types_1.LumiaAlertValues.TIKTOK_TREASURE_CHEST]: LumiaEventListTypes.GIFTS,
|
|
@@ -160,18 +137,12 @@ exports.LumiaMapAlertTypeToEventListType = {
|
|
|
160
137
|
[activity_types_1.LumiaAlertValues.STREAMLABS_DONATION]: LumiaEventListTypes.DONATION,
|
|
161
138
|
[activity_types_1.LumiaAlertValues.STREAMLABS_CHARITY]: LumiaEventListTypes.DONATION,
|
|
162
139
|
[activity_types_1.LumiaAlertValues.STREAMLABS_MERCH]: LumiaEventListTypes.PURCHASES,
|
|
163
|
-
// Streamlabs Redemption was previously miscategorized as PURCHASES. It's
|
|
164
|
-
// a Streamlabs loyalty-points redemption — the dedicated REDEMPTION
|
|
165
|
-
// category is the correct home, mirroring TWITCH_REDEMPTION.
|
|
166
140
|
[activity_types_1.LumiaAlertValues.STREAMLABS_REDEMPTION]: LumiaEventListTypes.REDEMPTION,
|
|
167
141
|
[activity_types_1.LumiaAlertValues.STREAMLABS_PRIMEGIFT]: LumiaEventListTypes.GIFTS,
|
|
168
142
|
[activity_types_1.LumiaAlertValues.STREAMELEMENTS_DONATION]: LumiaEventListTypes.DONATION,
|
|
169
143
|
[activity_types_1.LumiaAlertValues.EXTRALIFE_DONATION]: LumiaEventListTypes.DONATION,
|
|
170
144
|
[activity_types_1.LumiaAlertValues.DONORDRIVE_DONATION]: LumiaEventListTypes.DONATION,
|
|
171
145
|
[activity_types_1.LumiaAlertValues.TILTIFY_DONATION]: LumiaEventListTypes.DONATION,
|
|
172
|
-
// Throne is a viewer wishlist platform — a "gift purchase" is a viewer
|
|
173
|
-
// buying an item off the streamer's wishlist. Treat all three Throne
|
|
174
|
-
// events as PURCHASES so they don't leak into the SUBSCRIBERS feed.
|
|
175
146
|
[activity_types_1.LumiaAlertValues.THRONE_GIFT_PURCHASE]: LumiaEventListTypes.PURCHASES,
|
|
176
147
|
[activity_types_1.LumiaAlertValues.THRONE_CONTRIBUTION_PURCHASE]: LumiaEventListTypes.PURCHASES,
|
|
177
148
|
[activity_types_1.LumiaAlertValues.THRONE_GIFT_CROWDFUNDED]: LumiaEventListTypes.PURCHASES,
|
|
@@ -376,17 +347,4 @@ exports.AlertsToFilter = [
|
|
|
376
347
|
* before the event lands in the eventlist DB at all. Was duplicated in
|
|
377
348
|
* LumiaStream `Integrations.types.ts` before being consolidated here.
|
|
378
349
|
*/
|
|
379
|
-
exports.PlatformsToFilter = [
|
|
380
|
-
'obs',
|
|
381
|
-
'slobs',
|
|
382
|
-
'meld',
|
|
383
|
-
'paypal',
|
|
384
|
-
'pulsoid',
|
|
385
|
-
'hyperate',
|
|
386
|
-
'spotify',
|
|
387
|
-
'youtubemusic',
|
|
388
|
-
'nowplaying',
|
|
389
|
-
'vlc',
|
|
390
|
-
'streamerbot',
|
|
391
|
-
'vtubestudio',
|
|
392
|
-
];
|
|
350
|
+
exports.PlatformsToFilter = ['obs', 'slobs', 'meld', 'paypal', 'pulsoid', 'hyperate', 'spotify', 'youtubemusic', 'nowplaying', 'vlc', 'streamerbot', 'vtubestudio'];
|
|
@@ -76,6 +76,8 @@ export declare enum SystemVariables {
|
|
|
76
76
|
TRANSLATE = "translate",
|
|
77
77
|
/** Get the ai response from ai integration. Example: {{ai_prompt={{message}}}}. Use as {{ai_prompt}}. */
|
|
78
78
|
AI_PROMPT = "ai_prompt",
|
|
79
|
+
/** Current weather for a location via wttr.in. Returns a one-line summary like */
|
|
80
|
+
WEATHER = "weather",
|
|
79
81
|
/** Commands URL/page. Use in overlays as {{commands_url}}. */
|
|
80
82
|
COMMANDS_URL = "commands_url",
|
|
81
83
|
/** Session start time (ISO). Use as {{session_start_date}}. */
|
package/dist/variables.types.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// [AI] When SystemVariables is used, update custom-overlays.d.ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = void 0;
|
|
5
|
-
const getAcceptedVariableName = (entry) => typeof entry === 'string' ? entry : entry.name;
|
|
5
|
+
const getAcceptedVariableName = (entry) => (typeof entry === 'string' ? entry : entry.name);
|
|
6
6
|
exports.getAcceptedVariableName = getAcceptedVariableName;
|
|
7
7
|
const getAcceptedVariableNames = (entries) => entries.map(exports.getAcceptedVariableName);
|
|
8
8
|
exports.getAcceptedVariableNames = getAcceptedVariableNames;
|
|
@@ -78,6 +78,8 @@ var SystemVariables;
|
|
|
78
78
|
SystemVariables["TRANSLATE"] = "translate";
|
|
79
79
|
/** Get the ai response from ai integration. Example: {{ai_prompt={{message}}}}. Use as {{ai_prompt}}. */
|
|
80
80
|
SystemVariables["AI_PROMPT"] = "ai_prompt";
|
|
81
|
+
/** Current weather for a location via wttr.in. Returns a one-line summary like */
|
|
82
|
+
SystemVariables["WEATHER"] = "weather";
|
|
81
83
|
// ─────────────────────────────────── General Variables ───────────────────────
|
|
82
84
|
/** Commands URL/page. Use in overlays as {{commands_url}}. */
|
|
83
85
|
SystemVariables["COMMANDS_URL"] = "commands_url";
|
|
@@ -2104,7 +2106,21 @@ exports.AllVariables = {
|
|
|
2104
2106
|
sessionFollowers: ['total', 'previousTotal'],
|
|
2105
2107
|
subscriber: ['username', 'avatar', 'tier', 'recipient', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
2106
2108
|
sessionSubs: ['total', 'previousTotal'],
|
|
2107
|
-
subscriptionGift: [
|
|
2109
|
+
subscriptionGift: [
|
|
2110
|
+
'username',
|
|
2111
|
+
'avatar',
|
|
2112
|
+
'tier',
|
|
2113
|
+
'giftAmount',
|
|
2114
|
+
'recipients',
|
|
2115
|
+
KICK_RECIPIENTS_RAW_EXAMPLE,
|
|
2116
|
+
'gifter',
|
|
2117
|
+
'totalGifts',
|
|
2118
|
+
'subMonths',
|
|
2119
|
+
'streakMonths',
|
|
2120
|
+
'message',
|
|
2121
|
+
'subPlan',
|
|
2122
|
+
'subPlanName',
|
|
2123
|
+
],
|
|
2108
2124
|
sessionGiftSubscriptions: ['total', 'previousTotal'],
|
|
2109
2125
|
kicks: ['username', 'avatar', 'amount', 'name', 'type', 'tier', 'id', 'message'],
|
|
2110
2126
|
sessionKicks: ['total', 'previousTotal'],
|
|
@@ -2448,7 +2464,21 @@ exports.AllVariables = {
|
|
|
2448
2464
|
sessionFollowers: ['total', 'previousTotal'],
|
|
2449
2465
|
subscriber: ['username', 'avatar', 'tier', 'recipient', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
2450
2466
|
sessionSubs: ['total', 'previousTotal'],
|
|
2451
|
-
giftSubscription: [
|
|
2467
|
+
giftSubscription: [
|
|
2468
|
+
'username',
|
|
2469
|
+
'avatar',
|
|
2470
|
+
'tier',
|
|
2471
|
+
'giftAmount',
|
|
2472
|
+
'recipients',
|
|
2473
|
+
TWITCH_RECIPIENTS_RAW_EXAMPLE,
|
|
2474
|
+
'gifter',
|
|
2475
|
+
'totalGifts',
|
|
2476
|
+
'subMonths',
|
|
2477
|
+
'streakMonths',
|
|
2478
|
+
'message',
|
|
2479
|
+
'subPlan',
|
|
2480
|
+
'subPlanName',
|
|
2481
|
+
],
|
|
2452
2482
|
sessionGiftSubscriptions: ['total', 'previousTotal'],
|
|
2453
2483
|
bits: ['username', 'avatar', 'amount', 'message'],
|
|
2454
2484
|
bitsCombo: ['username', 'avatar', 'amount', 'bitsType', 'message'],
|