feat: 发布 v0.5.0 加密存储与匿名同步

This commit is contained in:
2026-06-23 01:48:01 +02:00
parent 81a70137a9
commit e3825c5a4e
20 changed files with 1091 additions and 70 deletions
+23
View File
@@ -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;