You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@arkadiuminc/sdk

Package Overview
Dependencies
Maintainers
8
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arkadiuminc/sdk - npm Package Compare versions

Comparing version

to
2.40.0

32

dist/pkg/src/api/features/friends/index.d.ts

@@ -17,2 +17,22 @@ import { NakamaProvider } from '../nakama/nakama-provider';

}
export declare enum UserStatusType {
Online = "online",
Offline = "offline",
InGame = "in_game",
Custom = "custom"
}
export interface GameStatus {
type: UserStatusType.InGame;
gameId: string;
gameName: string;
customMessage?: string;
}
export interface CustomStatus {
type: UserStatusType.Custom;
message: string;
}
export interface BasicStatus {
type: UserStatusType.Online | UserStatusType.Offline;
}
export declare type UserStatus = GameStatus | CustomStatus | BasicStatus;
declare type Friend = {

@@ -25,3 +45,3 @@ avatarUrl?: string;

friendshipState?: FriendshipState;
status?: any;
status?: UserStatus;
};

@@ -35,2 +55,3 @@ export declare class FriendsArena extends NakamaService {

private _friendStatus;
private _userStatus?;
private _notificationListenerRemovers;

@@ -62,3 +83,12 @@ constructor(nakamaProvider: NakamaProvider, _auth: Auth, _notificationsService: NotificationsArena);

blockFriend(friendId: string): Promise<boolean>;
private updateFriendStatus;
updateStatus(status?: UserStatus): Promise<void>;
setOnlineStatus(): Promise<void>;
setOfflineStatus(): Promise<void>;
setGameStatus(gameId: string, gameName: string, customMessage?: string): Promise<void>;
setCustomStatus(message: string): Promise<void>;
getStatus(): UserStatus | undefined;
getFormattedStatus(status?: UserStatus): string;
getGameIdFromStatus(status?: UserStatus): string | undefined;
}
export {};

2

package.json
{
"name": "@arkadiuminc/sdk",
"version": "2.39.1",
"version": "2.40.0",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],