Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
import { AUTH_SCOPE } from '../../../authentication/constants/scope.js'
import { USER_SECRET } from '../constants/user.js'
export interface UserAppPassword {
name: string
app: AUTH_SCOPE
password: string
expiration: Date | string | null
currentIp: string | null
lastIp: string | null
currentAccess: Date | string | null
lastAccess: Date | string | null
createdAt: Date
}
export interface UserSecrets {
[USER_SECRET.TWO_FA_SECRET]?: string
[USER_SECRET.RECOVERY_CODES]?: string[]
[USER_SECRET.APP_PASSWORDS]?: UserAppPassword[]
}