Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

629 B
Raw Blame
/**
 * Vault key response type (account-key model). Returned by GET /v2/VaultKey/{type}.
 */
export type VaultKeyResponse = {
  type: string;
  encryptedAccountKey: string;
  algorithm: string;
  encryptedAccountPrivateKey: string | null;
  accountPublicKey: string | null;
  signingPublicKey: string | null;
  encryptedSigningPrivateKey: string | null;
  encryptedVek: string | null;
  salt: string;
  encryptionType: string;
  encryptionSettings: string;
  keyVersion?: number;
}

/**
 * Envelope returned by GET /v2/VaultKey/{type} with HTTP 200.
 */
export type VaultKeyGetResponse = {
  vaultKey: VaultKeyResponse | null;
}