Skip to content

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

964 B
Raw Blame
/**
 * Auth Log model.
 */
export type AuthLogModel = {
  /**
   * Gets or sets the timestamp of the auth log entry.
   */
  timestamp: string;

  /**
   * Gets or sets the type of authentication event.
   */
  eventType: string;

  /**
   * Gets or sets the username associated with the auth log entry.
   */
  username: string;

  /**
   * Gets or sets the IP address from which the authentication attempt was made.
   */
  ipAddress: string;

  /**
   * Gets or sets the user agent string of the device used for the authentication attempt.
   */
  userAgent: string;

  /**
   * Gets or sets the client application name and version.
   */
  client: string;

  /**
   * Gets or sets a value indicating whether the authentication attempt was successful.
   */
  isSuccess: boolean;
}

/**
 * Response of GET /v2/Security/authlogs.
 */
export type AuthLogsResponse = {
  /**
   * The most recent auth log entries, newest first.
   */
  authLogs: AuthLogModel[];
}