Fetch friend requests for the add friend window

This commit is contained in:
Samuel Elliott
2025-07-25 19:27:49 +01:00
parent 0f0f666ea6
commit cd96ed7960
6 changed files with 48 additions and 9 deletions

View File

@@ -61,6 +61,8 @@ export interface CoralApiInterface {
getUser(id: number): Promise<Result<User>>;
getUserByFriendCode(friend_code: string, hash?: string): Promise<Result<FriendCodeUser>>;
getCurrentUser(): Promise<Result<CurrentUser>>;
getReceivedFriendRequests(): Promise<Result<ReceivedFriendRequests>>;
getSentFriendRequests(): Promise<Result<SentFriendRequests>>;
getFriendCodeUrl(): Promise<Result<FriendCodeUrl>>;
getCurrentUserPermissions(): Promise<Result<CurrentUserPermissions>>;
getWebServiceToken(id: number): Promise<Result<WebServiceToken>>;