SpaceNinjaServer/src/types/loginTypes.ts
Sainan 2d6e096fde
All checks were successful
Build / build (20) (push) Successful in 42s
Build Docker image / docker (push) Successful in 33s
Build / build (18) (push) Successful in 1m13s
Build / build (22) (push) Successful in 1m10s
feat: argon crystal decay (#1195)
Reviewed-on: #1195
2025-03-15 06:39:54 -07:00

54 lines
1.2 KiB
TypeScript

export interface IAccountAndLoginResponseCommons {
DisplayName: string;
CountryCode: string;
ClientType: string;
CrossPlatformAllowed: boolean;
ForceLogoutVersion: number;
AmazonAuthToken?: string;
AmazonRefreshToken?: string;
ConsentNeeded: boolean;
TrackedSettings: string[];
Nonce: number;
}
export interface IDatabaseAccount extends IAccountAndLoginResponseCommons {
email: string;
password: string;
Dropped?: boolean;
LatestEventMessageDate: Date;
}
// Includes virtual ID
export interface IDatabaseAccountJson extends IDatabaseAccount {
id: string;
}
export interface ILoginRequest {
email: string;
password: string;
time: number;
s: string;
lang: string;
date: number;
ClientType: string;
PS: string;
kick?: boolean;
}
export interface ILoginResponse extends IAccountAndLoginResponseCommons {
id: string;
Groups: IGroup[];
BuildLabel: string;
MatchmakingBuildId: string;
platformCDNs?: string[];
NRS?: string[];
DTLS: number;
IRC: string[];
HUB?: string;
}
export interface IGroup {
experiment: string;
experimentGroup: string;
}