add push settings

This commit is contained in:
lendry
2026-07-07 13:58:01 +03:00
parent 1bd95fa99e
commit 57925fb2c4
25 changed files with 3036 additions and 1756 deletions

View File

@@ -9,6 +9,8 @@ service NotificationsService {
rpc DeleteAllNotifications (UserIdRequest) returns (MutationResponse);
rpc MarkNotificationRead (MarkNotificationReadRequest) returns (MutationResponse);
rpc MarkAllNotificationsRead (UserIdRequest) returns (MutationResponse);
rpc RegisterPushToken (RegisterPushTokenRequest) returns (MutationResponse);
rpc UnregisterPushToken (UnregisterPushTokenRequest) returns (MutationResponse);
}
message UserIdRequest {
@@ -48,3 +50,15 @@ message MarkNotificationReadRequest {
message MutationResponse {
int32 count = 1;
}
message RegisterPushTokenRequest {
string userId = 1;
string token = 2;
string platform = 3;
optional string deviceLabel = 4;
}
message UnregisterPushTokenRequest {
string userId = 1;
string token = 2;
}