@fnlb-project/fnbr 4.0.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.
Files changed (363) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -0
  3. package/dist/enums/Enums.d.ts +251 -0
  4. package/dist/enums/Enums.js +202 -0
  5. package/dist/enums/Enums.js.map +1 -0
  6. package/dist/index.d.ts +92 -0
  7. package/dist/index.js +194 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/resources/AuthClients.d.ts +39 -0
  10. package/dist/resources/AuthClients.js +41 -0
  11. package/dist/resources/AuthClients.js.map +1 -0
  12. package/dist/resources/BaseItemRating.json +5203 -0
  13. package/dist/resources/Endpoints.d.ts +58 -0
  14. package/dist/resources/Endpoints.js +71 -0
  15. package/dist/resources/Endpoints.js.map +1 -0
  16. package/dist/resources/HomebaseRatingMapping.json +255 -0
  17. package/dist/resources/PowerLevelCurves.d.ts +111 -0
  18. package/dist/resources/PowerLevelCurves.js +21 -0
  19. package/dist/resources/PowerLevelCurves.js.map +1 -0
  20. package/dist/resources/SurvivorItemRating.json +9343 -0
  21. package/dist/resources/constants.d.ts +2 -0
  22. package/dist/resources/constants.js +11 -0
  23. package/dist/resources/constants.js.map +1 -0
  24. package/dist/resources/defaultPartyMemberMeta.json +28 -0
  25. package/dist/resources/defaultPartyMeta.json +38 -0
  26. package/dist/resources/enums.d.ts +12 -0
  27. package/dist/resources/enums.js +18 -0
  28. package/dist/resources/enums.js.map +1 -0
  29. package/dist/resources/httpResponses.d.ts +773 -0
  30. package/dist/resources/httpResponses.js +3 -0
  31. package/dist/resources/httpResponses.js.map +1 -0
  32. package/dist/resources/structs.d.ts +1310 -0
  33. package/dist/resources/structs.js +3 -0
  34. package/dist/resources/structs.js.map +1 -0
  35. package/dist/src/Base.d.ts +15 -0
  36. package/dist/src/Base.js +15 -0
  37. package/dist/src/Base.js.map +1 -0
  38. package/dist/src/Client.d.ts +341 -0
  39. package/dist/src/Client.js +1043 -0
  40. package/dist/src/Client.js.map +1 -0
  41. package/dist/src/auth/Auth.d.ts +66 -0
  42. package/dist/src/auth/Auth.js +249 -0
  43. package/dist/src/auth/Auth.js.map +1 -0
  44. package/dist/src/auth/AuthSession.d.ts +41 -0
  45. package/dist/src/auth/AuthSession.js +25 -0
  46. package/dist/src/auth/AuthSession.js.map +1 -0
  47. package/dist/src/auth/EOSAuthSession.d.ts +19 -0
  48. package/dist/src/auth/EOSAuthSession.js +80 -0
  49. package/dist/src/auth/EOSAuthSession.js.map +1 -0
  50. package/dist/src/auth/FortniteAuthSession.d.ts +53 -0
  51. package/dist/src/auth/FortniteAuthSession.js +107 -0
  52. package/dist/src/auth/FortniteAuthSession.js.map +1 -0
  53. package/dist/src/auth/FortniteClientCredentialsAuthSession.d.ts +18 -0
  54. package/dist/src/auth/FortniteClientCredentialsAuthSession.js +88 -0
  55. package/dist/src/auth/FortniteClientCredentialsAuthSession.js.map +1 -0
  56. package/dist/src/auth/LauncherAuthSession.d.ts +23 -0
  57. package/dist/src/auth/LauncherAuthSession.js +120 -0
  58. package/dist/src/auth/LauncherAuthSession.js.map +1 -0
  59. package/dist/src/exceptions/AuthenticationMissingError.d.ts +15 -0
  60. package/dist/src/exceptions/AuthenticationMissingError.js +18 -0
  61. package/dist/src/exceptions/AuthenticationMissingError.js.map +1 -0
  62. package/dist/src/exceptions/CreativeIslandNotFoundError.d.ts +14 -0
  63. package/dist/src/exceptions/CreativeIslandNotFoundError.js +18 -0
  64. package/dist/src/exceptions/CreativeIslandNotFoundError.js.map +1 -0
  65. package/dist/src/exceptions/CreatorCodeNotFoundError.d.ts +14 -0
  66. package/dist/src/exceptions/CreatorCodeNotFoundError.js +18 -0
  67. package/dist/src/exceptions/CreatorCodeNotFoundError.js.map +1 -0
  68. package/dist/src/exceptions/DuplicateFriendshipError.d.ts +14 -0
  69. package/dist/src/exceptions/DuplicateFriendshipError.js +18 -0
  70. package/dist/src/exceptions/DuplicateFriendshipError.js.map +1 -0
  71. package/dist/src/exceptions/EpicgamesAPIError.d.ts +42 -0
  72. package/dist/src/exceptions/EpicgamesAPIError.js +27 -0
  73. package/dist/src/exceptions/EpicgamesAPIError.js.map +1 -0
  74. package/dist/src/exceptions/EventTimeoutError.d.ts +19 -0
  75. package/dist/src/exceptions/EventTimeoutError.js +20 -0
  76. package/dist/src/exceptions/EventTimeoutError.js.map +1 -0
  77. package/dist/src/exceptions/FriendNotFoundError.d.ts +14 -0
  78. package/dist/src/exceptions/FriendNotFoundError.js +18 -0
  79. package/dist/src/exceptions/FriendNotFoundError.js.map +1 -0
  80. package/dist/src/exceptions/FriendshipRequestAlreadySentError.d.ts +14 -0
  81. package/dist/src/exceptions/FriendshipRequestAlreadySentError.js +18 -0
  82. package/dist/src/exceptions/FriendshipRequestAlreadySentError.js.map +1 -0
  83. package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.d.ts +14 -0
  84. package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js +18 -0
  85. package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js.map +1 -0
  86. package/dist/src/exceptions/InviteeFriendshipSettingsError.d.ts +14 -0
  87. package/dist/src/exceptions/InviteeFriendshipSettingsError.js +18 -0
  88. package/dist/src/exceptions/InviteeFriendshipSettingsError.js.map +1 -0
  89. package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.d.ts +14 -0
  90. package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js +18 -0
  91. package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js.map +1 -0
  92. package/dist/src/exceptions/InviterFriendshipsLimitExceededError.d.ts +14 -0
  93. package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js +18 -0
  94. package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js.map +1 -0
  95. package/dist/src/exceptions/MatchNotFoundError.d.ts +14 -0
  96. package/dist/src/exceptions/MatchNotFoundError.js +18 -0
  97. package/dist/src/exceptions/MatchNotFoundError.js.map +1 -0
  98. package/dist/src/exceptions/OfferNotFoundError.d.ts +14 -0
  99. package/dist/src/exceptions/OfferNotFoundError.js +18 -0
  100. package/dist/src/exceptions/OfferNotFoundError.js.map +1 -0
  101. package/dist/src/exceptions/PartyAlreadyJoinedError.d.ts +7 -0
  102. package/dist/src/exceptions/PartyAlreadyJoinedError.js +14 -0
  103. package/dist/src/exceptions/PartyAlreadyJoinedError.js.map +1 -0
  104. package/dist/src/exceptions/PartyInvitationExpiredError.d.ts +7 -0
  105. package/dist/src/exceptions/PartyInvitationExpiredError.js +14 -0
  106. package/dist/src/exceptions/PartyInvitationExpiredError.js.map +1 -0
  107. package/dist/src/exceptions/PartyMaxSizeReachedError.d.ts +7 -0
  108. package/dist/src/exceptions/PartyMaxSizeReachedError.js +14 -0
  109. package/dist/src/exceptions/PartyMaxSizeReachedError.js.map +1 -0
  110. package/dist/src/exceptions/PartyMemberNotFoundError.d.ts +14 -0
  111. package/dist/src/exceptions/PartyMemberNotFoundError.js +18 -0
  112. package/dist/src/exceptions/PartyMemberNotFoundError.js.map +1 -0
  113. package/dist/src/exceptions/PartyNotFoundError.d.ts +7 -0
  114. package/dist/src/exceptions/PartyNotFoundError.js +14 -0
  115. package/dist/src/exceptions/PartyNotFoundError.js.map +1 -0
  116. package/dist/src/exceptions/PartyPermissionError.d.ts +7 -0
  117. package/dist/src/exceptions/PartyPermissionError.js +14 -0
  118. package/dist/src/exceptions/PartyPermissionError.js.map +1 -0
  119. package/dist/src/exceptions/SendMessageError.d.ts +27 -0
  120. package/dist/src/exceptions/SendMessageError.js +21 -0
  121. package/dist/src/exceptions/SendMessageError.js.map +1 -0
  122. package/dist/src/exceptions/StatsPrivacyError.d.ts +14 -0
  123. package/dist/src/exceptions/StatsPrivacyError.js +18 -0
  124. package/dist/src/exceptions/StatsPrivacyError.js.map +1 -0
  125. package/dist/src/exceptions/StompConnectionError.d.ts +14 -0
  126. package/dist/src/exceptions/StompConnectionError.js +18 -0
  127. package/dist/src/exceptions/StompConnectionError.js.map +1 -0
  128. package/dist/src/exceptions/UserNotFoundError.d.ts +14 -0
  129. package/dist/src/exceptions/UserNotFoundError.js +18 -0
  130. package/dist/src/exceptions/UserNotFoundError.js.map +1 -0
  131. package/dist/src/exceptions/XMPPConnectionError.d.ts +19 -0
  132. package/dist/src/exceptions/XMPPConnectionError.js +19 -0
  133. package/dist/src/exceptions/XMPPConnectionError.js.map +1 -0
  134. package/dist/src/exceptions/XMPPConnectionTimeoutError.d.ts +14 -0
  135. package/dist/src/exceptions/XMPPConnectionTimeoutError.js +18 -0
  136. package/dist/src/exceptions/XMPPConnectionTimeoutError.js.map +1 -0
  137. package/dist/src/http/HTTP.d.ts +40 -0
  138. package/dist/src/http/HTTP.js +124 -0
  139. package/dist/src/http/HTTP.js.map +1 -0
  140. package/dist/src/managers/ChatManager.d.ts +27 -0
  141. package/dist/src/managers/ChatManager.js +71 -0
  142. package/dist/src/managers/ChatManager.js.map +1 -0
  143. package/dist/src/managers/FriendManager.d.ts +66 -0
  144. package/dist/src/managers/FriendManager.js +175 -0
  145. package/dist/src/managers/FriendManager.js.map +1 -0
  146. package/dist/src/managers/STWManager.d.ts +29 -0
  147. package/dist/src/managers/STWManager.js +80 -0
  148. package/dist/src/managers/STWManager.js.map +1 -0
  149. package/dist/src/managers/TournamentManager.d.ts +51 -0
  150. package/dist/src/managers/TournamentManager.js +182 -0
  151. package/dist/src/managers/TournamentManager.js.map +1 -0
  152. package/dist/src/managers/UserManager.d.ts +78 -0
  153. package/dist/src/managers/UserManager.js +216 -0
  154. package/dist/src/managers/UserManager.js.map +1 -0
  155. package/dist/src/stomp/EOSConnect.d.ts +43 -0
  156. package/dist/src/stomp/EOSConnect.js +175 -0
  157. package/dist/src/stomp/EOSConnect.js.map +1 -0
  158. package/dist/src/structures/Avatar.d.ts +27 -0
  159. package/dist/src/structures/Avatar.js +22 -0
  160. package/dist/src/structures/Avatar.js.map +1 -0
  161. package/dist/src/structures/BaseMessage.d.ts +34 -0
  162. package/dist/src/structures/BaseMessage.js +22 -0
  163. package/dist/src/structures/BaseMessage.js.map +1 -0
  164. package/dist/src/structures/CreatorCode.d.ts +31 -0
  165. package/dist/src/structures/CreatorCode.js +22 -0
  166. package/dist/src/structures/CreatorCode.js.map +1 -0
  167. package/dist/src/structures/EpicgamesServerStatus.d.ts +52 -0
  168. package/dist/src/structures/EpicgamesServerStatus.js +31 -0
  169. package/dist/src/structures/EpicgamesServerStatus.js.map +1 -0
  170. package/dist/src/structures/EpicgamesServerStatusComponent.d.ts +67 -0
  171. package/dist/src/structures/EpicgamesServerStatusComponent.js +37 -0
  172. package/dist/src/structures/EpicgamesServerStatusComponent.js.map +1 -0
  173. package/dist/src/structures/EpicgamesServerStatusIncident.d.ts +58 -0
  174. package/dist/src/structures/EpicgamesServerStatusIncident.js +36 -0
  175. package/dist/src/structures/EpicgamesServerStatusIncident.js.map +1 -0
  176. package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.d.ts +21 -0
  177. package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js +20 -0
  178. package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js.map +1 -0
  179. package/dist/src/structures/EventTokens.d.ts +32 -0
  180. package/dist/src/structures/EventTokens.js +45 -0
  181. package/dist/src/structures/EventTokens.js.map +1 -0
  182. package/dist/src/structures/FortniteServerStatus.d.ts +46 -0
  183. package/dist/src/structures/FortniteServerStatus.js +26 -0
  184. package/dist/src/structures/FortniteServerStatus.js.map +1 -0
  185. package/dist/src/structures/GlobalProfile.d.ts +36 -0
  186. package/dist/src/structures/GlobalProfile.js +25 -0
  187. package/dist/src/structures/GlobalProfile.js.map +1 -0
  188. package/dist/src/structures/Image.d.ts +36 -0
  189. package/dist/src/structures/Image.js +38 -0
  190. package/dist/src/structures/Image.js.map +1 -0
  191. package/dist/src/structures/NewsMessage.d.ts +56 -0
  192. package/dist/src/structures/NewsMessage.js +45 -0
  193. package/dist/src/structures/NewsMessage.js.map +1 -0
  194. package/dist/src/structures/NewsMessageVideo.d.ts +47 -0
  195. package/dist/src/structures/NewsMessageVideo.js +32 -0
  196. package/dist/src/structures/NewsMessageVideo.js.map +1 -0
  197. package/dist/src/structures/RadioStation.d.ts +31 -0
  198. package/dist/src/structures/RadioStation.js +33 -0
  199. package/dist/src/structures/RadioStation.js.map +1 -0
  200. package/dist/src/structures/Stats.d.ts +45 -0
  201. package/dist/src/structures/Stats.js +109 -0
  202. package/dist/src/structures/Stats.js.map +1 -0
  203. package/dist/src/structures/Tournament.d.ts +86 -0
  204. package/dist/src/structures/Tournament.js +64 -0
  205. package/dist/src/structures/Tournament.js.map +1 -0
  206. package/dist/src/structures/TournamentWindow.d.ts +124 -0
  207. package/dist/src/structures/TournamentWindow.js +52 -0
  208. package/dist/src/structures/TournamentWindow.js.map +1 -0
  209. package/dist/src/structures/friend/BaseFriendMessage.d.ts +32 -0
  210. package/dist/src/structures/friend/BaseFriendMessage.js +28 -0
  211. package/dist/src/structures/friend/BaseFriendMessage.js.map +1 -0
  212. package/dist/src/structures/friend/BasePendingFriend.d.ts +22 -0
  213. package/dist/src/structures/friend/BasePendingFriend.js +22 -0
  214. package/dist/src/structures/friend/BasePendingFriend.js.map +1 -0
  215. package/dist/src/structures/friend/Friend.d.ts +106 -0
  216. package/dist/src/structures/friend/Friend.js +97 -0
  217. package/dist/src/structures/friend/Friend.js.map +1 -0
  218. package/dist/src/structures/friend/FriendPresence.d.ts +84 -0
  219. package/dist/src/structures/friend/FriendPresence.js +48 -0
  220. package/dist/src/structures/friend/FriendPresence.js.map +1 -0
  221. package/dist/src/structures/friend/IncomingPendingFriend.d.ts +27 -0
  222. package/dist/src/structures/friend/IncomingPendingFriend.js +36 -0
  223. package/dist/src/structures/friend/IncomingPendingFriend.js.map +1 -0
  224. package/dist/src/structures/friend/OutgoingPendingFriend.d.ts +17 -0
  225. package/dist/src/structures/friend/OutgoingPendingFriend.js +24 -0
  226. package/dist/src/structures/friend/OutgoingPendingFriend.js.map +1 -0
  227. package/dist/src/structures/friend/ReceivedFriendMessage.d.ts +27 -0
  228. package/dist/src/structures/friend/ReceivedFriendMessage.js +27 -0
  229. package/dist/src/structures/friend/ReceivedFriendMessage.js.map +1 -0
  230. package/dist/src/structures/friend/SentFriendMessage.d.ts +21 -0
  231. package/dist/src/structures/friend/SentFriendMessage.js +19 -0
  232. package/dist/src/structures/friend/SentFriendMessage.js.map +1 -0
  233. package/dist/src/structures/party/BasePartyInvitation.d.ts +48 -0
  234. package/dist/src/structures/party/BasePartyInvitation.js +33 -0
  235. package/dist/src/structures/party/BasePartyInvitation.js.map +1 -0
  236. package/dist/src/structures/party/BasePartyJoinRequest.d.ts +37 -0
  237. package/dist/src/structures/party/BasePartyJoinRequest.js +30 -0
  238. package/dist/src/structures/party/BasePartyJoinRequest.js.map +1 -0
  239. package/dist/src/structures/party/ClientParty.d.ts +162 -0
  240. package/dist/src/structures/party/ClientParty.js +412 -0
  241. package/dist/src/structures/party/ClientParty.js.map +1 -0
  242. package/dist/src/structures/party/ClientPartyMember.d.ts +144 -0
  243. package/dist/src/structures/party/ClientPartyMember.js +463 -0
  244. package/dist/src/structures/party/ClientPartyMember.js.map +1 -0
  245. package/dist/src/structures/party/ClientPartyMemberMeta.d.ts +18 -0
  246. package/dist/src/structures/party/ClientPartyMemberMeta.js +54 -0
  247. package/dist/src/structures/party/ClientPartyMemberMeta.js.map +1 -0
  248. package/dist/src/structures/party/ClientPartyMeta.d.ts +23 -0
  249. package/dist/src/structures/party/ClientPartyMeta.js +59 -0
  250. package/dist/src/structures/party/ClientPartyMeta.js.map +1 -0
  251. package/dist/src/structures/party/Party.d.ts +95 -0
  252. package/dist/src/structures/party/Party.js +200 -0
  253. package/dist/src/structures/party/Party.js.map +1 -0
  254. package/dist/src/structures/party/PartyChat.d.ts +73 -0
  255. package/dist/src/structures/party/PartyChat.js +76 -0
  256. package/dist/src/structures/party/PartyChat.js.map +1 -0
  257. package/dist/src/structures/party/PartyMember.d.ts +139 -0
  258. package/dist/src/structures/party/PartyMember.js +201 -0
  259. package/dist/src/structures/party/PartyMember.js.map +1 -0
  260. package/dist/src/structures/party/PartyMemberConfirmation.d.ts +43 -0
  261. package/dist/src/structures/party/PartyMemberConfirmation.js +53 -0
  262. package/dist/src/structures/party/PartyMemberConfirmation.js.map +1 -0
  263. package/dist/src/structures/party/PartyMemberMeta.d.ts +76 -0
  264. package/dist/src/structures/party/PartyMemberMeta.js +145 -0
  265. package/dist/src/structures/party/PartyMemberMeta.js.map +1 -0
  266. package/dist/src/structures/party/PartyMessage.d.ts +30 -0
  267. package/dist/src/structures/party/PartyMessage.js +28 -0
  268. package/dist/src/structures/party/PartyMessage.js.map +1 -0
  269. package/dist/src/structures/party/PartyMeta.d.ts +24 -0
  270. package/dist/src/structures/party/PartyMeta.js +43 -0
  271. package/dist/src/structures/party/PartyMeta.js.map +1 -0
  272. package/dist/src/structures/party/PresenceParty.d.ts +66 -0
  273. package/dist/src/structures/party/PresenceParty.js +49 -0
  274. package/dist/src/structures/party/PresenceParty.js.map +1 -0
  275. package/dist/src/structures/party/ReceivedPartyInvitation.d.ts +33 -0
  276. package/dist/src/structures/party/ReceivedPartyInvitation.js +54 -0
  277. package/dist/src/structures/party/ReceivedPartyInvitation.js.map +1 -0
  278. package/dist/src/structures/party/ReceivedPartyJoinRequest.d.ts +26 -0
  279. package/dist/src/structures/party/ReceivedPartyJoinRequest.js +31 -0
  280. package/dist/src/structures/party/ReceivedPartyJoinRequest.js.map +1 -0
  281. package/dist/src/structures/party/SentPartyInvitation.d.ts +27 -0
  282. package/dist/src/structures/party/SentPartyInvitation.js +39 -0
  283. package/dist/src/structures/party/SentPartyInvitation.js.map +1 -0
  284. package/dist/src/structures/party/SentPartyJoinRequest.d.ts +19 -0
  285. package/dist/src/structures/party/SentPartyJoinRequest.js +22 -0
  286. package/dist/src/structures/party/SentPartyJoinRequest.js.map +1 -0
  287. package/dist/src/structures/stw/STWHero.d.ts +61 -0
  288. package/dist/src/structures/stw/STWHero.js +38 -0
  289. package/dist/src/structures/stw/STWHero.js.map +1 -0
  290. package/dist/src/structures/stw/STWHeroLoadout.d.ts +44 -0
  291. package/dist/src/structures/stw/STWHeroLoadout.js +34 -0
  292. package/dist/src/structures/stw/STWHeroLoadout.js.map +1 -0
  293. package/dist/src/structures/stw/STWItem.d.ts +31 -0
  294. package/dist/src/structures/stw/STWItem.js +23 -0
  295. package/dist/src/structures/stw/STWItem.js.map +1 -0
  296. package/dist/src/structures/stw/STWLocker.d.ts +32 -0
  297. package/dist/src/structures/stw/STWLocker.js +26 -0
  298. package/dist/src/structures/stw/STWLocker.js.map +1 -0
  299. package/dist/src/structures/stw/STWMeleeWeaponSchematic.d.ts +14 -0
  300. package/dist/src/structures/stw/STWMeleeWeaponSchematic.js +15 -0
  301. package/dist/src/structures/stw/STWMeleeWeaponSchematic.js.map +1 -0
  302. package/dist/src/structures/stw/STWNewsMessage.d.ts +42 -0
  303. package/dist/src/structures/stw/STWNewsMessage.js +27 -0
  304. package/dist/src/structures/stw/STWNewsMessage.js.map +1 -0
  305. package/dist/src/structures/stw/STWProfile.d.ts +132 -0
  306. package/dist/src/structures/stw/STWProfile.js +283 -0
  307. package/dist/src/structures/stw/STWProfile.js.map +1 -0
  308. package/dist/src/structures/stw/STWRangedWeaponSchematic.d.ts +14 -0
  309. package/dist/src/structures/stw/STWRangedWeaponSchematic.js +15 -0
  310. package/dist/src/structures/stw/STWRangedWeaponSchematic.js.map +1 -0
  311. package/dist/src/structures/stw/STWResource.d.ts +27 -0
  312. package/dist/src/structures/stw/STWResource.js +22 -0
  313. package/dist/src/structures/stw/STWResource.js.map +1 -0
  314. package/dist/src/structures/stw/STWSchematic.d.ts +72 -0
  315. package/dist/src/structures/stw/STWSchematic.js +40 -0
  316. package/dist/src/structures/stw/STWSchematic.js.map +1 -0
  317. package/dist/src/structures/stw/STWStats.d.ts +103 -0
  318. package/dist/src/structures/stw/STWStats.js +85 -0
  319. package/dist/src/structures/stw/STWStats.js.map +1 -0
  320. package/dist/src/structures/stw/STWSurvivor.d.ts +104 -0
  321. package/dist/src/structures/stw/STWSurvivor.js +76 -0
  322. package/dist/src/structures/stw/STWSurvivor.js.map +1 -0
  323. package/dist/src/structures/stw/STWTeamPerk.d.ts +19 -0
  324. package/dist/src/structures/stw/STWTeamPerk.js +20 -0
  325. package/dist/src/structures/stw/STWTeamPerk.js.map +1 -0
  326. package/dist/src/structures/stw/STWTrapSchematic.d.ts +15 -0
  327. package/dist/src/structures/stw/STWTrapSchematic.js +16 -0
  328. package/dist/src/structures/stw/STWTrapSchematic.js.map +1 -0
  329. package/dist/src/structures/stw/STWWeaponSchematic.d.ts +15 -0
  330. package/dist/src/structures/stw/STWWeaponSchematic.js +16 -0
  331. package/dist/src/structures/stw/STWWeaponSchematic.js.map +1 -0
  332. package/dist/src/structures/user/BlockedUser.d.ts +13 -0
  333. package/dist/src/structures/user/BlockedUser.js +19 -0
  334. package/dist/src/structures/user/BlockedUser.js.map +1 -0
  335. package/dist/src/structures/user/ClientUser.d.ts +78 -0
  336. package/dist/src/structures/user/ClientUser.js +34 -0
  337. package/dist/src/structures/user/ClientUser.js.map +1 -0
  338. package/dist/src/structures/user/User.d.ts +98 -0
  339. package/dist/src/structures/user/User.js +130 -0
  340. package/dist/src/structures/user/User.js.map +1 -0
  341. package/dist/src/structures/user/UserSearchResult.d.ts +31 -0
  342. package/dist/src/structures/user/UserSearchResult.js +23 -0
  343. package/dist/src/structures/user/UserSearchResult.js.map +1 -0
  344. package/dist/src/util/AsyncLock.d.ts +28 -0
  345. package/dist/src/util/AsyncLock.js +44 -0
  346. package/dist/src/util/AsyncLock.js.map +1 -0
  347. package/dist/src/util/BinaryWriter.d.ts +79 -0
  348. package/dist/src/util/BinaryWriter.js +136 -0
  349. package/dist/src/util/BinaryWriter.js.map +1 -0
  350. package/dist/src/util/CurveTable.d.ts +24 -0
  351. package/dist/src/util/CurveTable.js +37 -0
  352. package/dist/src/util/CurveTable.js.map +1 -0
  353. package/dist/src/util/Meta.d.ts +41 -0
  354. package/dist/src/util/Meta.js +73 -0
  355. package/dist/src/util/Meta.js.map +1 -0
  356. package/dist/src/util/Util.d.ts +162 -0
  357. package/dist/src/util/Util.js +539 -0
  358. package/dist/src/util/Util.js.map +1 -0
  359. package/dist/src/xmpp/XMPP.d.ts +100 -0
  360. package/dist/src/xmpp/XMPP.js +702 -0
  361. package/dist/src/xmpp/XMPP.js.map +1 -0
  362. package/dist/tsconfig.tsbuildinfo +1 -0
  363. package/package.json +66 -0
