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

    Class AccountVault

    An opened account vault: a kdbxweb database kept in sync with vaults/<id>.

    Index
    db: Kdbx | null = null
    info: VaultInfo
    offline: boolean = false

    true when the last sync couldn't reach the server (or the vault was opened from the offline cache)

    • get etag(): string | undefined

      The server ETag at the last sync (compare with a vault event's etag), or undefined before one.

      Returns string | undefined

    • get id(): string

      Returns string

    • get name(): string

      Returns string

    • Parameters

      Returns string

    • Downloads, merges local edits and uploads them (conditional PUT, merge and retry on 412). With localChanged: false it first asks the server with a HEAD and stops there when nothing changed.

      Parameters

      • opts: { localChanged?: boolean; rekeyTo?: Uint8Array<ArrayBufferLike> } = {}

      Returns Promise<SyncResult>

    • Sets a field and syncs it up.

      Parameters

      • ref: string | Pick<SecretReference, "entry" | "groupPath" | "field">
      • value: string
      • opts: { create?: boolean } = {}

      Returns Promise<SyncResult>