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

    Class ServiceAccount

    Index
    saId: string
    • get principal(): string

      Returns string

    • Wipes the keyset, vault keys and secret (best effort).

      Returns void

    • Changes a vault (needs write): fn edits the latest copy, then it is uploaded with the conditional PUT and merge/retry loop. If the upload fails the cached copy is dropped, so a failed edit is never read back. Edits of one vault run one at a time.

      Type Parameters

      • T

      Parameters

      • idOrName: string
      • fn: (db: Kdbx) => T | Promise<T>

      Returns Promise<T>

    • Replaces every ov:// reference in a template (ov inject / run --env-file).

      Parameters

      • template: string

      Returns Promise<{ secrets: string[]; text: string }>

    • Vaults granted to this SA, with names decrypted.

      Parameters

      • refresh: boolean = false

      Returns Promise<SaVault[]>

    • Downloads and opens a vault (cached; refresh downloads again).

      Parameters

      • idOrName: string
      • refresh: boolean = false

      Returns Promise<Kdbx>

    • Brings the cached copy up to date: a HEAD with the last ETag, and a download only when the server has a newer version (for long-running processes such as ov connect). Opens the vault if needed.

      Parameters

      • idOrName: string

      Returns Promise<Kdbx>

    • Reads ov://<vault>/<entry>/<field>.

      Parameters

      • ref: string

      Returns Promise<string>

    • Finds a vault by id or (unique) name.

      Parameters

      • idOrName: string

      Returns Promise<SaVault>

    • Writes a field (needs write) with the conditional PUT and merge/retry loop.

      Parameters

      • ref: string
      • value: string
      • opts: { create?: boolean } = {}

      Returns Promise<void>