2016-08-17 00:43:39 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package ricochet;
|
|
|
|
|
|
|
|
message Contact {
|
|
|
|
string address = 2;
|
|
|
|
string nickname = 3;
|
|
|
|
string whenCreated = 4;
|
|
|
|
string lastConnected = 5;
|
|
|
|
ContactRequest request = 6;
|
|
|
|
|
|
|
|
enum Status {
|
2016-09-16 00:30:37 +00:00
|
|
|
UNKNOWN = 0;
|
|
|
|
OFFLINE = 1;
|
|
|
|
ONLINE = 2;
|
|
|
|
REQUEST = 3;
|
|
|
|
REJECTED = 4;
|
2016-08-17 00:43:39 +00:00
|
|
|
}
|
|
|
|
Status status = 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ContactRequest {
|
|
|
|
enum Direction {
|
|
|
|
INBOUND = 0;
|
|
|
|
OUTBOUND = 1;
|
|
|
|
}
|
|
|
|
Direction direction = 1;
|
|
|
|
string address = 2;
|
|
|
|
string nickname = 3;
|
|
|
|
string text = 4;
|
2016-10-27 19:50:34 +00:00
|
|
|
string fromNickname = 5;
|
2017-08-10 17:25:50 +00:00
|
|
|
string whenCreated = 6;
|
|
|
|
bool rejected = 7;
|
2017-09-24 20:15:53 +00:00
|
|
|
string whenDelivered = 8;
|
|
|
|
string whenRejected = 9;
|
|
|
|
string remoteError = 10;
|
2016-08-17 00:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message MonitorContactsRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message ContactEvent {
|
|
|
|
enum Type {
|
|
|
|
NULL = 0;
|
|
|
|
POPULATE = 1;
|
|
|
|
ADD = 2;
|
|
|
|
UPDATE = 3;
|
|
|
|
DELETE = 4;
|
|
|
|
}
|
|
|
|
Type type = 1;
|
|
|
|
|
|
|
|
oneof subject {
|
|
|
|
Contact contact = 2;
|
|
|
|
ContactRequest request = 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message AddContactReply {
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteContactRequest {
|
2017-09-24 21:55:47 +00:00
|
|
|
string address = 1;
|
2016-08-17 00:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteContactReply {
|
|
|
|
}
|
|
|
|
|
|
|
|
message RejectInboundRequestReply {
|
|
|
|
}
|