@lumiastream/lumia-types 3.6.4 → 3.6.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.
@@ -1,10 +1,9 @@
1
- var _a, _b, _c, _d, _e, _f, _g, _h;
2
1
  import { LumiaAlertValues } from './activity.types.js';
3
2
  import { LumiaIntegrations } from './event.types.js';
4
3
  import { AllVariables } from './variables.types.js';
5
4
  import { KickKicksData } from './kick_kicks.js';
6
- import { TiktokGiftsData } from './tiktok_gifts.js';
7
- import { YoutubeSuperstickersData } from './youtube_superstickers.js';
5
+ import { TiktokGiftsData, TiktokGiftImageSelections } from './tiktok_gifts.js';
6
+ import { YoutubeSuperstickersData, YoutubeSuperstickerImageSelections } from './youtube_superstickers.js';
8
7
  import { VIEWER_PROFILE_ACHIEVEMENTS } from './viewer_profile_achievements.js';
9
8
  export var LumiaVariationConditions;
10
9
  (function (LumiaVariationConditions) {
@@ -94,6 +93,8 @@ export const LumiaRedemptionCurrencySymbol = {
94
93
  [LumiaRedemptionCurrency.POINTS]: '★',
95
94
  [LumiaRedemptionCurrency.LUMIBUCKS]: '⚡',
96
95
  };
96
+ const superstickerImageUrl = (stickerValue) => { var _a, _b; return (_b = (_a = YoutubeSuperstickersData.find((sticker) => sticker.value === stickerValue)) === null || _a === void 0 ? void 0 : _a.imageUrl) !== null && _b !== void 0 ? _b : ''; };
97
+ const tiktokGiftImageUrl = (giftName) => { var _a, _b; return (_b = (_a = TiktokGiftsData.find((gift) => gift.value === giftName)) === null || _a === void 0 ? void 0 : _a.imageUrl) !== null && _b !== void 0 ? _b : ''; };
97
98
  export const LumiaAlertConfigs = {
98
99
  // lumia: {
99
100
  [LumiaAlertValues.LUMIASTREAM_DONATION]: {
@@ -4207,48 +4208,183 @@ export const LumiaAlertConfigs = {
4207
4208
  acceptedVariables: AllVariables.youtube.alerts.supersticker,
4208
4209
  quickActions: [
4209
4210
  {
4210
- label: 'Emoji Beaming Face ($100)',
4211
- dynamic: { value: 100, currency: LumiaVariationCurrency.USD, name: 'emoji_beaming_face' },
4211
+ label: 'Beaming Face ($0.99)',
4212
+ dynamic: { value: 0.99, currency: LumiaVariationCurrency.USD, name: 'emoji_beaming_face' },
4212
4213
  extraSettings: {
4213
4214
  username: 'lumiastream',
4214
4215
  displayname: 'LumiaStream',
4215
4216
  avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4216
- amount: 100,
4217
+ amount: 0.99,
4217
4218
  currency: LumiaVariationCurrency.USD,
4218
4219
  currencySymbol: '$',
4219
4220
  stickerId: 'emoji_beaming_face',
4220
- stickerName: 'Emoji Beaming Face',
4221
- contentImage: (_b = (_a = YoutubeSuperstickersData.find((sticker) => sticker.value === 'emoji_beaming_face')) === null || _a === void 0 ? void 0 : _a.imageUrl) !== null && _b !== void 0 ? _b : '',
4221
+ stickerName: 'Beaming Face',
4222
+ contentImage: superstickerImageUrl('emoji_beaming_face'),
4222
4223
  },
4223
4224
  },
4224
4225
  {
4225
- label: 'Emoji Laughing ($200)',
4226
- dynamic: { value: 200, currency: LumiaVariationCurrency.USD, name: 'emoji_laughing' },
4226
+ label: 'Heart Eyes ($0.99)',
4227
+ dynamic: { value: 0.99, currency: LumiaVariationCurrency.USD, name: 'emoji_heart_face' },
4227
4228
  extraSettings: {
4228
4229
  username: 'lumiastream',
4229
4230
  displayname: 'LumiaStream',
4230
4231
  avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4231
- amount: 200,
4232
+ amount: 0.99,
4232
4233
  currency: LumiaVariationCurrency.USD,
4233
4234
  currencySymbol: '$',
4234
- stickerId: 'emoji_laughing',
4235
- stickerName: 'Emoji Laughing',
4236
- contentImage: (_d = (_c = YoutubeSuperstickersData.find((sticker) => sticker.value === 'emoji_laughing')) === null || _c === void 0 ? void 0 : _c.imageUrl) !== null && _d !== void 0 ? _d : '',
4235
+ stickerId: 'emoji_heart_face',
4236
+ stickerName: 'Heart Eyes',
4237
+ contentImage: superstickerImageUrl('emoji_heart_face'),
4237
4238
  },
4238
4239
  },
4239
4240
  {
4240
- label: 'Emoji Sad ($300)',
4241
- dynamic: { value: 300, currency: LumiaVariationCurrency.USD, name: 'emoji_sad' },
4241
+ label: 'Money Mouth ($0.99)',
4242
+ dynamic: { value: 0.99, currency: LumiaVariationCurrency.USD, name: 'emoji_money_face' },
4242
4243
  extraSettings: {
4243
4244
  username: 'lumiastream',
4244
4245
  displayname: 'LumiaStream',
4245
4246
  avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4246
- amount: 300,
4247
+ amount: 0.99,
4248
+ currency: LumiaVariationCurrency.USD,
4249
+ currencySymbol: '$',
4250
+ stickerId: 'emoji_money_face',
4251
+ stickerName: 'Money Mouth',
4252
+ contentImage: superstickerImageUrl('emoji_money_face'),
4253
+ },
4254
+ },
4255
+ {
4256
+ label: 'Crying Face ($0.99)',
4257
+ dynamic: { value: 0.99, currency: LumiaVariationCurrency.USD, name: 'emoji_crying_face' },
4258
+ extraSettings: {
4259
+ username: 'lumiastream',
4260
+ displayname: 'LumiaStream',
4261
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4262
+ amount: 0.99,
4263
+ currency: LumiaVariationCurrency.USD,
4264
+ currencySymbol: '$',
4265
+ stickerId: 'emoji_crying_face',
4266
+ stickerName: 'Crying Face',
4267
+ contentImage: superstickerImageUrl('emoji_crying_face'),
4268
+ },
4269
+ },
4270
+ {
4271
+ label: 'One Hundred ($0.99)',
4272
+ dynamic: { value: 0.99, currency: LumiaVariationCurrency.USD, name: 'emoji_one_hundred' },
4273
+ extraSettings: {
4274
+ username: 'lumiastream',
4275
+ displayname: 'LumiaStream',
4276
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4277
+ amount: 0.99,
4278
+ currency: LumiaVariationCurrency.USD,
4279
+ currencySymbol: '$',
4280
+ stickerId: 'emoji_one_hundred',
4281
+ stickerName: 'One Hundred',
4282
+ contentImage: superstickerImageUrl('emoji_one_hundred'),
4283
+ },
4284
+ },
4285
+ {
4286
+ label: 'Thumbs Up ($1.99)',
4287
+ dynamic: { value: 1.99, currency: LumiaVariationCurrency.USD, name: 'youtube_object_thumbs_up_red' },
4288
+ extraSettings: {
4289
+ username: 'lumiastream',
4290
+ displayname: 'LumiaStream',
4291
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4292
+ amount: 1.99,
4293
+ currency: LumiaVariationCurrency.USD,
4294
+ currencySymbol: '$',
4295
+ stickerId: 'youtube_object_thumbs_up_red',
4296
+ stickerName: 'Thumbs Up',
4297
+ contentImage: superstickerImageUrl('youtube_object_thumbs_up_red'),
4298
+ },
4299
+ },
4300
+ {
4301
+ label: 'Pear Hey You ($2.00)',
4302
+ dynamic: { value: 2, currency: LumiaVariationCurrency.USD, name: 'pearfect_hey_you_ja_v2' },
4303
+ extraSettings: {
4304
+ username: 'lumiastream',
4305
+ displayname: 'LumiaStream',
4306
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4307
+ amount: 2,
4308
+ currency: LumiaVariationCurrency.USD,
4309
+ currencySymbol: '$',
4310
+ stickerId: 'pearfect_hey_you_ja_v2',
4311
+ stickerName: 'Pear Hey You',
4312
+ contentImage: superstickerImageUrl('pearfect_hey_you_ja_v2'),
4313
+ },
4314
+ },
4315
+ {
4316
+ label: 'Pear Fist Bump ($3.00)',
4317
+ dynamic: { value: 3, currency: LumiaVariationCurrency.USD, name: 'pearfect_fist_bump_ja_v2' },
4318
+ extraSettings: {
4319
+ username: 'lumiastream',
4320
+ displayname: 'LumiaStream',
4321
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4322
+ amount: 3,
4323
+ currency: LumiaVariationCurrency.USD,
4324
+ currencySymbol: '$',
4325
+ stickerId: 'pearfect_fist_bump_ja_v2',
4326
+ stickerName: 'Pear Fist Bump',
4327
+ contentImage: superstickerImageUrl('pearfect_fist_bump_ja_v2'),
4328
+ },
4329
+ },
4330
+ {
4331
+ label: 'Pear LOL ($5.00)',
4332
+ dynamic: { value: 5, currency: LumiaVariationCurrency.USD, name: 'pearfect_lol_ja_v2' },
4333
+ extraSettings: {
4334
+ username: 'lumiastream',
4335
+ displayname: 'LumiaStream',
4336
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4337
+ amount: 5,
4338
+ currency: LumiaVariationCurrency.USD,
4339
+ currencySymbol: '$',
4340
+ stickerId: 'pearfect_lol_ja_v2',
4341
+ stickerName: 'Pear LOL',
4342
+ contentImage: superstickerImageUrl('pearfect_lol_ja_v2'),
4343
+ },
4344
+ },
4345
+ {
4346
+ label: 'Pear Flying ($10.00)',
4347
+ dynamic: { value: 10, currency: LumiaVariationCurrency.USD, name: 'pearfect_flying_v2' },
4348
+ extraSettings: {
4349
+ username: 'lumiastream',
4350
+ displayname: 'LumiaStream',
4351
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4352
+ amount: 10,
4353
+ currency: LumiaVariationCurrency.USD,
4354
+ currencySymbol: '$',
4355
+ stickerId: 'pearfect_flying_v2',
4356
+ stickerName: 'Pear Flying',
4357
+ contentImage: superstickerImageUrl('pearfect_flying_v2'),
4358
+ },
4359
+ },
4360
+ {
4361
+ label: 'Pear GOAL ($20.00)',
4362
+ dynamic: { value: 20, currency: LumiaVariationCurrency.USD, name: 'pearfect_goal_ja_v2' },
4363
+ extraSettings: {
4364
+ username: 'lumiastream',
4365
+ displayname: 'LumiaStream',
4366
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4367
+ amount: 20,
4368
+ currency: LumiaVariationCurrency.USD,
4369
+ currencySymbol: '$',
4370
+ stickerId: 'pearfect_goal_ja_v2',
4371
+ stickerName: 'Pear GOAL',
4372
+ contentImage: superstickerImageUrl('pearfect_goal_ja_v2'),
4373
+ },
4374
+ },
4375
+ {
4376
+ label: 'Pear Building Riot ($50.00)',
4377
+ dynamic: { value: 50, currency: LumiaVariationCurrency.USD, name: 'pearfect_building_riot_v2' },
4378
+ extraSettings: {
4379
+ username: 'lumiastream',
4380
+ displayname: 'LumiaStream',
4381
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4382
+ amount: 50,
4247
4383
  currency: LumiaVariationCurrency.USD,
4248
4384
  currencySymbol: '$',
4249
- stickerId: 'emoji_sad',
4250
- stickerName: 'Emoji Sad',
4251
- contentImage: (_f = (_e = YoutubeSuperstickersData.find((sticker) => sticker.value === 'emoji_sad')) === null || _e === void 0 ? void 0 : _e.imageUrl) !== null && _f !== void 0 ? _f : '',
4385
+ stickerId: 'pearfect_building_riot_v2',
4386
+ stickerName: 'Pear Building Riot',
4387
+ contentImage: superstickerImageUrl('pearfect_building_riot_v2'),
4252
4388
  },
4253
4389
  },
4254
4390
  ],
@@ -4285,11 +4421,12 @@ export const LumiaAlertConfigs = {
4285
4421
  default: '$',
4286
4422
  },
4287
4423
  {
4288
- type: 'text',
4289
- label: 'Image URL',
4424
+ type: 'selection',
4425
+ label: 'Sticker Image',
4290
4426
  variableField: 'contentImage',
4291
4427
  required: false,
4292
- default: (_h = (_g = YoutubeSuperstickersData.find((sticker) => sticker.value === 'emoji_beaming_face')) === null || _g === void 0 ? void 0 : _g.imageUrl) !== null && _h !== void 0 ? _h : '',
4428
+ default: superstickerImageUrl('emoji_beaming_face'),
4429
+ selections: YoutubeSuperstickerImageSelections,
4293
4430
  },
4294
4431
  ],
4295
4432
  LumiaVariationConditions: [
@@ -4946,7 +5083,7 @@ export const LumiaAlertConfigs = {
4946
5083
  acceptedVariables: AllVariables.tiktok.alerts.gift,
4947
5084
  quickActions: [
4948
5085
  {
4949
- label: 'Rose worth 1 Coin',
5086
+ label: 'Rose (1 coin)',
4950
5087
  dynamic: { value: 1, name: 'Rose', amount: 1 },
4951
5088
  extraSettings: {
4952
5089
  username: 'lumiastream',
@@ -4959,41 +5096,194 @@ export const LumiaAlertConfigs = {
4959
5096
  coins: 1,
4960
5097
  diamonds: 1,
4961
5098
  amount: 1,
4962
- contentImage: 'https://p19-webcast.tiktokcdn.com/img/maliva/webcast-va/eba3a9bb85c33e017f3648eaf88d7189~tplv-obj.png',
5099
+ contentImage: tiktokGiftImageUrl('Rose'),
4963
5100
  },
4964
5101
  },
4965
5102
  {
4966
- label: 'Pumpkin worth 100 Coins',
4967
- dynamic: { value: 100, name: 'Pumpkin', amount: 100 },
5103
+ label: 'Finger Heart (5 coins)',
5104
+ dynamic: { value: 5, name: 'Finger Heart', amount: 5 },
4968
5105
  extraSettings: {
4969
5106
  username: 'lumiastream',
4970
5107
  avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4971
- giftName: 'Pumpkin',
4972
- contentImage: 'https://p19-webcast.tiktokcdn.com/img/maliva/webcast-va/e675252b83e97135f9ede3b5d32c2c71~tplv-obj.png',
4973
- giftType: 2,
4974
- giftId: 7095,
5108
+ giftName: 'Finger Heart',
5109
+ giftType: 1,
5110
+ giftId: 5487,
5111
+ giftAmount: 1,
5112
+ value: 5,
5113
+ coins: 5,
5114
+ diamonds: 2,
5115
+ amount: 5,
5116
+ contentImage: tiktokGiftImageUrl('Finger Heart'),
5117
+ },
5118
+ },
5119
+ {
5120
+ label: 'Rosa (10 coins)',
5121
+ dynamic: { value: 10, name: 'Rosa', amount: 10 },
5122
+ extraSettings: {
5123
+ username: 'lumiastream',
5124
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5125
+ giftName: 'Rosa',
5126
+ giftType: 1,
5127
+ giftId: 8913,
5128
+ giftAmount: 1,
5129
+ value: 10,
5130
+ coins: 10,
5131
+ diamonds: 5,
5132
+ amount: 10,
5133
+ contentImage: tiktokGiftImageUrl('Rosa'),
5134
+ },
5135
+ },
5136
+ {
5137
+ label: 'Perfume (20 coins)',
5138
+ dynamic: { value: 20, name: 'Perfume', amount: 20 },
5139
+ extraSettings: {
5140
+ username: 'lumiastream',
5141
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5142
+ giftName: 'Perfume',
5143
+ giftType: 1,
5144
+ giftId: 5658,
5145
+ giftAmount: 1,
5146
+ value: 20,
5147
+ coins: 20,
5148
+ diamonds: 10,
5149
+ amount: 20,
5150
+ contentImage: tiktokGiftImageUrl('Perfume'),
5151
+ },
5152
+ },
5153
+ {
5154
+ label: 'Doughnut (30 coins)',
5155
+ dynamic: { value: 30, name: 'Doughnut', amount: 30 },
5156
+ extraSettings: {
5157
+ username: 'lumiastream',
5158
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5159
+ giftName: 'Doughnut',
5160
+ giftType: 1,
5161
+ giftId: 5879,
5162
+ giftAmount: 1,
5163
+ value: 30,
5164
+ coins: 30,
5165
+ diamonds: 15,
5166
+ amount: 30,
5167
+ contentImage: tiktokGiftImageUrl('Doughnut'),
5168
+ },
5169
+ },
5170
+ {
5171
+ label: 'Hand Hearts (100 coins)',
5172
+ dynamic: { value: 100, name: 'Hand Hearts', amount: 100 },
5173
+ extraSettings: {
5174
+ username: 'lumiastream',
5175
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5176
+ giftName: 'Hand Hearts',
5177
+ giftType: 1,
5178
+ giftId: 5660,
4975
5179
  giftAmount: 1,
4976
5180
  value: 100,
4977
5181
  coins: 100,
4978
5182
  diamonds: 50,
4979
5183
  amount: 100,
5184
+ contentImage: tiktokGiftImageUrl('Hand Hearts'),
4980
5185
  },
4981
5186
  },
4982
5187
  {
4983
- label: 'Boiling Cauldron worth 500 Coins',
4984
- dynamic: { value: 500, name: 'Boiling Cauldron', amount: 500 },
5188
+ label: 'Sunglasses (199 coins)',
5189
+ dynamic: { value: 199, name: 'Sunglasses', amount: 199 },
4985
5190
  extraSettings: {
4986
5191
  username: 'lumiastream',
4987
5192
  avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
4988
- giftName: 'Boiling Cauldron',
4989
- contentImage: 'https://p19-webcast.tiktokcdn.com/img/maliva/webcast-va/e675252b83e97135f9ede3b5d32c2c71~tplv-obj.png',
5193
+ giftName: 'Sunglasses',
4990
5194
  giftType: 2,
4991
- giftId: 7158,
5195
+ giftId: 5509,
5196
+ giftAmount: 1,
5197
+ value: 199,
5198
+ coins: 199,
5199
+ diamonds: 99,
5200
+ amount: 199,
5201
+ contentImage: tiktokGiftImageUrl('Sunglasses'),
5202
+ },
5203
+ },
5204
+ {
5205
+ label: 'Baby Chicks (500 coins)',
5206
+ dynamic: { value: 500, name: 'Baby Chicks', amount: 500 },
5207
+ extraSettings: {
5208
+ username: 'lumiastream',
5209
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5210
+ giftName: 'Baby Chicks',
5211
+ giftType: 2,
5212
+ giftId: 54725,
4992
5213
  giftAmount: 1,
4993
5214
  value: 500,
4994
5215
  coins: 500,
4995
5216
  diamonds: 250,
4996
5217
  amount: 500,
5218
+ contentImage: tiktokGiftImageUrl('Baby Chicks'),
5219
+ },
5220
+ },
5221
+ {
5222
+ label: 'Galaxy (1,000 coins)',
5223
+ dynamic: { value: 1000, name: 'Galaxy', amount: 1000 },
5224
+ extraSettings: {
5225
+ username: 'lumiastream',
5226
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5227
+ giftName: 'Galaxy',
5228
+ giftType: 2,
5229
+ giftId: 11046,
5230
+ giftAmount: 1,
5231
+ value: 1000,
5232
+ coins: 1000,
5233
+ diamonds: 500,
5234
+ amount: 1000,
5235
+ contentImage: tiktokGiftImageUrl('Galaxy'),
5236
+ },
5237
+ },
5238
+ {
5239
+ label: 'Whale Diving (2,150 coins)',
5240
+ dynamic: { value: 2150, name: 'Whale Diving', amount: 2150 },
5241
+ extraSettings: {
5242
+ username: 'lumiastream',
5243
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5244
+ giftName: 'Whale Diving',
5245
+ giftType: 2,
5246
+ giftId: 6820,
5247
+ giftAmount: 1,
5248
+ value: 2150,
5249
+ coins: 2150,
5250
+ diamonds: 1075,
5251
+ amount: 2150,
5252
+ contentImage: tiktokGiftImageUrl('Whale Diving'),
5253
+ },
5254
+ },
5255
+ {
5256
+ label: 'Lion (29,999 coins)',
5257
+ dynamic: { value: 29999, name: 'Lion', amount: 29999 },
5258
+ extraSettings: {
5259
+ username: 'lumiastream',
5260
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5261
+ giftName: 'Lion',
5262
+ giftType: 2,
5263
+ giftId: 6369,
5264
+ giftAmount: 1,
5265
+ value: 29999,
5266
+ coins: 29999,
5267
+ diamonds: 14999,
5268
+ amount: 29999,
5269
+ contentImage: tiktokGiftImageUrl('Lion'),
5270
+ },
5271
+ },
5272
+ {
5273
+ label: 'TikTok Universe (44,999 coins)',
5274
+ dynamic: { value: 44999, name: 'TikTok Universe', amount: 44999 },
5275
+ extraSettings: {
5276
+ username: 'lumiastream',
5277
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
5278
+ giftName: 'TikTok Universe',
5279
+ giftType: 2,
5280
+ giftId: 9101,
5281
+ giftAmount: 1,
5282
+ value: 44999,
5283
+ coins: 44999,
5284
+ diamonds: 22499,
5285
+ amount: 44999,
5286
+ contentImage: tiktokGiftImageUrl('TikTok Universe'),
4997
5287
  },
4998
5288
  },
4999
5289
  ],
@@ -5027,6 +5317,14 @@ export const LumiaAlertConfigs = {
5027
5317
  required: false,
5028
5318
  default: 1,
5029
5319
  },
5320
+ {
5321
+ type: 'selection',
5322
+ label: 'Gift Image',
5323
+ variableField: 'contentImage',
5324
+ required: false,
5325
+ default: tiktokGiftImageUrl('Rose'),
5326
+ selections: TiktokGiftImageSelections,
5327
+ },
5030
5328
  ],
5031
5329
  LumiaVariationConditions: [
5032
5330
  { type: LumiaVariationConditions.RANDOM },
package/dist/esm/index.js CHANGED
@@ -7,7 +7,7 @@ export { formatCondition } from './helpers.js';
7
7
  export { EMULATE_EXAMPLE_AVATAR_URL, getExampleAlertVariableValue, buildExampleAlertVariables, coerceNumericAlertFields, aliasContentImageFromLegacy, isRedundantInputField, syncLinkedVariableFields, } from './emulate.helpers.js';
8
8
  export { KickKicksData } from './kick_kicks.js';
9
9
  export { BLANK_OVERLAY_TEMPLATE_ID } from './overlay_template.types.js';
10
- export { TiktokGiftsData } from './tiktok_gifts.js';
11
- export { YoutubeSuperstickersData } from './youtube_superstickers.js';
10
+ export { TiktokGiftsData, TiktokGiftImageSelections } from './tiktok_gifts.js';
11
+ export { YoutubeSuperstickersData, YoutubeSuperstickerImageSelections } from './youtube_superstickers.js';
12
12
  export { VIEWER_PROFILE_ACHIEVEMENTS, } from './viewer_profile_achievements.js';
13
13
  export { SongRequestStatus, SongRequestSource, SongRequestProvider, SongRequestPlaybackTarget, } from './songrequest.types.js';
@@ -3627,3 +3627,7 @@ export const TiktokGiftsData = [
3627
3627
  searchText: 'Zombie Swarm sent Zombie Swarm 54730',
3628
3628
  },
3629
3629
  ];
3630
+ export const TiktokGiftImageSelections = TiktokGiftsData.map((gift) => ({
3631
+ label: `${gift.label} (${gift.helperText})`,
3632
+ value: gift.imageUrl,
3633
+ }));
@@ -802,8 +802,20 @@ export var SystemVariables;
802
802
  SystemVariables["SPOTIFY_NOW_PLAYING_URI"] = "spotify_now_playing_uri";
803
803
  /** Now playing track duration in seconds. Use as {{spotify_now_playing_duration}}. */
804
804
  SystemVariables["SPOTIFY_NOW_PLAYING_DURATION"] = "spotify_now_playing_duration";
805
- // /** Now playing track progress (current position) in seconds. Use as {{spotify_now_playing_progress}}. */
806
- // SPOTIFY_NOW_PLAYING_PROGRESS = 'spotify_now_playing_progress',
805
+ /** Now playing track position in seconds at the last play/pause/seek anchor. Use as {{spotify_now_playing_progress}}. */
806
+ SystemVariables["SPOTIFY_NOW_PLAYING_PROGRESS"] = "spotify_now_playing_progress";
807
+ /** Epoch ms when the progress anchor was captured (for client-side interpolation). Use as {{spotify_now_playing_progress_ts}}. */
808
+ SystemVariables["SPOTIFY_NOW_PLAYING_PROGRESS_TS"] = "spotify_now_playing_progress_ts";
809
+ /** Whether playback is currently advancing (true/false). Use as {{spotify_now_playing_is_playing}}. */
810
+ SystemVariables["SPOTIFY_NOW_PLAYING_IS_PLAYING"] = "spotify_now_playing_is_playing";
811
+ /** Now playing album name. Use as {{spotify_now_playing_album}}. */
812
+ SystemVariables["SPOTIFY_NOW_PLAYING_ALBUM"] = "spotify_now_playing_album";
813
+ /** Now playing album release year. Use as {{spotify_now_playing_release_year}}. */
814
+ SystemVariables["SPOTIFY_NOW_PLAYING_RELEASE_YEAR"] = "spotify_now_playing_release_year";
815
+ /** Now playing track popularity score 0-100 from Spotify. Use as {{spotify_now_playing_popularity}}. */
816
+ SystemVariables["SPOTIFY_NOW_PLAYING_POPULARITY"] = "spotify_now_playing_popularity";
817
+ /** Upcoming queue as a JSON array of {name, artist, image, uri, url}. Use as {{spotify_now_playing_queue}}. */
818
+ SystemVariables["SPOTIFY_NOW_PLAYING_QUEUE"] = "spotify_now_playing_queue";
807
819
  /** Next song title. Use as {{spotify_next_song}}. */
808
820
  SystemVariables["SPOTIFY_NEXT_SONG"] = "spotify_next_song";
809
821
  /** Next song artwork URL. Use as {{spotify_next_image}}. */
@@ -831,8 +843,14 @@ export var SystemVariables;
831
843
  SystemVariables["YOUTUBEMUSIC_NOW_PLAYING_URL"] = "youtubemusic_now_playing_url";
832
844
  /** Now playing track duration in seconds. Use as {{youtubemusic_now_playing_duration}}. */
833
845
  SystemVariables["YOUTUBEMUSIC_NOW_PLAYING_DURATION"] = "youtubemusic_now_playing_duration";
834
- // /** Now playing track progress (current position) in seconds. Use as {{youtubemusic_now_playing_progress}}. */
835
- // YOUTUBEMUSIC_NOW_PLAYING_PROGRESS = 'youtubemusic_now_playing_progress',
846
+ /** Now playing track position in seconds at the last play/pause/seek anchor. Use as {{youtubemusic_now_playing_progress}}. */
847
+ SystemVariables["YOUTUBEMUSIC_NOW_PLAYING_PROGRESS"] = "youtubemusic_now_playing_progress";
848
+ /** Epoch ms when the progress anchor was captured (for client-side interpolation). Use as {{youtubemusic_now_playing_progress_ts}}. */
849
+ SystemVariables["YOUTUBEMUSIC_NOW_PLAYING_PROGRESS_TS"] = "youtubemusic_now_playing_progress_ts";
850
+ /** Whether playback is currently advancing (true/false). Use as {{youtubemusic_now_playing_is_playing}}. */
851
+ SystemVariables["YOUTUBEMUSIC_NOW_PLAYING_IS_PLAYING"] = "youtubemusic_now_playing_is_playing";
852
+ /** Upcoming queue as a JSON array of {name, artist, image, uri, url}. Use as {{youtubemusic_now_playing_queue}}. */
853
+ SystemVariables["YOUTUBEMUSIC_NOW_PLAYING_QUEUE"] = "youtubemusic_now_playing_queue";
836
854
  /** Next song title. Use as {{youtubemusic_next_song}}. */
837
855
  SystemVariables["YOUTUBEMUSIC_NEXT_SONG"] = "youtubemusic_next_song";
838
856
  /** Next song artwork URL. Use as {{youtubemusic_next_image}}. */
@@ -891,8 +909,12 @@ export var SystemVariables;
891
909
  SystemVariables["VLC_NOW_PLAYING_URL"] = "vlc_now_playing_url";
892
910
  /** Now playing media duration in seconds. Use as {{vlc_now_playing_duration}}. */
893
911
  SystemVariables["VLC_NOW_PLAYING_DURATION"] = "vlc_now_playing_duration";
894
- // /** Now playing media progress (current position) in seconds. Use as {{vlc_now_playing_progress}}. */
895
- // VLC_NOW_PLAYING_PROGRESS = 'vlc_now_playing_progress',
912
+ /** Now playing media position in seconds at the last play/pause/seek anchor. Use as {{vlc_now_playing_progress}}. */
913
+ SystemVariables["VLC_NOW_PLAYING_PROGRESS"] = "vlc_now_playing_progress";
914
+ /** Epoch ms when the progress anchor was captured (for client-side interpolation). Use as {{vlc_now_playing_progress_ts}}. */
915
+ SystemVariables["VLC_NOW_PLAYING_PROGRESS_TS"] = "vlc_now_playing_progress_ts";
916
+ /** Whether playback is currently advancing (true/false). Use as {{vlc_now_playing_is_playing}}. */
917
+ SystemVariables["VLC_NOW_PLAYING_IS_PLAYING"] = "vlc_now_playing_is_playing";
896
918
  /** Media URI. Use as {{vlc_now_playing_uri}}. */
897
919
  SystemVariables["VLC_NOW_PLAYING_URI"] = "vlc_now_playing_uri";
898
920
  // ────────────────────────────────── Voicemod ──────────────────────────────────
@@ -1764,3 +1764,7 @@ export const YoutubeSuperstickersData = [
1764
1764
  searchText: "masher_super_effective Video game controller punches and kicks in between the words 'Super Effective' 50.00 USD",
1765
1765
  },
1766
1766
  ];
1767
+ export const YoutubeSuperstickerImageSelections = YoutubeSuperstickersData.map((sticker) => ({
1768
+ label: `${sticker.label} (${sticker.helperText})`,
1769
+ value: sticker.imageUrl,
1770
+ }));
package/dist/index.d.ts CHANGED
@@ -7,8 +7,8 @@ export { formatCondition } from './helpers';
7
7
  export { EMULATE_EXAMPLE_AVATAR_URL, getExampleAlertVariableValue, buildExampleAlertVariables, coerceNumericAlertFields, aliasContentImageFromLegacy, isRedundantInputField, syncLinkedVariableFields, type InputFieldLike, } from './emulate.helpers';
8
8
  export { KickKicksData } from './kick_kicks';
9
9
  export { BLANK_OVERLAY_TEMPLATE_ID, type OverlayTemplate, type OverlayTemplateLayerDescriptor, type OverlayTemplateAnchor, type OverlayTemplateLayerOverrides } from './overlay_template.types';
10
- export { TiktokGiftsData } from './tiktok_gifts';
11
- export { YoutubeSuperstickersData } from './youtube_superstickers';
10
+ export { TiktokGiftsData, TiktokGiftImageSelections } from './tiktok_gifts';
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
13
  export { SongRequestStatus, SongRequestSource, SongRequestProvider, SongRequestPlaybackTarget, type SongRequestItem, type SongRequestConfig, type SongRequestState, type SongRequestQueueUpdatePayload, type SongRequestPendingUpdatePayload, type SongRequestNowPlayingPayload, type SongRequestAddParams, type SongRequestModerationParams, } 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';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SongRequestPlaybackTarget = exports.SongRequestProvider = exports.SongRequestSource = exports.SongRequestStatus = exports.VIEWER_PROFILE_ACHIEVEMENTS = exports.YoutubeSuperstickersData = exports.TiktokGiftsData = exports.BLANK_OVERLAY_TEMPLATE_ID = exports.KickKicksData = exports.syncLinkedVariableFields = exports.isRedundantInputField = exports.aliasContentImageFromLegacy = exports.coerceNumericAlertFields = exports.buildExampleAlertVariables = exports.getExampleAlertVariableValue = exports.EMULATE_EXAMPLE_AVATAR_URL = exports.formatCondition = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.getEventListCategoryColor = exports.LumiaEventListTypeColors = exports.PlatformsToFilter = exports.AlertsToFilter = exports.LumiaMapAlertTypeToEventListType = exports.LumiaEventListTypes = exports.LumiaEventTypes = exports.LumiaIntegrations = exports.LumiaAlertConfigs = exports.LumiaRedemptionCurrencySymbol = exports.LumiaRedemptionCurrency = exports.VariationCurrencySymbol = exports.LumiaVariationCurrency = exports.LumiaVariationConditions = exports.LumiaActivityTestType = exports.LumiaActivityNoValueTypes = exports.LumiaActivityApiValueType = exports.LumiaActivityOriginTypes = exports.LumiaAlertFriendlyValues = exports.LumiaAlertValues = exports.LumiaExternalActivityCommandTypes = exports.LumiaActivityCommandTypes = exports.LumiaStreamingSites = void 0;
3
+ exports.SongRequestPlaybackTarget = exports.SongRequestProvider = exports.SongRequestSource = exports.SongRequestStatus = exports.VIEWER_PROFILE_ACHIEVEMENTS = exports.YoutubeSuperstickerImageSelections = exports.YoutubeSuperstickersData = exports.TiktokGiftImageSelections = exports.TiktokGiftsData = exports.BLANK_OVERLAY_TEMPLATE_ID = exports.KickKicksData = exports.syncLinkedVariableFields = exports.isRedundantInputField = exports.aliasContentImageFromLegacy = exports.coerceNumericAlertFields = exports.buildExampleAlertVariables = exports.getExampleAlertVariableValue = exports.EMULATE_EXAMPLE_AVATAR_URL = exports.formatCondition = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.getEventListCategoryColor = exports.LumiaEventListTypeColors = exports.PlatformsToFilter = exports.AlertsToFilter = exports.LumiaMapAlertTypeToEventListType = exports.LumiaEventListTypes = exports.LumiaEventTypes = exports.LumiaIntegrations = exports.LumiaAlertConfigs = exports.LumiaRedemptionCurrencySymbol = exports.LumiaRedemptionCurrency = exports.VariationCurrencySymbol = exports.LumiaVariationCurrency = exports.LumiaVariationConditions = exports.LumiaActivityTestType = exports.LumiaActivityNoValueTypes = exports.LumiaActivityApiValueType = exports.LumiaActivityOriginTypes = exports.LumiaAlertFriendlyValues = exports.LumiaAlertValues = exports.LumiaExternalActivityCommandTypes = exports.LumiaActivityCommandTypes = exports.LumiaStreamingSites = void 0;
4
4
  var activity_types_1 = require("./activity.types");
5
5
  Object.defineProperty(exports, "LumiaStreamingSites", { enumerable: true, get: function () { return activity_types_1.LumiaStreamingSites; } });
6
6
  Object.defineProperty(exports, "LumiaActivityCommandTypes", { enumerable: true, get: function () { return activity_types_1.LumiaActivityCommandTypes; } });
@@ -50,8 +50,10 @@ var overlay_template_types_1 = require("./overlay_template.types");
50
50
  Object.defineProperty(exports, "BLANK_OVERLAY_TEMPLATE_ID", { enumerable: true, get: function () { return overlay_template_types_1.BLANK_OVERLAY_TEMPLATE_ID; } });
51
51
  var tiktok_gifts_1 = require("./tiktok_gifts");
52
52
  Object.defineProperty(exports, "TiktokGiftsData", { enumerable: true, get: function () { return tiktok_gifts_1.TiktokGiftsData; } });
53
+ Object.defineProperty(exports, "TiktokGiftImageSelections", { enumerable: true, get: function () { return tiktok_gifts_1.TiktokGiftImageSelections; } });
53
54
  var youtube_superstickers_1 = require("./youtube_superstickers");
54
55
  Object.defineProperty(exports, "YoutubeSuperstickersData", { enumerable: true, get: function () { return youtube_superstickers_1.YoutubeSuperstickersData; } });
56
+ Object.defineProperty(exports, "YoutubeSuperstickerImageSelections", { enumerable: true, get: function () { return youtube_superstickers_1.YoutubeSuperstickerImageSelections; } });
55
57
  var viewer_profile_achievements_1 = require("./viewer_profile_achievements");
56
58
  Object.defineProperty(exports, "VIEWER_PROFILE_ACHIEVEMENTS", { enumerable: true, get: function () { return viewer_profile_achievements_1.VIEWER_PROFILE_ACHIEVEMENTS; } });
57
59
  var songrequest_types_1 = require("./songrequest.types");
@@ -7,3 +7,7 @@ export declare const TiktokGiftsData: {
7
7
  helperText: string;
8
8
  searchText: string;
9
9
  }[];
10
+ export declare const TiktokGiftImageSelections: {
11
+ label: string;
12
+ value: string;
13
+ }[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TiktokGiftsData = void 0;
3
+ exports.TiktokGiftImageSelections = exports.TiktokGiftsData = void 0;
4
4
  exports.TiktokGiftsData = [
5
5
  {
6
6
  id: 14214,
@@ -3630,3 +3630,7 @@ exports.TiktokGiftsData = [
3630
3630
  searchText: 'Zombie Swarm sent Zombie Swarm 54730',
3631
3631
  },
3632
3632
  ];
3633
+ exports.TiktokGiftImageSelections = exports.TiktokGiftsData.map((gift) => ({
3634
+ label: `${gift.label} (${gift.helperText})`,
3635
+ value: gift.imageUrl,
3636
+ }));