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

    Class AuthClient

    Index
    api: string
    • Parameters

      • token: string

      Returns Promise<Member>

    • Parameters

      • vault: string
      • version: number

      Returns Promise<void>

    • Parameters

      • org: string
      • opts: { before?: string; limit?: number } = {}

      Returns Promise<{ events: AuditEvent[]; next: string | null }>

    • Parameters

      • org: string
      • id: string

      Returns Promise<void>

    • Parameters

      Returns Promise<Member>

    • Parameters

      • name: string

      Returns Promise<Org>

    • Parameters

      Returns Promise<ServiceAccount>

    • Parameters

      • body: { encrypted_name: string; grants: Grant[]; id: string; org_id?: string | null }

      Returns Promise<Vault>

    • A one-time code that signs the browser in to the auth website (SPEC.md §16)

      Returns Promise<{ code: string; expires_in: number }>

    • Parameters

      • org: string

      Returns Promise<void>

    • Parameters

      • sa: string

      Returns Promise<void>

    • Parameters

      • vault: string

      Returns Promise<void>

    • Parameters

      • body: { record: string; session_id: string }

      Returns Promise<void>

    • Parameters

      • email: string

      Returns Promise<{ expires_in: number }>

    • Parameters

      • body: { code: string; email: string; request: string }

      Returns Promise<{ response: string; session_id: string }>

    • Parameters

      • org: string

      Returns Promise<Org>

    • Parameters

      • vault: string

      Returns Promise<Vault>

    • Parameters

      • vault: string
      • grants: Grant[]

      Returns Promise<void>

    • Parameters

      • org: string
      • body: { email: string; role: OrgRole }

      Returns Promise<Invitation>

    • Parameters

      Returns Promise<unknown>

    • Parameters

      • vault: string

      Returns Promise<{ access: VaultAccess[] }>

    • Returns Promise<{ devices: Device[] }>

    • Parameters

      • org: string

      Returns Promise<{ invitations: Invitation[] }>

    • Parameters

      • org: string

      Returns Promise<{ members: Member[] }>

    • Parameters

      • sa: string

      Returns Promise<{ secrets: SaSecretInfo[] }>

    • Parameters

      • org: string

      Returns Promise<{ service_accounts: ServiceAccount[] }>

    • Returns Promise<{ vaults: Vault[] }>

    • Parameters

      • body: { mfa_token: string; totp: string }

      Returns Promise<Session>

    • Parameters

      • body: { email: string; ke1: string }

      Returns Promise<{ ke2: string; session_id: string }>

    • Returns Promise<void>

    • Returns Promise<Me>

    • Parameters

      Returns Promise<void>

    • Parameters

      • body: { request: string }

      Returns Promise<{ response: string; session_id: string }>

    • Reset, step 2: stores the new record, kdf and keyset, archives the old ones and signs this device in.

      Parameters

      Returns Promise<Session>

    • What an approved reset will do. 409 recovery_not_ready (details.notBefore), 410 recovery_cancelled / session_expired.

      Parameters

      • token: string

      Returns Promise<RecoveryResetJson>

    • Reset, step 1: an OPAQUE registration request under the account email.

      Parameters

      • body: { request: string; token: string }

      Returns Promise<{ response: string; session_id: string }>

    • Parameters

      • refreshToken: string

      Returns Promise<TokenPair>

    • Parameters

      Returns Promise<Session>

    • Parameters

      • body: { email: string; request: string }

      Returns Promise<{ response: string; session_id: string; user_id: string }>

    • Parameters

      • org: string
      • user: string

      Returns Promise<void>

    • Parameters

      • org: string
      • name: string

      Returns Promise<Org>

    • Parameters

      • vault: string
      • encryptedName: string

      Returns Promise<Vault>

    • Restore, step 3: the vault keys re-sealed to the current keyset, and the proof. 400 invalid_proof.

      Parameters

      • body: { grants: VaultGrant[]; proof: string; session_id: string }

      Returns Promise<void>

    • Restore, step 1: OPAQUE login against the archived record. Needs a token issued in the last 5 minutes.

      Parameters

      • body: { ke1: string }

      Returns Promise<{ email?: string; ke2: string; session_id: string }>

    • Restore, step 2: 401 for a wrong old password, else the archived kdf, keyset and grants. Not retried on 401 (a failed verify counts towards the lockout), so call it with a fresh access token.

      Parameters

      • body: { auth_u: string; session_id: string }

      Returns Promise<RestoreVerified>

    • Parameters

      • id: string

      Returns Promise<void>

    • Parameters

      • sa: string
      • id: string

      Returns Promise<void>

    • Parameters

      • body: { sa_id: string; secret: string }

      Returns Promise<ServiceAccountExchange>

    • Parameters

      Returns Promise<Member>

    • Parameters

      • vault: string
      • body: { grants: Grant[]; key_version: number; remove?: string[] }

      Returns Promise<void>

    • Parameters

      • totp: string

      Returns Promise<void>

    • Parameters

      • totp: string

      Returns Promise<void>

    • Returns Promise<{ otpauth_uri: string; secret: string }>

    • Changes when a secret expires (null: never); the token stays the same (SPEC §9).

      Parameters

      • sa: string
      • id: string
      • body: { expires_at: string | null }

      Returns Promise<SaSecretInfo>

    • Parameters

      • sa: string
      • body: { disabled?: boolean; expires_at?: string | null; name?: string }

      Returns Promise<ServiceAccount>