import { User } from "./User.js"; import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; import type { AppFileVersion } from "./AppFile.js"; import VerificationToken from "./VerificationToken.js"; declare const loginSessionStatuses: readonly ["created", "change-password", "totp"]; export type loginStatusType = typeof loginSessionStatuses[number]; declare const devicePushTypes: readonly ["WebPush", "fcm", "apn"]; export type devicePushType = typeof devicePushTypes[number]; export default class LoginSession { sessionID: number; userID: number; start: DateTime; expiry: DateTime; invalid: boolean; dateUpdated: DateTime; status: loginStatusType; ipAddress: string; deviceToken: string; deviceTokenType: devicePushType; verificationID: number; /** * This will not be saved into database */ userName: string; /** * This will not be saved to database, but it might be * sent to us via network, we will investigate if user * exists or not */ checkPassword: string; passwordIsAccessToken: boolean; /** * You need to supply new password if user's status * is set to change-password */ newPassword: string; timeToken: string; oneTimePassword: string; user: User; versions: AppFileVersion[]; verificationToken: VerificationToken; } export {}; //# sourceMappingURL=LoginSession.d.ts.map