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:
+28
-28
@@ -1,4 +1,4 @@
|
|||||||
syntax = "proto2";
|
syntax = "proto3";
|
||||||
package proto;
|
package proto;
|
||||||
|
|
||||||
/// WhatsApp Version: 2.3000.1033381705
|
/// WhatsApp Version: 2.3000.1033381705
|
||||||
@@ -1065,10 +1065,10 @@ message ChatRowOpaqueData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message Citation {
|
message Citation {
|
||||||
required string title = 1;
|
optional string title = 1;
|
||||||
required string subtitle = 2;
|
optional string subtitle = 2;
|
||||||
required string cmsId = 3;
|
optional string cmsId = 3;
|
||||||
required string imageUrl = 4;
|
optional string imageUrl = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ClientPairingProps {
|
message ClientPairingProps {
|
||||||
@@ -1553,7 +1553,7 @@ message ContextInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message Conversation {
|
message Conversation {
|
||||||
required string id = 1;
|
optional string id = 1;
|
||||||
repeated HistorySyncMsg messages = 2;
|
repeated HistorySyncMsg messages = 2;
|
||||||
optional string newJid = 3;
|
optional string newJid = 3;
|
||||||
optional string oldJid = 4;
|
optional string oldJid = 4;
|
||||||
@@ -1882,7 +1882,7 @@ message GroupMention {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message GroupParticipant {
|
message GroupParticipant {
|
||||||
required string userJid = 1;
|
optional string userJid = 1;
|
||||||
optional Rank rank = 2;
|
optional Rank rank = 2;
|
||||||
optional MemberLabel memberLabel = 3;
|
optional MemberLabel memberLabel = 3;
|
||||||
enum Rank {
|
enum Rank {
|
||||||
@@ -1920,7 +1920,7 @@ message HandshakeMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message HistorySync {
|
message HistorySync {
|
||||||
required HistorySyncType syncType = 1;
|
optional HistorySyncType syncType = 1;
|
||||||
repeated Conversation conversations = 2;
|
repeated Conversation conversations = 2;
|
||||||
repeated WebMessageInfo statusV3Messages = 3;
|
repeated WebMessageInfo statusV3Messages = 3;
|
||||||
optional uint32 chunkOrder = 5;
|
optional uint32 chunkOrder = 5;
|
||||||
@@ -2080,8 +2080,8 @@ message KeyId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message LIDMigrationMapping {
|
message LIDMigrationMapping {
|
||||||
required uint64 pn = 1;
|
optional uint64 pn = 1;
|
||||||
required uint64 assignedLid = 2;
|
optional uint64 assignedLid = 2;
|
||||||
optional uint64 latestLid = 3;
|
optional uint64 latestLid = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3724,10 +3724,10 @@ message Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message VideoEndCard {
|
message VideoEndCard {
|
||||||
required string username = 1;
|
optional string username = 1;
|
||||||
required string caption = 2;
|
optional string caption = 2;
|
||||||
required string thumbnailImageUrl = 3;
|
optional string thumbnailImageUrl = 3;
|
||||||
required string profilePictureUrl = 4;
|
optional string profilePictureUrl = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message VideoMessage {
|
message VideoMessage {
|
||||||
@@ -4557,7 +4557,7 @@ message StatusMentionMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message StatusPSA {
|
message StatusPSA {
|
||||||
required uint64 campaignId = 44;
|
optional uint64 campaignId = 44;
|
||||||
optional uint64 campaignExpirationTimestamp = 45;
|
optional uint64 campaignExpirationTimestamp = 45;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4689,7 +4689,7 @@ message SyncActionValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message BroadcastListParticipant {
|
message BroadcastListParticipant {
|
||||||
required string lidJid = 1;
|
optional string lidJid = 1;
|
||||||
optional string pnJid = 2;
|
optional string pnJid = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4734,15 +4734,15 @@ message SyncActionValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message CustomPaymentMethod {
|
message CustomPaymentMethod {
|
||||||
required string credentialId = 1;
|
optional string credentialId = 1;
|
||||||
required string country = 2;
|
optional string country = 2;
|
||||||
required string type = 3;
|
optional string type = 3;
|
||||||
repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
|
repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CustomPaymentMethodMetadata {
|
message CustomPaymentMethodMetadata {
|
||||||
required string key = 1;
|
optional string key = 1;
|
||||||
required string value = 2;
|
optional string value = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CustomPaymentMethodsAction {
|
message CustomPaymentMethodsAction {
|
||||||
@@ -4780,7 +4780,7 @@ message SyncActionValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message InteractiveMessageAction {
|
message InteractiveMessageAction {
|
||||||
required InteractiveMessageActionMode type = 1;
|
optional InteractiveMessageActionMode type = 1;
|
||||||
enum InteractiveMessageActionMode {
|
enum InteractiveMessageActionMode {
|
||||||
DISABLE_CTA = 1;
|
DISABLE_CTA = 1;
|
||||||
}
|
}
|
||||||
@@ -4868,8 +4868,8 @@ message SyncActionValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message MerchantPaymentPartnerAction {
|
message MerchantPaymentPartnerAction {
|
||||||
required Status status = 1;
|
optional Status status = 1;
|
||||||
required string country = 2;
|
optional string country = 2;
|
||||||
optional string gatewayName = 3;
|
optional string gatewayName = 3;
|
||||||
optional string credentialId = 4;
|
optional string credentialId = 4;
|
||||||
enum Status {
|
enum Status {
|
||||||
@@ -4925,8 +4925,8 @@ message SyncActionValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message PaymentTosAction {
|
message PaymentTosAction {
|
||||||
required PaymentNotice paymentNotice = 1;
|
optional PaymentNotice paymentNotice = 1;
|
||||||
required bool accepted = 2;
|
optional bool accepted = 2;
|
||||||
enum PaymentNotice {
|
enum PaymentNotice {
|
||||||
BR_PAY_PRIVACY_POLICY = 0;
|
BR_PAY_PRIVACY_POLICY = 0;
|
||||||
}
|
}
|
||||||
@@ -5295,7 +5295,7 @@ message UserPassword {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message UserReceipt {
|
message UserReceipt {
|
||||||
required string userJid = 1;
|
optional string userJid = 1;
|
||||||
optional int64 receiptTimestamp = 2;
|
optional int64 receiptTimestamp = 2;
|
||||||
optional int64 readTimestamp = 3;
|
optional int64 readTimestamp = 3;
|
||||||
optional int64 playedTimestamp = 4;
|
optional int64 playedTimestamp = 4;
|
||||||
@@ -5381,7 +5381,7 @@ enum WebLinkRenderConfig {
|
|||||||
SYSTEM = 1;
|
SYSTEM = 1;
|
||||||
}
|
}
|
||||||
message WebMessageInfo {
|
message WebMessageInfo {
|
||||||
required MessageKey key = 1;
|
optional MessageKey key = 1;
|
||||||
optional Message message = 2;
|
optional Message message = 2;
|
||||||
optional uint64 messageTimestamp = 3;
|
optional uint64 messageTimestamp = 3;
|
||||||
optional Status status = 4;
|
optional Status status = 4;
|
||||||
|
|||||||
Vendored
+1822
-1822
File diff suppressed because it is too large
Load Diff
+21364
-7379
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user