server.proto 905 B

12345678910111213141516171819202122232425262728293031
  1. syntax = "proto3";
  2. package chatto.api.v1;
  3. import "chatto/api/v1/common.proto";
  4. // Public server profile, identity, and branding fields.
  5. message ServerPublicProfile {
  6. // Display name of the Chatto server.
  7. string name = 1;
  8. // Server software version.
  9. string version = 2;
  10. // Optional server logo URL.
  11. optional string logo_url = 3;
  12. // Optional server banner URL.
  13. optional string banner_url = 4;
  14. // Optional welcome message.
  15. optional string welcome_message = 5;
  16. // Optional server description.
  17. optional string description = 6;
  18. }
  19. // Login and registration options exposed before authentication.
  20. message ServerLogin {
  21. // Whether users can create accounts through the public UI.
  22. bool direct_registration_enabled = 1;
  23. // Configured login providers.
  24. repeated ProviderMetadata providers = 2;
  25. // URL for the legacy authorization flow, when enabled.
  26. string authorize_url = 3;
  27. }