users.proto 964 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. package chatto.api.v1;
  3. import "chatto/api/v1/presence.proto";
  4. import "chatto/api/v1/user_status.proto";
  5. // Public user fields.
  6. message User {
  7. // Stable user ID.
  8. string id = 1;
  9. // Login name.
  10. string login = 2;
  11. // Display name, when set.
  12. string display_name = 3;
  13. // True when the user account has been deleted.
  14. bool deleted = 4;
  15. // Avatar image URL, when available.
  16. optional string avatar_url = 5;
  17. // Current live presence status.
  18. PresenceStatus presence_status = 6;
  19. // Custom profile status, when set.
  20. CustomUserStatus custom_status = 7;
  21. // True when this identity represents an automated bot.
  22. bool is_bot = 8;
  23. // Short self-authored biography shown on the user's profile, when set.
  24. optional string bio = 9;
  25. // IANA time zone the user shares on their profile (for example
  26. // "Europe/Berlin"), when set. Absent means the user has not chosen a
  27. // shareable time zone.
  28. optional string timezone = 10;
  29. }