@tixyel/streamelements 4.3.2 → 4.5.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 CHANGED
@@ -1124,7 +1124,7 @@ declare namespace StreamElements {
1124
1124
  type onEventReceived = Provider.Twitch.Events | Provider.YouTube.Events | Provider.StreamElements.Events;
1125
1125
  }
1126
1126
  namespace Session {
1127
- 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;
1128
1128
  namespace Config {
1129
1129
  type Int = {
1130
1130
  type: 'int';
@@ -1154,6 +1154,71 @@ declare namespace StreamElements {
1154
1154
  type Data = Record<string, Category | undefined>;
1155
1155
  }
1156
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
+ };
1157
1222
  type Follower = {
1158
1223
  'follower-latest': {
1159
1224
  name: string;
@@ -1413,12 +1478,20 @@ declare namespace StreamElements {
1413
1478
  }
1414
1479
  interface Superchat {
1415
1480
  'superchat-latest': {
1416
- name: string;
1417
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';
1418
1490
  };
1419
1491
  'superchat-session-top-donation': {
1420
1492
  name: string;
1421
1493
  amount: number;
1494
+ _id: string;
1422
1495
  };
1423
1496
  'superchat-weekly-top-donation': {
1424
1497
  name: string;
@@ -1467,9 +1540,15 @@ declare namespace StreamElements {
1467
1540
  amount: number;
1468
1541
  };
1469
1542
  'superchat-recent': {
1470
- name: string;
1471
1543
  amount: number;
1472
- createdAt: string;
1544
+ avatar: string;
1545
+ displayName: string;
1546
+ providerId: string;
1547
+ name: string;
1548
+ _id: string;
1549
+ sessionTop: boolean;
1550
+ type: 'superchat';
1551
+ originalEventName: 'superchat-latest';
1473
1552
  }[];
1474
1553
  }
1475
1554
  interface Hypetrain {
@@ -2061,7 +2140,7 @@ declare namespace Simulation {
2061
2140
  session: {
2062
2141
  types: Record<string, StreamElements.Session.Config.Any>;
2063
2142
  available(): StreamElements.Session.Config.Available.Data;
2064
- get(): Promise<StreamElements.Session.Data>;
2143
+ get(startSession?: StreamElements.Session.Data): Promise<StreamElements.Session.Data>;
2065
2144
  };
2066
2145
  event: {
2067
2146
  /**
@@ -2205,7 +2284,7 @@ declare namespace Simulation {
2205
2284
  */
2206
2285
  export function typedEntries<K extends string, V>(obj: Record<K, V>): [K, V][];
2207
2286
  export function probability<K extends string, V extends number>(items: Record<K, V>): K | undefined;
2208
- export function start(fieldsFile?: string[], dataFiles?: string[]): Promise<void>;
2287
+ export function start(fieldsFile?: string[], dataFiles?: string[], session?: StreamElements.Session.Data): Promise<void>;
2209
2288
  export {};
2210
2289
  }
2211
2290