mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
user types
This commit is contained in:
120
src/types/user.d.ts
vendored
120
src/types/user.d.ts
vendored
@@ -1,8 +1,37 @@
|
||||
export type getUser = (params: { userId: string }) => Promise<{
|
||||
cache?: boolean;
|
||||
json: getUserResponse;
|
||||
ref: vrcxUser;
|
||||
params: { userId: string };
|
||||
}>;
|
||||
|
||||
export interface vrcxUser extends getUserResponse {
|
||||
$location: {};
|
||||
$location_at: number;
|
||||
$online_for: number;
|
||||
$travelingToTime: number;
|
||||
$offline_for: number;
|
||||
$active_for: number;
|
||||
$isVRCPlus: boolean;
|
||||
$isModerator: boolean;
|
||||
$isTroll: boolean;
|
||||
$isProbableTroll: boolean;
|
||||
$trustLevel: string;
|
||||
$trustClass: string;
|
||||
$userColour: string;
|
||||
$trustSortNum: number;
|
||||
$languages: string[];
|
||||
$joinCount: number;
|
||||
$timeSpent: number;
|
||||
$lastSeen: string;
|
||||
$nickName: string;
|
||||
$previousLocation: string;
|
||||
$customTag: string;
|
||||
$customTagColour: string;
|
||||
$friendNumber: number;
|
||||
$lastFetch: number;
|
||||
}
|
||||
|
||||
interface getUserResponse {
|
||||
ageVerificationStatus: string;
|
||||
ageVerified: boolean;
|
||||
@@ -23,17 +52,17 @@ interface getUserResponse {
|
||||
developerType: string;
|
||||
displayName: string;
|
||||
friendKey: string;
|
||||
friendRequestStatus: string;
|
||||
friendRequestStatus?: string;
|
||||
id: string;
|
||||
instanceId: string;
|
||||
instanceId?: string;
|
||||
isFriend: boolean;
|
||||
last_activity: string;
|
||||
last_login: string;
|
||||
last_mobile: string | null;
|
||||
last_platform: string;
|
||||
location: string;
|
||||
note: string;
|
||||
platform: string;
|
||||
location?: string;
|
||||
note?: string;
|
||||
platform?: string;
|
||||
profilePicOverride: string;
|
||||
profilePicOverrideThumbnail: string;
|
||||
pronouns: string;
|
||||
@@ -41,9 +70,82 @@ interface getUserResponse {
|
||||
status: string;
|
||||
statusDescription: string;
|
||||
tags: string[];
|
||||
travelingToInstance: string;
|
||||
travelingToLocation: string;
|
||||
travelingToWorld: string;
|
||||
travelingToInstance?: string;
|
||||
travelingToLocation?: string;
|
||||
travelingToWorld?: string;
|
||||
userIcon: string;
|
||||
worldId: string;
|
||||
worldId?: string;
|
||||
}
|
||||
|
||||
export type getCurrentUser = (any) => Promise<{
|
||||
json: getCurrentUserResponse;
|
||||
ref: vrcxCurrentUser;
|
||||
params: getCurrentUserResponse;
|
||||
}>;
|
||||
|
||||
export interface vrcxCurrentUser extends getCurrentUserResponse {
|
||||
$online_for?: number;
|
||||
$offline_for?: number | null;
|
||||
$location_at?: number;
|
||||
$travelingToTime?: number;
|
||||
$previousAvatarSwapTime?: number | null;
|
||||
$homeLocation?: {};
|
||||
$isVRCPlus?: boolean;
|
||||
$isModerator?: boolean;
|
||||
$isTroll?: boolean;
|
||||
$isProbableTroll?: boolean;
|
||||
$trustLevel?: string;
|
||||
$trustClass?: string;
|
||||
$userColour?: string;
|
||||
$trustSortNum?: number;
|
||||
$languages?: string[];
|
||||
$locationTag?: string;
|
||||
$travelingToLocation?: string;
|
||||
}
|
||||
|
||||
interface getCurrentUserResponse extends getUserResponse {
|
||||
acceptedPrivacyVersion: number;
|
||||
acceptedTOSVersion: number;
|
||||
accountDeletionDate: string | null;
|
||||
accountDeletionLog: string | null;
|
||||
activeFriends: string[];
|
||||
currentAvatar: string;
|
||||
emailVerified: boolean;
|
||||
fallbackAvatar: string;
|
||||
friendGroupNames: string[];
|
||||
friends: string[];
|
||||
googleId: string;
|
||||
hasBirthday: boolean;
|
||||
hasEmail: boolean;
|
||||
hasLoggedInFromClient: boolean;
|
||||
hasPendingEmail: boolean;
|
||||
hideContentFilterSettings: boolean;
|
||||
homeLocation: string;
|
||||
isAdult: boolean;
|
||||
isBoopingEnabled: boolean;
|
||||
obfuscatedEmail: string;
|
||||
obfuscatedPendingEmail: string;
|
||||
oculusId: string;
|
||||
offlineFriends: string[];
|
||||
onlineFriends: string[];
|
||||
pastDisplayNames: { displayName: string; dateChanged: string }[];
|
||||
picoId: string;
|
||||
presence?: {
|
||||
avatarThumbnail: string;
|
||||
currentAvatarTags: string;
|
||||
debugflag: string;
|
||||
displayName: string;
|
||||
groups: string[];
|
||||
id: string;
|
||||
instance: string;
|
||||
instanceType: string;
|
||||
platform: string;
|
||||
profilePicOverride: string;
|
||||
status: string;
|
||||
travelingToInstance: string;
|
||||
travelingToWorld: string;
|
||||
userIcon: string;
|
||||
world: string;
|
||||
};
|
||||
queuedInstance: string | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user