mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
实现数据库密钥设置页
This commit is contained in:
1 parent
e586c5f571
commit
54ebe01fa3
21 files changed
+1264
-77
No files matched your search
@@ -0,0 +1,34 @@
|
||||
export type DatabaseKeyValidationCode =
|
||||
| 'INVALID_FORMAT'
|
||||
| 'DATABASE_OPEN_FAILED'
|
||||
| 'ACCOUNT_MISMATCH'
|
||||
| 'ROOT_UNAVAILABLE'
|
||||
| 'DATABASE_FILE_MISSING'
|
||||
| 'UNKNOWN_VALIDATION_ERROR'
|
||||
|
||||
export interface DatabaseKeyValidationResult {
|
||||
success: boolean
|
||||
code?: DatabaseKeyValidationCode
|
||||
error?: string
|
||||
accountRoot?: string
|
||||
wxid?: string
|
||||
contacts?: { available: boolean; count?: number }
|
||||
messages?: { available: boolean; count?: number }
|
||||
}
|
||||
|
||||
export interface DatabaseKeyStorageResult {
|
||||
success: boolean
|
||||
key?: string
|
||||
error?: string
|
||||
saved: boolean
|
||||
encryptionAvailable: boolean
|
||||
}
|
||||
|
||||
export interface DatabaseKeyEnvironment {
|
||||
platform: NodeJS.Platform
|
||||
autoDetectSupported: boolean
|
||||
wechatRunning: boolean
|
||||
accountIdentified: boolean
|
||||
dbConnected: boolean
|
||||
encryptionAvailable: boolean
|
||||
}
|
||||
Reference in new issue
Block a user