v3 with more features
This commit is contained in:
parent
f3c87e1c84
commit
5cb7062d4e
6 changed files with 178 additions and 27 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// PV version = 9f40d6b9a23fc72f42529f25f4844b283ea7c20b
|
||||
// PV version = 672593ae79922c7414126e8a84b9bab9d9a4899a
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
|
@ -55,9 +55,18 @@ message ClientMessage {
|
|||
}
|
||||
enum Role {
|
||||
USER = 0;
|
||||
MODERATOR = 1;
|
||||
DEVELOPER = 2;
|
||||
MOD = 1;
|
||||
DEV = 2;
|
||||
}
|
||||
|
||||
enum NotificationLevel {
|
||||
INFO = 0;
|
||||
SUCCESS = 1;
|
||||
WARNING = 2;
|
||||
ERROR = 3;
|
||||
UNRECOGNIZED = -1;
|
||||
}
|
||||
|
||||
message ServerMessage {
|
||||
enum EventType {
|
||||
CLEAR = 0;
|
||||
|
|
@ -73,8 +82,10 @@ message ServerMessage {
|
|||
JOIN = 10;
|
||||
LEAVE = 11;
|
||||
RATELIMIT = 12;
|
||||
MESSAGE = 13;
|
||||
POPUP = 13;
|
||||
CHOWN = 14;
|
||||
NOTIFICATION = 15;
|
||||
TOKEN = 16;
|
||||
}
|
||||
|
||||
Profile clear = 1;
|
||||
|
|
@ -116,8 +127,18 @@ message ServerMessage {
|
|||
Profile join = 12;
|
||||
string leave = 13;
|
||||
uint32 ratelimit = 14;
|
||||
string message = 15;
|
||||
string popup = 15;
|
||||
string chown = 16;
|
||||
|
||||
message Notification {
|
||||
NotificationLevel level = 1;
|
||||
string title = 2;
|
||||
string text = 3;
|
||||
uint32 timeout = 4;
|
||||
}
|
||||
Notification notification = 17;
|
||||
|
||||
string token = 18;
|
||||
}
|
||||
|
||||
message Profile {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue