* 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
24 lines
767 B
TypeScript
24 lines
767 B
TypeScript
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',
|
|
}
|