diff options
author | Wim <wim@42.be> | 2022-06-25 00:36:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 00:36:16 +0200 |
commit | 4649876956ab944d2a9ea8fc98c75dc8a9f5ef08 (patch) | |
tree | 0f32da8e492cabd8eca53de319e287e6c4791c5e /vendor/go.mau.fi/whatsmeow/binary/proto/def.proto | |
parent | 5604d140e3bbf5c8f6c414b1427145a0c4e36bb4 (diff) | |
download | matterbridge-msglm-4649876956ab944d2a9ea8fc98c75dc8a9f5ef08.tar.gz matterbridge-msglm-4649876956ab944d2a9ea8fc98c75dc8a9f5ef08.tar.bz2 matterbridge-msglm-4649876956ab944d2a9ea8fc98c75dc8a9f5ef08.zip |
Update dependencies (#1851)
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/binary/proto/def.proto')
-rw-r--r-- | vendor/go.mau.fi/whatsmeow/binary/proto/def.proto | 158 |
1 files changed, 107 insertions, 51 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto b/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto index 93531585..33f27d42 100644 --- a/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto +++ b/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto @@ -31,10 +31,10 @@ message ADVDeviceIdentity { optional uint32 keyIndex = 3; } -message CompanionProps { +message DeviceProps { optional string os = 1; optional AppVersion version = 2; - enum CompanionPropsPlatformType { + enum DevicePropsPlatformType { UNKNOWN = 0; CHROME = 1; FIREFOX = 2; @@ -50,7 +50,7 @@ message CompanionProps { CATALINA = 12; TCL_TV = 13; } - optional CompanionPropsPlatformType platformType = 3; + optional DevicePropsPlatformType platformType = 3; optional bool requireFullSync = 4; } @@ -62,39 +62,6 @@ message AppVersion { optional uint32 quinary = 5; } -message ProtocolMessage { - optional MessageKey key = 1; - enum ProtocolMessageType { - REVOKE = 0; - EPHEMERAL_SETTING = 3; - EPHEMERAL_SYNC_RESPONSE = 4; - HISTORY_SYNC_NOTIFICATION = 5; - APP_STATE_SYNC_KEY_SHARE = 6; - APP_STATE_SYNC_KEY_REQUEST = 7; - MSG_FANOUT_BACKFILL_REQUEST = 8; - INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9; - APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10; - } - optional ProtocolMessageType type = 2; - optional uint32 ephemeralExpiration = 4; - optional int64 ephemeralSettingTimestamp = 5; - optional HistorySyncNotification historySyncNotification = 6; - optional AppStateSyncKeyShare appStateSyncKeyShare = 7; - optional AppStateSyncKeyRequest appStateSyncKeyRequest = 8; - optional InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; - optional AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; - optional DisappearingMode disappearingMode = 11; -} - -message ProductMessage { - optional ProductSnapshot product = 1; - optional string businessOwnerJid = 2; - optional CatalogSnapshot catalog = 4; - optional string body = 5; - optional string footer = 6; - optional ContextInfo contextInfo = 17; -} - message ProductSnapshot { optional ImageMessage productImage = 1; optional string productId = 2; @@ -123,6 +90,10 @@ message PollVoteMessage { message PollUpdateMessage { optional MessageKey pollCreationMessageKey = 1; optional PollEncValue vote = 2; + optional PollUpdateMessageMetadata metadata = 3; +} + +message PollUpdateMessageMetadata { } message PollEncValue { @@ -265,6 +236,12 @@ message ProductListHeaderImage { optional bytes jpegThumbnail = 2; } +message KeepInChatMessage { + optional MessageKey key = 1; + optional KeepType keepType = 2; + optional int64 timestampMs = 3; +} + message InvoiceMessage { optional string note = 1; optional string token = 2; @@ -708,6 +685,11 @@ message Location { optional string name = 3; } +enum KeepType { + UNKNOWN = 0; + KEEP_FOR_ALL = 1; + UNDO_KEEP_FOR_ALL = 2; +} message InteractiveAnnotation { repeated Point polygonVertices = 1; oneof action { @@ -926,12 +908,14 @@ message Message { optional InteractiveResponseMessage interactiveResponseMessage = 48; optional PollCreationMessage pollCreationMessage = 49; optional PollUpdateMessage pollUpdateMessage = 50; + optional KeepInChatMessage keepInChatMessage = 51; } message MessageContextInfo { optional DeviceListMetadata deviceListMetadata = 1; optional int32 deviceListMetadataVersion = 2; optional bytes messageSecret = 3; + optional bytes paddingBytes = 4; } message VideoMessage { @@ -1060,6 +1044,39 @@ message ReactionMessage { optional int64 senderTimestampMs = 4; } +message ProtocolMessage { + optional MessageKey key = 1; + enum ProtocolMessageType { + REVOKE = 0; + EPHEMERAL_SETTING = 3; + EPHEMERAL_SYNC_RESPONSE = 4; + HISTORY_SYNC_NOTIFICATION = 5; + APP_STATE_SYNC_KEY_SHARE = 6; + APP_STATE_SYNC_KEY_REQUEST = 7; + MSG_FANOUT_BACKFILL_REQUEST = 8; + INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9; + APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10; + } + optional ProtocolMessageType type = 2; + optional uint32 ephemeralExpiration = 4; + optional int64 ephemeralSettingTimestamp = 5; + optional HistorySyncNotification historySyncNotification = 6; + optional AppStateSyncKeyShare appStateSyncKeyShare = 7; + optional AppStateSyncKeyRequest appStateSyncKeyRequest = 8; + optional InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; + optional AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; + optional DisappearingMode disappearingMode = 11; +} + +message ProductMessage { + optional ProductSnapshot product = 1; + optional string businessOwnerJid = 2; + optional CatalogSnapshot catalog = 4; + optional string body = 5; + optional string footer = 6; + optional ContextInfo contextInfo = 17; +} + message EphemeralSetting { optional sfixed32 duration = 1; optional sfixed64 timestamp = 2; @@ -1161,6 +1178,17 @@ message Conversation { optional MediaVisibility mediaVisibility = 27; optional uint64 tcTokenSenderTimestamp = 28; optional bool suspended = 29; + optional bool terminated = 30; + optional uint64 createdAt = 31; + optional string createdBy = 32; + optional string description = 33; + optional bool support = 34; + optional bool isParentGroup = 35; + optional bool isDefaultSubgroup = 36; + optional string parentGroupId = 37; + optional string displayName = 38; + optional string pnJid = 39; + optional bool selfMasked = 40; } message AutoDownloadSettings { @@ -1192,8 +1220,8 @@ message MsgOpaqueData { optional string loc = 16; optional string pollName = 17; repeated PollOption pollOptions = 18; - optional bytes pollEncKey = 19; optional uint32 pollSelectableOptionsCount = 20; + optional bytes messageSecret = 21; } message PollOption { @@ -1559,20 +1587,6 @@ message BizAccountLinkInfo { optional BizAccountLinkInfoAccountType accountType = 5; } -message NoiseCertificate { - optional bytes details = 1; - optional bytes signature = 2; -} - -// Renamed from NoiseCertificate$Details -message NoiseCertificateDetails { - optional uint32 serial = 1; - optional string issuer = 2; - optional uint64 expires = 3; - optional string subject = 4; - optional bytes key = 5; -} - message HandshakeMessage { optional ClientHello clientHello = 2; optional ServerHello serverHello = 3; @@ -1943,6 +1957,7 @@ message WebMessageInfo { GROUP_PARTICIPANT_ACCEPT = 140; GROUP_PARTICIPANT_LINKED_GROUP_JOIN = 141; COMMUNITY_CREATE = 142; + EPHEMERAL_KEEP_IN_CHAT = 143; } optional WebMessageInfoStubType messageStubType = 24; optional bool clearMedia = 25; @@ -1976,6 +1991,7 @@ message WebMessageInfo { optional string agentId = 47; optional bool statusAlreadyViewed = 48; optional bytes messageSecret = 49; + optional KeepInChat keepInChat = 50; } message WebFeatures { @@ -2148,3 +2164,43 @@ message MediaData { optional string localPath = 1; } +message KeepInChat { + optional KeepType keepType = 1; + optional int64 serverTimestamp = 2; + optional string deviceJid = 3; +} + +message NoiseCertificate { + optional bytes details = 1; + optional bytes signature = 2; +} + +// Renamed from NoiseCertificate$Details +message NoiseCertificateDetails { + optional uint32 serial = 1; + optional string issuer = 2; + optional uint64 expires = 3; + optional string subject = 4; + optional bytes key = 5; +} + +message CertChain { + optional CertChainNoiseCertificate leaf = 1; + optional CertChainNoiseCertificate intermediate = 2; +} + +// Renamed from CertChain$NoiseCertificate +message CertChainNoiseCertificate { + optional bytes details = 1; + optional bytes signature = 2; +} + +// Renamed from CertChain$NoiseCertificate$Details +message CertChainNoiseCertificateDetails { + optional uint32 serial = 1; + optional uint32 issuerSerial = 2; + optional bytes key = 3; + optional uint64 notBefore = 4; + optional uint64 notAfter = 5; +} + |