feat: 发布 v0.5.0 加密存储与匿名同步
This commit is contained in:
@@ -40,6 +40,29 @@ export interface AssessmentRecord {
|
||||
recommendedInterval?: '1年' | '3个月' | '一次即可';
|
||||
}
|
||||
|
||||
export interface EncryptedRecordPayload {
|
||||
format: 'mindscope-encrypted-record';
|
||||
version: 1;
|
||||
algorithm: 'AES-GCM';
|
||||
keyScope: 'device' | 'anonymous-profile';
|
||||
kdf?: 'PBKDF2-SHA256';
|
||||
iterations?: number;
|
||||
salt?: string;
|
||||
iv: string;
|
||||
data: string;
|
||||
}
|
||||
|
||||
export interface EncryptedAssessmentRecord {
|
||||
id: string;
|
||||
profileId: string;
|
||||
questionnaireId: string;
|
||||
questionnaireTitle: string;
|
||||
category: string;
|
||||
completedAt: string;
|
||||
encrypted: true;
|
||||
payload: EncryptedRecordPayload;
|
||||
}
|
||||
|
||||
export interface EncryptedMindScopeBackup {
|
||||
format: 'mindscope-encrypted-backup';
|
||||
version: 1;
|
||||
|
||||
Reference in New Issue
Block a user