server.proto 837 B

12345678910111213141516171819202122232425
  1. syntax = "proto3";
  2. package chatto.discovery.v1;
  3. import "chatto/api/v1/server.proto";
  4. // Request for public server metadata.
  5. message GetServerRequest {}
  6. // Public metadata clients need before they can authenticate or render the
  7. // initial server view.
  8. message GetServerResponse {
  9. // Public server profile and branding.
  10. chatto.api.v1.ServerPublicProfile profile = 1;
  11. // Login and registration options.
  12. chatto.api.v1.ServerLogin login = 2;
  13. }
  14. // Provides unauthenticated server discovery metadata.
  15. service ServerDiscoveryService {
  16. // Returns public server metadata, branding, registration status, and login
  17. // provider information. This fully public RPC is available before login so
  18. // clients can render the first server screen and authentication choices.
  19. rpc GetServer(GetServerRequest) returns (GetServerResponse);
  20. }