matrixprotofiles

A Repo containing .proto files for the matrix protocol. Used in https://github.com/MTRNord/MatrixProtoBuf
git clone git://archive.git.mtrnord.blog/Nordgedanken/matrixprotofiles.git
Log | Files | Refs | README | LICENSE

commit e934cbb08a18cbaf0e782010d7a58b1fb727dc3e
parent 2d07bc1fbac7cd636e3c54ce978198131d5415be
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Tue, 28 Nov 2017 15:52:14 +0100

Create matrix.proto
Diffstat:
Amatrix.proto | 42++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+), 0 deletions(-)

diff --git a/matrix.proto b/matrix.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; +package matrixProtos; + +service VersionsService { + rpc Versions (VersionRequest) returns (VersionsResponse); +} + +message VersionsResponse { + repeated Version versions = 1; +} + +message Version { + string version = 1; +} + +message VersionRequest { + string address = 1; +} + +service LoginService { + rpc Login (LoginRequest) returns (LoginResponse); +} + +message LoginRequest { + string type = 1; + string user = 2; + string password = 3; + string medium = 4; + string address = 5; +} + +message LoginResponse { + string access_token = 1; + string home_server = 2; + string user_id = 3; + string refresh_token = 4; +} + +message LoginError { + string errcode = 1; + string error = 2; +}