@tixyel/streamelements 4.3.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +88 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -647,7 +647,7 @@ declare namespace YoutubeEvents {
|
|
|
647
647
|
listener: 'event';
|
|
648
648
|
event: Event;
|
|
649
649
|
};
|
|
650
|
-
type Event = Superchat;
|
|
650
|
+
type Event = Superchat | Subscriber | Sponsor | CommunityGiftedSponsor;
|
|
651
651
|
interface Superchat extends BaseEvent {
|
|
652
652
|
type: 'superchat';
|
|
653
653
|
data: {
|
|
@@ -1073,8 +1073,9 @@ declare namespace StreamElements {
|
|
|
1073
1073
|
};
|
|
1074
1074
|
namespace Provider {
|
|
1075
1075
|
namespace YouTube {
|
|
1076
|
-
type Events =
|
|
1076
|
+
type Events = Message | Event | Superchat | Subscriber | Sponsor;
|
|
1077
1077
|
type Message = YoutubeEvents.Message.Data;
|
|
1078
|
+
type Event = YoutubeEvents.Event.Data;
|
|
1078
1079
|
type Superchat = YoutubeEvents.Superchat.Data;
|
|
1079
1080
|
type Subscriber = YoutubeEvents.Subscriber.Data;
|
|
1080
1081
|
type Sponsor = YoutubeEvents.Sponsor.Data;
|
|
@@ -1083,7 +1084,7 @@ declare namespace StreamElements {
|
|
|
1083
1084
|
type spam = YoutubeEvents.Sponsor.spam;
|
|
1084
1085
|
}
|
|
1085
1086
|
namespace StreamElements {
|
|
1086
|
-
type Events =
|
|
1087
|
+
type Events = Tip | Event | KVStore | EventSkip | EventTest | BotCounter | AlertService;
|
|
1087
1088
|
type Tip = StreamElementsEvents.Tip.Data;
|
|
1088
1089
|
type Event = StreamElementsEvents.Event.Data;
|
|
1089
1090
|
type KVStore = StreamElementsEvents.KVStore.Data;
|
|
@@ -1093,7 +1094,7 @@ declare namespace StreamElements {
|
|
|
1093
1094
|
type AlertService = StreamElementsEvents.AlertService.Data;
|
|
1094
1095
|
}
|
|
1095
1096
|
namespace Twitch {
|
|
1096
|
-
type Events =
|
|
1097
|
+
type Events = Raid | Event | Cheer | Message | Follower | Subscriber | DeleteMessage | DeleteMessages;
|
|
1097
1098
|
type SubscriberTier = TwitchEvents.Subscriber.SubscriberTier;
|
|
1098
1099
|
type Raid = TwitchEvents.Raid.Data;
|
|
1099
1100
|
type Event = TwitchEvents.Event.Data;
|
|
@@ -1123,7 +1124,7 @@ declare namespace StreamElements {
|
|
|
1123
1124
|
type onEventReceived = Provider.Twitch.Events | Provider.YouTube.Events | Provider.StreamElements.Events;
|
|
1124
1125
|
}
|
|
1125
1126
|
namespace Session {
|
|
1126
|
-
type Data = Tip & Host & Raid & Cheer & Merch & Purchase & Follower & Hypetrain & Superchat & Subscriber & CheerPurchase & ChannelPoints & CharityCampaignDonation;
|
|
1127
|
+
type Data = Tip & Host & Raid & Cheer & Merch & Purchase & Follower & Hypetrain & Superchat & Sponsor & Subscriber & CheerPurchase & ChannelPoints & CharityCampaignDonation;
|
|
1127
1128
|
namespace Config {
|
|
1128
1129
|
type Int = {
|
|
1129
1130
|
type: 'int';
|
|
@@ -1153,6 +1154,71 @@ declare namespace StreamElements {
|
|
|
1153
1154
|
type Data = Record<string, Category | undefined>;
|
|
1154
1155
|
}
|
|
1155
1156
|
}
|
|
1157
|
+
type Sponsor = {
|
|
1158
|
+
'sponsor-latest': {
|
|
1159
|
+
amount: string;
|
|
1160
|
+
avatar: string;
|
|
1161
|
+
displayName: string;
|
|
1162
|
+
providerId: string;
|
|
1163
|
+
name: string;
|
|
1164
|
+
_id: string;
|
|
1165
|
+
sessionTop: boolean;
|
|
1166
|
+
type: 'sponsor';
|
|
1167
|
+
originalEventName: 'sponsor-latest';
|
|
1168
|
+
};
|
|
1169
|
+
'sponsor-session': {
|
|
1170
|
+
count: number;
|
|
1171
|
+
};
|
|
1172
|
+
'sponsor-week': {
|
|
1173
|
+
count: number;
|
|
1174
|
+
};
|
|
1175
|
+
'sponsor-month': {
|
|
1176
|
+
count: number;
|
|
1177
|
+
};
|
|
1178
|
+
'sponsor-goal': {
|
|
1179
|
+
amount: number;
|
|
1180
|
+
};
|
|
1181
|
+
'sponsor-total': {
|
|
1182
|
+
count: number;
|
|
1183
|
+
};
|
|
1184
|
+
'sponsor-gifted-session': {
|
|
1185
|
+
count: number;
|
|
1186
|
+
};
|
|
1187
|
+
'sponsor-gifted-latest': {
|
|
1188
|
+
name: string;
|
|
1189
|
+
amount: number;
|
|
1190
|
+
tier: string;
|
|
1191
|
+
message: string;
|
|
1192
|
+
sender: string;
|
|
1193
|
+
};
|
|
1194
|
+
'sponsor-recent': {
|
|
1195
|
+
amount: number;
|
|
1196
|
+
avatar: string;
|
|
1197
|
+
displayName: string;
|
|
1198
|
+
providerId: string;
|
|
1199
|
+
name: string;
|
|
1200
|
+
_id: string;
|
|
1201
|
+
sessionTop: boolean;
|
|
1202
|
+
type: 'sponsor';
|
|
1203
|
+
originalEventName: 'sponsor-recent';
|
|
1204
|
+
}[];
|
|
1205
|
+
};
|
|
1206
|
+
type SponsorCommunityGift = {
|
|
1207
|
+
'community-gift-latest': {
|
|
1208
|
+
amount: number;
|
|
1209
|
+
name: string;
|
|
1210
|
+
tier: string;
|
|
1211
|
+
};
|
|
1212
|
+
'communityGiftPurchase-latest': {
|
|
1213
|
+
amount: number;
|
|
1214
|
+
avatar: string;
|
|
1215
|
+
displayName: string;
|
|
1216
|
+
providerId: string;
|
|
1217
|
+
name: string;
|
|
1218
|
+
_id: string;
|
|
1219
|
+
sessionTop: boolean;
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1156
1222
|
type Follower = {
|
|
1157
1223
|
'follower-latest': {
|
|
1158
1224
|
name: string;
|
|
@@ -1412,12 +1478,20 @@ declare namespace StreamElements {
|
|
|
1412
1478
|
}
|
|
1413
1479
|
interface Superchat {
|
|
1414
1480
|
'superchat-latest': {
|
|
1415
|
-
name: string;
|
|
1416
1481
|
amount: number;
|
|
1482
|
+
avatar: string;
|
|
1483
|
+
displayName: string;
|
|
1484
|
+
providerId: string;
|
|
1485
|
+
name: string;
|
|
1486
|
+
_id: string;
|
|
1487
|
+
sessionTop: boolean;
|
|
1488
|
+
type: 'superchat';
|
|
1489
|
+
originalEventName: 'superchat-latest';
|
|
1417
1490
|
};
|
|
1418
1491
|
'superchat-session-top-donation': {
|
|
1419
1492
|
name: string;
|
|
1420
1493
|
amount: number;
|
|
1494
|
+
_id: string;
|
|
1421
1495
|
};
|
|
1422
1496
|
'superchat-weekly-top-donation': {
|
|
1423
1497
|
name: string;
|
|
@@ -1466,9 +1540,15 @@ declare namespace StreamElements {
|
|
|
1466
1540
|
amount: number;
|
|
1467
1541
|
};
|
|
1468
1542
|
'superchat-recent': {
|
|
1469
|
-
name: string;
|
|
1470
1543
|
amount: number;
|
|
1471
|
-
|
|
1544
|
+
avatar: string;
|
|
1545
|
+
displayName: string;
|
|
1546
|
+
providerId: string;
|
|
1547
|
+
name: string;
|
|
1548
|
+
_id: string;
|
|
1549
|
+
sessionTop: boolean;
|
|
1550
|
+
type: 'superchat';
|
|
1551
|
+
originalEventName: 'superchat-recent';
|
|
1472
1552
|
}[];
|
|
1473
1553
|
}
|
|
1474
1554
|
interface Hypetrain {
|
package/package.json
CHANGED