@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.
- package/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/enums/Enums.d.ts +251 -0
- package/dist/enums/Enums.js +202 -0
- package/dist/enums/Enums.js.map +1 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +194 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/AuthClients.d.ts +39 -0
- package/dist/resources/AuthClients.js +41 -0
- package/dist/resources/AuthClients.js.map +1 -0
- package/dist/resources/BaseItemRating.json +5203 -0
- package/dist/resources/Endpoints.d.ts +58 -0
- package/dist/resources/Endpoints.js +71 -0
- package/dist/resources/Endpoints.js.map +1 -0
- package/dist/resources/HomebaseRatingMapping.json +255 -0
- package/dist/resources/PowerLevelCurves.d.ts +111 -0
- package/dist/resources/PowerLevelCurves.js +21 -0
- package/dist/resources/PowerLevelCurves.js.map +1 -0
- package/dist/resources/SurvivorItemRating.json +9343 -0
- package/dist/resources/constants.d.ts +2 -0
- package/dist/resources/constants.js +11 -0
- package/dist/resources/constants.js.map +1 -0
- package/dist/resources/defaultPartyMemberMeta.json +28 -0
- package/dist/resources/defaultPartyMeta.json +38 -0
- package/dist/resources/enums.d.ts +12 -0
- package/dist/resources/enums.js +18 -0
- package/dist/resources/enums.js.map +1 -0
- package/dist/resources/httpResponses.d.ts +773 -0
- package/dist/resources/httpResponses.js +3 -0
- package/dist/resources/httpResponses.js.map +1 -0
- package/dist/resources/structs.d.ts +1310 -0
- package/dist/resources/structs.js +3 -0
- package/dist/resources/structs.js.map +1 -0
- package/dist/src/Base.d.ts +15 -0
- package/dist/src/Base.js +15 -0
- package/dist/src/Base.js.map +1 -0
- package/dist/src/Client.d.ts +341 -0
- package/dist/src/Client.js +1043 -0
- package/dist/src/Client.js.map +1 -0
- package/dist/src/auth/Auth.d.ts +66 -0
- package/dist/src/auth/Auth.js +249 -0
- package/dist/src/auth/Auth.js.map +1 -0
- package/dist/src/auth/AuthSession.d.ts +41 -0
- package/dist/src/auth/AuthSession.js +25 -0
- package/dist/src/auth/AuthSession.js.map +1 -0
- package/dist/src/auth/EOSAuthSession.d.ts +19 -0
- package/dist/src/auth/EOSAuthSession.js +80 -0
- package/dist/src/auth/EOSAuthSession.js.map +1 -0
- package/dist/src/auth/FortniteAuthSession.d.ts +53 -0
- package/dist/src/auth/FortniteAuthSession.js +107 -0
- package/dist/src/auth/FortniteAuthSession.js.map +1 -0
- package/dist/src/auth/FortniteClientCredentialsAuthSession.d.ts +18 -0
- package/dist/src/auth/FortniteClientCredentialsAuthSession.js +88 -0
- package/dist/src/auth/FortniteClientCredentialsAuthSession.js.map +1 -0
- package/dist/src/auth/LauncherAuthSession.d.ts +23 -0
- package/dist/src/auth/LauncherAuthSession.js +120 -0
- package/dist/src/auth/LauncherAuthSession.js.map +1 -0
- package/dist/src/exceptions/AuthenticationMissingError.d.ts +15 -0
- package/dist/src/exceptions/AuthenticationMissingError.js +18 -0
- package/dist/src/exceptions/AuthenticationMissingError.js.map +1 -0
- package/dist/src/exceptions/CreativeIslandNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/CreativeIslandNotFoundError.js +18 -0
- package/dist/src/exceptions/CreativeIslandNotFoundError.js.map +1 -0
- package/dist/src/exceptions/CreatorCodeNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/CreatorCodeNotFoundError.js +18 -0
- package/dist/src/exceptions/CreatorCodeNotFoundError.js.map +1 -0
- package/dist/src/exceptions/DuplicateFriendshipError.d.ts +14 -0
- package/dist/src/exceptions/DuplicateFriendshipError.js +18 -0
- package/dist/src/exceptions/DuplicateFriendshipError.js.map +1 -0
- package/dist/src/exceptions/EpicgamesAPIError.d.ts +42 -0
- package/dist/src/exceptions/EpicgamesAPIError.js +27 -0
- package/dist/src/exceptions/EpicgamesAPIError.js.map +1 -0
- package/dist/src/exceptions/EventTimeoutError.d.ts +19 -0
- package/dist/src/exceptions/EventTimeoutError.js +20 -0
- package/dist/src/exceptions/EventTimeoutError.js.map +1 -0
- package/dist/src/exceptions/FriendNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/FriendNotFoundError.js +18 -0
- package/dist/src/exceptions/FriendNotFoundError.js.map +1 -0
- package/dist/src/exceptions/FriendshipRequestAlreadySentError.d.ts +14 -0
- package/dist/src/exceptions/FriendshipRequestAlreadySentError.js +18 -0
- package/dist/src/exceptions/FriendshipRequestAlreadySentError.js.map +1 -0
- package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.d.ts +14 -0
- package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js +18 -0
- package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js.map +1 -0
- package/dist/src/exceptions/InviteeFriendshipSettingsError.d.ts +14 -0
- package/dist/src/exceptions/InviteeFriendshipSettingsError.js +18 -0
- package/dist/src/exceptions/InviteeFriendshipSettingsError.js.map +1 -0
- package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.d.ts +14 -0
- package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js +18 -0
- package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js.map +1 -0
- package/dist/src/exceptions/InviterFriendshipsLimitExceededError.d.ts +14 -0
- package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js +18 -0
- package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js.map +1 -0
- package/dist/src/exceptions/MatchNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/MatchNotFoundError.js +18 -0
- package/dist/src/exceptions/MatchNotFoundError.js.map +1 -0
- package/dist/src/exceptions/OfferNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/OfferNotFoundError.js +18 -0
- package/dist/src/exceptions/OfferNotFoundError.js.map +1 -0
- package/dist/src/exceptions/PartyAlreadyJoinedError.d.ts +7 -0
- package/dist/src/exceptions/PartyAlreadyJoinedError.js +14 -0
- package/dist/src/exceptions/PartyAlreadyJoinedError.js.map +1 -0
- package/dist/src/exceptions/PartyInvitationExpiredError.d.ts +7 -0
- package/dist/src/exceptions/PartyInvitationExpiredError.js +14 -0
- package/dist/src/exceptions/PartyInvitationExpiredError.js.map +1 -0
- package/dist/src/exceptions/PartyMaxSizeReachedError.d.ts +7 -0
- package/dist/src/exceptions/PartyMaxSizeReachedError.js +14 -0
- package/dist/src/exceptions/PartyMaxSizeReachedError.js.map +1 -0
- package/dist/src/exceptions/PartyMemberNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/PartyMemberNotFoundError.js +18 -0
- package/dist/src/exceptions/PartyMemberNotFoundError.js.map +1 -0
- package/dist/src/exceptions/PartyNotFoundError.d.ts +7 -0
- package/dist/src/exceptions/PartyNotFoundError.js +14 -0
- package/dist/src/exceptions/PartyNotFoundError.js.map +1 -0
- package/dist/src/exceptions/PartyPermissionError.d.ts +7 -0
- package/dist/src/exceptions/PartyPermissionError.js +14 -0
- package/dist/src/exceptions/PartyPermissionError.js.map +1 -0
- package/dist/src/exceptions/SendMessageError.d.ts +27 -0
- package/dist/src/exceptions/SendMessageError.js +21 -0
- package/dist/src/exceptions/SendMessageError.js.map +1 -0
- package/dist/src/exceptions/StatsPrivacyError.d.ts +14 -0
- package/dist/src/exceptions/StatsPrivacyError.js +18 -0
- package/dist/src/exceptions/StatsPrivacyError.js.map +1 -0
- package/dist/src/exceptions/StompConnectionError.d.ts +14 -0
- package/dist/src/exceptions/StompConnectionError.js +18 -0
- package/dist/src/exceptions/StompConnectionError.js.map +1 -0
- package/dist/src/exceptions/UserNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/UserNotFoundError.js +18 -0
- package/dist/src/exceptions/UserNotFoundError.js.map +1 -0
- package/dist/src/exceptions/XMPPConnectionError.d.ts +19 -0
- package/dist/src/exceptions/XMPPConnectionError.js +19 -0
- package/dist/src/exceptions/XMPPConnectionError.js.map +1 -0
- package/dist/src/exceptions/XMPPConnectionTimeoutError.d.ts +14 -0
- package/dist/src/exceptions/XMPPConnectionTimeoutError.js +18 -0
- package/dist/src/exceptions/XMPPConnectionTimeoutError.js.map +1 -0
- package/dist/src/http/HTTP.d.ts +40 -0
- package/dist/src/http/HTTP.js +124 -0
- package/dist/src/http/HTTP.js.map +1 -0
- package/dist/src/managers/ChatManager.d.ts +27 -0
- package/dist/src/managers/ChatManager.js +71 -0
- package/dist/src/managers/ChatManager.js.map +1 -0
- package/dist/src/managers/FriendManager.d.ts +66 -0
- package/dist/src/managers/FriendManager.js +175 -0
- package/dist/src/managers/FriendManager.js.map +1 -0
- package/dist/src/managers/STWManager.d.ts +29 -0
- package/dist/src/managers/STWManager.js +80 -0
- package/dist/src/managers/STWManager.js.map +1 -0
- package/dist/src/managers/TournamentManager.d.ts +51 -0
- package/dist/src/managers/TournamentManager.js +182 -0
- package/dist/src/managers/TournamentManager.js.map +1 -0
- package/dist/src/managers/UserManager.d.ts +78 -0
- package/dist/src/managers/UserManager.js +216 -0
- package/dist/src/managers/UserManager.js.map +1 -0
- package/dist/src/stomp/EOSConnect.d.ts +43 -0
- package/dist/src/stomp/EOSConnect.js +175 -0
- package/dist/src/stomp/EOSConnect.js.map +1 -0
- package/dist/src/structures/Avatar.d.ts +27 -0
- package/dist/src/structures/Avatar.js +22 -0
- package/dist/src/structures/Avatar.js.map +1 -0
- package/dist/src/structures/BaseMessage.d.ts +34 -0
- package/dist/src/structures/BaseMessage.js +22 -0
- package/dist/src/structures/BaseMessage.js.map +1 -0
- package/dist/src/structures/CreatorCode.d.ts +31 -0
- package/dist/src/structures/CreatorCode.js +22 -0
- package/dist/src/structures/CreatorCode.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatus.d.ts +52 -0
- package/dist/src/structures/EpicgamesServerStatus.js +31 -0
- package/dist/src/structures/EpicgamesServerStatus.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatusComponent.d.ts +67 -0
- package/dist/src/structures/EpicgamesServerStatusComponent.js +37 -0
- package/dist/src/structures/EpicgamesServerStatusComponent.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatusIncident.d.ts +58 -0
- package/dist/src/structures/EpicgamesServerStatusIncident.js +36 -0
- package/dist/src/structures/EpicgamesServerStatusIncident.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.d.ts +21 -0
- package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js +20 -0
- package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js.map +1 -0
- package/dist/src/structures/EventTokens.d.ts +32 -0
- package/dist/src/structures/EventTokens.js +45 -0
- package/dist/src/structures/EventTokens.js.map +1 -0
- package/dist/src/structures/FortniteServerStatus.d.ts +46 -0
- package/dist/src/structures/FortniteServerStatus.js +26 -0
- package/dist/src/structures/FortniteServerStatus.js.map +1 -0
- package/dist/src/structures/GlobalProfile.d.ts +36 -0
- package/dist/src/structures/GlobalProfile.js +25 -0
- package/dist/src/structures/GlobalProfile.js.map +1 -0
- package/dist/src/structures/Image.d.ts +36 -0
- package/dist/src/structures/Image.js +38 -0
- package/dist/src/structures/Image.js.map +1 -0
- package/dist/src/structures/NewsMessage.d.ts +56 -0
- package/dist/src/structures/NewsMessage.js +45 -0
- package/dist/src/structures/NewsMessage.js.map +1 -0
- package/dist/src/structures/NewsMessageVideo.d.ts +47 -0
- package/dist/src/structures/NewsMessageVideo.js +32 -0
- package/dist/src/structures/NewsMessageVideo.js.map +1 -0
- package/dist/src/structures/RadioStation.d.ts +31 -0
- package/dist/src/structures/RadioStation.js +33 -0
- package/dist/src/structures/RadioStation.js.map +1 -0
- package/dist/src/structures/Stats.d.ts +45 -0
- package/dist/src/structures/Stats.js +109 -0
- package/dist/src/structures/Stats.js.map +1 -0
- package/dist/src/structures/Tournament.d.ts +86 -0
- package/dist/src/structures/Tournament.js +64 -0
- package/dist/src/structures/Tournament.js.map +1 -0
- package/dist/src/structures/TournamentWindow.d.ts +124 -0
- package/dist/src/structures/TournamentWindow.js +52 -0
- package/dist/src/structures/TournamentWindow.js.map +1 -0
- package/dist/src/structures/friend/BaseFriendMessage.d.ts +32 -0
- package/dist/src/structures/friend/BaseFriendMessage.js +28 -0
- package/dist/src/structures/friend/BaseFriendMessage.js.map +1 -0
- package/dist/src/structures/friend/BasePendingFriend.d.ts +22 -0
- package/dist/src/structures/friend/BasePendingFriend.js +22 -0
- package/dist/src/structures/friend/BasePendingFriend.js.map +1 -0
- package/dist/src/structures/friend/Friend.d.ts +106 -0
- package/dist/src/structures/friend/Friend.js +97 -0
- package/dist/src/structures/friend/Friend.js.map +1 -0
- package/dist/src/structures/friend/FriendPresence.d.ts +84 -0
- package/dist/src/structures/friend/FriendPresence.js +48 -0
- package/dist/src/structures/friend/FriendPresence.js.map +1 -0
- package/dist/src/structures/friend/IncomingPendingFriend.d.ts +27 -0
- package/dist/src/structures/friend/IncomingPendingFriend.js +36 -0
- package/dist/src/structures/friend/IncomingPendingFriend.js.map +1 -0
- package/dist/src/structures/friend/OutgoingPendingFriend.d.ts +17 -0
- package/dist/src/structures/friend/OutgoingPendingFriend.js +24 -0
- package/dist/src/structures/friend/OutgoingPendingFriend.js.map +1 -0
- package/dist/src/structures/friend/ReceivedFriendMessage.d.ts +27 -0
- package/dist/src/structures/friend/ReceivedFriendMessage.js +27 -0
- package/dist/src/structures/friend/ReceivedFriendMessage.js.map +1 -0
- package/dist/src/structures/friend/SentFriendMessage.d.ts +21 -0
- package/dist/src/structures/friend/SentFriendMessage.js +19 -0
- package/dist/src/structures/friend/SentFriendMessage.js.map +1 -0
- package/dist/src/structures/party/BasePartyInvitation.d.ts +48 -0
- package/dist/src/structures/party/BasePartyInvitation.js +33 -0
- package/dist/src/structures/party/BasePartyInvitation.js.map +1 -0
- package/dist/src/structures/party/BasePartyJoinRequest.d.ts +37 -0
- package/dist/src/structures/party/BasePartyJoinRequest.js +30 -0
- package/dist/src/structures/party/BasePartyJoinRequest.js.map +1 -0
- package/dist/src/structures/party/ClientParty.d.ts +162 -0
- package/dist/src/structures/party/ClientParty.js +412 -0
- package/dist/src/structures/party/ClientParty.js.map +1 -0
- package/dist/src/structures/party/ClientPartyMember.d.ts +144 -0
- package/dist/src/structures/party/ClientPartyMember.js +463 -0
- package/dist/src/structures/party/ClientPartyMember.js.map +1 -0
- package/dist/src/structures/party/ClientPartyMemberMeta.d.ts +18 -0
- package/dist/src/structures/party/ClientPartyMemberMeta.js +54 -0
- package/dist/src/structures/party/ClientPartyMemberMeta.js.map +1 -0
- package/dist/src/structures/party/ClientPartyMeta.d.ts +23 -0
- package/dist/src/structures/party/ClientPartyMeta.js +59 -0
- package/dist/src/structures/party/ClientPartyMeta.js.map +1 -0
- package/dist/src/structures/party/Party.d.ts +95 -0
- package/dist/src/structures/party/Party.js +200 -0
- package/dist/src/structures/party/Party.js.map +1 -0
- package/dist/src/structures/party/PartyChat.d.ts +73 -0
- package/dist/src/structures/party/PartyChat.js +76 -0
- package/dist/src/structures/party/PartyChat.js.map +1 -0
- package/dist/src/structures/party/PartyMember.d.ts +139 -0
- package/dist/src/structures/party/PartyMember.js +201 -0
- package/dist/src/structures/party/PartyMember.js.map +1 -0
- package/dist/src/structures/party/PartyMemberConfirmation.d.ts +43 -0
- package/dist/src/structures/party/PartyMemberConfirmation.js +53 -0
- package/dist/src/structures/party/PartyMemberConfirmation.js.map +1 -0
- package/dist/src/structures/party/PartyMemberMeta.d.ts +76 -0
- package/dist/src/structures/party/PartyMemberMeta.js +145 -0
- package/dist/src/structures/party/PartyMemberMeta.js.map +1 -0
- package/dist/src/structures/party/PartyMessage.d.ts +30 -0
- package/dist/src/structures/party/PartyMessage.js +28 -0
- package/dist/src/structures/party/PartyMessage.js.map +1 -0
- package/dist/src/structures/party/PartyMeta.d.ts +24 -0
- package/dist/src/structures/party/PartyMeta.js +43 -0
- package/dist/src/structures/party/PartyMeta.js.map +1 -0
- package/dist/src/structures/party/PresenceParty.d.ts +66 -0
- package/dist/src/structures/party/PresenceParty.js +49 -0
- package/dist/src/structures/party/PresenceParty.js.map +1 -0
- package/dist/src/structures/party/ReceivedPartyInvitation.d.ts +33 -0
- package/dist/src/structures/party/ReceivedPartyInvitation.js +54 -0
- package/dist/src/structures/party/ReceivedPartyInvitation.js.map +1 -0
- package/dist/src/structures/party/ReceivedPartyJoinRequest.d.ts +26 -0
- package/dist/src/structures/party/ReceivedPartyJoinRequest.js +31 -0
- package/dist/src/structures/party/ReceivedPartyJoinRequest.js.map +1 -0
- package/dist/src/structures/party/SentPartyInvitation.d.ts +27 -0
- package/dist/src/structures/party/SentPartyInvitation.js +39 -0
- package/dist/src/structures/party/SentPartyInvitation.js.map +1 -0
- package/dist/src/structures/party/SentPartyJoinRequest.d.ts +19 -0
- package/dist/src/structures/party/SentPartyJoinRequest.js +22 -0
- package/dist/src/structures/party/SentPartyJoinRequest.js.map +1 -0
- package/dist/src/structures/stw/STWHero.d.ts +61 -0
- package/dist/src/structures/stw/STWHero.js +38 -0
- package/dist/src/structures/stw/STWHero.js.map +1 -0
- package/dist/src/structures/stw/STWHeroLoadout.d.ts +44 -0
- package/dist/src/structures/stw/STWHeroLoadout.js +34 -0
- package/dist/src/structures/stw/STWHeroLoadout.js.map +1 -0
- package/dist/src/structures/stw/STWItem.d.ts +31 -0
- package/dist/src/structures/stw/STWItem.js +23 -0
- package/dist/src/structures/stw/STWItem.js.map +1 -0
- package/dist/src/structures/stw/STWLocker.d.ts +32 -0
- package/dist/src/structures/stw/STWLocker.js +26 -0
- package/dist/src/structures/stw/STWLocker.js.map +1 -0
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.d.ts +14 -0
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.js +15 -0
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWNewsMessage.d.ts +42 -0
- package/dist/src/structures/stw/STWNewsMessage.js +27 -0
- package/dist/src/structures/stw/STWNewsMessage.js.map +1 -0
- package/dist/src/structures/stw/STWProfile.d.ts +132 -0
- package/dist/src/structures/stw/STWProfile.js +283 -0
- package/dist/src/structures/stw/STWProfile.js.map +1 -0
- package/dist/src/structures/stw/STWRangedWeaponSchematic.d.ts +14 -0
- package/dist/src/structures/stw/STWRangedWeaponSchematic.js +15 -0
- package/dist/src/structures/stw/STWRangedWeaponSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWResource.d.ts +27 -0
- package/dist/src/structures/stw/STWResource.js +22 -0
- package/dist/src/structures/stw/STWResource.js.map +1 -0
- package/dist/src/structures/stw/STWSchematic.d.ts +72 -0
- package/dist/src/structures/stw/STWSchematic.js +40 -0
- package/dist/src/structures/stw/STWSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWStats.d.ts +103 -0
- package/dist/src/structures/stw/STWStats.js +85 -0
- package/dist/src/structures/stw/STWStats.js.map +1 -0
- package/dist/src/structures/stw/STWSurvivor.d.ts +104 -0
- package/dist/src/structures/stw/STWSurvivor.js +76 -0
- package/dist/src/structures/stw/STWSurvivor.js.map +1 -0
- package/dist/src/structures/stw/STWTeamPerk.d.ts +19 -0
- package/dist/src/structures/stw/STWTeamPerk.js +20 -0
- package/dist/src/structures/stw/STWTeamPerk.js.map +1 -0
- package/dist/src/structures/stw/STWTrapSchematic.d.ts +15 -0
- package/dist/src/structures/stw/STWTrapSchematic.js +16 -0
- package/dist/src/structures/stw/STWTrapSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWWeaponSchematic.d.ts +15 -0
- package/dist/src/structures/stw/STWWeaponSchematic.js +16 -0
- package/dist/src/structures/stw/STWWeaponSchematic.js.map +1 -0
- package/dist/src/structures/user/BlockedUser.d.ts +13 -0
- package/dist/src/structures/user/BlockedUser.js +19 -0
- package/dist/src/structures/user/BlockedUser.js.map +1 -0
- package/dist/src/structures/user/ClientUser.d.ts +78 -0
- package/dist/src/structures/user/ClientUser.js +34 -0
- package/dist/src/structures/user/ClientUser.js.map +1 -0
- package/dist/src/structures/user/User.d.ts +98 -0
- package/dist/src/structures/user/User.js +130 -0
- package/dist/src/structures/user/User.js.map +1 -0
- package/dist/src/structures/user/UserSearchResult.d.ts +31 -0
- package/dist/src/structures/user/UserSearchResult.js +23 -0
- package/dist/src/structures/user/UserSearchResult.js.map +1 -0
- package/dist/src/util/AsyncLock.d.ts +28 -0
- package/dist/src/util/AsyncLock.js +44 -0
- package/dist/src/util/AsyncLock.js.map +1 -0
- package/dist/src/util/BinaryWriter.d.ts +79 -0
- package/dist/src/util/BinaryWriter.js +136 -0
- package/dist/src/util/BinaryWriter.js.map +1 -0
- package/dist/src/util/CurveTable.d.ts +24 -0
- package/dist/src/util/CurveTable.js +37 -0
- package/dist/src/util/CurveTable.js.map +1 -0
- package/dist/src/util/Meta.d.ts +41 -0
- package/dist/src/util/Meta.js +73 -0
- package/dist/src/util/Meta.js.map +1 -0
- package/dist/src/util/Util.d.ts +162 -0
- package/dist/src/util/Util.js +539 -0
- package/dist/src/util/Util.js.map +1 -0
- package/dist/src/xmpp/XMPP.d.ts +100 -0
- package/dist/src/xmpp/XMPP.js +702 -0
- package/dist/src/xmpp/XMPP.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- 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 {};
|