@@ -0,0 +1,1310 @@
1
+ import type { Collection } from '@discordjs/collection';
2
+ import type { RawAxiosRequestConfig } from 'axios';
3
+ import type { PathLike } from 'fs';
4
+ import type defaultPartyMeta from './defaultPartyMeta.json';
5
+ import type defaultPartyMemberMeta from './defaultPartyMemberMeta.json';
6
+ import type EpicgamesAPIError from '../src/exceptions/EpicgamesAPIError';
7
+ import type BlockedUser from '../src/structures/user/BlockedUser';
8
+ import type ClientParty from '../src/structures/party/ClientParty';
9
+ import type ClientPartyMember from '../src/structures/party/ClientPartyMember';
10
+ import type ClientUser from '../src/structures/user/ClientUser';
11
+ import type Friend from '../src/structures/friend/Friend';
12
+ import type FriendPresence from '../src/structures/friend/FriendPresence';
13
+ import type IncomingPendingFriend from '../src/structures/friend/IncomingPendingFriend';
14
+ import type OutgoingPendingFriend from '../src/structures/friend/OutgoingPendingFriend';
15
+ import type ReceivedPartyJoinRequest from '../src/structures/party/ReceivedPartyJoinRequest';
16
+ import type PartyMember from '../src/structures/party/PartyMember';
17
+ import type PartyMemberConfirmation from '../src/structures/party/PartyMemberConfirmation';
18
+ import type PartyMessage from '../src/structures/party/PartyMessage';
19
+ import type ReceivedPartyInvitation from '../src/structures/party/ReceivedPartyInvitation';
20
+ import type User from '../src/structures/user/User';
21
+ import type { EpicgamesOAuthData, STWMissionAlertData, STWMissionData, STWProfileLockerSlotData, STWTheaterData, TournamentWindowTemplateData } from './httpResponses';
22
+ import type ReceivedFriendMessage from '../src/structures/friend/ReceivedFriendMessage';
23
+ import type STWSurvivor from '../src/structures/stw/STWSurvivor';
24
+ import type { AuthSessionStoreKey } from './enums';
25
+ import type FortniteAuthSession from '../src/auth/FortniteAuthSession';
26
+ import type LauncherAuthSession from '../src/auth/LauncherAuthSession';
27
+ import type FortniteClientCredentialsAuthSession from '../src/auth/FortniteClientCredentialsAuthSession';
28
+ import type EOSAuthSession from '../src/auth/EOSAuthSession';
29
+ export type PartyMemberSchema = Partial<typeof defaultPartyMemberMeta>;
30
+ export type PartySchema = Partial<typeof defaultPartyMeta> & {
31
+ 'urn:epic:cfg:presence-perm_s'?: string;
32
+ 'urn:epic:cfg:accepting-members_b'?: string;
33
+ 'urn:epic:cfg:invite-perm_s'?: string;
34
+ 'urn:epic:cfg:not-accepting-members'?: string;
35
+ 'urn:epic:cfg:not-accepting-members-reason_i'?: string;
36
+ };
37
+ export type Schema = Record<string, string | undefined>;
38
+ export type Language = 'de' | 'ru' | 'ko' | 'zh-hant' | 'pt-br' | 'en' | 'it' | 'fr' | 'zh-cn' | 'es' | 'ar' | 'ja' | 'pl' | 'es-419' | 'tr';
39
+ export type StringFunction = () => string;
40
+ export type StringFunctionAsync = () => Promise<string>;
41
+ export interface DeviceAuth {
42
+ /**
43
+ * The device auth's account ID
44
+ */
45
+ accountId: string;
46
+ /**
47
+ * The device auth's device ID (that does not mean it can only be used on a single device)
48
+ */
49
+ deviceId: string;
50
+ /**
51
+ * The device auth's secret
52
+ */
53
+ secret: string;
54
+ }
55
+ export interface DeviceAuthWithSnakeCaseSupport extends DeviceAuth {
56
+ /**
57
+ * The device auth's account ID
58
+ */
59
+ account_id?: string;
60
+ /**
61
+ * The device auth's device ID (that does not mean it can only be used on a single device)
62
+ */
63
+ device_id?: string;
64
+ }
65
+ export type DeviceAuthFunction = () => DeviceAuth;
66
+ export type DeviceAuthFunctionAsync = () => Promise<DeviceAuth>;
67
+ export type DeviceAuthResolveable = DeviceAuth | PathLike | DeviceAuthFunction | DeviceAuthFunctionAsync;
68
+ export type AuthStringResolveable = string | PathLike | StringFunction | StringFunctionAsync;
69
+ export type Platform = 'WIN' | 'MAC' | 'PSN' | 'XBL' | 'SWT' | 'IOS' | 'AND' | 'PS5' | 'XSX';
70
+ export type AuthClient = 'fortnitePCGameClient' | 'fortniteIOSGameClient' | 'fortniteAndroidGameClient' | 'fortniteSwitchGameClient' | 'fortniteCNGameClient' | 'launcherAppClient2' | 'Diesel - Dauntless';
71
+ export interface RefreshTokenData {
72
+ /**
73
+ * The refresh token
74
+ */
75
+ token: string;
76
+ /**
77
+ * The refresh token's expiration time in seconds
78
+ */
79
+ expiresIn: number;
80
+ /**
81
+ * The refresh token's expiration date
82
+ */
83
+ expiresAt: string;
84
+ /**
85
+ * The ID of the account the refresh token belongs to
86
+ */
87
+ accountId: string;
88
+ /**
89
+ * The display name of the account the refresh token belongs to
90
+ */
91
+ displayName: string;
92
+ /**
93
+ * The refresh token's client ID (will always be the ID of launcherAppClient2)
94
+ */
95
+ clientId: string;
96
+ }
97
+ export interface CacheSetting {
98
+ /**
99
+ * How long the data should stay in the cache until it is considered sweepable (in seconds, 0 for no cache, Infinity for infinite)
100
+ */
101
+ maxLifetime: number;
102
+ /**
103
+ * How frequently to remove cached data that is older than the lifetime (in seconds, 0 for never)
104
+ */
105
+ sweepInterval: number;
106
+ }
107
+ export interface CacheSettings {
108
+ /**
109
+ * The presence cache settings
110
+ */
111
+ presences?: CacheSetting;
112
+ /**
113
+ * The user cache settings
114
+ */
115
+ users?: CacheSetting;
116
+ }
117
+ export interface AuthOptions {
118
+ /**
119
+ * A device auth object, a function that returns a device auth object or a path to a file containing a device auth object
120
+ */
121
+ deviceAuth?: DeviceAuthResolveable;
122
+ /**
123
+ * An exchange code, a function that returns an exchange code or a path to a file containing an exchange code
124
+ */
125
+ exchangeCode?: AuthStringResolveable;
126
+ /**
127
+ * An authorization code, a function that returns an authorization code or a path to a file containing an authorization code
128
+ */
129
+ authorizationCode?: AuthStringResolveable;
130
+ /**
131
+ * A refresh token, a function that returns a refresh token or a path to a file containing a refresh token
132
+ */
133
+ refreshToken?: AuthStringResolveable;
134
+ /**
135
+ * A launcher refresh token, a function that returns a launcher refresh token or a path to a file containing a launcher refresh token
136
+ */
137
+ launcherRefreshToken?: AuthStringResolveable;
138
+ /**
139
+ * Whether the client should check whether the EULA has been accepted.
140
+ * Do not modify this unless you know what you're doing
141
+ */
142
+ checkEULA?: boolean;
143
+ /**
144
+ * Whether the client should kill other active Fortnite auth sessions on startup
145
+ */
146
+ killOtherTokens?: boolean;
147
+ /**
148
+ * Whether the client should create a launcher auth session and keep it alive.
149
+ * The launcher auth session can be accessed via `client.auth.auths.get('launcher')`
150
+ */
151
+ createLauncherSession?: boolean;
152
+ /**
153
+ * The Fortnite auth client (eg. 'fortnitePCGameClient' or 'fortniteAndroidGameClient')
154
+ */
155
+ authClient?: AuthClient;
156
+ }
157
+ export interface PartyPrivacy {
158
+ partyType: 'Public' | 'FriendsOnly' | 'Private';
159
+ inviteRestriction: 'AnyMember' | 'LeaderOnly';
160
+ onlyLeaderFriendsCanJoin: boolean;
161
+ presencePermission: 'Anyone' | 'Leader' | 'Noone';
162
+ invitePermission: 'Anyone' | 'AnyMember' | 'Leader';
163
+ acceptingMembers: boolean;
164
+ }
165
+ export interface PartyOptions {
166
+ joinConfirmation?: boolean;
167
+ joinability?: 'OPEN' | 'INVITE_AND_FORMER';
168
+ discoverability?: 'ALL' | 'INVITED_ONLY';
169
+ privacy?: PartyPrivacy;
170
+ maxSize?: number;
171
+ intentionTtl?: number;
172
+ inviteTtl?: number;
173
+ chatEnabled?: boolean;
174
+ }
175
+ export interface PartyConfig {
176
+ type: 'DEFAULT';
177
+ joinability: 'OPEN' | 'INVITE_AND_FORMER';
178
+ discoverability: 'ALL' | 'INVITED_ONLY';
179
+ subType: 'default';
180
+ maxSize: number;
181
+ inviteTtl: number;
182
+ intentionTtl: number;
183
+ joinConfirmation: boolean;
184
+ privacy: PartyPrivacy;
185
+ }
186
+ export type PresenceOnlineType = 'online' | 'away' | 'chat' | 'dnd' | 'xa';
187
+ export type StatsPlaylistType = 'other' | 'solo' | 'duo' | 'squad' | 'ltm';
188
+ export interface ClientConfig {
189
+ /**
190
+ * Whether the party member meta (outfit, emote, etc) should be saved so they are kept when joining a new party
191
+ */
192
+ savePartyMemberMeta: boolean;
193
+ /**
194
+ * Additional axios request options
195
+ */
196
+ http: RawAxiosRequestConfig;
197
+ /**
198
+ * Debug function used for general debugging purposes
199
+ */
200
+ debug?: (message: string) => void;
201
+ /**
202
+ * Debug function used for http requests
203
+ */
204
+ httpDebug?: (message: string) => void;
205
+ /**
206
+ * Debug function used for incoming and outgoing xmpp xml payloads
207
+ */
208
+ xmppDebug?: (message: string) => void;
209
+ /**
210
+ * Debug function used for incoming and outgoing stomp eos connect messages
211
+ */
212
+ stompEosConnectDebug?: (message: string) => void;
213
+ /**
214
+ * Default friend presence of the bot (eg. "Playing Battle Royale")
215
+ */
216
+ defaultStatus?: string;
217
+ /**
218
+ * Default online type of the bot (eg "away"). None for online
219
+ */
220
+ defaultOnlineType: PresenceOnlineType;
221
+ /**
222
+ * The client's platform (WIN by default)
223
+ */
224
+ platform: Platform;
225
+ /**
226
+ * The client's default party member meta (can be used to set a custom default skin, etc)
227
+ */
228
+ defaultPartyMemberMeta: Schema;
229
+ /**
230
+ * Custom keep alive interval for the xmpp websocket connection.
231
+ * You should lower this value if the client randomly reconnects
232
+ */
233
+ xmppKeepAliveInterval: number;
234
+ /**
235
+ * The maximum amount of times the client should try to reconnect to XMPP before giving up
236
+ */
237
+ xmppMaxConnectionRetries: number;
238
+ /**
239
+ * Settings that affect the way the client caches certain data
240
+ */
241
+ cacheSettings: CacheSettings;
242
+ /**
243
+ * Client authentication options. By default the client will ask you for an authorization code
244
+ */
245
+ auth: AuthOptions;
246
+ /**
247
+ * Default config used for creating parties
248
+ */
249
+ partyConfig: PartyOptions;
250
+ /**
251
+ * Whether the client should create a party on startup
252
+ */
253
+ createParty: boolean;
254
+ /**
255
+ * Whether a new party should be force created on start (even if the client is already member of a party)
256
+ */
257
+ forceNewParty: boolean;
258
+ /**
259
+ * Whether to completely disable all party related functionality
260
+ */
261
+ disablePartyService: boolean;
262
+ /**
263
+ * Whether the client should connect via XMPP.
264
+ * NOTE: If you disable this, almost all features related to friend caching will no longer work.
265
+ * Do not disable this unless you know what you're doing
266
+ */
267
+ connectToXMPP: boolean;
268
+ /**
269
+ * Whether the client should connect to eos connect stomp
270
+ * NOTE: If you disable this, receiving party or private messages will no longer work.
271
+ * Do not disable this unless you know what you're doing
272
+ */
273
+ connectToStompEOSConnect: boolean;
274
+ /**
275
+ * Whether the client should fetch all friends on startup.
276
+ * NOTE: If you disable this, almost all features related to friend caching will no longer work.
277
+ * Do not disable this unless you know what you're doing
278
+ */
279
+ fetchFriends: boolean;
280
+ /**
281
+ * Timeout (in ms) for how long a friend is considered online after the last presence was received.
282
+ * Note: Usually the client will receive a presence when the friend goes offline, when that does not happen, this timeout will be used
283
+ */
284
+ friendOfflineTimeout: number;
285
+ /**
286
+ * How many times to retry on HTTP 5xx errors
287
+ */
288
+ restRetryLimit: number;
289
+ /**
290
+ * Whether the client should handle rate limits (429 status code responses)
291
+ */
292
+ handleRatelimits: boolean;
293
+ /**
294
+ * The party build id (does not change very often, don't change this unless you know what you're doing)
295
+ */
296
+ partyBuildId: string;
297
+ /**
298
+ * Whether the client should restart if a refresh token is invalid.
299
+ * Refresh tokens can be invalid if you logged in with another client on the same account.
300
+ * By default, this is set to false because two clients attempting to log into one account could result in an endless loop
301
+ */
302
+ restartOnInvalidRefresh: boolean;
303
+ /**
304
+ * The default language for all http requests.
305
+ * Will be overwritten by a method's language parameter
306
+ */
307
+ language: Language;
308
+ /**
309
+ * Amount of time (in ms) to wait after the initial xmpp connection before emitting friend:online events
310
+ */
311
+ friendOnlineConnectionTimeout: number;
312
+ /**
313
+ * A custom parser for resolving the stats playlist type (ie. "solo", "duo", "ltm").
314
+ * Can be useful if you want to use data in the game files to determine the stats playlist type
315
+ */
316
+ statsPlaylistTypeParser?: (playlistId: string) => StatsPlaylistType;
317
+ /**
318
+ * fortnite deployment id (eos)
319
+ */
320
+ eosDeploymentId: string;
321
+ }
322
+ export interface MatchMeta {
323
+ location?: 'PreLobby' | 'InGame' | 'ReturningToFrontEnd';
324
+ hasPreloadedAthena?: boolean;
325
+ isSpectatable?: boolean;
326
+ playerCount?: number;
327
+ matchStartedAt?: Date;
328
+ }
329
+ export interface ClientOptions extends Partial<ClientConfig> {
330
+ }
331
+ export interface ClientEvents {
332
+ /**
333
+ * Emitted when the client is ready
334
+ */
335
+ ready: () => void;
336
+ /**
337
+ * Emitted when the client got shut down
338
+ */
339
+ disconnected: () => void;
340
+ /**
341
+ * Emitted when a device auth got created
342
+ * @param deviceAuth The device auth
343
+ */
344
+ 'deviceauth:created': (deviceAuth: DeviceAuth) => void;
345
+ /**
346
+ * Emitted when a refresh token got created
347
+ * @param refreshTokenData The refresh token data
348
+ */
349
+ 'refreshtoken:created': (refreshTokenData: RefreshTokenData) => void;
350
+ /**
351
+ * Emitted when the client received a friend whisper message
352
+ * @param message The received friend whipser message
353
+ */
354
+ 'friend:message': (message: ReceivedFriendMessage) => void;
355
+ /**
356
+ * Emitted when the client recieved a friend presence
357
+ * @param before The friend's previous presence
358
+ * @param after The friend's current presence
359
+ */
360
+ 'friend:presence': (before: FriendPresence | undefined, after: FriendPresence) => void;
361
+ /**
362
+ * Emitted when a friend becomes online
363
+ * @param friend The friend that became online
364
+ */
365
+ 'friend:online': (friend: Friend) => void;
366
+ /**
367
+ * Emitted when a friend goes offline
368
+ * @param friend The friend that went offline
369
+ */
370
+ 'friend:offline': (friend: Friend) => void;
371
+ /**
372
+ * Emitted when a member in the client's party sent a message in the party chat
373
+ * @param message The received message
374
+ */
375
+ 'party:member:message': (message: PartyMessage) => void;
376
+ /**
377
+ * Emitted when a user got added to the client's friend list
378
+ * @param friend The new friend
379
+ */
380
+ 'friend:added': (friend: Friend) => void;
381
+ /**
382
+ * Emitted when the client recieved a friendship request
383
+ * @param pendingFriend The pending friend
384
+ */
385
+ 'friend:request': (pendingFriend: IncomingPendingFriend) => void;
386
+ /**
387
+ * Emitted when the client sent a friendship request
388
+ * @param pendingFriend The pending friend
389
+ */
390
+ 'friend:request:sent': (pendingFriend: OutgoingPendingFriend) => void;
391
+ /**
392
+ * Emitted when the client aborted an outgoing friendship request or when someone aborted an incoming friendship request
393
+ * @param pendingFriend The previously pending friend
394
+ */
395
+ 'friend:request:aborted': (pendingFriend: IncomingPendingFriend | OutgoingPendingFriend) => void;
396
+ /**
397
+ * Emitted when the client declined an incoming friendship request or when someone declined an outgoing friendship request
398
+ * @param pendingFriend The previously pending friend
399
+ */
400
+ 'friend:request:declined': (pendingFriend: IncomingPendingFriend | OutgoingPendingFriend) => void;
401
+ /**
402
+ * Emitted when a user got removed from the client's friend list
403
+ * @param friend The friend
404
+ */
405
+ 'friend:removed': (friend: Friend) => void;
406
+ /**
407
+ * Emitted when a user got added to the client's block list
408
+ * @param blockedUser The user that got blocked
409
+ */
410
+ 'user:blocked': (blockedUser: BlockedUser) => void;
411
+ /**
412
+ * Emitted when a user got removed from the client's block list
413
+ * @param blockedUser The user that got unblocked
414
+ */
415
+ 'user:unblocked': (blockedUser: BlockedUser) => void;
416
+ /**
417
+ * Emitted when an error occures while processing an incoming xmpp message
418
+ * @param error The error that occurred
419
+ */
420
+ 'xmpp:message:error': (error: Error) => void;
421
+ /**
422
+ * Emitted when an error occures while processing an incoming xmpp presence
423
+ * @param error The error that occurred
424
+ */
425
+ 'xmpp:presence:error': (error: Error) => void;
426
+ /**
427
+ * Emitted when an error occures while processing an incoming xmpp chat message (either a friend or party message)
428
+ * @param error The error that occurred
429
+ */
430
+ 'xmpp:chat:error': (error: Error) => void;
431
+ /**
432
+ * Emitted when the client recieved a party invitation
433
+ * @param invitation The received party invitation
434
+ */
435
+ 'party:invite': (invitation: ReceivedPartyInvitation) => void;
436
+ /**
437
+ * Emitted when a party member joined the client party
438
+ * @param member The member who joined the client's party
439
+ */
440
+ 'party:member:joined': (member: PartyMember | ClientPartyMember) => void;
441
+ /**
442
+ * Emitted when a party member got updated
443
+ * @param member The updated party member
444
+ */
445
+ 'party:member:updated': (member: PartyMember | ClientPartyMember) => void;
446
+ /**
447
+ * Emitted when a party member left the party
448
+ * @param member The party member
449
+ */
450
+ 'party:member:left': (member: PartyMember) => void;
451
+ /**
452
+ * Emitted when a party member expired
453
+ * @param member The party member
454
+ */
455
+ 'party:member:expired': (member: PartyMember) => void;
456
+ /**
457
+ * Emitted when a party member gets kicked
458
+ * @param member The party member
459
+ */
460
+ 'party:member:kicked': (member: PartyMember) => void;
461
+ /**
462
+ * Emitted when a party member disconnected
463
+ * @param member The party member
464
+ */
465
+ 'party:member:disconnected': (member: PartyMember) => void;
466
+ /**
467
+ * Emitted when a party member gets promoted
468
+ * @param member The party member
469
+ */
470
+ 'party:member:promoted': (member: PartyMember | ClientPartyMember) => void;
471
+ /**
472
+ * Emitted when the client's party gets updated
473
+ * @param party The party which got updated
474
+ */
475
+ 'party:updated': (party: ClientParty) => void;
476
+ /**
477
+ * Emitted when a party member requires confirmation
478
+ * @param confirmation The pending party member confirmation
479
+ */
480
+ 'party:member:confirmation': (confirmation: PartyMemberConfirmation) => void;
481
+ /**
482
+ * Emitted when a friend requests to join the bots party
483
+ * @param request The recieved join request
484
+ */
485
+ 'party:joinrequest': (request: ReceivedPartyJoinRequest) => void;
486
+ /**
487
+ * Emitted when a party member updated their outfit
488
+ * @param member The member
489
+ * @param value The new outfit
490
+ * @param previousValue The previous outfit
491
+ */
492
+ 'party:member:outfit:updated': (member: PartyMember | ClientPartyMember, value?: string, previousValue?: string) => void;
493
+ /**
494
+ * Emitted when a party member updated their emote
495
+ * @param member The member
496
+ * @param value The new emote
497
+ * @param previousValue The previous emote
498
+ */
499
+ 'party:member:emote:updated': (member: PartyMember | ClientPartyMember, value?: string, previousValue?: string) => void;
500
+ /**
501
+ * Emitted when a party member updated their backpack
502
+ * @param member The member
503
+ * @param value The new backpack
504
+ * @param previousValue The previous backpack
505
+ */
506
+ 'party:member:backpack:updated': (member: PartyMember | ClientPartyMember, value?: string, previousValue?: string) => void;
507
+ /**
508
+ * Emitted when a party member updated their pickaxe
509
+ * @param member The member
510
+ * @param value The new pickaxe
511
+ * @param previousValue The previous pickaxe
512
+ */
513
+ 'party:member:pickaxe:updated': (member: PartyMember | ClientPartyMember, value?: string, previousValue?: string) => void;
514
+ /**
515
+ * Emitted when a party member updated their readiness state
516
+ * @param member The member
517
+ * @param value The new readiness state
518
+ * @param previousValue The previous readiness state
519
+ */
520
+ 'party:member:readiness:updated': (member: PartyMember | ClientPartyMember, value?: boolean, previousValue?: boolean) => void;
521
+ /**
522
+ * Emitted when a party member updated their match state
523
+ * @param member The member
524
+ * @param value The new match state
525
+ * @param previousValue The previous match state
526
+ */
527
+ 'party:member:matchstate:updated': (member: PartyMember | ClientPartyMember, value?: MatchMeta, previousValue?: MatchMeta) => void;
528
+ }
529
+ export type AuthType = 'fortnite' | 'fortniteClientCredentials' | 'launcher';
530
+ export interface AuthResponse {
531
+ response?: EpicgamesOAuthData;
532
+ error?: EpicgamesAPIError | Error;
533
+ }
534
+ export interface ReauthResponse {
535
+ response?: {
536
+ success: boolean;
537
+ };
538
+ error?: EpicgamesAPIError;
539
+ }
540
+ export interface FriendConnection {
541
+ name?: string;
542
+ }
543
+ export interface FriendConnections {
544
+ epic?: FriendConnection;
545
+ psn?: FriendConnection;
546
+ nintendo?: FriendConnection;
547
+ }
548
+ export interface PresenceGameplayStats {
549
+ kills?: number;
550
+ fellToDeath?: boolean;
551
+ serverPlayerCount?: number;
552
+ }
553
+ export type PendingFriendDirection = 'INCOMING' | 'OUTGOING';
554
+ export interface StatsPlaylistTypeData {
555
+ score: number;
556
+ scorePerMin: number;
557
+ scorePerMatch: number;
558
+ wins: number;
559
+ top3: number;
560
+ top5: number;
561
+ top6: number;
562
+ top10: number;
563
+ top12: number;
564
+ top25: number;
565
+ kills: number;
566
+ killsPerMin: number;
567
+ killsPerMatch: number;
568
+ deaths: number;
569
+ kd: number;
570
+ matches: number;
571
+ winRate: number;
572
+ minutesPlayed: number;
573
+ playersOutlived: number;
574
+ lastModified?: Date;
575
+ }
576
+ export interface StatsInputTypeData {
577
+ overall: StatsPlaylistTypeData;
578
+ solo: StatsPlaylistTypeData;
579
+ duo: StatsPlaylistTypeData;
580
+ squad: StatsPlaylistTypeData;
581
+ ltm: StatsPlaylistTypeData;
582
+ }
583
+ export interface StatsData {
584
+ all: StatsInputTypeData;
585
+ keyboardmouse: StatsInputTypeData;
586
+ gamepad: StatsInputTypeData;
587
+ touch: StatsInputTypeData;
588
+ }
589
+ export interface NewsMOTD {
590
+ entryType: string;
591
+ image: string;
592
+ tileImage: string;
593
+ videoMute: boolean;
594
+ hidden: boolean;
595
+ tabTitleOverride: string;
596
+ _type: string;
597
+ title: string;
598
+ body: string;
599
+ offerAction: string;
600
+ videoLoop: boolean;
601
+ videoStreamingEnabled: boolean;
602
+ sortingPriority: number;
603
+ buttonTextOverride?: string;
604
+ offerId?: string;
605
+ id: string;
606
+ videoAutoplay: boolean;
607
+ videoFullscreen: boolean;
608
+ spotlight: boolean;
609
+ videoUID?: string;
610
+ videoVideoString?: string;
611
+ playlistId?: string;
612
+ }
613
+ export interface NewsMessageData {
614
+ image: string;
615
+ hidden: boolean;
616
+ _type: string;
617
+ adspace: string;
618
+ title: string;
619
+ body: string;
620
+ spotlight: boolean;
621
+ }
622
+ export interface LightswitchLauncherInfo {
623
+ appName: string;
624
+ catalogItemId: string;
625
+ namespace: string;
626
+ }
627
+ export interface LightswitchData {
628
+ serviceInstanceId: string;
629
+ status: string;
630
+ message: string;
631
+ maintenanceUri?: string;
632
+ overrideCatalogIds: string[];
633
+ allowedActions: string[];
634
+ banned: boolean;
635
+ launcherInfoDTO: LightswitchLauncherInfo;
636
+ }
637
+ export interface EpicgamesServerStatusData {
638
+ page: {
639
+ id: string;
640
+ name: string;
641
+ url: string;
642
+ time_zone: string;
643
+ updated_at: string;
644
+ };
645
+ components: {
646
+ id: string;
647
+ name: string;
648
+ status: string;
649
+ created_at: Date;
650
+ updated_at: Date;
651
+ position: number;
652
+ description?: any;
653
+ showcase: boolean;
654
+ start_date: string;
655
+ group_id: string;
656
+ page_id: string;
657
+ group: boolean;
658
+ only_show_if_degraded: boolean;
659
+ components: string[];
660
+ }[];
661
+ incidents: any[];
662
+ scheduled_maintenances: any[];
663
+ status: {
664
+ indicator: string;
665
+ description: string;
666
+ };
667
+ }
668
+ export interface EpicgamesServerStatusIncidentUpdate {
669
+ id: string;
670
+ body: string;
671
+ createdAt: Date;
672
+ displayAt: Date;
673
+ status: string;
674
+ updatedAt: Date;
675
+ }
676
+ export interface MessageData {
677
+ content: string;
678
+ author: Friend | PartyMember | ClientPartyMember | ClientUser;
679
+ id: string;
680
+ sentAt?: Date;
681
+ }
682
+ export interface FriendMessageData extends MessageData {
683
+ author: Friend | ClientUser;
684
+ }
685
+ export interface PartyMessageData extends MessageData {
686
+ author: PartyMember | ClientPartyMember;
687
+ party: ClientParty;
688
+ }
689
+ export interface PendingFriendData {
690
+ accountId: string;
691
+ created: string;
692
+ favorite: boolean;
693
+ displayName: string;
694
+ }
695
+ export interface ExternalAuth {
696
+ accountId: string;
697
+ type: string;
698
+ externalAuthId: string;
699
+ externalAuthIdType: string;
700
+ externalDisplayName?: string;
701
+ authIds: {
702
+ id: string;
703
+ type: string;
704
+ }[];
705
+ }
706
+ export interface ExternalAuths {
707
+ github?: ExternalAuth;
708
+ twitch?: ExternalAuth;
709
+ steam?: ExternalAuth;
710
+ psn?: ExternalAuth;
711
+ xbl?: ExternalAuth;
712
+ nintendo?: ExternalAuth;
713
+ }
714
+ export interface UserData {
715
+ id: string;
716
+ displayName?: string;
717
+ externalAuths?: ExternalAuths;
718
+ }
719
+ export interface ClientUserData extends UserData {
720
+ name: string;
721
+ email: string;
722
+ failedLoginAttempts: number;
723
+ lastLogin: string;
724
+ numberOfDisplayNameChanges: number;
725
+ ageGroup: string;
726
+ headless: boolean;
727
+ country: string;
728
+ lastName: string;
729
+ phoneNumber: string;
730
+ preferredLanguage: string;
731
+ lastDisplayNameChange: string;
732
+ canUpdateDisplayName: boolean;
733
+ tfaEnabled: boolean;
734
+ emailVerified: boolean;
735
+ minorVerified: boolean;
736
+ minorExpected: boolean;
737
+ minorStatus: string;
738
+ }
739
+ export interface CreatorCodeData {
740
+ slug: string;
741
+ owner: User;
742
+ status: 'ACTIVE' | 'DISABLED';
743
+ verified: boolean;
744
+ }
745
+ export interface FriendData extends UserData {
746
+ created: string;
747
+ favorite: boolean;
748
+ displayName?: string;
749
+ connections?: FriendConnections;
750
+ mutual?: number;
751
+ alias: string;
752
+ note: string;
753
+ }
754
+ export interface FriendPresenceData {
755
+ Status?: string;
756
+ bIsPlaying?: boolean;
757
+ bIsJoinable?: boolean;
758
+ bHasVoiceSupport?: boolean;
759
+ SessionId?: string;
760
+ ProductName?: string;
761
+ Properties?: {
762
+ FortBasicInfo_j?: {
763
+ homeBaseRating?: number;
764
+ };
765
+ FortLFG_I?: string;
766
+ FortPartySize_i?: number;
767
+ FortSubGame_i?: number;
768
+ InUnjoinableMatch_b?: boolean;
769
+ FortGameplayStats_j?: {
770
+ state: string;
771
+ playlist: string;
772
+ numKills: number;
773
+ bFellToDeath: boolean;
774
+ };
775
+ 'party.joininfodata.286331153_j'?: {
776
+ bIsPrivate?: boolean;
777
+ };
778
+ GamePlaylistName_s?: string;
779
+ Event_PlayersAlive_s?: string;
780
+ Event_PartySize_s?: string;
781
+ Event_PartyMaxSize_s?: string;
782
+ GameSessionJoinKey_s?: string;
783
+ ServerPlayerCount_i?: string;
784
+ };
785
+ }
786
+ export interface PartyMemberData {
787
+ id: string;
788
+ account_id: string;
789
+ account_dn?: string;
790
+ meta: Schema;
791
+ revision: number;
792
+ updated_at: string;
793
+ joined_at: string;
794
+ role: string;
795
+ }
796
+ export interface PartyMemberUpdateData {
797
+ account_id: string;
798
+ account_dn?: string;
799
+ revision: number;
800
+ member_state_updated: Schema;
801
+ member_state_removed: string[];
802
+ }
803
+ export interface PartyData {
804
+ id: string;
805
+ created_at: string;
806
+ updated_at: string;
807
+ config: {
808
+ type: string;
809
+ joinability: string;
810
+ discoverability: string;
811
+ sub_type: string;
812
+ max_size: number;
813
+ invite_ttl: number;
814
+ join_confirmation: boolean;
815
+ intention_ttl: number;
816
+ };
817
+ members: PartyMemberData[];
818
+ meta: PartySchema;
819
+ invites: any[];
820
+ revision: number;
821
+ }
822
+ export interface PartyUpdateData {
823
+ revision: number;
824
+ party_state_updated: Schema;
825
+ party_state_removed: string[];
826
+ party_privacy_type: 'OPEN' | 'INVITE_AND_FORMER';
827
+ max_number_of_members: number;
828
+ party_sub_type: 'default';
829
+ party_type: 'DEFAULT';
830
+ invite_ttl_seconds: number;
831
+ discoverability: 'ALL' | 'INVITED_ONLY';
832
+ }
833
+ export interface Island {
834
+ linkId?: {
835
+ mnemonic?: string;
836
+ version?: number;
837
+ };
838
+ woldId?: {
839
+ iD?: string;
840
+ ownerId?: string;
841
+ name?: string;
842
+ };
843
+ sessionId?: string;
844
+ joinInfo?: {
845
+ islandJoinability?: string;
846
+ bIsWorldJoinable?: boolean;
847
+ sessionKey?: string;
848
+ };
849
+ }
850
+ export interface CosmeticVariant {
851
+ channel: string;
852
+ variant: string;
853
+ dE?: number;
854
+ }
855
+ export interface CosmeticVariantMeta {
856
+ i: {
857
+ v: string;
858
+ c: string;
859
+ dE: number;
860
+ }[];
861
+ }
862
+ export interface CosmeticsVariantMeta {
863
+ athenaCharacter?: CosmeticVariantMeta;
864
+ athenaBackpack?: CosmeticVariantMeta;
865
+ athenaPickaxe?: CosmeticVariantMeta;
866
+ athenaSkyDiveContrail?: CosmeticVariantMeta;
867
+ }
868
+ export type CosmeticEnlightment = [number, number];
869
+ export interface BannerMeta {
870
+ bannerIconId: string;
871
+ bannerColorId: string;
872
+ }
873
+ export interface BattlePassMeta {
874
+ bHasPurchasedPass: boolean;
875
+ passLevel: number;
876
+ selfBoostXp: number;
877
+ friendBoostXp: number;
878
+ }
879
+ export interface AssistedChallengeMeta {
880
+ questItemDef: string;
881
+ objectivesCompleted: number;
882
+ }
883
+ export type Region = 'EU' | 'NAE' | 'NAW' | 'BR' | 'ME' | 'ASIA' | 'OCE';
884
+ export type FullPlatform = 'Windows' | 'Android' | 'PS4' | 'XboxOne' | 'XSX' | 'PS5' | 'Switch' | 'Windows' | 'Mac';
885
+ export type SentMessageType = 'PARTY' | 'FRIEND';
886
+ export interface TournamentColors {
887
+ titleColor?: string;
888
+ backgroundTextColor?: string;
889
+ backgroundRightColor?: string;
890
+ backgroundLeftColor?: string;
891
+ shadowColor?: string;
892
+ posterFadeColor?: string;
893
+ baseColor?: string;
894
+ highlightColor?: string;
895
+ }
896
+ export interface TournamentImages {
897
+ loadingScreenImage?: string;
898
+ posterBackImage?: string;
899
+ posterFrontImage?: string;
900
+ playlistTileImage?: string;
901
+ }
902
+ export interface TournamentTexts {
903
+ pinEarnedText?: string;
904
+ pinScoreRequirement?: number;
905
+ scheduleInfo?: string;
906
+ flavorDescription?: string;
907
+ shortFormatTitle?: string;
908
+ titleLine1?: string;
909
+ titleLine2?: string;
910
+ detailsDescription?: string;
911
+ longFormatTitle?: string;
912
+ backgroundTitle?: string;
913
+ }
914
+ export interface TournamentWindowTemplate {
915
+ windowId: string;
916
+ templateData: TournamentWindowTemplateData;
917
+ }
918
+ export interface PresencePartyData {
919
+ bIsPrivate?: boolean;
920
+ sourceId?: string;
921
+ sourceDisplayName?: string;
922
+ sourcePlatform?: string;
923
+ partyId?: string;
924
+ partyTypeId?: number;
925
+ key?: 'k';
926
+ appId?: string;
927
+ buildId?: string;
928
+ partyFlags?: number;
929
+ notAcceptingReason?: number;
930
+ pc?: number;
931
+ }
932
+ export type UserSearchPlatform = 'epic' | 'psn' | 'xbl' | 'steam';
933
+ export type UserSearchMatchType = 'exact' | 'prefix';
934
+ export interface UserSearchResultMatch {
935
+ value: string;
936
+ platform: UserSearchPlatform;
937
+ }
938
+ export interface BlurlStream {
939
+ languages: {
940
+ language: string;
941
+ url: string;
942
+ variants: {
943
+ data: {
944
+ codecs: string[];
945
+ bandwidth: number;
946
+ resolution: string;
947
+ };
948
+ type: 'video' | 'audio';
949
+ url: string;
950
+ stream: Buffer;
951
+ }[];
952
+ }[];
953
+ data: {
954
+ subtitles: any;
955
+ ucp?: string;
956
+ audioonly: boolean;
957
+ aspectratio?: string;
958
+ partysync: boolean;
959
+ lrcs: any;
960
+ duration?: number;
961
+ };
962
+ }
963
+ export interface ReplayEvent {
964
+ Id: string;
965
+ Group: string;
966
+ Metadata: string;
967
+ Time1: number;
968
+ Time2: number;
969
+ data: Buffer;
970
+ }
971
+ export interface ReplayDataChunk {
972
+ Id: string;
973
+ Time1: number;
974
+ Time2: number;
975
+ SizeInBytes: number;
976
+ data: Buffer;
977
+ }
978
+ export interface ReplayCheckpoint {
979
+ Id: string;
980
+ Group: string;
981
+ Metadata: string;
982
+ Time1: number;
983
+ Time2: number;
984
+ data: Buffer;
985
+ }
986
+ export interface ReplayData {
987
+ ReplayName: string;
988
+ LengthInMS: number;
989
+ NetworkVersion: number;
990
+ Changelist: number;
991
+ FriendlyName: string;
992
+ Timestamp: Date;
993
+ bIsLive: boolean;
994
+ bCompressed: boolean;
995
+ DesiredDelayInSeconds: number;
996
+ Checkpoints?: ReplayCheckpoint[];
997
+ Events?: ReplayEvent[];
998
+ DataChunks?: ReplayDataChunk[];
999
+ Header: Buffer;
1000
+ }
1001
+ export type ReplayDataType = 'EVENT' | 'DATACHUNK' | 'CHECKPOINT';
1002
+ export interface ReplayDownloadConfig {
1003
+ /**
1004
+ * Which replay data types to download.
1005
+ * EVENT data contains basic information like eliminations, you will only need EVENT data for ThisNils/node-replay-reader.
1006
+ * DATACHUNK data contains information that is required for most parsing libraries.
1007
+ * CHECKPOINT data contains information that is pretty much only useful if you want to use the replay ingame.
1008
+ * By default, only events and data chunks are downloaded
1009
+ */
1010
+ dataTypes: ReplayDataType[];
1011
+ /**
1012
+ * Whether a placeholder for AthenaMatchStats and AthenaMatchTeamStats should be added.
1013
+ * Required if you want to use the replay ingame, otherwise useless.
1014
+ * By default, this is set to false
1015
+ */
1016
+ addStatsPlaceholder: boolean;
1017
+ }
1018
+ export interface ReplayDownloadOptions extends Partial<ReplayDownloadConfig> {
1019
+ }
1020
+ export interface EventTokensResponse {
1021
+ user: User;
1022
+ tokens: string[];
1023
+ }
1024
+ export interface BRAccountLevel {
1025
+ level: number;
1026
+ progress: number;
1027
+ }
1028
+ export interface BRAccountLevelData {
1029
+ user: User;
1030
+ level: BRAccountLevel;
1031
+ }
1032
+ export interface TournamentSessionMetadata {
1033
+ changelist: number;
1034
+ checkpoints: ReplayCheckpoint[];
1035
+ dataChunks: ReplayDataChunk[];
1036
+ desiredDelayInSeconds: number;
1037
+ events: ReplayEvent[];
1038
+ friendlyName: string;
1039
+ lengthInMS: number;
1040
+ networkVersion: number;
1041
+ replayName: string;
1042
+ timestamp: Date;
1043
+ isCompressed: boolean;
1044
+ isLive: boolean;
1045
+ }
1046
+ export interface STWFORTStats {
1047
+ fortitude: number;
1048
+ resistance: number;
1049
+ offense: number;
1050
+ tech: number;
1051
+ }
1052
+ export type STWSurvivorType = 'special' | 'manager' | 'basic';
1053
+ export type STWItemRarity = 'c' | 'uc' | 'r' | 'vr' | 'sr' | 'ur';
1054
+ export type STWItemTier = 1 | 2 | 3 | 4 | 5 | 6;
1055
+ export type STWSurvivorGender = 'male' | 'female';
1056
+ export interface STWSurvivorSquads {
1057
+ trainingteam: STWSurvivor[];
1058
+ fireteamalpha: STWSurvivor[];
1059
+ closeassaultsquad: STWSurvivor[];
1060
+ thethinktank: STWSurvivor[];
1061
+ emtsquad: STWSurvivor[];
1062
+ corpsofengineering: STWSurvivor[];
1063
+ scoutingparty: STWSurvivor[];
1064
+ gadgeteers: STWSurvivor[];
1065
+ }
1066
+ export type STWSurvivorSquadType = 'medicine' | 'arms' | 'synthesis' | 'scavenging';
1067
+ export interface STWSurvivorSquadData {
1068
+ id: string;
1069
+ name: keyof STWSurvivorSquads;
1070
+ type: STWSurvivorSquadType;
1071
+ slotIdx: number;
1072
+ }
1073
+ export interface STWStatsNodeCostsData {
1074
+ [key: string]: {
1075
+ [key: string]: number;
1076
+ };
1077
+ }
1078
+ export interface STWStatsSTWLoadoutData {
1079
+ selectedHeroLoadout: string;
1080
+ modeLoadouts: string[];
1081
+ activeLoadoutIndex: number;
1082
+ }
1083
+ export interface STWStatsBRLoadoutData {
1084
+ loadouts: string[];
1085
+ lastAppliedLoadout: string;
1086
+ useRandomLoadout: boolean;
1087
+ }
1088
+ export interface STWStatsMissionAlertRedemptionData {
1089
+ missionAlertId: string;
1090
+ redemptionDateUtc: Date;
1091
+ evictClaimDataAfterUtc: Date;
1092
+ }
1093
+ export interface STWStatsQuestData {
1094
+ dailyLoginInterval: Date;
1095
+ dailyQuestRerolls?: number;
1096
+ poolStats: {
1097
+ stats: {
1098
+ poolName: string;
1099
+ nextRefresh: Date;
1100
+ rerollsRemaining: number;
1101
+ questHistory: string[];
1102
+ }[];
1103
+ dailyLoginInterval: Date;
1104
+ lockouts: {
1105
+ lockoutName: string;
1106
+ }[];
1107
+ };
1108
+ }
1109
+ export interface STWStatsGameplayStatData {
1110
+ statName: string;
1111
+ statValue: number;
1112
+ }
1113
+ export interface STWStatsClientSettingsData {
1114
+ pinnedQuestInstances?: any[];
1115
+ }
1116
+ export interface STWStatsResearchLevelsData {
1117
+ technology: number;
1118
+ offense: number;
1119
+ fortitude: number;
1120
+ resistance: number;
1121
+ }
1122
+ export interface STWStatsEventCurrencyData {
1123
+ templateId: string;
1124
+ cf: number;
1125
+ }
1126
+ export interface STWStatsXPData {
1127
+ total: number;
1128
+ overflow: number;
1129
+ lost: number;
1130
+ }
1131
+ export interface STWStatsDailyRewardsData {
1132
+ nextDefaultReward: number;
1133
+ totalDaysLoggedIn: number;
1134
+ lastClaimDate: Date;
1135
+ additionalSchedules?: {
1136
+ [key: string]: {
1137
+ rewardsClaimed: number;
1138
+ claimedToday: boolean;
1139
+ };
1140
+ };
1141
+ }
1142
+ export interface STWLockerSlotsData {
1143
+ Pickaxe: STWProfileLockerSlotData;
1144
+ MusicPack?: STWProfileLockerSlotData;
1145
+ Character?: STWProfileLockerSlotData;
1146
+ ItemWrap: STWProfileLockerSlotData;
1147
+ Backpack: STWProfileLockerSlotData;
1148
+ Dance: STWProfileLockerSlotData;
1149
+ LoadingScreen: STWProfileLockerSlotData;
1150
+ }
1151
+ export interface STWLockerBannerData {
1152
+ icon: string;
1153
+ color: string;
1154
+ }
1155
+ export type STWHeroType = 'commando' | 'constructor' | 'outlander' | 'ninja';
1156
+ export type STWSchematicType = 'ranged' | 'melee' | 'trap' | 'other';
1157
+ export type STWSchematicRangedSubType = 'assault' | 'launcher' | 'pistol' | 'shotgun' | 'smg' | 'sniper';
1158
+ export type STWSchematicMeleeSubType = 'blunt' | 'blunt_hammer' | 'edged_axe' | 'edged_scythe' | 'edged_sword' | 'piercing_spear';
1159
+ export type STWSchematicTrapSubType = 'ceiling' | 'floor' | 'wall';
1160
+ export type STWSchematicSubType = STWSchematicRangedSubType | STWSchematicMeleeSubType | STWSchematicTrapSubType;
1161
+ export type STWSchematicAlterationRarity = 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
1162
+ export type STWSchematicEvoType = 'ore' | 'crystal';
1163
+ export interface StatsLevelData {
1164
+ [key: string]: {
1165
+ level: number;
1166
+ progress: number;
1167
+ };
1168
+ }
1169
+ export interface ArenaDivisionData {
1170
+ [key: string]: number;
1171
+ }
1172
+ export interface NewsMessageVideoData {
1173
+ videoAutoplay: boolean;
1174
+ videoFullscreen: boolean;
1175
+ videoLoop: boolean;
1176
+ videoMute: boolean;
1177
+ videoStreamingEnabled: boolean;
1178
+ videoVideoString: string;
1179
+ videoUID: string;
1180
+ }
1181
+ export interface NewsMessagePlaylist {
1182
+ id: string;
1183
+ }
1184
+ export interface NewsMessageOffer {
1185
+ id: string;
1186
+ action: string;
1187
+ }
1188
+ export interface ImageData {
1189
+ url: string;
1190
+ width?: number;
1191
+ height?: number;
1192
+ }
1193
+ export interface STWWorldInfoData {
1194
+ theaters: STWTheaterData[];
1195
+ missions: STWMissionData[];
1196
+ missionAlerts: STWMissionAlertData[];
1197
+ }
1198
+ export interface AuthData {
1199
+ access_token: string;
1200
+ account_id: string;
1201
+ client_id: string;
1202
+ expires_at: string;
1203
+ expires_in: number;
1204
+ token_type: string;
1205
+ }
1206
+ export interface LauncherAuthData extends AuthData {
1207
+ refresh_expires: number;
1208
+ refresh_expires_at: string;
1209
+ refresh_token: string;
1210
+ internal_client: boolean;
1211
+ client_service: string;
1212
+ scope: string[];
1213
+ displayName: string;
1214
+ app: string;
1215
+ in_app_id: string;
1216
+ }
1217
+ export interface FortniteAuthData extends AuthData {
1218
+ refresh_expires: number;
1219
+ refresh_expires_at: string;
1220
+ refresh_token: string;
1221
+ internal_client: boolean;
1222
+ client_service: string;
1223
+ displayName: string;
1224
+ app: string;
1225
+ in_app_id: string;
1226
+ device_id: string;
1227
+ }
1228
+ export interface FortniteClientCredentialsAuthData extends AuthData {
1229
+ internal_client: boolean;
1230
+ client_service: string;
1231
+ product_id: string;
1232
+ application_id: string;
1233
+ }
1234
+ export interface EOSAuthData extends AuthData {
1235
+ refresh_expires: number;
1236
+ refresh_expires_at: string;
1237
+ refresh_token: string;
1238
+ application_id: string;
1239
+ merged_accounts: string[];
1240
+ scope: string;
1241
+ }
1242
+ export interface AuthSessionStore<K, V> extends Collection<K, V> {
1243
+ get(key: AuthSessionStoreKey.Fortnite): FortniteAuthSession | undefined;
1244
+ get(key: AuthSessionStoreKey.Launcher): LauncherAuthSession | undefined;
1245
+ get(key: AuthSessionStoreKey.FortniteEOS): EOSAuthSession | undefined;
1246
+ get(key: AuthSessionStoreKey.FortniteClientCredentials): FortniteClientCredentialsAuthSession | undefined;
1247
+ get(key: K): V | undefined;
1248
+ }
1249
+ export interface ChatMessagePayload {
1250
+ body: string;
1251
+ }
1252
+ interface BaseEOSConnectMessage {
1253
+ correlationId: string;
1254
+ timestamp: number;
1255
+ id?: string;
1256
+ connectionId?: string;
1257
+ }
1258
+ export interface EOSConnectCoreConnected extends BaseEOSConnectMessage {
1259
+ type: 'core.connect.v1.connected';
1260
+ }
1261
+ export interface EOSConnectCoreConnectFailed extends BaseEOSConnectMessage {
1262
+ message: string;
1263
+ statusCode: number;
1264
+ type: 'core.connect.v1.connect-failed';
1265
+ }
1266
+ export interface EOSConnectChatMemberLeftMessage extends BaseEOSConnectMessage {
1267
+ payload: {
1268
+ namespace: string;
1269
+ conversationId: string;
1270
+ members: string[];
1271
+ };
1272
+ type: 'social.chat.v1.MEMBERS_LEFT';
1273
+ }
1274
+ export interface EOSConnectChatNewMsgMessage extends BaseEOSConnectMessage {
1275
+ payload: {
1276
+ namespace: string;
1277
+ conversation: {
1278
+ conversationId: string;
1279
+ type: string;
1280
+ };
1281
+ message: {
1282
+ body: string;
1283
+ senderId: string;
1284
+ time: number;
1285
+ };
1286
+ };
1287
+ type: 'social.chat.v1.NEW_MESSAGE';
1288
+ }
1289
+ export interface EOSConnectChatConversionCreatedMessage extends BaseEOSConnectMessage {
1290
+ payload: {
1291
+ namespace: string;
1292
+ conversationId: string;
1293
+ type: string;
1294
+ members: string[];
1295
+ };
1296
+ type: 'social.chat.v1.CONVERSATION_CREATED';
1297
+ }
1298
+ export interface EOSConnectChatNewWhisperMessage extends BaseEOSConnectMessage {
1299
+ payload: {
1300
+ namespace: string;
1301
+ message: {
1302
+ body: string;
1303
+ senderId: string;
1304
+ time: number;
1305
+ };
1306
+ };
1307
+ type: 'social.chat.v1.NEW_WHISPER';
1308
+ }
1309
+ export type EOSConnectMessage = EOSConnectCoreConnected | EOSConnectCoreConnectFailed | EOSConnectChatConversionCreatedMessage | EOSConnectChatNewMsgMessage | EOSConnectChatMemberLeftMessage | EOSConnectChatNewWhisperMessage;
1310
+ export {};