@openvireo/sdk - v0.2.0
    Preparing search index...

    Function setItemFields

    • Sets several fields of one entry, keeping history (pushHistory first, like KeePassXC). create: create the entry (by title, under its group path) when it's missing; "only": fail if it exists. protect overrides which fields are protected (default: isProtectedByDefault).

      Parameters

      • db: Kdbx
      • ref: Pick<ItemReference, "groupPath" | "entry">
      • fields: Record<string, string>
      • opts: { create?: boolean | "only"; protect?: Record<string, boolean> } = {}

      Returns { created: boolean; entry: KdbxEntry }