▸ constructor(fileInterface
: [FileInterface], path
: string, type?
: [SourceType]): Promise‹boolean›
Parameters:
Name | Type |
---|---|
fileInterface |
[FileInterface] |
path |
string |
type |
[SourceType] |
Returns: void
▸ addAccount(entry
: [RawEntry]): Promise‹boolean›
Parameters:
Name | Type |
---|---|
entry |
[RawEntry] |
Returns: Promise‹boolean›
▸ getAccounts(): Promise‹[Entry]
Returns: Promise
▸ getAccountCredentials(): Promise‹[EntryCredentials]
Returns: Promise
▸ login(password
: string): Promise‹void›
Parameters:
Name | Type |
---|---|
password |
string |
Returns: Promise‹void›
Ƭ FileInterface:
{
readFile: (path: string) => Promise<string>;
writeFile: (path: string, data: string) => Promise<void>;
findFile: (path: string) => Promise<boolean>;
createFile: (path: string) => Promise<void>;
deleteFile: (path: string) => Promise<void>;
}
enum SourceType {
SQLITE,
OPVAULT
}
Default: SQLITE
Ƭ RawEntry: Record‹RawEntryFields, string›
Ƭ RawEntryFields: _"name" | "url" | "type" | "username" | "password" | "otp"
Ƭ Entry: Record‹EntryFields, string›
Ƭ EntryFields: _"name" | "url" | "type"
Ƭ EntryCredentials: Record‹EntryCredentialsFields, string›
Ƭ EntryCredentialsFields: _"username" | "password" | "otp";