matrixprotobuf

git clone git://archive.git.mtrnord.blog/MTRNord/matrixprotobuf.git
Log | Files | Refs | README | LICENSE

matrix.proto (721B)


      1 syntax = "proto3";
      2 package matrixProtos;
      3 
      4 service VersionsService {
      5     rpc Versions (VersionRequest) returns (VersionsResponse);
      6 }
      7 
      8 message VersionsResponse {
      9     repeated Version versions = 1;
     10 }
     11 
     12 message Version {
     13     string version = 1;
     14 }
     15 
     16 message VersionRequest {
     17     string address = 1;
     18 }
     19 
     20 service LoginService {
     21     rpc Login (LoginRequest) returns (LoginResponse);
     22 }
     23 
     24 message LoginRequest {
     25     string type = 1;
     26     string user = 2;
     27     string password = 3;
     28     string medium = 4;
     29     string address = 5;
     30 }
     31 
     32 message LoginResponse {
     33     string access_token = 1;
     34     string home_server = 2;
     35     string user_id = 3;
     36     string refresh_token = 4;
     37 }
     38 
     39 message LoginError {
     40     string errcode = 1;
     41     string error = 2;
     42 }