feat: add write support for KeePass entries and groups

This commit is contained in:
2026-05-10 00:19:42 +02:00
parent 89ba04d61a
commit da0b396bf8
7 changed files with 221 additions and 39 deletions
+18 -1
View File
@@ -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> =
| {