server.proto 933 B

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