internal: incomplete vault systems behind feature flag (#2340)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { DecryptedItem } from '@standardnotes/models'
|
||||
import { DecryptedItem, DecryptedItemInterface, FileItem, SNNote } from '@standardnotes/models'
|
||||
import { ChallengeReason } from '../Challenge'
|
||||
import { MobileUnlockTiming } from './MobileUnlockTiming'
|
||||
import { TimingDisplayOption } from './TimingDisplayOption'
|
||||
@@ -24,4 +24,13 @@ export interface ProtectionsClientInterface {
|
||||
authorizeAddingPasscode(): Promise<boolean>
|
||||
authorizeRemovingPasscode(): Promise<boolean>
|
||||
authorizeChangingPasscode(): Promise<boolean>
|
||||
authorizeFileImport(): Promise<boolean>
|
||||
protectItems<I extends DecryptedItemInterface>(items: I[]): Promise<I[]>
|
||||
unprotectItems<I extends DecryptedItemInterface>(items: I[], reason: ChallengeReason): Promise<I[] | undefined>
|
||||
protectNote(note: SNNote): Promise<SNNote>
|
||||
unprotectNote(note: SNNote): Promise<SNNote | undefined>
|
||||
protectNotes(notes: SNNote[]): Promise<SNNote[]>
|
||||
unprotectNotes(notes: SNNote[]): Promise<SNNote[]>
|
||||
protectFile(file: FileItem): Promise<FileItem>
|
||||
unprotectFile(file: FileItem): Promise<FileItem | undefined>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user