proto: update to v1031080782

This commit is contained in:
Tulir Asokan committed 2025-12-15 17:26:20 +02:00
1 parent fc91dda710
commit b553db2f6b
7 files changed
+74 -29

No files matched your search

+13 -9
View File
@@ -276,9 +276,10 @@ func (HistorySync_HistorySyncType) EnumDescriptor() ([]byte, []int) {
type Conversation_EndOfHistoryTransferType int32
const (
Conversation_COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY Conversation_EndOfHistoryTransferType = 0
Conversation_COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY Conversation_EndOfHistoryTransferType = 1
Conversation_COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY Conversation_EndOfHistoryTransferType = 2
Conversation_COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY Conversation_EndOfHistoryTransferType = 0
Conversation_COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY Conversation_EndOfHistoryTransferType = 1
Conversation_COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY Conversation_EndOfHistoryTransferType = 2
Conversation_COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS Conversation_EndOfHistoryTransferType = 3
)
// Enum value maps for Conversation_EndOfHistoryTransferType.
@@ -287,11 +288,13 @@ var (
0: "COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY",
1: "COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY",
2: "COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY",
3: "COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS",
}
Conversation_EndOfHistoryTransferType_value = map[string]int32{
"COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY": 0,
"COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY": 1,
"COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY": 2,
"COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY": 0,
"COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY": 1,
"COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY": 2,
"COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS": 3,
}
)
@@ -2120,7 +2123,7 @@ const file_waHistorySync_WAWebProtobufsHistorySync_proto_rawDesc = "" +
"\x06RECENT\x10\x03\x12\r\n" +
"\tPUSH_NAME\x10\x04\x12\x15\n" +
"\x11NON_BLOCKING_DATA\x10\x05\x12\r\n" +
"\tON_DEMAND\x10\x06\"\xbb\x14\n" +
"\tON_DEMAND\x10\x06\"\xff\x14\n" +
"\fConversation\x12\x0e\n" +
"\x02ID\x18\x01 \x02(\tR\x02ID\x12E\n" +
"\bmessages\x18\x02 \x03(\v2).WAWebProtobufsHistorySync.HistorySyncMsgR\bmessages\x12\x16\n" +
@@ -2182,11 +2185,12 @@ const file_waHistorySync_WAWebProtobufsHistorySync_proto_rawDesc = "" +
"\x1climitSharingSettingTimestamp\x183 \x01(\x03R\x1climitSharingSettingTimestamp\x12P\n" +
"\x13limitSharingTrigger\x184 \x01(\x0e2\x1e.WACommon.LimitSharing.TriggerR\x13limitSharingTrigger\x12<\n" +
"\x19limitSharingInitiatedByMe\x185 \x01(\bR\x19limitSharingInitiatedByMe\x122\n" +
"\x14maibaAiThreadEnabled\x186 \x01(\bR\x14maibaAiThreadEnabled\"\xbc\x01\n" +
"\x14maibaAiThreadEnabled\x186 \x01(\bR\x14maibaAiThreadEnabled\"\x80\x02\n" +
"\x18EndOfHistoryTransferType\x120\n" +
",COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY\x10\x00\x122\n" +
".COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY\x10\x01\x12:\n" +
"6COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY\x10\x02\"\xe4\x01\n" +
"6COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY\x10\x02\x12B\n" +
">COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS\x10\x03\"\xe4\x01\n" +
"\x10GroupParticipant\x12\x18\n" +
"\auserJID\x18\x01 \x02(\tR\auserJID\x12D\n" +
"\x04rank\x18\x02 \x01(\x0e20.WAWebProtobufsHistorySync.GroupParticipant.RankR\x04rank\x12@\n" +
@@ -60,6 +60,7 @@ message Conversation {
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY = 2;
COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS = 3;
}
required string ID = 1;
+43 -17
View File
@@ -427,12 +427,14 @@ func (ClientPayload_IOSAppExtension) EnumDescriptor() ([]byte, []int) {
type ClientPayload_DNSSource_DNSResolutionMethod int32
const (
ClientPayload_DNSSource_SYSTEM ClientPayload_DNSSource_DNSResolutionMethod = 0
ClientPayload_DNSSource_GOOGLE ClientPayload_DNSSource_DNSResolutionMethod = 1
ClientPayload_DNSSource_HARDCODED ClientPayload_DNSSource_DNSResolutionMethod = 2
ClientPayload_DNSSource_OVERRIDE ClientPayload_DNSSource_DNSResolutionMethod = 3
ClientPayload_DNSSource_FALLBACK ClientPayload_DNSSource_DNSResolutionMethod = 4
ClientPayload_DNSSource_MNS ClientPayload_DNSSource_DNSResolutionMethod = 5
ClientPayload_DNSSource_SYSTEM ClientPayload_DNSSource_DNSResolutionMethod = 0
ClientPayload_DNSSource_GOOGLE ClientPayload_DNSSource_DNSResolutionMethod = 1
ClientPayload_DNSSource_HARDCODED ClientPayload_DNSSource_DNSResolutionMethod = 2
ClientPayload_DNSSource_OVERRIDE ClientPayload_DNSSource_DNSResolutionMethod = 3
ClientPayload_DNSSource_FALLBACK ClientPayload_DNSSource_DNSResolutionMethod = 4
ClientPayload_DNSSource_MNS ClientPayload_DNSSource_DNSResolutionMethod = 5
ClientPayload_DNSSource_MNS_SECONDARY ClientPayload_DNSSource_DNSResolutionMethod = 6
ClientPayload_DNSSource_SOCKS_PROXY ClientPayload_DNSSource_DNSResolutionMethod = 7
)
// Enum value maps for ClientPayload_DNSSource_DNSResolutionMethod.
@@ -444,14 +446,18 @@ var (
3: "OVERRIDE",
4: "FALLBACK",
5: "MNS",
6: "MNS_SECONDARY",
7: "SOCKS_PROXY",
}
ClientPayload_DNSSource_DNSResolutionMethod_value = map[string]int32{
"SYSTEM": 0,
"GOOGLE": 1,
"HARDCODED": 2,
"OVERRIDE": 3,
"FALLBACK": 4,
"MNS": 5,
"SYSTEM": 0,
"GOOGLE": 1,
"HARDCODED": 2,
"OVERRIDE": 3,
"FALLBACK": 4,
"MNS": 5,
"MNS_SECONDARY": 6,
"SOCKS_PROXY": 7,
}
)
@@ -1277,6 +1283,8 @@ type ClientPayload_WebInfo struct {
Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
WebdPayload *ClientPayload_WebInfo_WebdPayload `protobuf:"bytes,3,opt,name=webdPayload" json:"webdPayload,omitempty"`
WebSubPlatform *ClientPayload_WebInfo_WebSubPlatform `protobuf:"varint,4,opt,name=webSubPlatform,enum=WAWebProtobufsWa6.ClientPayload_WebInfo_WebSubPlatform" json:"webSubPlatform,omitempty"`
Browser *string `protobuf:"bytes,5,opt,name=browser" json:"browser,omitempty"`
BrowserVersion *string `protobuf:"bytes,6,opt,name=browserVersion" json:"browserVersion,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1339,6 +1347,20 @@ func (x *ClientPayload_WebInfo) GetWebSubPlatform() ClientPayload_WebInfo_WebSub
return ClientPayload_WebInfo_WEB_BROWSER
}
func (x *ClientPayload_WebInfo) GetBrowser() string {
if x != nil && x.Browser != nil {
return *x.Browser
}
return ""
}
func (x *ClientPayload_WebInfo) GetBrowserVersion() string {
if x != nil && x.BrowserVersion != nil {
return *x.BrowserVersion
}
return ""
}
type ClientPayload_UserAgent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Platform *ClientPayload_UserAgent_Platform `protobuf:"varint,1,opt,name=platform,enum=WAWebProtobufsWa6.ClientPayload_UserAgent_Platform" json:"platform,omitempty"`
@@ -2071,7 +2093,7 @@ var File_waWa6_WAWebProtobufsWa6_proto protoreflect.FileDescriptor
const file_waWa6_WAWebProtobufsWa6_proto_rawDesc = "" +
"\n" +
"\x1dwaWa6/WAWebProtobufsWa6.proto\x12\x11WAWebProtobufsWa6\"\xe6*\n" +
"\x1dwaWa6/WAWebProtobufsWa6.proto\x12\x11WAWebProtobufsWa6\"\xcd+\n" +
"\rClientPayload\x12\x1a\n" +
"\busername\x18\x01 \x01(\x04R\busername\x12\x18\n" +
"\apassive\x18\x03 \x01(\bR\apassive\x12H\n" +
@@ -2109,10 +2131,10 @@ const file_waWa6_WAWebProtobufsWa6_proto_rawDesc = "" +
"\x16connectionSequenceInfo\x18+ \x01(\x0fR\x16connectionSequenceInfo\x12\x18\n" +
"\apaaLink\x18, \x01(\bR\apaaLink\x12\"\n" +
"\fpreacksCount\x18- \x01(\x05R\fpreacksCount\x120\n" +
"\x13processingQueueSize\x18. \x01(\x05R\x13processingQueueSize\x1a\xea\x01\n" +
"\x13processingQueueSize\x18. \x01(\x05R\x13processingQueueSize\x1a\x8f\x02\n" +
"\tDNSSource\x12\\\n" +
"\tdnsMethod\x18\x0f \x01(\x0e2>.WAWebProtobufsWa6.ClientPayload.DNSSource.DNSResolutionMethodR\tdnsMethod\x12\x1c\n" +
"\tappCached\x18\x10 \x01(\bR\tappCached\"a\n" +
"\tappCached\x18\x10 \x01(\bR\tappCached\"\x85\x01\n" +
"\x13DNSResolutionMethod\x12\n" +
"\n" +
"\x06SYSTEM\x10\x00\x12\n" +
@@ -2121,12 +2143,16 @@ const file_waWa6_WAWebProtobufsWa6_proto_rawDesc = "" +
"\tHARDCODED\x10\x02\x12\f\n" +
"\bOVERRIDE\x10\x03\x12\f\n" +
"\bFALLBACK\x10\x04\x12\a\n" +
"\x03MNS\x10\x05\x1a\xf4\x06\n" +
"\x03MNS\x10\x05\x12\x11\n" +
"\rMNS_SECONDARY\x10\x06\x12\x0f\n" +
"\vSOCKS_PROXY\x10\a\x1a\xb6\a\n" +
"\aWebInfo\x12\x1a\n" +
"\brefToken\x18\x01 \x01(\tR\brefToken\x12\x18\n" +
"\aversion\x18\x02 \x01(\tR\aversion\x12V\n" +
"\vwebdPayload\x18\x03 \x01(\v24.WAWebProtobufsWa6.ClientPayload.WebInfo.WebdPayloadR\vwebdPayload\x12_\n" +
"\x0ewebSubPlatform\x18\x04 \x01(\x0e27.WAWebProtobufsWa6.ClientPayload.WebInfo.WebSubPlatformR\x0ewebSubPlatform\x1a\x91\x04\n" +
"\x0ewebSubPlatform\x18\x04 \x01(\x0e27.WAWebProtobufsWa6.ClientPayload.WebInfo.WebSubPlatformR\x0ewebSubPlatform\x12\x18\n" +
"\abrowser\x18\x05 \x01(\tR\abrowser\x12&\n" +
"\x0ebrowserVersion\x18\x06 \x01(\tR\x0ebrowserVersion\x1a\x91\x04\n" +
"\vWebdPayload\x122\n" +
"\x14usesParticipantInKey\x18\x01 \x01(\bR\x14usesParticipantInKey\x128\n" +
"\x17supportsStarredMessages\x18\x02 \x01(\bR\x17supportsStarredMessages\x12:\n" +
+4
View File
@@ -63,6 +63,8 @@ message ClientPayload {
OVERRIDE = 3;
FALLBACK = 4;
MNS = 5;
MNS_SECONDARY = 6;
SOCKS_PROXY = 7;
}
optional DNSResolutionMethod dnsMethod = 15;
@@ -97,6 +99,8 @@ message ClientPayload {
optional string version = 2;
optional WebdPayload webdPayload = 3;
optional WebSubPlatform webSubPlatform = 4;
optional string browser = 5;
optional string browserVersion = 6;
}
message UserAgent {
+11 -2
View File
@@ -1484,6 +1484,7 @@ type WebMessageInfo struct {
GroupHistoryBundleInfo *GroupHistoryBundleInfo `protobuf:"bytes,75,opt,name=groupHistoryBundleInfo" json:"groupHistoryBundleInfo,omitempty"`
InteractiveMessageAdditionalMetadata *InteractiveMessageAdditionalMetadata `protobuf:"bytes,76,opt,name=interactiveMessageAdditionalMetadata" json:"interactiveMessageAdditionalMetadata,omitempty"`
QuarantinedMessage *QuarantinedMessage `protobuf:"bytes,77,opt,name=quarantinedMessage" json:"quarantinedMessage,omitempty"`
NonJIDMentions *uint32 `protobuf:"varint,78,opt,name=nonJIDMentions" json:"nonJIDMentions,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1980,6 +1981,13 @@ func (x *WebMessageInfo) GetQuarantinedMessage() *QuarantinedMessage {
return nil
}
func (x *WebMessageInfo) GetNonJIDMentions() uint32 {
if x != nil && x.NonJIDMentions != nil {
return *x.NonJIDMentions
}
return 0
}
type PaymentInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
CurrencyDeprecated *PaymentInfo_Currency `protobuf:"varint,1,opt,name=currencyDeprecated,enum=WAWebProtobufsWeb.PaymentInfo_Currency" json:"currencyDeprecated,omitempty"`
@@ -4020,7 +4028,7 @@ var File_waWeb_WAWebProtobufsWeb_proto protoreflect.FileDescriptor
const file_waWeb_WAWebProtobufsWeb_proto_rawDesc = "" +
"\n" +
"\x1dwaWeb/WAWebProtobufsWeb.proto\x12\x11WAWebProtobufsWeb\x1a\x1dwaE2E/WAWebProtobufsE2E.proto\x1a\x17waCommon/WACommon.proto\"\xc2[\n" +
"\x1dwaWeb/WAWebProtobufsWeb.proto\x12\x11WAWebProtobufsWeb\x1a\x1dwaE2E/WAWebProtobufsE2E.proto\x1a\x17waCommon/WACommon.proto\"\xea[\n" +
"\x0eWebMessageInfo\x12&\n" +
"\x03key\x18\x01 \x02(\v2\x14.WACommon.MessageKeyR\x03key\x124\n" +
"\amessage\x18\x02 \x01(\v2\x1a.WAWebProtobufsE2E.MessageR\amessage\x12*\n" +
@@ -4091,7 +4099,8 @@ const file_waWeb_WAWebProtobufsWeb_proto_rawDesc = "" +
"!groupHistoryIndividualMessageInfo\x18J \x01(\v24.WAWebProtobufsWeb.GroupHistoryIndividualMessageInfoR!groupHistoryIndividualMessageInfo\x12a\n" +
"\x16groupHistoryBundleInfo\x18K \x01(\v2).WAWebProtobufsWeb.GroupHistoryBundleInfoR\x16groupHistoryBundleInfo\x12\x8b\x01\n" +
"$interactiveMessageAdditionalMetadata\x18L \x01(\v27.WAWebProtobufsWeb.InteractiveMessageAdditionalMetadataR$interactiveMessageAdditionalMetadata\x12U\n" +
"\x12quarantinedMessage\x18M \x01(\v2%.WAWebProtobufsWeb.QuarantinedMessageR\x12quarantinedMessage\"=\n" +
"\x12quarantinedMessage\x18M \x01(\v2%.WAWebProtobufsWeb.QuarantinedMessageR\x12quarantinedMessage\x12&\n" +
"\x0enonJIDMentions\x18N \x01(\rR\x0enonJIDMentions\"=\n" +
"\x10BizPrivacyStatus\x12\b\n" +
"\x04E2EE\x10\x00\x12\x06\n" +
"\x02FB\x10\x02\x12\a\n" +
+1
View File
@@ -315,6 +315,7 @@ message WebMessageInfo {
optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
optional QuarantinedMessage quarantinedMessage = 77;
optional uint32 nonJIDMentions = 78;
}
message PaymentInfo {
+1 -1
View File
@@ -76,7 +76,7 @@ func (vc WAVersionContainer) ProtoAppVersion() *waWa6.ClientPayload_UserAgent_Ap
}
// waVersion is the WhatsApp web client version
var waVersion = WAVersionContainer{2, 3000, 1030403648}
var waVersion = WAVersionContainer{2, 3000, 1031080782}
// waVersionHash is the md5 hash of a dot-separated waVersion
var waVersionHash [16]byte