@lumiastream/lumia-types 3.3.4 → 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 +0 -3
- package/dist/activity.types.js +0 -3
- package/dist/alert.types.d.ts +2 -1
- package/dist/alert.types.js +0 -13
- package/dist/custom-overlays/custom-overlays.d.ts +0 -2
- package/dist/custom-overlays.d.ts +0 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/variables.types.d.ts +29 -2
- package/dist/variables.types.js +39 -3
- package/package.json +1 -1
package/dist/activity.types.d.ts
CHANGED
|
@@ -473,8 +473,6 @@ export declare enum LumiaAlertValues {
|
|
|
473
473
|
OBS_MEDIA_INPUT_PLAYBACK_ENDED = "obs-mediaInputPlaybackEnded",
|
|
474
474
|
/** OBS virtual camera state changed */
|
|
475
475
|
OBS_VIRTUALCAM_STATE_CHANGED = "obs-virtualcamStateChanged",
|
|
476
|
-
/** OBS record file changed */
|
|
477
|
-
OBS_RECORD_FILE_CHANGED = "obs-recordFileChanged",
|
|
478
476
|
/** OBS screenshot saved */
|
|
479
477
|
OBS_SCREENSHOT_SAVED = "obs-screenshotSaved",
|
|
480
478
|
/** OBS replay buffer saved */
|
|
@@ -716,7 +714,6 @@ export declare const LumiaAlertFriendlyValues: {
|
|
|
716
714
|
"obs-mediaInputPlaybackStarted": string;
|
|
717
715
|
"obs-mediaInputPlaybackEnded": string;
|
|
718
716
|
"obs-virtualcamStateChanged": string;
|
|
719
|
-
"obs-recordFileChanged": string;
|
|
720
717
|
"obs-screenshotSaved": string;
|
|
721
718
|
"obs-replayBufferSaved": string;
|
|
722
719
|
"obs-verticalBacktrackSaved": string;
|
package/dist/activity.types.js
CHANGED
|
@@ -495,8 +495,6 @@ var LumiaAlertValues;
|
|
|
495
495
|
LumiaAlertValues["OBS_MEDIA_INPUT_PLAYBACK_ENDED"] = "obs-mediaInputPlaybackEnded";
|
|
496
496
|
/** OBS virtual camera state changed */
|
|
497
497
|
LumiaAlertValues["OBS_VIRTUALCAM_STATE_CHANGED"] = "obs-virtualcamStateChanged";
|
|
498
|
-
/** OBS record file changed */
|
|
499
|
-
LumiaAlertValues["OBS_RECORD_FILE_CHANGED"] = "obs-recordFileChanged";
|
|
500
498
|
/** OBS screenshot saved */
|
|
501
499
|
LumiaAlertValues["OBS_SCREENSHOT_SAVED"] = "obs-screenshotSaved";
|
|
502
500
|
/** OBS replay buffer saved */
|
|
@@ -748,7 +746,6 @@ exports.LumiaAlertFriendlyValues = {
|
|
|
748
746
|
[LumiaAlertValues.OBS_MEDIA_INPUT_PLAYBACK_STARTED]: 'Obs Media Input Playback Started',
|
|
749
747
|
[LumiaAlertValues.OBS_MEDIA_INPUT_PLAYBACK_ENDED]: 'Obs Media Input Playback Ended',
|
|
750
748
|
[LumiaAlertValues.OBS_VIRTUALCAM_STATE_CHANGED]: 'Obs Virtual Cam State Changed',
|
|
751
|
-
[LumiaAlertValues.OBS_RECORD_FILE_CHANGED]: 'Obs Record File Changed',
|
|
752
749
|
[LumiaAlertValues.OBS_SCREENSHOT_SAVED]: 'Obs Screenshot Saved',
|
|
753
750
|
[LumiaAlertValues.OBS_REPLAY_BUFFER_SAVED]: 'Obs Replay Buffer Saved',
|
|
754
751
|
[LumiaAlertValues.OBS_VERTICAL_BACKTRACK_SAVED]: 'Obs Vertical Backtrack Saved',
|
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
|
@@ -8994,19 +8994,6 @@ exports.LumiaAlertConfigs = {
|
|
|
8994
8994
|
acceptedVariables: variables_types_1.AllVariables.obs.alerts.virtualcamStateChanged,
|
|
8995
8995
|
LumiaVariationConditions: [{ type: LumiaVariationConditions.RANDOM }, { type: LumiaVariationConditions.EQUAL_VARIABLE }],
|
|
8996
8996
|
},
|
|
8997
|
-
[activity_types_1.LumiaAlertValues.OBS_RECORD_FILE_CHANGED]: {
|
|
8998
|
-
connection: event_types_1.LumiaIntegrations.OBS,
|
|
8999
|
-
message: 'OBS record file changed',
|
|
9000
|
-
acceptedVariables: variables_types_1.AllVariables.obs.alerts.recordFileChanged,
|
|
9001
|
-
LumiaVariationConditions: [
|
|
9002
|
-
{ type: LumiaVariationConditions.RANDOM },
|
|
9003
|
-
{
|
|
9004
|
-
type: LumiaVariationConditions.EQUAL_STRING,
|
|
9005
|
-
description: 'Path is equal to',
|
|
9006
|
-
},
|
|
9007
|
-
{ type: LumiaVariationConditions.EQUAL_VARIABLE },
|
|
9008
|
-
],
|
|
9009
|
-
},
|
|
9010
8997
|
[activity_types_1.LumiaAlertValues.OBS_SCREENSHOT_SAVED]: {
|
|
9011
8998
|
connection: event_types_1.LumiaIntegrations.OBS,
|
|
9012
8999
|
message: 'OBS screenshot saved',
|
|
@@ -761,8 +761,6 @@ export declare enum LumiaAlertValues {
|
|
|
761
761
|
OBS_MEDIA_INPUT_PLAYBACK_ENDED = "obs-mediaInputPlaybackEnded",
|
|
762
762
|
/** OBS virtual camera state changed */
|
|
763
763
|
OBS_VIRTUALCAM_STATE_CHANGED = "obs-virtualcamStateChanged",
|
|
764
|
-
/** OBS record file changed */
|
|
765
|
-
OBS_RECORD_FILE_CHANGED = "obs-recordFileChanged",
|
|
766
764
|
/** OBS screenshot saved */
|
|
767
765
|
OBS_SCREENSHOT_SAVED = "obs-screenshotSaved",
|
|
768
766
|
/** OBS replay buffer saved */
|
|
@@ -761,8 +761,6 @@ export declare enum LumiaAlertValues {
|
|
|
761
761
|
OBS_MEDIA_INPUT_PLAYBACK_ENDED = "obs-mediaInputPlaybackEnded",
|
|
762
762
|
/** OBS virtual camera state changed */
|
|
763
763
|
OBS_VIRTUALCAM_STATE_CHANGED = "obs-virtualcamStateChanged",
|
|
764
|
-
/** OBS record file changed */
|
|
765
|
-
OBS_RECORD_FILE_CHANGED = "obs-recordFileChanged",
|
|
766
764
|
/** OBS screenshot saved */
|
|
767
765
|
OBS_SCREENSHOT_SAVED = "obs-screenshotSaved",
|
|
768
766
|
/** OBS replay buffer saved */
|
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",
|
|
@@ -783,7 +792,26 @@ export declare const AllVariables: {
|
|
|
783
792
|
subscriptionChanged: string[];
|
|
784
793
|
subscriptionExpired: string[];
|
|
785
794
|
commission: string[];
|
|
786
|
-
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
|
+
})[];
|
|
787
815
|
giftPurchase: string[];
|
|
788
816
|
giveawayStarted: string[];
|
|
789
817
|
giveawayEnded: string[];
|
|
@@ -851,7 +879,6 @@ export declare const AllVariables: {
|
|
|
851
879
|
mediaInputPlaybackStarted: string[];
|
|
852
880
|
mediaInputPlaybackEnded: string[];
|
|
853
881
|
virtualcamStateChanged: string[];
|
|
854
|
-
recordFileChanged: string[];
|
|
855
882
|
screenshotSaved: string[];
|
|
856
883
|
replayBufferSaved: string[];
|
|
857
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) {
|
|
@@ -1458,7 +1462,40 @@ exports.AllVariables = {
|
|
|
1458
1462
|
subscriptionChanged: ['username', 'email', 'currency', 'amount', 'interval', 'id', 'subscriptionType', 'tierId', 'variantId', 'createdAt', 'raw'],
|
|
1459
1463
|
subscriptionExpired: ['username', 'email', 'currency', 'amount', 'interval', 'id', 'subscriptionType', 'tierId', 'variantId', 'createdAt', 'raw'],
|
|
1460
1464
|
commission: ['username', 'email', 'message', 'currency', 'amount', 'raw'],
|
|
1461
|
-
shopOrder: [
|
|
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
|
+
],
|
|
1462
1499
|
giftPurchase: [
|
|
1463
1500
|
'username',
|
|
1464
1501
|
'email',
|
|
@@ -1657,7 +1694,6 @@ exports.AllVariables = {
|
|
|
1657
1694
|
mediaInputPlaybackStarted: ['inputName', 'inputUuid'],
|
|
1658
1695
|
mediaInputPlaybackEnded: ['inputName', 'inputUuid'],
|
|
1659
1696
|
virtualcamStateChanged: ['outputActive', 'outputState'],
|
|
1660
|
-
recordFileChanged: ['newOutputPath'],
|
|
1661
1697
|
screenshotSaved: ['savedScreenshotPath'],
|
|
1662
1698
|
replayBufferSaved: ['saved_key'],
|
|
1663
1699
|
verticalBacktrackSaved: ['saved_key', 'height', 'width'],
|