fix: revert to proto3 syntax and remove invalid required fields

fix: revert to proto3 syntax and remove invalid required fields
This commit is contained in:
Renato Alcara
2026-02-13 18:32:11 -03:00
committed by GitHub
3 changed files with 23214 additions and 9229 deletions
+28 -28
View File
@@ -1,4 +1,4 @@
syntax = "proto2";
syntax = "proto3";
package proto;
/// WhatsApp Version: 2.3000.1033381705
@@ -1065,10 +1065,10 @@ message ChatRowOpaqueData {
}
message Citation {
required string title = 1;
required string subtitle = 2;
required string cmsId = 3;
required string imageUrl = 4;
optional string title = 1;
optional string subtitle = 2;
optional string cmsId = 3;
optional string imageUrl = 4;
}
message ClientPairingProps {
@@ -1553,7 +1553,7 @@ message ContextInfo {
}
message Conversation {
required string id = 1;
optional string id = 1;
repeated HistorySyncMsg messages = 2;
optional string newJid = 3;
optional string oldJid = 4;
@@ -1882,7 +1882,7 @@ message GroupMention {
}
message GroupParticipant {
required string userJid = 1;
optional string userJid = 1;
optional Rank rank = 2;
optional MemberLabel memberLabel = 3;
enum Rank {
@@ -1920,7 +1920,7 @@ message HandshakeMessage {
}
message HistorySync {
required HistorySyncType syncType = 1;
optional HistorySyncType syncType = 1;
repeated Conversation conversations = 2;
repeated WebMessageInfo statusV3Messages = 3;
optional uint32 chunkOrder = 5;
@@ -2080,8 +2080,8 @@ message KeyId {
}
message LIDMigrationMapping {
required uint64 pn = 1;
required uint64 assignedLid = 2;
optional uint64 pn = 1;
optional uint64 assignedLid = 2;
optional uint64 latestLid = 3;
}
@@ -3724,10 +3724,10 @@ message Message {
}
message VideoEndCard {
required string username = 1;
required string caption = 2;
required string thumbnailImageUrl = 3;
required string profilePictureUrl = 4;
optional string username = 1;
optional string caption = 2;
optional string thumbnailImageUrl = 3;
optional string profilePictureUrl = 4;
}
message VideoMessage {
@@ -4557,7 +4557,7 @@ message StatusMentionMessage {
}
message StatusPSA {
required uint64 campaignId = 44;
optional uint64 campaignId = 44;
optional uint64 campaignExpirationTimestamp = 45;
}
@@ -4689,7 +4689,7 @@ message SyncActionValue {
}
message BroadcastListParticipant {
required string lidJid = 1;
optional string lidJid = 1;
optional string pnJid = 2;
}
@@ -4734,15 +4734,15 @@ message SyncActionValue {
}
message CustomPaymentMethod {
required string credentialId = 1;
required string country = 2;
required string type = 3;
optional string credentialId = 1;
optional string country = 2;
optional string type = 3;
repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
}
message CustomPaymentMethodMetadata {
required string key = 1;
required string value = 2;
optional string key = 1;
optional string value = 2;
}
message CustomPaymentMethodsAction {
@@ -4780,7 +4780,7 @@ message SyncActionValue {
}
message InteractiveMessageAction {
required InteractiveMessageActionMode type = 1;
optional InteractiveMessageActionMode type = 1;
enum InteractiveMessageActionMode {
DISABLE_CTA = 1;
}
@@ -4868,8 +4868,8 @@ message SyncActionValue {
}
message MerchantPaymentPartnerAction {
required Status status = 1;
required string country = 2;
optional Status status = 1;
optional string country = 2;
optional string gatewayName = 3;
optional string credentialId = 4;
enum Status {
@@ -4925,8 +4925,8 @@ message SyncActionValue {
}
message PaymentTosAction {
required PaymentNotice paymentNotice = 1;
required bool accepted = 2;
optional PaymentNotice paymentNotice = 1;
optional bool accepted = 2;
enum PaymentNotice {
BR_PAY_PRIVACY_POLICY = 0;
}
@@ -5295,7 +5295,7 @@ message UserPassword {
}
message UserReceipt {
required string userJid = 1;
optional string userJid = 1;
optional int64 receiptTimestamp = 2;
optional int64 readTimestamp = 3;
optional int64 playedTimestamp = 4;
@@ -5381,7 +5381,7 @@ enum WebLinkRenderConfig {
SYSTEM = 1;
}
message WebMessageInfo {
required MessageKey key = 1;
optional MessageKey key = 1;
optional Message message = 2;
optional uint64 messageTimestamp = 3;
optional Status status = 4;
+1822 -1822
View File
File diff suppressed because it is too large Load Diff
+21364 -7379
View File
File diff suppressed because it is too large Load Diff