{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wakatime/main/json-schema/wakatime-user-schema.json",
  "title": "User",
  "description": "A WakaTime user profile. Returned by /users/current, /users/{user}, and embedded in leaderboard entries.",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": { "type": "string" },
    "username": { "type": ["string", "null"] },
    "display_name": { "type": "string" },
    "full_name": { "type": ["string", "null"] },
    "email": { "type": ["string", "null"], "format": "email" },
    "photo": { "type": "string", "format": "uri" },
    "photo_public": { "type": "boolean" },
    "is_email_public": { "type": "boolean" },
    "is_email_confirmed": { "type": "boolean" },
    "timezone": { "type": "string" },
    "last_heartbeat_at": { "type": ["string", "null"], "format": "date-time" },
    "last_plugin": { "type": ["string", "null"] },
    "last_plugin_name": { "type": ["string", "null"] },
    "last_project": { "type": ["string", "null"] },
    "plan": { "type": "string", "enum": ["free", "basic", "premium", "team", "business"] },
    "bio": { "type": ["string", "null"] },
    "location": { "type": ["string", "null"] },
    "languages_used_public": { "type": "boolean" },
    "logged_time_public": { "type": "boolean" },
    "website": { "type": ["string", "null"], "format": "uri" },
    "human_readable_website": { "type": ["string", "null"] },
    "github_username": { "type": ["string", "null"] },
    "twitter_username": { "type": ["string", "null"] },
    "linkedin_username": { "type": ["string", "null"] },
    "wonderfuldev_username": { "type": ["string", "null"] },
    "created_at": { "type": "string", "format": "date-time" },
    "modified_at": { "type": ["string", "null"], "format": "date-time" }
  }
}
