feat: add @standardnotes/encryption package (#1199)
* feat: add @standardnotes/encryption package * fix: mobile dependency on encryption package * fix: order of build & lint in pr workflows * fix: web dependency on encryption package * fix: remove encryption package composite configuration * fix: import order
This commit is contained in:
23
packages/encryption/src/Domain/Backups/BackupFile.ts
Normal file
23
packages/encryption/src/Domain/Backups/BackupFile.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { BackupFileDecryptedContextualPayload, BackupFileEncryptedContextualPayload } from '@standardnotes/models'
|
||||
import { AnyKeyParamsContent, ProtocolVersion } from '@standardnotes/common'
|
||||
|
||||
export type BackupFile = {
|
||||
version?: ProtocolVersion
|
||||
keyParams?: AnyKeyParamsContent
|
||||
auth_params?: AnyKeyParamsContent
|
||||
items: (BackupFileDecryptedContextualPayload | BackupFileEncryptedContextualPayload)[]
|
||||
}
|
||||
|
||||
export enum BackupFileType {
|
||||
Encrypted = 'Encrypted',
|
||||
|
||||
/**
|
||||
* Generated when an export is made from an application with no account and no passcode. The
|
||||
* items are encrypted, but the items keys are not.
|
||||
*/
|
||||
EncryptedWithNonEncryptedItemsKey = 'EncryptedWithNonEncryptedItemsKey',
|
||||
|
||||
FullyDecrypted = 'FullyDecrypted',
|
||||
|
||||
Corrupt = 'Corrupt',
|
||||
}
|
||||
Reference in New Issue
Block a user