summaryrefslogtreecommitdiffstats
path: root/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-11-27 00:42:16 +0100
committerGitHub <noreply@github.com>2022-11-27 00:42:16 +0100
commit4fd0a7672777f0ed15692ae2ba47838208537558 (patch)
treeb119834a8b9ee78aa8f1b2ad05efa7da50516cbf /vendor/go.mau.fi/whatsmeow/binary/proto/def.proto
parent6da9d567dc9195e9a5211f23a6795a41f56a1bfc (diff)
downloadmatterbridge-msglm-4fd0a7672777f0ed15692ae2ba47838208537558.tar.gz
matterbridge-msglm-4fd0a7672777f0ed15692ae2ba47838208537558.tar.bz2
matterbridge-msglm-4fd0a7672777f0ed15692ae2ba47838208537558.zip
Update dependencies (#1929)
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/binary/proto/def.proto')
-rw-r--r--vendor/go.mau.fi/whatsmeow/binary/proto/def.proto205
1 files changed, 150 insertions, 55 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto b/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto
index 522222fc..5311aefb 100644
--- a/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto
+++ b/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto
@@ -48,6 +48,12 @@ message DeviceProps {
CATALINA = 12;
TCL_TV = 13;
}
+ message HistorySyncConfig {
+ optional uint32 fullSyncDaysLimit = 1;
+ optional uint32 fullSyncSizeMbLimit = 2;
+ optional uint32 storageQuotaMb = 3;
+ }
+
message AppVersion {
optional uint32 primary = 1;
optional uint32 secondary = 2;
@@ -60,37 +66,48 @@ message DeviceProps {
optional AppVersion version = 2;
optional PlatformType platformType = 3;
optional bool requireFullSync = 4;
+ optional HistorySyncConfig historySyncConfig = 5;
+}
+
+enum PeerDataOperationRequestType {
+ UPLOAD_STICKER = 0;
+ SEND_RECENT_STICKER_BOOTSTRAP = 1;
+ GENERATE_LINK_PREVIEW = 2;
+}
+message PeerDataOperationRequestResponseMessage {
+ message PeerDataOperationResult {
+ message LinkPreviewResponse {
+ optional string url = 1;
+ optional string title = 2;
+ optional string description = 3;
+ optional bytes thumbData = 4;
+ optional string canonicalUrl = 5;
+ optional string matchText = 6;
+ optional string previewType = 7;
+ }
+
+ optional MediaRetryNotification.ResultType mediaUploadResult = 1;
+ optional StickerMessage stickerMessage = 2;
+ optional LinkPreviewResponse linkPreviewResponse = 3;
+ }
+
+ optional PeerDataOperationRequestType peerDataOperationRequestType = 1;
+ optional string stanzaId = 2;
+ repeated PeerDataOperationResult peerDataOperationResult = 3;
}
-message PollVoteMessage {
- repeated bytes selectedOptions = 1;
-}
-
-message PollUpdateMessage {
- optional MessageKey pollCreationMessageKey = 1;
- optional PollEncValue vote = 2;
- optional PollUpdateMessageMetadata metadata = 3;
- optional int64 senderTimestampMs = 4;
-}
-
-message PollUpdateMessageMetadata {
-}
-
-message PollEncValue {
- optional bytes encPayload = 1;
- optional bytes encIv = 2;
-}
-
-message PollCreationMessage {
- message Option {
- optional string optionName = 1;
+message PeerDataOperationRequestMessage {
+ message RequestUrlPreview {
+ optional string url = 1;
}
- optional bytes encKey = 1;
- optional string name = 2;
- repeated Option options = 3;
- optional uint32 selectableOptionsCount = 4;
- optional ContextInfo contextInfo = 5;
+ message RequestStickerReupload {
+ optional string fileSha256 = 1;
+ }
+
+ optional PeerDataOperationRequestType peerDataOperationRequestType = 1;
+ repeated RequestStickerReupload requestStickerReupload = 2;
+ repeated RequestUrlPreview requestUrlPreview = 3;
}
message PaymentInviteMessage {
@@ -369,6 +386,7 @@ message HistorySyncNotification {
optional uint32 chunkOrder = 7;
optional string originalMessageId = 8;
optional uint32 progress = 9;
+ optional int64 oldestMsgInChunkTimestampSec = 10;
}
message HighlyStructuredMessage {
@@ -491,6 +509,13 @@ message ExtendedTextMessage {
optional string inviteLinkParentGroupSubjectV2 = 27;
optional bytes inviteLinkParentGroupThumbnailV2 = 28;
optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
+ optional bool viewOnce = 30;
+}
+
+message EncReactionMessage {
+ optional MessageKey targetMessageKey = 1;
+ optional bytes encPayload = 2;
+ optional bytes encIv = 3;
}
message DocumentMessage {
@@ -626,6 +651,7 @@ message AudioMessage {
optional ContextInfo contextInfo = 17;
optional bytes streamingSidecar = 18;
optional bytes waveform = 19;
+ optional fixed32 backgroundArgb = 20;
}
message AppStateSyncKey {
@@ -741,6 +767,7 @@ message ContextInfo {
optional bool containsAutoReply = 10;
optional bool renderLargerThumbnail = 11;
optional bool showAdAttribution = 12;
+ optional string ctwaClid = 13;
}
message AdReplyInfo {
@@ -778,6 +805,8 @@ message ContextInfo {
optional ActionLink actionLink = 33;
optional string groupSubject = 34;
optional string parentGroupJid = 35;
+ optional string trustBannerType = 37;
+ optional uint32 trustBannerAction = 38;
}
message ActionLink {
@@ -894,6 +923,9 @@ message Message {
optional FutureProofMessage documentWithCaptionMessage = 53;
optional RequestPhoneNumberMessage requestPhoneNumberMessage = 54;
optional FutureProofMessage viewOnceMessageV2 = 55;
+ optional EncReactionMessage encReactionMessage = 56;
+ optional FutureProofMessage editedMessage = 58;
+ optional FutureProofMessage viewOnceMessageV2Extension = 59;
}
message MessageContextInfo {
@@ -964,9 +996,11 @@ message TemplateMessage {
optional ContextInfo contextInfo = 3;
optional HydratedFourRowTemplate hydratedTemplate = 4;
+ optional string templateId = 9;
oneof format {
FourRowTemplate fourRowTemplate = 1;
HydratedFourRowTemplate hydratedFourRowTemplate = 2;
+ InteractiveMessage interactiveMessageTemplate = 5;
}
}
@@ -999,6 +1033,8 @@ message StickerMessage {
optional bool isAnimated = 13;
optional bytes pngThumbnail = 16;
optional ContextInfo contextInfo = 17;
+ optional int64 stickerSentTs = 18;
+ optional bool isAvatar = 19;
}
message SenderKeyDistributionMessage {
@@ -1012,11 +1048,6 @@ message SendPaymentMessage {
optional PaymentBackground background = 4;
}
-enum RmrSource {
- FAVORITE_STICKER = 0;
- RECENT_STICKER = 1;
- RECENT_STICKER_INIT = 2;
-}
message RequestPhoneNumberMessage {
optional ContextInfo contextInfo = 1;
}
@@ -1031,23 +1062,6 @@ message RequestPaymentMessage {
optional PaymentBackground background = 7;
}
-message RequestMediaUploadResponseMessage {
- message RequestMediaUploadResult {
- optional string fileSha256 = 1;
- optional MediaRetryNotification.ResultType mediaUploadResult = 2;
- optional StickerMessage stickerMessage = 3;
- }
-
- optional RmrSource rmrSource = 1;
- optional string stanzaId = 2;
- repeated RequestMediaUploadResult reuploadResult = 3;
-}
-
-message RequestMediaUploadMessage {
- repeated string fileSha256 = 1;
- optional RmrSource rmrSource = 2;
-}
-
message ReactionMessage {
optional MessageKey key = 1;
optional string text = 2;
@@ -1067,8 +1081,9 @@ message ProtocolMessage {
INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9;
APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10;
SHARE_PHONE_NUMBER = 11;
- REQUEST_MEDIA_UPLOAD_MESSAGE = 12;
- REQUEST_MEDIA_UPLOAD_RESPONSE_MESSAGE = 13;
+ MESSAGE_EDIT = 14;
+ PEER_DATA_OPERATION_REQUEST_MESSAGE = 16;
+ PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE = 17;
}
optional MessageKey key = 1;
optional Type type = 2;
@@ -1080,8 +1095,10 @@ message ProtocolMessage {
optional InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9;
optional AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10;
optional DisappearingMode disappearingMode = 11;
- optional RequestMediaUploadMessage requestMediaUploadMessage = 12;
- optional RequestMediaUploadResponseMessage requestMediaUploadResponseMessage = 13;
+ optional Message editedMessage = 14;
+ optional int64 timestampMs = 15;
+ optional PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16;
+ optional PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17;
}
message ProductMessage {
@@ -1113,6 +1130,37 @@ message ProductMessage {
optional ContextInfo contextInfo = 17;
}
+message PollVoteMessage {
+ repeated bytes selectedOptions = 1;
+}
+
+message PollUpdateMessage {
+ optional MessageKey pollCreationMessageKey = 1;
+ optional PollEncValue vote = 2;
+ optional PollUpdateMessageMetadata metadata = 3;
+ optional int64 senderTimestampMs = 4;
+}
+
+message PollUpdateMessageMetadata {
+}
+
+message PollEncValue {
+ optional bytes encPayload = 1;
+ optional bytes encIv = 2;
+}
+
+message PollCreationMessage {
+ message Option {
+ optional string optionName = 1;
+ }
+
+ optional bytes encKey = 1;
+ optional string name = 2;
+ repeated Option options = 3;
+ optional uint32 selectableOptionsCount = 4;
+ optional ContextInfo contextInfo = 5;
+}
+
message EphemeralSetting {
optional sfixed32 duration = 1;
optional sfixed64 timestamp = 2;
@@ -1210,6 +1258,7 @@ message GlobalSettings {
optional bool showGroupNotificationsPreview = 8;
optional int32 disappearingModeDuration = 9;
optional int64 disappearingModeTimestamp = 10;
+ optional AvatarUserSettings avatarUserSettings = 11;
}
message Conversation {
@@ -1256,7 +1305,14 @@ message Conversation {
optional string parentGroupId = 37;
optional string displayName = 38;
optional string pnJid = 39;
- optional bool selfPnExposed = 40;
+ optional bool shareOwnPn = 40;
+ optional bool pnhDuplicateLidThread = 41;
+ optional string lidJid = 42;
+}
+
+message AvatarUserSettings {
+ optional string fbid = 1;
+ optional string password = 2;
}
message AutoDownloadSettings {
@@ -1300,10 +1356,13 @@ message MsgOpaqueData {
repeated PollOption pollOptions = 18;
optional uint32 pollSelectableOptionsCount = 20;
optional bytes messageSecret = 21;
- optional string originalSelfAuthorJid = 51;
+ optional string originalSelfAuthor = 51;
optional int64 senderTimestampMs = 22;
optional string pollUpdateParentKey = 23;
optional PollEncValue encPollVote = 24;
+ optional string encReactionTargetMessageKey = 25;
+ optional bytes encReactionEncPayload = 26;
+ optional bytes encReactionEncIv = 27;
}
message ServerErrorReceipt {
@@ -1433,6 +1492,9 @@ message SyncActionValue {
optional NuxAction nuxAction = 31;
optional PrimaryVersionAction primaryVersionAction = 32;
optional StickerAction stickerAction = 33;
+ optional RemoveRecentStickerAction removeRecentStickerAction = 34;
+ optional ChatAssignmentAction chatAssignment = 35;
+ optional ChatAssignmentOpenedStatusAction chatAssignmentOpenedStatus = 36;
}
message UserStatusMuteAction {
@@ -1524,6 +1586,7 @@ message NuxAction {
message MuteAction {
optional bool muted = 1;
optional int64 muteEndTimestamp = 2;
+ optional bool autoMuted = 3;
}
message MarkChatAsReadAction {
@@ -1562,12 +1625,21 @@ message DeleteChatAction {
message ContactAction {
optional string fullName = 1;
optional string firstName = 2;
+ optional string lidJid = 3;
}
message ClearChatAction {
optional SyncActionMessageRange messageRange = 1;
}
+message ChatAssignmentOpenedStatusAction {
+ optional bool chatOpened = 1;
+}
+
+message ChatAssignmentAction {
+ optional string deviceAgentID = 1;
+}
+
message ArchiveChatAction {
optional bool archived = 1;
optional SyncActionMessageRange messageRange = 2;
@@ -1748,6 +1820,9 @@ message ClientPayload {
OCULUS_CALL = 26;
MILAN = 27;
CAPI = 28;
+ WEAROS = 29;
+ ARDEVICE = 30;
+ VRDEVICE = 31;
}
message AppVersion {
optional uint32 primary = 1;
@@ -1829,6 +1904,11 @@ message ClientPayload {
NETWORK_SWITCH = 4;
PING_RECONNECT = 5;
}
+ enum BizMarketSegment {
+ DEFAULT = 0;
+ DEVX = 1;
+ INBOX = 2;
+ }
optional uint64 username = 1;
optional bool passive = 3;
optional UserAgent userAgent = 5;
@@ -1853,6 +1933,9 @@ message ClientPayload {
optional bytes fbDeviceId = 32;
optional bool pull = 33;
optional bytes paddingBytes = 34;
+ optional BizMarketSegment bizMarketSegment = 35;
+ optional int32 yearClass = 36;
+ optional int32 memClass = 37;
}
message WebNotificationsInfo {
@@ -2016,6 +2099,16 @@ message WebMessageInfo {
COMMUNITY_PARENT_GROUP_DELETED = 149;
COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL = 150;
GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP = 151;
+ MASKED_THREAD_CREATED = 152;
+ MASKED_THREAD_UNMASKED = 153;
+ BIZ_CHAT_ASSIGNMENT = 154;
+ CHAT_PSA = 155;
+ CHAT_POLL_CREATION_MESSAGE = 156;
+ CAG_MASKED_THREAD_CREATED = 157;
+ COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED = 158;
+ CAG_INVITE_AUTO_ADD = 159;
+ BIZ_CHAT_ASSIGNMENT_UNASSIGN = 160;
+ CAG_INVITE_AUTO_JOINED = 161;
}
enum Status {
ERROR = 0;
@@ -2252,6 +2345,8 @@ message KeepInChat {
optional int64 serverTimestamp = 2;
optional MessageKey key = 3;
optional string deviceJid = 4;
+ optional int64 clientTimestampMs = 5;
+ optional int64 serverTimestampMs = 6;
}
message NoiseCertificate {