@openvireo/sdk - v1.0.0
    Preparing search index...

    Function setItemFields

    • Sets several fields of one entry, keeping history (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

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

      Returns { created: boolean; entry: EntryRecord }