2021-09-21 07:07:07 +00:00
|
|
|
syntax = "proto3";
|
2021-12-26 15:59:45 +00:00
|
|
|
import "revision.proto";
|
2021-12-21 05:42:58 +00:00
|
|
|
|
2022-01-14 07:23:21 +00:00
|
|
|
message ClientRevisionWSData {
|
|
|
|
string object_id = 1;
|
|
|
|
ClientRevisionWSDataType ty = 2;
|
2021-12-26 15:59:45 +00:00
|
|
|
RepeatedRevision revisions = 3;
|
2022-01-14 07:23:21 +00:00
|
|
|
string data_id = 4;
|
2021-12-26 02:48:09 +00:00
|
|
|
}
|
2022-01-14 07:23:21 +00:00
|
|
|
message ServerRevisionWSData {
|
|
|
|
string object_id = 1;
|
|
|
|
ServerRevisionWSDataType ty = 2;
|
2021-09-21 07:07:07 +00:00
|
|
|
bytes data = 3;
|
|
|
|
}
|
2021-12-19 13:10:50 +00:00
|
|
|
message NewDocumentUser {
|
2021-12-16 13:31:36 +00:00
|
|
|
string user_id = 1;
|
|
|
|
string doc_id = 2;
|
2021-12-20 12:59:33 +00:00
|
|
|
bytes revision_data = 3;
|
2021-12-16 13:31:36 +00:00
|
|
|
}
|
2022-01-14 07:23:21 +00:00
|
|
|
enum ClientRevisionWSDataType {
|
2021-12-26 02:48:09 +00:00
|
|
|
ClientPushRev = 0;
|
2022-01-01 15:09:13 +00:00
|
|
|
ClientPing = 1;
|
2021-12-26 02:48:09 +00:00
|
|
|
}
|
2022-01-14 07:23:21 +00:00
|
|
|
enum ServerRevisionWSDataType {
|
2021-12-26 02:48:09 +00:00
|
|
|
ServerAck = 0;
|
|
|
|
ServerPushRev = 1;
|
|
|
|
ServerPullRev = 2;
|
2021-12-16 13:31:36 +00:00
|
|
|
UserConnect = 3;
|
2021-09-21 07:07:07 +00:00
|
|
|
}
|