@lumiastream/lumia-types 3.3.3 → 3.3.5-beta.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/activity.types.d.ts +9 -3
- package/dist/activity.types.js +9 -3
- package/dist/alert.types.d.ts +2 -1
- package/dist/alert.types.js +151 -14
- package/dist/custom-overlays/custom-overlays.d.ts +6 -2
- package/dist/custom-overlays.d.ts +6 -2
- package/dist/eventlist.types.d.ts +3 -0
- package/dist/eventlist.types.js +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/variables.types.d.ts +32 -2
- package/dist/variables.types.js +110 -9
- package/package.json +1 -1
package/dist/activity.types.d.ts
CHANGED
|
@@ -431,6 +431,10 @@ export declare enum LumiaAlertValues {
|
|
|
431
431
|
FOURTHWALL_DONATION = "fourthwall-donation",
|
|
432
432
|
/** Fourthwall subscription */
|
|
433
433
|
FOURTHWALL_SUBSCRIPTION = "fourthwall-subscription",
|
|
434
|
+
/** Fourthwall subscription changed */
|
|
435
|
+
FOURTHWALL_SUBSCRIPTION_CHANGED = "fourthwall-subscriptionChanged",
|
|
436
|
+
/** Fourthwall subscription expired */
|
|
437
|
+
FOURTHWALL_SUBSCRIPTION_EXPIRED = "fourthwall-subscriptionExpired",
|
|
434
438
|
/** Fourthwall gift purchase */
|
|
435
439
|
FOURTHWALL_GIFTPURCHASE = "fourthwall-giftpurchase",
|
|
436
440
|
/** Fourthwall giveaway started */
|
|
@@ -439,6 +443,8 @@ export declare enum LumiaAlertValues {
|
|
|
439
443
|
FOURTHWALL_GIVEAWAY_ENDED = "fourthwall-giveawayEnded",
|
|
440
444
|
/** Fourthwall thank you sent */
|
|
441
445
|
FOURTHWALL_THANKYOU_SENT = "fourthwall-thankyouSent",
|
|
446
|
+
/** Fourthwall newsletter subscribed */
|
|
447
|
+
FOURTHWALL_NEWSLETTER_SUBSCRIBED = "fourthwall-newsletterSubscribed",
|
|
442
448
|
/** OBS profile switched */
|
|
443
449
|
OBS_SWITCH_PROFILE = "obs-switchProfile",
|
|
444
450
|
/** OBS scene switched */
|
|
@@ -467,8 +473,6 @@ export declare enum LumiaAlertValues {
|
|
|
467
473
|
OBS_MEDIA_INPUT_PLAYBACK_ENDED = "obs-mediaInputPlaybackEnded",
|
|
468
474
|
/** OBS virtual camera state changed */
|
|
469
475
|
OBS_VIRTUALCAM_STATE_CHANGED = "obs-virtualcamStateChanged",
|
|
470
|
-
/** OBS record file changed */
|
|
471
|
-
OBS_RECORD_FILE_CHANGED = "obs-recordFileChanged",
|
|
472
476
|
/** OBS screenshot saved */
|
|
473
477
|
OBS_SCREENSHOT_SAVED = "obs-screenshotSaved",
|
|
474
478
|
/** OBS replay buffer saved */
|
|
@@ -710,7 +714,6 @@ export declare const LumiaAlertFriendlyValues: {
|
|
|
710
714
|
"obs-mediaInputPlaybackStarted": string;
|
|
711
715
|
"obs-mediaInputPlaybackEnded": string;
|
|
712
716
|
"obs-virtualcamStateChanged": string;
|
|
713
|
-
"obs-recordFileChanged": string;
|
|
714
717
|
"obs-screenshotSaved": string;
|
|
715
718
|
"obs-replayBufferSaved": string;
|
|
716
719
|
"obs-verticalBacktrackSaved": string;
|
|
@@ -745,10 +748,13 @@ export declare const LumiaAlertFriendlyValues: {
|
|
|
745
748
|
"fourthwall-shopOrder": string;
|
|
746
749
|
"fourthwall-donation": string;
|
|
747
750
|
"fourthwall-subscription": string;
|
|
751
|
+
"fourthwall-subscriptionChanged": string;
|
|
752
|
+
"fourthwall-subscriptionExpired": string;
|
|
748
753
|
"fourthwall-giftpurchase": string;
|
|
749
754
|
"fourthwall-giveawayStarted": string;
|
|
750
755
|
"fourthwall-giveawayEnded": string;
|
|
751
756
|
"fourthwall-thankyouSent": string;
|
|
757
|
+
"fourthwall-newsletterSubscribed": string;
|
|
752
758
|
"crowdcontrol-effect": string;
|
|
753
759
|
"vtubestudio-hotkeyTriggered": string;
|
|
754
760
|
"vtubestudio-modelLoaded": string;
|
package/dist/activity.types.js
CHANGED
|
@@ -452,6 +452,10 @@ var LumiaAlertValues;
|
|
|
452
452
|
LumiaAlertValues["FOURTHWALL_DONATION"] = "fourthwall-donation";
|
|
453
453
|
/** Fourthwall subscription */
|
|
454
454
|
LumiaAlertValues["FOURTHWALL_SUBSCRIPTION"] = "fourthwall-subscription";
|
|
455
|
+
/** Fourthwall subscription changed */
|
|
456
|
+
LumiaAlertValues["FOURTHWALL_SUBSCRIPTION_CHANGED"] = "fourthwall-subscriptionChanged";
|
|
457
|
+
/** Fourthwall subscription expired */
|
|
458
|
+
LumiaAlertValues["FOURTHWALL_SUBSCRIPTION_EXPIRED"] = "fourthwall-subscriptionExpired";
|
|
455
459
|
/** Fourthwall gift purchase */
|
|
456
460
|
LumiaAlertValues["FOURTHWALL_GIFTPURCHASE"] = "fourthwall-giftpurchase";
|
|
457
461
|
/** Fourthwall giveaway started */
|
|
@@ -460,6 +464,8 @@ var LumiaAlertValues;
|
|
|
460
464
|
LumiaAlertValues["FOURTHWALL_GIVEAWAY_ENDED"] = "fourthwall-giveawayEnded";
|
|
461
465
|
/** Fourthwall thank you sent */
|
|
462
466
|
LumiaAlertValues["FOURTHWALL_THANKYOU_SENT"] = "fourthwall-thankyouSent";
|
|
467
|
+
/** Fourthwall newsletter subscribed */
|
|
468
|
+
LumiaAlertValues["FOURTHWALL_NEWSLETTER_SUBSCRIBED"] = "fourthwall-newsletterSubscribed";
|
|
463
469
|
// OBS Studio events
|
|
464
470
|
/** OBS profile switched */
|
|
465
471
|
LumiaAlertValues["OBS_SWITCH_PROFILE"] = "obs-switchProfile";
|
|
@@ -489,8 +495,6 @@ var LumiaAlertValues;
|
|
|
489
495
|
LumiaAlertValues["OBS_MEDIA_INPUT_PLAYBACK_ENDED"] = "obs-mediaInputPlaybackEnded";
|
|
490
496
|
/** OBS virtual camera state changed */
|
|
491
497
|
LumiaAlertValues["OBS_VIRTUALCAM_STATE_CHANGED"] = "obs-virtualcamStateChanged";
|
|
492
|
-
/** OBS record file changed */
|
|
493
|
-
LumiaAlertValues["OBS_RECORD_FILE_CHANGED"] = "obs-recordFileChanged";
|
|
494
498
|
/** OBS screenshot saved */
|
|
495
499
|
LumiaAlertValues["OBS_SCREENSHOT_SAVED"] = "obs-screenshotSaved";
|
|
496
500
|
/** OBS replay buffer saved */
|
|
@@ -742,7 +746,6 @@ exports.LumiaAlertFriendlyValues = {
|
|
|
742
746
|
[LumiaAlertValues.OBS_MEDIA_INPUT_PLAYBACK_STARTED]: 'Obs Media Input Playback Started',
|
|
743
747
|
[LumiaAlertValues.OBS_MEDIA_INPUT_PLAYBACK_ENDED]: 'Obs Media Input Playback Ended',
|
|
744
748
|
[LumiaAlertValues.OBS_VIRTUALCAM_STATE_CHANGED]: 'Obs Virtual Cam State Changed',
|
|
745
|
-
[LumiaAlertValues.OBS_RECORD_FILE_CHANGED]: 'Obs Record File Changed',
|
|
746
749
|
[LumiaAlertValues.OBS_SCREENSHOT_SAVED]: 'Obs Screenshot Saved',
|
|
747
750
|
[LumiaAlertValues.OBS_REPLAY_BUFFER_SAVED]: 'Obs Replay Buffer Saved',
|
|
748
751
|
[LumiaAlertValues.OBS_VERTICAL_BACKTRACK_SAVED]: 'Obs Vertical Backtrack Saved',
|
|
@@ -777,10 +780,13 @@ exports.LumiaAlertFriendlyValues = {
|
|
|
777
780
|
[LumiaAlertValues.FOURTHWALL_SHOPORDER]: 'Fourthwall Shop Order',
|
|
778
781
|
[LumiaAlertValues.FOURTHWALL_DONATION]: 'Fourthwall Donation',
|
|
779
782
|
[LumiaAlertValues.FOURTHWALL_SUBSCRIPTION]: 'Fourthwall Subscription',
|
|
783
|
+
[LumiaAlertValues.FOURTHWALL_SUBSCRIPTION_CHANGED]: 'Fourthwall Subscription Changed',
|
|
784
|
+
[LumiaAlertValues.FOURTHWALL_SUBSCRIPTION_EXPIRED]: 'Fourthwall Subscription Expired',
|
|
780
785
|
[LumiaAlertValues.FOURTHWALL_GIFTPURCHASE]: 'Fourthwall Giftpurchase',
|
|
781
786
|
[LumiaAlertValues.FOURTHWALL_GIVEAWAY_STARTED]: 'Fourthwall Giveaway Started',
|
|
782
787
|
[LumiaAlertValues.FOURTHWALL_GIVEAWAY_ENDED]: 'Fourthwall Giveaway Ended',
|
|
783
788
|
[LumiaAlertValues.FOURTHWALL_THANKYOU_SENT]: 'Fourthwall Thank You Sent',
|
|
789
|
+
[LumiaAlertValues.FOURTHWALL_NEWSLETTER_SUBSCRIBED]: 'Fourthwall Newsletter Subscribed',
|
|
784
790
|
[LumiaAlertValues.CROWDCONTROL_EFFECT]: 'Crowdcontrol Effect',
|
|
785
791
|
[LumiaAlertValues.VTUBESTUDIO_HOTKEY_TRIGGERED]: 'Vtube Hotkey Triggered',
|
|
786
792
|
[LumiaAlertValues.VTUBESTUDIO_MODEL_LOADED]: 'Vtube Model Loaded',
|
package/dist/alert.types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LumiaAlertValues } from './activity.types';
|
|
2
2
|
import { LumiaIntegrations } from './event.types';
|
|
3
|
+
import { type LumiaAcceptedVariable } from './variables.types';
|
|
3
4
|
export declare enum LumiaVariationConditions {
|
|
4
5
|
RANDOM = "RANDOM",// Frequency: Percent Chance
|
|
5
6
|
GREATER_NUMBER = "GREATER_NUMBER",
|
|
@@ -109,7 +110,7 @@ export declare const LumiaAlertConfigs: Record<LumiaAlertValues | string, {
|
|
|
109
110
|
eventlistSpecialUsername?: string;
|
|
110
111
|
eventlistMessage?: string;
|
|
111
112
|
eventlistDetailedMessage?: string;
|
|
112
|
-
acceptedVariables:
|
|
113
|
+
acceptedVariables: LumiaAcceptedVariable[];
|
|
113
114
|
quickActions?: Array<{
|
|
114
115
|
label: string;
|
|
115
116
|
dynamic: LumiaDynamicCondition;
|
package/dist/alert.types.js
CHANGED
|
@@ -7572,12 +7572,136 @@ exports.LumiaAlertConfigs = {
|
|
|
7572
7572
|
{ type: LumiaVariationConditions.EQUAL_VARIABLE },
|
|
7573
7573
|
],
|
|
7574
7574
|
},
|
|
7575
|
+
[activity_types_1.LumiaAlertValues.FOURTHWALL_SUBSCRIPTION_CHANGED]: {
|
|
7576
|
+
connection: event_types_1.LumiaIntegrations.FOURTHWALL,
|
|
7577
|
+
message: '{{username}} subscription changed to {{subscriptionType}}',
|
|
7578
|
+
eventlistMessage: 'Subscription Changed',
|
|
7579
|
+
eventlistDetailedMessage: 'subscription changed to {{subscriptionType}}',
|
|
7580
|
+
acceptedVariables: variables_types_1.AllVariables.fourthwall.alerts.subscriptionChanged,
|
|
7581
|
+
quickActions: [
|
|
7582
|
+
{
|
|
7583
|
+
label: 'Changed',
|
|
7584
|
+
dynamic: { value: 100, currency: LumiaVariationCurrency.USD },
|
|
7585
|
+
extraSettings: {
|
|
7586
|
+
username: 'lumiastream',
|
|
7587
|
+
amount: 100,
|
|
7588
|
+
currency: LumiaVariationCurrency.USD,
|
|
7589
|
+
interval: 'MONTHLY',
|
|
7590
|
+
subscriptionType: 'ACTIVE',
|
|
7591
|
+
},
|
|
7592
|
+
},
|
|
7593
|
+
],
|
|
7594
|
+
inputFields: [
|
|
7595
|
+
{
|
|
7596
|
+
type: 'text',
|
|
7597
|
+
label: 'Username',
|
|
7598
|
+
variableField: 'username',
|
|
7599
|
+
required: false,
|
|
7600
|
+
default: 'lumiastream',
|
|
7601
|
+
},
|
|
7602
|
+
{
|
|
7603
|
+
type: 'text',
|
|
7604
|
+
label: 'Subscription Type',
|
|
7605
|
+
variableField: 'subscriptionType',
|
|
7606
|
+
required: false,
|
|
7607
|
+
default: 'ACTIVE',
|
|
7608
|
+
},
|
|
7609
|
+
{
|
|
7610
|
+
type: 'number',
|
|
7611
|
+
label: 'Amount',
|
|
7612
|
+
dynamicField: 'value',
|
|
7613
|
+
variableField: 'amount',
|
|
7614
|
+
required: false,
|
|
7615
|
+
default: 100,
|
|
7616
|
+
},
|
|
7617
|
+
{
|
|
7618
|
+
type: 'currency',
|
|
7619
|
+
label: 'Currency',
|
|
7620
|
+
dynamicField: 'currency',
|
|
7621
|
+
variableField: 'currency',
|
|
7622
|
+
required: false,
|
|
7623
|
+
default: LumiaVariationCurrency.USD,
|
|
7624
|
+
},
|
|
7625
|
+
],
|
|
7626
|
+
LumiaVariationConditions: [
|
|
7627
|
+
{ type: LumiaVariationConditions.RANDOM },
|
|
7628
|
+
{
|
|
7629
|
+
type: LumiaVariationConditions.EQUAL_CURRENCY_NUMBER,
|
|
7630
|
+
},
|
|
7631
|
+
{
|
|
7632
|
+
type: LumiaVariationConditions.GREATER_CURRENCY_NUMBER,
|
|
7633
|
+
},
|
|
7634
|
+
{ type: LumiaVariationConditions.EQUAL_VARIABLE },
|
|
7635
|
+
],
|
|
7636
|
+
},
|
|
7637
|
+
[activity_types_1.LumiaAlertValues.FOURTHWALL_SUBSCRIPTION_EXPIRED]: {
|
|
7638
|
+
connection: event_types_1.LumiaIntegrations.FOURTHWALL,
|
|
7639
|
+
message: '{{username}} subscription ended',
|
|
7640
|
+
eventlistMessage: 'Subscription Ended',
|
|
7641
|
+
eventlistDetailedMessage: 'subscription ended with {{subscriptionType}}',
|
|
7642
|
+
acceptedVariables: variables_types_1.AllVariables.fourthwall.alerts.subscriptionExpired,
|
|
7643
|
+
quickActions: [
|
|
7644
|
+
{
|
|
7645
|
+
label: 'Ended',
|
|
7646
|
+
dynamic: { value: 100, currency: LumiaVariationCurrency.USD },
|
|
7647
|
+
extraSettings: {
|
|
7648
|
+
username: 'lumiastream',
|
|
7649
|
+
amount: 100,
|
|
7650
|
+
currency: LumiaVariationCurrency.USD,
|
|
7651
|
+
interval: 'MONTHLY',
|
|
7652
|
+
subscriptionType: 'CANCELLED',
|
|
7653
|
+
},
|
|
7654
|
+
},
|
|
7655
|
+
],
|
|
7656
|
+
inputFields: [
|
|
7657
|
+
{
|
|
7658
|
+
type: 'text',
|
|
7659
|
+
label: 'Username',
|
|
7660
|
+
variableField: 'username',
|
|
7661
|
+
required: false,
|
|
7662
|
+
default: 'lumiastream',
|
|
7663
|
+
},
|
|
7664
|
+
{
|
|
7665
|
+
type: 'text',
|
|
7666
|
+
label: 'Subscription Type',
|
|
7667
|
+
variableField: 'subscriptionType',
|
|
7668
|
+
required: false,
|
|
7669
|
+
default: 'CANCELLED',
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
type: 'number',
|
|
7673
|
+
label: 'Amount',
|
|
7674
|
+
dynamicField: 'value',
|
|
7675
|
+
variableField: 'amount',
|
|
7676
|
+
required: false,
|
|
7677
|
+
default: 100,
|
|
7678
|
+
},
|
|
7679
|
+
{
|
|
7680
|
+
type: 'currency',
|
|
7681
|
+
label: 'Currency',
|
|
7682
|
+
dynamicField: 'currency',
|
|
7683
|
+
variableField: 'currency',
|
|
7684
|
+
required: false,
|
|
7685
|
+
default: LumiaVariationCurrency.USD,
|
|
7686
|
+
},
|
|
7687
|
+
],
|
|
7688
|
+
LumiaVariationConditions: [
|
|
7689
|
+
{ type: LumiaVariationConditions.RANDOM },
|
|
7690
|
+
{
|
|
7691
|
+
type: LumiaVariationConditions.EQUAL_CURRENCY_NUMBER,
|
|
7692
|
+
},
|
|
7693
|
+
{
|
|
7694
|
+
type: LumiaVariationConditions.GREATER_CURRENCY_NUMBER,
|
|
7695
|
+
},
|
|
7696
|
+
{ type: LumiaVariationConditions.EQUAL_VARIABLE },
|
|
7697
|
+
],
|
|
7698
|
+
},
|
|
7575
7699
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_GIFTPURCHASE]: {
|
|
7576
7700
|
connection: event_types_1.LumiaIntegrations.FOURTHWALL,
|
|
7577
7701
|
message: '{{username}} just bought a gift with amount {{amount}}',
|
|
7578
7702
|
eventlistMessage: 'Gift Purchase',
|
|
7579
7703
|
eventlistDetailedMessage: 'Gift purchase with {{amount}} {{currency}}',
|
|
7580
|
-
acceptedVariables: variables_types_1.AllVariables.fourthwall.alerts.
|
|
7704
|
+
acceptedVariables: variables_types_1.AllVariables.fourthwall.alerts.giftPurchase,
|
|
7581
7705
|
quickActions: [
|
|
7582
7706
|
{
|
|
7583
7707
|
label: '$100',
|
|
@@ -7889,6 +8013,32 @@ exports.LumiaAlertConfigs = {
|
|
|
7889
8013
|
],
|
|
7890
8014
|
LumiaVariationConditions: [{ type: LumiaVariationConditions.RANDOM }, { type: LumiaVariationConditions.EQUAL_VARIABLE }],
|
|
7891
8015
|
},
|
|
8016
|
+
[activity_types_1.LumiaAlertValues.FOURTHWALL_NEWSLETTER_SUBSCRIBED]: {
|
|
8017
|
+
connection: event_types_1.LumiaIntegrations.FOURTHWALL,
|
|
8018
|
+
message: '{{email}} subscribed to the newsletter',
|
|
8019
|
+
eventlistMessage: 'Newsletter Subscribed',
|
|
8020
|
+
eventlistDetailedMessage: 'subscribed to the newsletter',
|
|
8021
|
+
acceptedVariables: variables_types_1.AllVariables.fourthwall.alerts.newsletterSubscribed,
|
|
8022
|
+
quickActions: [
|
|
8023
|
+
{
|
|
8024
|
+
label: 'Subscribed',
|
|
8025
|
+
dynamic: { value: 1 },
|
|
8026
|
+
extraSettings: {
|
|
8027
|
+
email: 'test@email.com',
|
|
8028
|
+
},
|
|
8029
|
+
},
|
|
8030
|
+
],
|
|
8031
|
+
inputFields: [
|
|
8032
|
+
{
|
|
8033
|
+
type: 'text',
|
|
8034
|
+
label: 'Email',
|
|
8035
|
+
variableField: 'email',
|
|
8036
|
+
required: false,
|
|
8037
|
+
default: 'test@email.com',
|
|
8038
|
+
},
|
|
8039
|
+
],
|
|
8040
|
+
LumiaVariationConditions: [{ type: LumiaVariationConditions.RANDOM }, { type: LumiaVariationConditions.EQUAL_VARIABLE }],
|
|
8041
|
+
},
|
|
7892
8042
|
// },
|
|
7893
8043
|
// twitter: {
|
|
7894
8044
|
[activity_types_1.LumiaAlertValues.TWITTER_FOLLOWER]: {
|
|
@@ -8844,19 +8994,6 @@ exports.LumiaAlertConfigs = {
|
|
|
8844
8994
|
acceptedVariables: variables_types_1.AllVariables.obs.alerts.virtualcamStateChanged,
|
|
8845
8995
|
LumiaVariationConditions: [{ type: LumiaVariationConditions.RANDOM }, { type: LumiaVariationConditions.EQUAL_VARIABLE }],
|
|
8846
8996
|
},
|
|
8847
|
-
[activity_types_1.LumiaAlertValues.OBS_RECORD_FILE_CHANGED]: {
|
|
8848
|
-
connection: event_types_1.LumiaIntegrations.OBS,
|
|
8849
|
-
message: 'OBS record file changed',
|
|
8850
|
-
acceptedVariables: variables_types_1.AllVariables.obs.alerts.recordFileChanged,
|
|
8851
|
-
LumiaVariationConditions: [
|
|
8852
|
-
{ type: LumiaVariationConditions.RANDOM },
|
|
8853
|
-
{
|
|
8854
|
-
type: LumiaVariationConditions.EQUAL_STRING,
|
|
8855
|
-
description: 'Path is equal to',
|
|
8856
|
-
},
|
|
8857
|
-
{ type: LumiaVariationConditions.EQUAL_VARIABLE },
|
|
8858
|
-
],
|
|
8859
|
-
},
|
|
8860
8997
|
[activity_types_1.LumiaAlertValues.OBS_SCREENSHOT_SAVED]: {
|
|
8861
8998
|
connection: event_types_1.LumiaIntegrations.OBS,
|
|
8862
8999
|
message: 'OBS screenshot saved',
|
|
@@ -719,6 +719,10 @@ export declare enum LumiaAlertValues {
|
|
|
719
719
|
FOURTHWALL_DONATION = "fourthwall-donation",
|
|
720
720
|
/** Fourthwall subscription */
|
|
721
721
|
FOURTHWALL_SUBSCRIPTION = "fourthwall-subscription",
|
|
722
|
+
/** Fourthwall subscription changed */
|
|
723
|
+
FOURTHWALL_SUBSCRIPTION_CHANGED = "fourthwall-subscriptionChanged",
|
|
724
|
+
/** Fourthwall subscription expired */
|
|
725
|
+
FOURTHWALL_SUBSCRIPTION_EXPIRED = "fourthwall-subscriptionExpired",
|
|
722
726
|
/** Fourthwall gift purchase */
|
|
723
727
|
FOURTHWALL_GIFTPURCHASE = "fourthwall-giftpurchase",
|
|
724
728
|
/** Fourthwall giveaway started */
|
|
@@ -727,6 +731,8 @@ export declare enum LumiaAlertValues {
|
|
|
727
731
|
FOURTHWALL_GIVEAWAY_ENDED = "fourthwall-giveawayEnded",
|
|
728
732
|
/** Fourthwall thank you sent */
|
|
729
733
|
FOURTHWALL_THANKYOU_SENT = "fourthwall-thankyouSent",
|
|
734
|
+
/** Fourthwall newsletter subscribed */
|
|
735
|
+
FOURTHWALL_NEWSLETTER_SUBSCRIBED = "fourthwall-newsletterSubscribed",
|
|
730
736
|
/** OBS profile switched */
|
|
731
737
|
OBS_SWITCH_PROFILE = "obs-switchProfile",
|
|
732
738
|
/** OBS scene switched */
|
|
@@ -755,8 +761,6 @@ export declare enum LumiaAlertValues {
|
|
|
755
761
|
OBS_MEDIA_INPUT_PLAYBACK_ENDED = "obs-mediaInputPlaybackEnded",
|
|
756
762
|
/** OBS virtual camera state changed */
|
|
757
763
|
OBS_VIRTUALCAM_STATE_CHANGED = "obs-virtualcamStateChanged",
|
|
758
|
-
/** OBS record file changed */
|
|
759
|
-
OBS_RECORD_FILE_CHANGED = "obs-recordFileChanged",
|
|
760
764
|
/** OBS screenshot saved */
|
|
761
765
|
OBS_SCREENSHOT_SAVED = "obs-screenshotSaved",
|
|
762
766
|
/** OBS replay buffer saved */
|
|
@@ -719,6 +719,10 @@ export declare enum LumiaAlertValues {
|
|
|
719
719
|
FOURTHWALL_DONATION = "fourthwall-donation",
|
|
720
720
|
/** Fourthwall subscription */
|
|
721
721
|
FOURTHWALL_SUBSCRIPTION = "fourthwall-subscription",
|
|
722
|
+
/** Fourthwall subscription changed */
|
|
723
|
+
FOURTHWALL_SUBSCRIPTION_CHANGED = "fourthwall-subscriptionChanged",
|
|
724
|
+
/** Fourthwall subscription expired */
|
|
725
|
+
FOURTHWALL_SUBSCRIPTION_EXPIRED = "fourthwall-subscriptionExpired",
|
|
722
726
|
/** Fourthwall gift purchase */
|
|
723
727
|
FOURTHWALL_GIFTPURCHASE = "fourthwall-giftpurchase",
|
|
724
728
|
/** Fourthwall giveaway started */
|
|
@@ -727,6 +731,8 @@ export declare enum LumiaAlertValues {
|
|
|
727
731
|
FOURTHWALL_GIVEAWAY_ENDED = "fourthwall-giveawayEnded",
|
|
728
732
|
/** Fourthwall thank you sent */
|
|
729
733
|
FOURTHWALL_THANKYOU_SENT = "fourthwall-thankyouSent",
|
|
734
|
+
/** Fourthwall newsletter subscribed */
|
|
735
|
+
FOURTHWALL_NEWSLETTER_SUBSCRIBED = "fourthwall-newsletterSubscribed",
|
|
730
736
|
/** OBS profile switched */
|
|
731
737
|
OBS_SWITCH_PROFILE = "obs-switchProfile",
|
|
732
738
|
/** OBS scene switched */
|
|
@@ -755,8 +761,6 @@ export declare enum LumiaAlertValues {
|
|
|
755
761
|
OBS_MEDIA_INPUT_PLAYBACK_ENDED = "obs-mediaInputPlaybackEnded",
|
|
756
762
|
/** OBS virtual camera state changed */
|
|
757
763
|
OBS_VIRTUALCAM_STATE_CHANGED = "obs-virtualcamStateChanged",
|
|
758
|
-
/** OBS record file changed */
|
|
759
|
-
OBS_RECORD_FILE_CHANGED = "obs-recordFileChanged",
|
|
760
764
|
/** OBS screenshot saved */
|
|
761
765
|
OBS_SCREENSHOT_SAVED = "obs-screenshotSaved",
|
|
762
766
|
/** OBS replay buffer saved */
|
|
@@ -47,10 +47,13 @@ export declare const LumiaMapAlertTypeToEventListType: {
|
|
|
47
47
|
"fourthwall-donation": LumiaEventListTypes;
|
|
48
48
|
"fourthwall-shopOrder": LumiaEventListTypes;
|
|
49
49
|
"fourthwall-subscription": LumiaEventListTypes;
|
|
50
|
+
"fourthwall-subscriptionChanged": LumiaEventListTypes;
|
|
51
|
+
"fourthwall-subscriptionExpired": LumiaEventListTypes;
|
|
50
52
|
"fourthwall-giftpurchase": LumiaEventListTypes;
|
|
51
53
|
"fourthwall-giveawayStarted": LumiaEventListTypes;
|
|
52
54
|
"fourthwall-giveawayEnded": LumiaEventListTypes;
|
|
53
55
|
"fourthwall-thankyouSent": LumiaEventListTypes;
|
|
56
|
+
"fourthwall-newsletterSubscribed": LumiaEventListTypes;
|
|
54
57
|
"patreon-campaignPledge": LumiaEventListTypes;
|
|
55
58
|
"streamelements-donation": LumiaEventListTypes;
|
|
56
59
|
"streamlabs-charity": LumiaEventListTypes;
|
package/dist/eventlist.types.js
CHANGED
|
@@ -52,10 +52,13 @@ exports.LumiaMapAlertTypeToEventListType = {
|
|
|
52
52
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_DONATION]: LumiaEventListTypes.DONATION,
|
|
53
53
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_SHOPORDER]: LumiaEventListTypes.PURCHASES,
|
|
54
54
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_SUBSCRIPTION]: LumiaEventListTypes.SUBSCRIBERS,
|
|
55
|
+
[activity_types_1.LumiaAlertValues.FOURTHWALL_SUBSCRIPTION_CHANGED]: LumiaEventListTypes.SUBSCRIBERS,
|
|
56
|
+
[activity_types_1.LumiaAlertValues.FOURTHWALL_SUBSCRIPTION_EXPIRED]: LumiaEventListTypes.SUBSCRIBERS,
|
|
55
57
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_GIFTPURCHASE]: LumiaEventListTypes.PURCHASES,
|
|
56
58
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_GIVEAWAY_STARTED]: LumiaEventListTypes.GIFTS,
|
|
57
59
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_GIVEAWAY_ENDED]: LumiaEventListTypes.GIFTS,
|
|
58
60
|
[activity_types_1.LumiaAlertValues.FOURTHWALL_THANKYOU_SENT]: LumiaEventListTypes.OTHERS,
|
|
61
|
+
[activity_types_1.LumiaAlertValues.FOURTHWALL_NEWSLETTER_SUBSCRIBED]: LumiaEventListTypes.OTHERS,
|
|
59
62
|
[activity_types_1.LumiaAlertValues.PATREON_PLEDGE]: LumiaEventListTypes.SUBSCRIBERS,
|
|
60
63
|
[activity_types_1.LumiaAlertValues.STREAMELEMENTS_DONATION]: LumiaEventListTypes.DONATION,
|
|
61
64
|
[activity_types_1.LumiaAlertValues.STREAMLABS_CHARITY]: LumiaEventListTypes.DONATION,
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { LumiaStreamingSites, LumiaActivityCommandTypes, LumiaExternalActivityCo
|
|
|
2
2
|
export { LumiaVariationConditions, LumiaVariationCurrency, VariationCurrencySymbol, LumiaAlertConfigs, LumiaDynamicCondition, type LumiaSelectionOption } from './alert.types';
|
|
3
3
|
export { ILumiaSendPack, ILumiaEvent, ILumiaEventChatCommandBody, ILumiaEventChatBody, ILumiaEventAlertBody, ILumiaEventStateBody, ILumiaLight, LumiaIntegrations, LumiaEventTypes, } from './event.types';
|
|
4
4
|
export { LumiaEventListTypes, LumiaMapAlertTypeToEventListType } from './eventlist.types';
|
|
5
|
-
export { SystemVariables, ReservedVariables, AllVariables } from './variables.types';
|
|
5
|
+
export { SystemVariables, ReservedVariables, AllVariables, getAcceptedVariableName, getAcceptedVariableNames, type LumiaAcceptedVariable, type LumiaAcceptedVariableDefinition, } from './variables.types';
|
|
6
6
|
export { formatCondition } from './helpers';
|
|
7
7
|
export { KickKicksData } from './kick_kicks';
|
|
8
8
|
export { TiktokGiftsData } from './tiktok_gifts';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VIEWER_PROFILE_ACHIEVEMENTS = exports.YoutubeSuperstickersData = exports.TiktokGiftsData = exports.KickKicksData = exports.formatCondition = exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.LumiaMapAlertTypeToEventListType = exports.LumiaEventListTypes = exports.LumiaEventTypes = exports.LumiaIntegrations = exports.LumiaAlertConfigs = 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.VIEWER_PROFILE_ACHIEVEMENTS = exports.YoutubeSuperstickersData = exports.TiktokGiftsData = exports.KickKicksData = exports.formatCondition = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.LumiaMapAlertTypeToEventListType = exports.LumiaEventListTypes = exports.LumiaEventTypes = exports.LumiaIntegrations = exports.LumiaAlertConfigs = 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; } });
|
|
@@ -26,6 +26,8 @@ var variables_types_1 = require("./variables.types");
|
|
|
26
26
|
Object.defineProperty(exports, "SystemVariables", { enumerable: true, get: function () { return variables_types_1.SystemVariables; } });
|
|
27
27
|
Object.defineProperty(exports, "ReservedVariables", { enumerable: true, get: function () { return variables_types_1.ReservedVariables; } });
|
|
28
28
|
Object.defineProperty(exports, "AllVariables", { enumerable: true, get: function () { return variables_types_1.AllVariables; } });
|
|
29
|
+
Object.defineProperty(exports, "getAcceptedVariableName", { enumerable: true, get: function () { return variables_types_1.getAcceptedVariableName; } });
|
|
30
|
+
Object.defineProperty(exports, "getAcceptedVariableNames", { enumerable: true, get: function () { return variables_types_1.getAcceptedVariableNames; } });
|
|
29
31
|
var helpers_1 = require("./helpers");
|
|
30
32
|
Object.defineProperty(exports, "formatCondition", { enumerable: true, get: function () { return helpers_1.formatCondition; } });
|
|
31
33
|
var kick_kicks_1 = require("./kick_kicks");
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export interface LumiaAcceptedVariableDefinition {
|
|
2
|
+
name: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
origin?: string;
|
|
5
|
+
example?: unknown;
|
|
6
|
+
}
|
|
7
|
+
export type LumiaAcceptedVariable = string | LumiaAcceptedVariableDefinition;
|
|
8
|
+
export declare const getAcceptedVariableName: (entry: LumiaAcceptedVariable) => string;
|
|
9
|
+
export declare const getAcceptedVariableNames: (entries: LumiaAcceptedVariable[]) => string[];
|
|
1
10
|
export declare enum SystemVariables {
|
|
2
11
|
/** Read from a local file. Example: {{read_file=C:\path\file.txt}}. Use in overlays as {{read_file}}. */
|
|
3
12
|
READ_FILE = "read_file",
|
|
@@ -780,12 +789,34 @@ export declare const AllVariables: {
|
|
|
780
789
|
alerts: {
|
|
781
790
|
donation: string[];
|
|
782
791
|
subscription: string[];
|
|
792
|
+
subscriptionChanged: string[];
|
|
793
|
+
subscriptionExpired: string[];
|
|
783
794
|
commission: string[];
|
|
784
|
-
shopOrder: string
|
|
795
|
+
shopOrder: (string | {
|
|
796
|
+
name: string;
|
|
797
|
+
example: {
|
|
798
|
+
id: string;
|
|
799
|
+
name: string;
|
|
800
|
+
slug: string;
|
|
801
|
+
description: string;
|
|
802
|
+
imageUrl: string;
|
|
803
|
+
variantName: string;
|
|
804
|
+
sku: string;
|
|
805
|
+
quantity: number;
|
|
806
|
+
size: string;
|
|
807
|
+
color: string;
|
|
808
|
+
colorSwatch: string;
|
|
809
|
+
attributes: string;
|
|
810
|
+
unitPrice: number;
|
|
811
|
+
price: number;
|
|
812
|
+
variant: null;
|
|
813
|
+
};
|
|
814
|
+
})[];
|
|
785
815
|
giftPurchase: string[];
|
|
786
816
|
giveawayStarted: string[];
|
|
787
817
|
giveawayEnded: string[];
|
|
788
818
|
thankyouSent: string[];
|
|
819
|
+
newsletterSubscribed: string[];
|
|
789
820
|
};
|
|
790
821
|
};
|
|
791
822
|
kick: {
|
|
@@ -848,7 +879,6 @@ export declare const AllVariables: {
|
|
|
848
879
|
mediaInputPlaybackStarted: string[];
|
|
849
880
|
mediaInputPlaybackEnded: string[];
|
|
850
881
|
virtualcamStateChanged: string[];
|
|
851
|
-
recordFileChanged: string[];
|
|
852
882
|
screenshotSaved: string[];
|
|
853
883
|
replayBufferSaved: string[];
|
|
854
884
|
verticalBacktrackSaved: string[];
|
package/dist/variables.types.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// [AI] When SystemVariables is used, update custom-overlays.d.ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = void 0;
|
|
4
|
+
exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = void 0;
|
|
5
|
+
const getAcceptedVariableName = (entry) => typeof entry === 'string' ? entry : entry.name;
|
|
6
|
+
exports.getAcceptedVariableName = getAcceptedVariableName;
|
|
7
|
+
const getAcceptedVariableNames = (entries) => entries.map(exports.getAcceptedVariableName);
|
|
8
|
+
exports.getAcceptedVariableNames = getAcceptedVariableNames;
|
|
5
9
|
// Use the **string values** of this enum inside overlays: e.g. {{twitch_total_subscriber_count}}, not {{TWITCH_TOTAL_SUBSCRIBER_COUNT}}.
|
|
6
10
|
var SystemVariables;
|
|
7
11
|
(function (SystemVariables) {
|
|
@@ -1453,14 +1457,112 @@ exports.AllVariables = {
|
|
|
1453
1457
|
},
|
|
1454
1458
|
fourthwall: {
|
|
1455
1459
|
alerts: {
|
|
1456
|
-
donation: ['username', 'email', 'message', 'currency', 'amount', 'raw'],
|
|
1457
|
-
subscription: ['username', 'email', 'currency', 'amount', 'interval', 'raw'],
|
|
1460
|
+
donation: ['username', 'email', 'message', 'currency', 'amount', 'id', 'status', 'createdAt', 'updatedAt', 'raw'],
|
|
1461
|
+
subscription: ['username', 'email', 'currency', 'amount', 'interval', 'id', 'subscriptionType', 'tierId', 'variantId', 'createdAt', 'raw'],
|
|
1462
|
+
subscriptionChanged: ['username', 'email', 'currency', 'amount', 'interval', 'id', 'subscriptionType', 'tierId', 'variantId', 'createdAt', 'raw'],
|
|
1463
|
+
subscriptionExpired: ['username', 'email', 'currency', 'amount', 'interval', 'id', 'subscriptionType', 'tierId', 'variantId', 'createdAt', 'raw'],
|
|
1458
1464
|
commission: ['username', 'email', 'message', 'currency', 'amount', 'raw'],
|
|
1459
|
-
shopOrder: [
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1465
|
+
shopOrder: [
|
|
1466
|
+
'username',
|
|
1467
|
+
'email',
|
|
1468
|
+
'message',
|
|
1469
|
+
'items',
|
|
1470
|
+
'itemsCount',
|
|
1471
|
+
'itemsDetailed',
|
|
1472
|
+
'orderItems',
|
|
1473
|
+
'itemImages',
|
|
1474
|
+
'friendlyId',
|
|
1475
|
+
'currency',
|
|
1476
|
+
'amount',
|
|
1477
|
+
{
|
|
1478
|
+
name: 'firstItem',
|
|
1479
|
+
example: {
|
|
1480
|
+
id: '',
|
|
1481
|
+
name: '',
|
|
1482
|
+
slug: '',
|
|
1483
|
+
description: '',
|
|
1484
|
+
imageUrl: '',
|
|
1485
|
+
variantName: '',
|
|
1486
|
+
sku: '',
|
|
1487
|
+
quantity: 1,
|
|
1488
|
+
size: '',
|
|
1489
|
+
color: '',
|
|
1490
|
+
colorSwatch: '',
|
|
1491
|
+
attributes: '',
|
|
1492
|
+
unitPrice: 0,
|
|
1493
|
+
price: 0,
|
|
1494
|
+
variant: null,
|
|
1495
|
+
},
|
|
1496
|
+
},
|
|
1497
|
+
'raw',
|
|
1498
|
+
],
|
|
1499
|
+
giftPurchase: [
|
|
1500
|
+
'username',
|
|
1501
|
+
'email',
|
|
1502
|
+
'message',
|
|
1503
|
+
'currency',
|
|
1504
|
+
'amount',
|
|
1505
|
+
'friendlyId',
|
|
1506
|
+
'quantity',
|
|
1507
|
+
'offer',
|
|
1508
|
+
'offerImageUrl',
|
|
1509
|
+
'gifts',
|
|
1510
|
+
'giftCount',
|
|
1511
|
+
'winners',
|
|
1512
|
+
'winnerNames',
|
|
1513
|
+
'winnerCount',
|
|
1514
|
+
'firstWinner',
|
|
1515
|
+
'availableGiftCount',
|
|
1516
|
+
'redeemedGiftCount',
|
|
1517
|
+
'createdAt',
|
|
1518
|
+
'raw',
|
|
1519
|
+
],
|
|
1520
|
+
giveawayStarted: [
|
|
1521
|
+
'username',
|
|
1522
|
+
'email',
|
|
1523
|
+
'message',
|
|
1524
|
+
'currency',
|
|
1525
|
+
'amount',
|
|
1526
|
+
'giveawayName',
|
|
1527
|
+
'giveawayId',
|
|
1528
|
+
'giveawayFriendlyId',
|
|
1529
|
+
'offerName',
|
|
1530
|
+
'offerImageUrl',
|
|
1531
|
+
'winners',
|
|
1532
|
+
'winnerNames',
|
|
1533
|
+
'winnerCount',
|
|
1534
|
+
'firstWinner',
|
|
1535
|
+
'duration',
|
|
1536
|
+
'allGifts',
|
|
1537
|
+
'gifts',
|
|
1538
|
+
'totalGifts',
|
|
1539
|
+
'offer',
|
|
1540
|
+
'type',
|
|
1541
|
+
],
|
|
1542
|
+
giveawayEnded: [
|
|
1543
|
+
'username',
|
|
1544
|
+
'email',
|
|
1545
|
+
'message',
|
|
1546
|
+
'currency',
|
|
1547
|
+
'amount',
|
|
1548
|
+
'giveawayName',
|
|
1549
|
+
'giveawayId',
|
|
1550
|
+
'giveawayFriendlyId',
|
|
1551
|
+
'offerName',
|
|
1552
|
+
'offerImageUrl',
|
|
1553
|
+
'winners',
|
|
1554
|
+
'winnerNames',
|
|
1555
|
+
'winnerCount',
|
|
1556
|
+
'firstWinner',
|
|
1557
|
+
'duration',
|
|
1558
|
+
'allGifts',
|
|
1559
|
+
'gifts',
|
|
1560
|
+
'totalGifts',
|
|
1561
|
+
'offer',
|
|
1562
|
+
'type',
|
|
1563
|
+
],
|
|
1564
|
+
thankyouSent: ['username', 'email', 'message', 'mediaUrl', 'contributionType', 'contribution'],
|
|
1565
|
+
newsletterSubscribed: ['email', 'raw'],
|
|
1464
1566
|
},
|
|
1465
1567
|
},
|
|
1466
1568
|
kick: {
|
|
@@ -1592,7 +1694,6 @@ exports.AllVariables = {
|
|
|
1592
1694
|
mediaInputPlaybackStarted: ['inputName', 'inputUuid'],
|
|
1593
1695
|
mediaInputPlaybackEnded: ['inputName', 'inputUuid'],
|
|
1594
1696
|
virtualcamStateChanged: ['outputActive', 'outputState'],
|
|
1595
|
-
recordFileChanged: ['newOutputPath'],
|
|
1596
1697
|
screenshotSaved: ['savedScreenshotPath'],
|
|
1597
1698
|
replayBufferSaved: ['saved_key'],
|
|
1598
1699
|
verticalBacktrackSaved: ['saved_key', 'height', 'width'],
|