feat: 支持自动获取并安全保存数据库密钥

This commit is contained in:
电摇小子
2026-06-30 10:12:25 +08:00
parent c00d581d9e
commit 10dc74e2a1
7 changed files with 482 additions and 9 deletions
+12
View File
@@ -61,6 +61,18 @@ declare global {
) => Promise<{ success: boolean; data?: string; error?: string }>
exportGroupReport: (request: GroupReportExportRequest) => Promise<GroupReportExportResult>
revealGroupReport: (filePath: string) => Promise<{ success: boolean; error?: string }>
getSavedDbKey: () => Promise<{ success: boolean; key?: string; error?: string }>
autoGetDbKey: () => Promise<{
success: boolean
key?: string
error?: string
code?: string
saved?: boolean
warning?: string
}>
pasteAndSaveDbKey: () => Promise<{ success: boolean; key?: string; error?: string }>
clearSavedDbKey: () => Promise<{ success: boolean; error?: string }>
onDbKeyStatus: (callback: (payload: { message: string }) => void) => () => void
}
}
}