refactor(web): dependency management (#2386)
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { ApplicationServiceInterface } from './../Service/ApplicationServiceInterface'
|
||||
import { DecryptedItem, DecryptedItemInterface, FileItem, SNNote } from '@standardnotes/models'
|
||||
import { ChallengeInterface, ChallengeReason } from '../Challenge'
|
||||
import { MobileUnlockTiming } from './MobileUnlockTiming'
|
||||
import { TimingDisplayOption } from './TimingDisplayOption'
|
||||
import { ProtectionEvent } from './ProtectionEvent'
|
||||
|
||||
export interface ProtectionsClientInterface extends ApplicationServiceInterface<ProtectionEvent, unknown> {
|
||||
isLocked(): Promise<boolean>
|
||||
softLockBiometrics(): void
|
||||
|
||||
export interface ProtectionsClientInterface {
|
||||
createLaunchChallenge(): ChallengeInterface | undefined
|
||||
authorizeProtectedActionForItems<T extends DecryptedItem>(files: T[], challengeReason: ChallengeReason): Promise<T[]>
|
||||
authorizeItemAccess(item: DecryptedItem): Promise<boolean>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
export enum ProtectionEvent {
|
||||
UnprotectedSessionBegan = 'Protection:UnprotectedSessionBegan',
|
||||
UnprotectedSessionExpired = 'Protection:UnprotectedSessionExpired',
|
||||
BiometricsSoftLockEngaged = 'Protection:BiometricsSoftLockEngaged',
|
||||
BiometricsSoftLockDisengaged = 'Protection:BiometricsSoftLockDisengaged',
|
||||
}
|
||||
Reference in New Issue
Block a user