internal: incomplete vault systems behind feature flag (#2340)
This commit is contained in:
@@ -47,6 +47,7 @@ export enum StorageKey {
|
||||
PlaintextBackupsLocation = 'plaintext_backups_location',
|
||||
FileBackupsEnabled = 'file_backups_enabled',
|
||||
FileBackupsLocation = 'file_backups_location',
|
||||
VaultSelectionOptions = 'vault_selection_options',
|
||||
}
|
||||
|
||||
export enum NonwrappedStorageKey {
|
||||
|
||||
@@ -8,14 +8,16 @@ import { StoragePersistencePolicies, StorageValueModes } from './StorageTypes'
|
||||
|
||||
export interface StorageServiceInterface {
|
||||
getAllRawPayloads(): Promise<FullyFormedTransferPayload[]>
|
||||
getAllKeys(mode?: StorageValueModes): string[]
|
||||
getValue<T>(key: string, mode?: StorageValueModes, defaultValue?: T): T
|
||||
canDecryptWithKey(key: RootKeyInterface): Promise<boolean>
|
||||
savePayload(payload: PayloadInterface): Promise<void>
|
||||
savePayloads(decryptedPayloads: PayloadInterface[]): Promise<void>
|
||||
setValue(key: string, value: unknown, mode?: StorageValueModes): void
|
||||
setValue<T>(key: string, value: T, mode?: StorageValueModes): void
|
||||
removeValue(key: string, mode?: StorageValueModes): Promise<void>
|
||||
setPersistencePolicy(persistencePolicy: StoragePersistencePolicies): Promise<void>
|
||||
clearAllData(): Promise<void>
|
||||
forceDeletePayloads(payloads: FullyFormedPayloadInterface[]): Promise<void>
|
||||
deletePayloads(payloads: FullyFormedPayloadInterface[]): Promise<void>
|
||||
deletePayloadsWithUuids(uuids: string[]): Promise<void>
|
||||
clearAllPayloads(): Promise<void>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user