Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
export type KeePassEntry = {
|
||||
title: string;
|
||||
username: string;
|
||||
password: string;
|
||||
url: string;
|
||||
notes: string;
|
||||
groupPath?: string;
|
||||
otp?: string;
|
||||
};
|
||||
|
||||
export type KeePassGroup = {
|
||||
name: string;
|
||||
path: string;
|
||||
};
|
||||
|
||||
export type KeePassOpenOptions = {
|
||||
password: string;
|
||||
keyFile?: string;
|
||||
};
|
||||
|
||||
export type KeePassFindQuery = {
|
||||
title?: string;
|
||||
username?: string;
|
||||
url?: string;
|
||||
groupPath?: string;
|
||||
};
|
||||
|
||||
export type KeePassCommand =
|
||||
| { command: "list-entries" }
|
||||
| { command: "find-entries"; query: KeePassFindQuery }
|
||||
| { command: "list-groups" };
|
||||
|
||||
export type KeePassResponse<T> =
|
||||
| {
|
||||
ok: true;
|
||||
data: T;
|
||||
}
|
||||
| {
|
||||
ok: false;
|
||||
error: string;
|
||||
};
|
||||
Reference in New Issue
Block a user