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

    Class AccountVault

    An open account vault: the core's Vault (entries, groups, fields, history, attachments) plus string conveniences. Edit vault, then sync().

    Index
    vault: Vault
    • get etag(): string | undefined

      The server ETag at the last sync (compare with a vaultChanged event's etag).

      Returns string | undefined

    • get id(): string

      Returns string

    • get name(): string

      Returns string

    • get offline(): boolean

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

      Returns boolean

    • get readOnly(): boolean

      Returns boolean

    • 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 and stops there when nothing changed.

      Edits made to vault while the sync runs are kept: the core merges them into the result and uploads them in up to two more rounds of the same call. Any still landing after that stay as unsynced edits for the next sync (vault.hasPendingEdits()). The report's outcome is the most any round did.

      Parameters

      • opts: { acceptServerState?: boolean; localChanged?: boolean } = {}

      Returns Promise<SyncReport>

    • Sets a field (creating the entry by title with create) and syncs it up.

      Parameters

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

      Returns Promise<SyncReport>