mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 19:47:08 +08:00
实现数据库密钥设置页
This commit is contained in:
@@ -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