Update to the latest Backup.proto

This commit is contained in:
Greyson Parrelli
2025-03-05 11:03:26 -05:00
committed by Michelle Tang
parent 2ff4ea2832
commit 19bf6f95c7
479 changed files with 118 additions and 17 deletions

View File

@@ -117,6 +117,7 @@ message AccountData {
reserved /*backupsSubscriberData*/ 8; // A deprecated format
AccountSettings accountSettings = 9;
IAPSubscriberData backupsSubscriberData = 10;
string svrPin = 11;
}
message Recipient {
@@ -132,6 +133,30 @@ message Recipient {
}
}
// If unset - computed as the value of the first byte of SHA-256(msg=CONTACT_ID)
// modulo the count of colors. Once set the avatar color for a recipient is
// never recomputed or changed.
//
// `CONTACT_ID` is the first available identifier from the list:
// - ServiceIdToBinary(ACI)
// - E164
// - ServiceIdToBinary(PNI)
// - Group Id
enum AvatarColor {
A100 = 0;
A110 = 1;
A120 = 2;
A130 = 3;
A140 = 4;
A150 = 5;
A160 = 6;
A170 = 7;
A180 = 8;
A190 = 9;
A200 = 10;
A210 = 11;
}
message Contact {
enum IdentityState {
DEFAULT = 0; // A valid value -- indicates unset by the user
@@ -180,6 +205,7 @@ message Contact {
string systemGivenName = 18;
string systemFamilyName = 19;
string systemNickname = 20;
optional AvatarColor avatarColor = 21;
}
message Group {
@@ -195,6 +221,7 @@ message Group {
StorySendMode storySendMode = 4;
GroupSnapshot snapshot = 5;
bool blocked = 6;
optional AvatarColor avatarColor = 7;
// These are simply plaintext copies of the groups proto from Groups.proto.
// They should be kept completely in-sync with Groups.proto.
@@ -274,7 +301,9 @@ message Group {
}
}
message Self {}
message Self {
optional AvatarColor avatarColor = 1;
}
message ReleaseNotes {}