add push settings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ service SettingsService {
|
||||
rpc UpsertSocialProvider (UpsertSocialProviderRequest) returns (SocialProvider);
|
||||
rpc DeleteSocialProvider (ProviderNameRequest) returns (MutationCountResponse);
|
||||
rpc TestMessagingDelivery (TestMessagingDeliveryRequest) returns (TestMessagingDeliveryResponse);
|
||||
rpc TestFirebasePush (TestFirebasePushRequest) returns (TestFirebasePushResponse);
|
||||
}
|
||||
|
||||
message Empty {}
|
||||
@@ -236,6 +237,15 @@ message TestMessagingDeliveryResponse {
|
||||
optional string message = 4;
|
||||
}
|
||||
|
||||
message TestFirebasePushRequest {
|
||||
string userId = 1;
|
||||
}
|
||||
|
||||
message TestFirebasePushResponse {
|
||||
string message = 1;
|
||||
int32 sentCount = 2;
|
||||
}
|
||||
|
||||
message TotpStatusResponse {
|
||||
bool isEnabled = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user