76c91f8325
* priority notif settings in bsync * lint * priority notifications lexicon update * codegen * putNotificationPreferences -> putPreferences * bsync: reorg around notif "priority", fix build, add validation & tests * bsync: notif channel fix, tests fix * bsky: update protos for priority notifs * api prerelease * add priority notif to actor state table * dataplane impl * appview: wire-up notif priority params * appview: notif priority tests * dataplane impl * fix up tests * tidy * add changeset --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Devin Ivy <devinivy@gmail.com>
85 lines
1.6 KiB
Protocol Buffer
85 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bsync;
|
|
option go_package = "./;bsync";
|
|
|
|
//
|
|
// Sync
|
|
//
|
|
|
|
|
|
message MuteOperation {
|
|
enum Type {
|
|
TYPE_UNSPECIFIED = 0;
|
|
TYPE_ADD = 1;
|
|
TYPE_REMOVE = 2;
|
|
TYPE_CLEAR = 3;
|
|
}
|
|
string id = 1;
|
|
Type type = 2;
|
|
string actor_did = 3;
|
|
string subject = 4;
|
|
}
|
|
|
|
message AddMuteOperationRequest {
|
|
MuteOperation.Type type = 1;
|
|
string actor_did = 2;
|
|
string subject = 3;
|
|
}
|
|
|
|
message AddMuteOperationResponse {
|
|
MuteOperation operation = 1;
|
|
}
|
|
|
|
message ScanMuteOperationsRequest {
|
|
string cursor = 1;
|
|
int32 limit = 2;
|
|
}
|
|
|
|
message ScanMuteOperationsResponse {
|
|
repeated MuteOperation operations = 1;
|
|
string cursor = 2;
|
|
}
|
|
|
|
message NotifOperation {
|
|
string id = 1;
|
|
string actor_did = 2;
|
|
optional bool priority = 3;
|
|
}
|
|
|
|
message AddNotifOperationRequest {
|
|
string actor_did = 1;
|
|
optional bool priority = 2;
|
|
}
|
|
|
|
message AddNotifOperationResponse {
|
|
NotifOperation operation = 1;
|
|
}
|
|
|
|
message ScanNotifOperationsRequest {
|
|
string cursor = 1;
|
|
int32 limit = 2;
|
|
}
|
|
|
|
message ScanNotifOperationsResponse {
|
|
repeated NotifOperation operations = 1;
|
|
string cursor = 2;
|
|
}
|
|
|
|
|
|
|
|
// Ping
|
|
message PingRequest {}
|
|
message PingResponse {}
|
|
|
|
|
|
service Service {
|
|
// Sync
|
|
rpc AddMuteOperation(AddMuteOperationRequest) returns (AddMuteOperationResponse);
|
|
rpc ScanMuteOperations(ScanMuteOperationsRequest) returns (ScanMuteOperationsResponse);
|
|
rpc AddNotifOperation(AddNotifOperationRequest) returns (AddNotifOperationResponse);
|
|
rpc ScanNotifOperations(ScanNotifOperationsRequest) returns (ScanNotifOperationsResponse);
|
|
// Ping
|
|
rpc Ping(PingRequest) returns (PingResponse);
|
|
}
|