feat: add write support for KeePass entries and groups
This commit is contained in:
+18
-1
@@ -25,10 +25,27 @@ export type KeePassFindQuery = {
|
||||
groupPath?: string;
|
||||
};
|
||||
|
||||
export type KeePassEntryInput = {
|
||||
title: string;
|
||||
username?: string;
|
||||
password?: string;
|
||||
url?: string;
|
||||
notes?: string;
|
||||
groupPath?: string;
|
||||
};
|
||||
|
||||
export type KeePassGroupInput = {
|
||||
name: string;
|
||||
path?: string;
|
||||
};
|
||||
|
||||
export type KeePassCommand =
|
||||
| { command: "list-entries" }
|
||||
| { command: "find-entries"; query: KeePassFindQuery }
|
||||
| { command: "list-groups" };
|
||||
| { command: "list-groups" }
|
||||
| { command: "create-entry"; entry: KeePassEntryInput }
|
||||
| { command: "create-group"; group: KeePassGroupInput }
|
||||
| { command: "save" };
|
||||
|
||||
export type KeePassResponse<T> =
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user