v3 with more features

This commit is contained in:
Soph :3 2024-12-28 03:19:00 +02:00
parent f3c87e1c84
commit 5cb7062d4e
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
6 changed files with 178 additions and 27 deletions

View file

@ -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 {