1syntax = "proto3";
2package zed.messages;
3
4message GetNotifications {
5 optional uint64 before_id = 1;
6}
7
8message AddNotification {
9 Notification notification = 1;
10}
11
12message GetNotificationsResponse {
13 repeated Notification notifications = 1;
14 bool done = 2;
15}
16
17message DeleteNotification {
18 uint64 notification_id = 1;
19}
20
21message UpdateNotification {
22 Notification notification = 1;
23}
24
25message MarkNotificationRead {
26 uint64 notification_id = 1;
27}
28
29message Notification {
30 uint64 id = 1;
31 uint64 timestamp = 2;
32 string kind = 3;
33 optional uint64 entity_id = 4;
34 string content = 5;
35 bool is_read = 6;
36 optional bool response = 7;
37}