mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
feat: add config message to protobuf and deprecate sync messages
This commit is contained in:
parent
4e7345cca5
commit
3c539016ae
@ -35,14 +35,15 @@ message Envelope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message Content {
|
message Content {
|
||||||
optional DataMessage dataMessage = 1;
|
optional DataMessage dataMessage = 1;
|
||||||
optional SyncMessage syncMessage = 2;
|
optional SyncMessage syncMessage = 2 [deprecated=true];
|
||||||
optional CallMessage callMessage = 3;
|
optional CallMessage callMessage = 3;
|
||||||
optional NullMessage nullMessage = 4;
|
optional NullMessage nullMessage = 4;
|
||||||
optional ReceiptMessage receiptMessage = 5;
|
optional ReceiptMessage receiptMessage = 5;
|
||||||
optional TypingMessage typingMessage = 6;
|
optional TypingMessage typingMessage = 6;
|
||||||
optional PreKeyBundleMessage preKeyBundleMessage = 101; // Loki
|
optional ConfigurationMessage configurationMessage = 7;
|
||||||
optional DeviceLinkMessage deviceLinkMessage = 103; // Loki
|
optional PreKeyBundleMessage preKeyBundleMessage = 101; // Loki
|
||||||
|
optional DeviceLinkMessage deviceLinkMessage = 103; // Loki
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeviceLinkMessage {
|
message DeviceLinkMessage {
|
||||||
@ -217,6 +218,7 @@ message DataMessage {
|
|||||||
optional LokiUserProfile profile = 101; // Loki - The profile of the current user
|
optional LokiUserProfile profile = 101; // Loki - The profile of the current user
|
||||||
optional ClosedGroupUpdate closedGroupUpdate = 103; // Loki
|
optional ClosedGroupUpdate closedGroupUpdate = 103; // Loki
|
||||||
optional ClosedGroupUpdateV2 closedGroupUpdateV2 = 104;
|
optional ClosedGroupUpdateV2 closedGroupUpdateV2 = 104;
|
||||||
|
optional string syncTarget = 105;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LokiUserProfile {
|
message LokiUserProfile {
|
||||||
@ -236,13 +238,6 @@ message ClosedGroupUpdateV2 {
|
|||||||
MEMBER_LEFT = 7;
|
MEMBER_LEFT = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message KeyPair {
|
|
||||||
// @required
|
|
||||||
required bytes publicKey = 1;
|
|
||||||
// @required
|
|
||||||
required bytes privateKey = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message KeyPairWrapper {
|
message KeyPairWrapper {
|
||||||
// @required
|
// @required
|
||||||
required bytes publicKey = 1; // The public key of the user the key pair is meant for
|
required bytes publicKey = 1; // The public key of the user the key pair is meant for
|
||||||
@ -260,6 +255,13 @@ message ClosedGroupUpdateV2 {
|
|||||||
repeated KeyPairWrapper wrappers = 7;
|
repeated KeyPairWrapper wrappers = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message KeyPair {
|
||||||
|
// @required
|
||||||
|
required bytes publicKey = 1;
|
||||||
|
// @required
|
||||||
|
required bytes privateKey = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message ClosedGroupUpdate {
|
message ClosedGroupUpdate {
|
||||||
|
|
||||||
enum Type {
|
enum Type {
|
||||||
@ -314,6 +316,20 @@ message TypingMessage {
|
|||||||
optional bytes groupId = 3;
|
optional bytes groupId = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ConfigurationMessage {
|
||||||
|
|
||||||
|
message ClosedGroup {
|
||||||
|
optional bytes publicKey = 1;
|
||||||
|
optional string name = 2;
|
||||||
|
optional KeyPair encryptionKeyPair = 3;
|
||||||
|
repeated bytes members = 4;
|
||||||
|
repeated bytes admins = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
repeated ClosedGroup closedGroups = 1;
|
||||||
|
repeated string openGroups = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message Verified {
|
message Verified {
|
||||||
enum State {
|
enum State {
|
||||||
DEFAULT = 0;
|
DEFAULT = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user