@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,412 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const collection_1 = require("@discordjs/collection");
5
+ const async_queue_1 = require("@sapphire/async-queue");
6
+ const Endpoints_1 = tslib_1.__importDefault(require("../../../resources/Endpoints"));
7
+ const FriendNotFoundError_1 = tslib_1.__importDefault(require("../../exceptions/FriendNotFoundError"));
8
+ const PartyAlreadyJoinedError_1 = tslib_1.__importDefault(require("../../exceptions/PartyAlreadyJoinedError"));
9
+ const PartyMaxSizeReachedError_1 = tslib_1.__importDefault(require("../../exceptions/PartyMaxSizeReachedError"));
10
+ const PartyMemberNotFoundError_1 = tslib_1.__importDefault(require("../../exceptions/PartyMemberNotFoundError"));
11
+ const PartyPermissionError_1 = tslib_1.__importDefault(require("../../exceptions/PartyPermissionError"));
12
+ const ClientPartyMeta_1 = tslib_1.__importDefault(require("./ClientPartyMeta"));
13
+ const Party_1 = tslib_1.__importDefault(require("./Party"));
14
+ const PartyChat_1 = tslib_1.__importDefault(require("./PartyChat"));
15
+ const SentPartyInvitation_1 = tslib_1.__importDefault(require("./SentPartyInvitation"));
16
+ const enums_1 = require("../../../resources/enums");
17
+ const EpicgamesAPIError_1 = tslib_1.__importDefault(require("../../exceptions/EpicgamesAPIError"));
18
+ /**
19
+ * Represents a party that the client is a member of
20
+ */
21
+ class ClientParty extends Party_1.default {
22
+ /**
23
+ * @param client The main client
24
+ * @param data The party's data
25
+ */
26
+ constructor(client, data) {
27
+ super(client, data instanceof Party_1.default ? data.toObject() : data);
28
+ this.hiddenMemberIds = new Set();
29
+ this.pendingMemberConfirmations = new collection_1.Collection();
30
+ this.patchQueue = new async_queue_1.AsyncQueue();
31
+ this.chat = new PartyChat_1.default(this.client, this);
32
+ this.meta = new ClientPartyMeta_1.default(this, data instanceof Party_1.default ? data.meta.schema : data.meta);
33
+ }
34
+ /**
35
+ * Returns the client's party member
36
+ */
37
+ get me() {
38
+ return this.members.get(this.client.user.self.id);
39
+ }
40
+ /**
41
+ * Whether the party is private
42
+ */
43
+ get isPrivate() {
44
+ return this.config.privacy.partyType === 'Private';
45
+ }
46
+ /**
47
+ * Leaves this party
48
+ * @param createNew Whether a new party should be created
49
+ * @throws {EpicgamesAPIError}
50
+ */
51
+ async leave(createNew = true) {
52
+ var _a;
53
+ this.client.partyLock.lock();
54
+ if (this.chat.isConnected)
55
+ await this.chat.leave();
56
+ try {
57
+ await this.client.http.epicgamesRequest({
58
+ method: 'DELETE',
59
+ url: `${Endpoints_1.default.BR_PARTY}/parties/${this.id}/members/${(_a = this.me) === null || _a === void 0 ? void 0 : _a.id}`,
60
+ }, enums_1.AuthSessionStoreKey.Fortnite);
61
+ }
62
+ catch (e) {
63
+ this.client.partyLock.unlock();
64
+ throw e;
65
+ }
66
+ this.client.party = undefined;
67
+ this.client.partyLock.unlock();
68
+ if (createNew)
69
+ await this.client.createParty();
70
+ }
71
+ /**
72
+ * Sends a party patch to Epicgames' servers
73
+ * @param updated The updated schema
74
+ * @param deleted The deleted schema keys
75
+ * @throws {PartyPermissionError} You're not the leader of this party
76
+ * @throws {EpicgamesAPIError}
77
+ */
78
+ async sendPatch(updated, deleted = []) {
79
+ await this.patchQueue.wait();
80
+ try {
81
+ await this.client.http.epicgamesRequest({
82
+ method: 'PATCH',
83
+ url: `${Endpoints_1.default.BR_PARTY}/parties/${this.id}`,
84
+ headers: {
85
+ 'Content-Type': 'application/json',
86
+ },
87
+ data: {
88
+ config: {
89
+ join_confirmation: this.config.joinConfirmation,
90
+ joinability: this.config.joinability,
91
+ max_size: this.config.maxSize,
92
+ discoverability: this.config.discoverability,
93
+ },
94
+ meta: {
95
+ delete: deleted,
96
+ update: updated || this.meta.schema,
97
+ },
98
+ party_state_overridden: {},
99
+ party_privacy_type: this.config.joinability,
100
+ party_type: this.config.type,
101
+ party_sub_type: this.config.subType,
102
+ max_number_of_members: this.config.maxSize,
103
+ invite_ttl_seconds: this.config.inviteTtl,
104
+ revision: this.revision,
105
+ },
106
+ }, enums_1.AuthSessionStoreKey.Fortnite);
107
+ }
108
+ catch (e) {
109
+ if (e instanceof EpicgamesAPIError_1.default && e.code === 'errors.com.epicgames.social.party.stale_revision') {
110
+ this.revision = parseInt(e.messageVars[1], 10);
111
+ this.patchQueue.shift();
112
+ return this.sendPatch(updated);
113
+ }
114
+ this.patchQueue.shift();
115
+ if (e instanceof EpicgamesAPIError_1.default && e.code === 'errors.com.epicgames.social.party.party_change_forbidden') {
116
+ throw new PartyPermissionError_1.default();
117
+ }
118
+ throw e;
119
+ }
120
+ this.revision += 1;
121
+ this.patchQueue.shift();
122
+ return undefined;
123
+ }
124
+ /**
125
+ * Kicks a member from this party
126
+ * @param member The member that should be kicked
127
+ * @throws {PartyPermissionError} The client is not the leader of the party
128
+ * @throws {PartyMemberNotFoundError} The party member wasn't found
129
+ * @throws {EpicgamesAPIError}
130
+ */
131
+ async kick(member) {
132
+ if (!this.me.isLeader)
133
+ throw new PartyPermissionError_1.default();
134
+ const partyMember = this.members.find((m) => m.displayName === member || m.id === member);
135
+ if (!partyMember)
136
+ throw new PartyMemberNotFoundError_1.default(member);
137
+ try {
138
+ await this.client.http.epicgamesRequest({
139
+ method: 'DELETE',
140
+ url: `${Endpoints_1.default.BR_PARTY}/parties/${this.id}/members/${partyMember.id}`,
141
+ }, enums_1.AuthSessionStoreKey.Fortnite);
142
+ }
143
+ catch (e) {
144
+ if (e instanceof EpicgamesAPIError_1.default && e.code === 'errors.com.epicgames.social.party.party_change_forbidden') {
145
+ throw new PartyPermissionError_1.default();
146
+ }
147
+ throw e;
148
+ }
149
+ }
150
+ /**
151
+ * Sends a party invitation to a friend
152
+ * @param friend The friend that will receive the invitation
153
+ * @throws {FriendNotFoundError} The user is not friends with the client
154
+ * @throws {PartyAlreadyJoinedError} The user is already a member of this party
155
+ * @throws {PartyMaxSizeReachedError} The party reached its max size
156
+ * @throws {EpicgamesAPIError}
157
+ */
158
+ async invite(friend) {
159
+ const resolvedFriend = this.client.friend.list.find((f) => f.id === friend || f.displayName === friend);
160
+ if (!resolvedFriend)
161
+ throw new FriendNotFoundError_1.default(friend);
162
+ if (this.members.has(resolvedFriend.id))
163
+ throw new PartyAlreadyJoinedError_1.default();
164
+ if (this.size === this.maxSize)
165
+ throw new PartyMaxSizeReachedError_1.default();
166
+ let invite;
167
+ if (this.isPrivate) {
168
+ invite = await this.client.http.epicgamesRequest({
169
+ method: 'POST',
170
+ url: `${Endpoints_1.default.BR_PARTY}/parties/${this.id}/invites/${resolvedFriend.id}?sendPing=true`,
171
+ headers: {
172
+ 'Content-Type': 'application/json',
173
+ },
174
+ data: {
175
+ 'urn:epic:cfg:build-id_s': this.client.config.partyBuildId,
176
+ 'urn:epic:conn:platform_s': this.client.config.platform,
177
+ 'urn:epic:conn:type_s': 'game',
178
+ 'urn:epic:invite:platformdata_s': '',
179
+ 'urn:epic:member:dn_s': this.client.user.self.displayName,
180
+ },
181
+ }, enums_1.AuthSessionStoreKey.Fortnite);
182
+ }
183
+ else {
184
+ invite = await this.client.http.epicgamesRequest({
185
+ method: 'POST',
186
+ url: `${Endpoints_1.default.BR_PARTY}/user/${resolvedFriend.id}/pings/${this.client.user.self.id}`,
187
+ headers: {
188
+ 'Content-Type': 'application/json',
189
+ },
190
+ data: {
191
+ 'urn:epic:invite:platformdata_s': '',
192
+ },
193
+ }, enums_1.AuthSessionStoreKey.Fortnite);
194
+ }
195
+ return new SentPartyInvitation_1.default(this.client, this, this.client.user.self, resolvedFriend, invite);
196
+ }
197
+ /**
198
+ * Refreshes the member positions of this party
199
+ * @throws {PartyPermissionError} The client is not the leader of the party
200
+ * @throws {EpicgamesAPIError}
201
+ */
202
+ async refreshSquadAssignments() {
203
+ if (!this.me.isLeader)
204
+ throw new PartyPermissionError_1.default();
205
+ await this.sendPatch({
206
+ 'Default:RawSquadAssignments_j': this.meta.refreshSquadAssignments(),
207
+ });
208
+ }
209
+ /**
210
+ * Sends a message to the party chat
211
+ * @param content The message that will be sent
212
+ */
213
+ async sendMessage(content) {
214
+ return this.chat.send(content);
215
+ }
216
+ /**
217
+ * Ban a member from this party chat
218
+ * @param member The member that should be banned
219
+ */
220
+ async chatBan(member) {
221
+ return this.chat.ban(member);
222
+ }
223
+ /**
224
+ * Updates this party's privacy settings
225
+ * @param privacy The updated party privacy
226
+ * @param sendPatch Whether the updated privacy should be sent to epic's servers
227
+ * @throws {PartyPermissionError} The client is not the leader of the party
228
+ * @throws {EpicgamesAPIError}
229
+ */
230
+ async setPrivacy(privacy, sendPatch = true) {
231
+ if (!this.me.isLeader)
232
+ throw new PartyPermissionError_1.default();
233
+ const updated = {};
234
+ const deleted = [];
235
+ const privacyMeta = this.meta.get('Default:PrivacySettings_j');
236
+ if (privacyMeta) {
237
+ updated['Default:PrivacySettings_j'] = this.meta.set('Default:PrivacySettings_j', {
238
+ PrivacySettings: {
239
+ ...privacyMeta.PrivacySettings,
240
+ partyType: privacy.partyType,
241
+ bOnlyLeaderFriendsCanJoin: privacy.onlyLeaderFriendsCanJoin,
242
+ partyInviteRestriction: privacy.inviteRestriction,
243
+ },
244
+ });
245
+ }
246
+ updated['urn:epic:cfg:presence-perm_s'] = this.meta.set('urn:epic:cfg:presence-perm_s', privacy.presencePermission);
247
+ updated['urn:epic:cfg:accepting-members_b'] = this.meta.set('urn:epic:cfg:accepting-members_b', privacy.acceptingMembers);
248
+ updated['urn:epic:cfg:invite-perm_s'] = this.meta.set('urn:epic:cfg:invite-perm_s', privacy.invitePermission);
249
+ if (privacy.partyType === 'Private') {
250
+ deleted.push('urn:epic:cfg:not-accepting-members');
251
+ updated['urn:epic:cfg:not-accepting-members-reason_i'] = this.meta.set('urn:epic:cfg:not-accepting-members-reason_i', 7);
252
+ this.config.discoverability = 'INVITED_ONLY';
253
+ this.config.joinability = 'INVITE_AND_FORMER';
254
+ }
255
+ else {
256
+ deleted.push('urn:epic:cfg:not-accepting-members-reason_i');
257
+ this.config.discoverability = 'ALL';
258
+ this.config.joinability = 'OPEN';
259
+ }
260
+ this.meta.remove(deleted);
261
+ if (sendPatch)
262
+ await this.sendPatch(updated, deleted);
263
+ this.config.privacy = {
264
+ ...this.config.privacy,
265
+ ...privacy,
266
+ };
267
+ return { updated, deleted };
268
+ }
269
+ /**
270
+ * Sets this party's custom matchmaking key
271
+ * @param key The custom matchmaking key
272
+ * @throws {PartyPermissionError} The client is not the leader of the party
273
+ * @throws {EpicgamesAPIError}
274
+ */
275
+ async setCustomMatchmakingKey(key) {
276
+ if (!this.me.isLeader)
277
+ throw new PartyPermissionError_1.default();
278
+ await this.sendPatch({
279
+ 'Default:CustomMatchKey_s': this.meta.set('Default:CustomMatchKey_s', key || ''),
280
+ });
281
+ }
282
+ /**
283
+ * Promotes a party member
284
+ * @param member The member that should be promoted
285
+ * @throws {PartyPermissionError} The client is not the leader of the party
286
+ * @throws {PartyMemberNotFoundError} The party member wasn't found
287
+ * @throws {EpicgamesAPIError}
288
+ */
289
+ async promote(member) {
290
+ if (!this.me.isLeader)
291
+ throw new PartyPermissionError_1.default();
292
+ const partyMember = this.members.find((m) => m.displayName === member || m.id === member);
293
+ if (!partyMember)
294
+ throw new PartyMemberNotFoundError_1.default(member);
295
+ try {
296
+ await this.client.http.epicgamesRequest({
297
+ method: 'POST',
298
+ url: `${Endpoints_1.default.BR_PARTY}/parties/${this.id}/members/${partyMember.id}/promote`,
299
+ }, enums_1.AuthSessionStoreKey.Fortnite);
300
+ }
301
+ catch (e) {
302
+ if (e instanceof EpicgamesAPIError_1.default && e.code === 'errors.com.epicgames.social.party.party_change_forbidden') {
303
+ throw new PartyPermissionError_1.default();
304
+ }
305
+ throw e;
306
+ }
307
+ }
308
+ /**
309
+ * Hides / Unhides a single party member
310
+ * @param member The member that should be hidden
311
+ * @param hide Whether the member should be hidden
312
+ * @throws {PartyPermissionError} The client is not the leader of the party
313
+ * @throws {PartyMemberNotFoundError} The party member wasn't found
314
+ * @throws {EpicgamesAPIError}
315
+ */
316
+ async hideMember(member, hide = true) {
317
+ if (!this.me.isLeader)
318
+ throw new PartyPermissionError_1.default();
319
+ const partyMember = this.members.find((m) => m.displayName === member || m.id === member);
320
+ if (!partyMember)
321
+ throw new PartyMemberNotFoundError_1.default(member);
322
+ if (hide) {
323
+ this.hiddenMemberIds.add(partyMember.id);
324
+ }
325
+ else {
326
+ this.hiddenMemberIds.delete(partyMember.id);
327
+ }
328
+ await this.refreshSquadAssignments();
329
+ }
330
+ /**
331
+ * Hides / Unhides all party members except for the client
332
+ * @param hide Whether all members should be hidden
333
+ * @throws {PartyPermissionError} The client is not the leader of the party
334
+ * @throws {EpicgamesAPIError}
335
+ */
336
+ async hideMembers(hide = true) {
337
+ if (!this.me.isLeader)
338
+ throw new PartyPermissionError_1.default();
339
+ if (hide) {
340
+ this.members.filter((m) => m.id !== this.me.id).forEach((m) => this.hiddenMemberIds.add(m.id));
341
+ }
342
+ else {
343
+ this.hiddenMemberIds.clear();
344
+ }
345
+ await this.refreshSquadAssignments();
346
+ }
347
+ /**
348
+ * Updates the party's playlist
349
+ * @param mnemonic The new mnemonic (Playlist id or island code, for example: playlist_defaultduo or 1111-1111-1111)
350
+ * @param regionId The new region id
351
+ * @param version The new version
352
+ * @param options Playlist options
353
+ * @throws {PartyPermissionError} The client is not the leader of the party
354
+ * @throws {EpicgamesAPIError}
355
+ */
356
+ async setPlaylist(mnemonic, regionId, version, options) {
357
+ if (!this.me.isLeader)
358
+ throw new PartyPermissionError_1.default();
359
+ let regionIdData = this.meta.get('Default:RegionId_s');
360
+ if (regionId) {
361
+ regionIdData = this.meta.set('Default:RegionId_s', regionId);
362
+ }
363
+ let data = this.meta.get('Default:SelectedIsland_j');
364
+ data = this.meta.set('Default:SelectedIsland_j', {
365
+ ...data,
366
+ SelectedIsland: {
367
+ ...data.SelectedIsland,
368
+ linkId: {
369
+ mnemonic,
370
+ version: version !== null && version !== void 0 ? version : -1,
371
+ },
372
+ ...options,
373
+ },
374
+ });
375
+ await this.sendPatch({
376
+ 'Default:SelectedIsland_j': data,
377
+ 'Default:RegionId_s': regionIdData,
378
+ });
379
+ }
380
+ /**
381
+ * Updates the squad fill status of this party
382
+ * @param fill Whether fill is enable or not
383
+ * @throws {PartyPermissionError} The client is not the leader of the party
384
+ * @throws {EpicgamesAPIError}
385
+ */
386
+ async setSquadFill(fill = true) {
387
+ if (!this.me.isLeader)
388
+ throw new PartyPermissionError_1.default();
389
+ await this.sendPatch({
390
+ 'Default:AthenaSquadFill_b': this.meta.set('Default:AthenaSquadFill_b', fill),
391
+ });
392
+ }
393
+ /**
394
+ * Updates the party's max member count
395
+ * @param maxSize The new party max size (1-16)
396
+ * @throws {PartyPermissionError} The client is not the leader of the party
397
+ * @throws {RangeError} The new max member size must be between 1 and 16 (inclusive) and more than the current member count
398
+ * @throws {EpicgamesAPIError}
399
+ */
400
+ async setMaxSize(maxSize) {
401
+ if (!this.me.isLeader)
402
+ throw new PartyPermissionError_1.default();
403
+ if (maxSize < 1 || maxSize > 16)
404
+ throw new RangeError('The new max member size must be between 1 and 16 (inclusive)');
405
+ if (maxSize < this.size)
406
+ throw new RangeError('The new max member size must be higher than the current member count');
407
+ this.config.maxSize = maxSize;
408
+ await this.sendPatch(this.meta.schema);
409
+ }
410
+ }
411
+ exports.default = ClientParty;
412
+ //# sourceMappingURL=ClientParty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientParty.js","sourceRoot":"","sources":["../../../../src/structures/party/ClientParty.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,uDAAmD;AACnD,qFAAqD;AACrD,uGAAuE;AACvE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AAC,IAAI,CAAC,EAAE,CAAC,QAAQ;YAAE,MAAM,IAAI,8BAAoB,EAAE,CAAC;QACxD,IAAI,OAAO,GAAG,CAAC,IAAI,OAAO,GAAG,EAAE;YAAE,MAAM,IAAI,UAAU,CAAC,8DAA8D,CAAC,CAAC;QAEtH,IAAI,OAAO,GAAG,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,UAAU,CAAC,sEAAsE,CAAC,CAAC;QAEtH,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAC9B,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
@@ -0,0 +1,144 @@
1
+ import ClientPartyMemberMeta from './ClientPartyMemberMeta';
2
+ import PartyMember from './PartyMember';
3
+ import type { CosmeticEnlightment, CosmeticVariant, PartyMemberData, PartyMemberSchema } from '../../../resources/structs';
4
+ import type Party from './Party';
5
+ /**
6
+ * Represents the client's party member
7
+ */
8
+ declare class ClientPartyMember extends PartyMember {
9
+ /**
10
+ * The patch queue
11
+ */
12
+ private patchQueue;
13
+ /**
14
+ * The member's meta
15
+ */
16
+ meta: ClientPartyMemberMeta;
17
+ /**
18
+ * @param party The party this member belongs to
19
+ * @param data The member data
20
+ */
21
+ constructor(party: Party, data: PartyMemberData);
22
+ /**
23
+ * Sends a meta patch to Epicgames's servers
24
+ * @param updated The updated schema
25
+ * @throws {EpicgamesAPIError}
26
+ */
27
+ sendPatch(updated: PartyMemberSchema): Promise<void>;
28
+ /**
29
+ * Updates the client party member's readiness
30
+ * @param ready Whether the client party member is ready
31
+ * @throws {EpicgamesAPIError}
32
+ */
33
+ setReadiness(ready: boolean): Promise<void>;
34
+ /**
35
+ * Updates the client party member's sitting out state
36
+ * @param sittingOut Whether the client party member is sitting out
37
+ * @throws {EpicgamesAPIError}
38
+ */
39
+ setSittingOut(sittingOut: boolean): Promise<void>;
40
+ /**
41
+ * Updates the client party member's level
42
+ * @param level The new level
43
+ * @throws {EpicgamesAPIError}
44
+ */
45
+ setLevel(level: number): Promise<void>;
46
+ /**
47
+ * Updates the client party member's battle pass info
48
+ * @param isPurchased Whether the battle pass is purchased
49
+ * @param level The battle pass level
50
+ * @param selfBoost The battle pass self boost percentage
51
+ * @param friendBoost The battle pass friend boost percentage
52
+ * @throws {EpicgamesAPIError}
53
+ */
54
+ setBattlePass(isPurchased: boolean, level: number, selfBoost: number, friendBoost: number): Promise<void>;
55
+ /**
56
+ * Updates the client party member's banner
57
+ * @param bannerId The new banner's id
58
+ * @param color The new banner's color
59
+ * @throws {EpicgamesAPIError}
60
+ */
61
+ setBanner(bannerId: string, color: string): Promise<void>;
62
+ /**
63
+ * Updates the client party member's outfit
64
+ * @param id The outfit's ID
65
+ * @param variants The outfit's variants
66
+ * @param enlightment The outfit's enlightment
67
+ * @throws {EpicgamesAPIError}
68
+ */
69
+ setOutfit(id: string, variants?: CosmeticVariant[], enlightment?: CosmeticEnlightment): Promise<void>;
70
+ /**
71
+ * Updates the client party member's backpack
72
+ * @param id The backpack's ID
73
+ * @param variants The backpack's variants
74
+ * @param path The backpack's path in the game files
75
+ * @throws {EpicgamesAPIError}
76
+ */
77
+ setBackpack(id: string, variants?: CosmeticVariant[], path?: string): Promise<void>;
78
+ /**
79
+ * Updates the client party member's pet
80
+ * @param id The pet's ID
81
+ * @param variants The pet's variants
82
+ * @param path The pet's path in the game files
83
+ */
84
+ setPet(id: string, variants?: CosmeticVariant[], path?: string): Promise<void>;
85
+ /**
86
+ * Updates the client party member's pickaxe
87
+ * @param id The pickaxe's ID
88
+ * @param variants The pickaxe's variants
89
+ * @param path The pickaxe's path in the game files
90
+ * @throws {EpicgamesAPIError}
91
+ */
92
+ setPickaxe(id: string, variants?: CosmeticVariant[], path?: string): Promise<void>;
93
+ /**
94
+ * Updates the client party member's emote
95
+ * @param id The emote's ID
96
+ * @param path The emote's path in the game files
97
+ * @throws {EpicgamesAPIError}
98
+ */
99
+ setEmote(id: string, path?: string): Promise<void>;
100
+ /**
101
+ * Updates the client party member's emoji
102
+ * @param id The emoji's ID
103
+ * @param path The emoji's path in the game files
104
+ * @throws {EpicgamesAPIError}
105
+ */
106
+ setEmoji(id: string, path?: string): Promise<void>;
107
+ /**
108
+ * Clears the client party member's emote and emoji
109
+ * @throws {EpicgamesAPIError}
110
+ */
111
+ clearEmote(): Promise<void>;
112
+ /**
113
+ * Clears the client party member's backpack
114
+ * @throws {EpicgamesAPIError}
115
+ */
116
+ clearBackpack(): Promise<void>;
117
+ /**
118
+ * Updates the client party member's match state.
119
+ * NOTE: This is visually, the client will not actually join a match
120
+ * @param isPlaying Whether the client is in a match
121
+ * @param playerCount The match player count (must be between 0 and 255)
122
+ * @param startedAt The start date of the match
123
+ * @throws {EpicgamesAPIError}
124
+ */
125
+ setPlaying(isPlaying?: boolean, playerCount?: number, startedAt?: Date): Promise<void>;
126
+ /**
127
+ * Updates the client party member's pre lobby map marker.
128
+ * [0, 0] would be the center of the map
129
+ * @param isSet Whether the marker is set
130
+ * @param locationX The marker x location
131
+ * @param locationY The marker y location
132
+ * @throws {EpicgamesAPIError}
133
+ */
134
+ setMarker(isSet: boolean, locationX?: number, locationY?: number): Promise<void>;
135
+ /**
136
+ * Updates the client party member's cosmetic stats.
137
+ * Crowns are shown when using the EID_Coronet emote
138
+ * @param crowns The amount of crowns / "Royal Royales"
139
+ * @param rankedProgression The ranked progression
140
+ * @throws {EpicgamesAPIError}
141
+ */
142
+ setCosmeticStats(crowns: number, rankedProgression: number): Promise<void>;
143
+ }
144
+ export default ClientPartyMember;