Skip to main content
Tedi AccountEntity defines the structure and properties of a user account used in Tedi’s Account API.

Definition

Below is the definition for the AccountEntity:
AccountEntity
interface AccountEntity {
  id: string;
  firstname: string;
  lastname: string;
  email: string;
  email_verified_at: string | null;
  avatar_url: string | null;
  status: "active" | "inactive" | "banned" | "verification_required";
  current_tokens: number;
  max_tokens: number;
  is_2fa_enabled: boolean;
  created_at: string;
  updated_at: string;
}
PropertyTypeDescription
idstringThe unique identifier of the user.
firstnamestringThe first name of the user.
lastnamestringThe last name of the user.
emailstringThe email address of the user.
email_verified_atstring | nullThe timestamp when the user’s email was verified, or null if not verified.
avatar_urlstring | nullThe URL of the user’s avatar image, or null if not set.
statusenumThe current status of the user’s account.
current_tokensnumberThe current number of tokens available in the user’s account.
max_tokensnumberThe maximum number of tokens the user can have in their account.
is_2fa_enabledbooleanIndicates whether two-factor authentication (2FA) is enabled for the user’s account.
created_atstringThe timestamp when the user’s account was created.
updated_atstringThe timestamp when the user’s account was last updated.