Skip to content

Commit

Permalink
Update WAProto.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
wkarts authored Aug 23, 2024
1 parent eb87520 commit 5e5e56d
Showing 1 changed file with 133 additions and 20 deletions.
153 changes: 133 additions & 20 deletions WAProto/WAProto.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ message BotMetadata {
optional BotPluginMetadata pluginMetadata = 3;
optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
optional string invokerJid = 5;
optional BotSearchMetadata searchMetadata = 6;
}

message BotPluginMetadata {
Expand All @@ -125,7 +126,8 @@ message BotPluginMetadata {
optional string searchProviderUrl = 5;
optional uint32 referenceIndex = 6;
optional uint32 expectedLinksCount = 7;
optional uint32 pluginVersion = 8;
optional string searchQuery = 9;
optional MessageKey parentPluginMessageKey = 10;
enum PluginType {
REELS = 1;
SEARCH = 2;
Expand All @@ -136,6 +138,10 @@ message BotPluginMetadata {
}
}

message BotSearchMetadata {
optional string sessionId = 1;
}

message BotSuggestedPromptMetadata {
repeated string suggestedPrompts = 1;
optional uint32 selectedPromptIndex = 2;
Expand Down Expand Up @@ -206,6 +212,11 @@ message CertChain {

}

message ChatLockSettings {
optional bool hideLockedChats = 1;
optional UserPassword secretCode = 2;
}

message ChatRowOpaqueData {
optional DraftMessage draftMessage = 1;
message DraftMessage {
Expand Down Expand Up @@ -354,6 +365,7 @@ message ClientPayload {
optional string deviceBoard = 13;
optional string deviceExpId = 14;
optional DeviceType deviceType = 15;
optional string deviceModelType = 16;
message AppVersion {
optional uint32 primary = 1;
optional uint32 secondary = 2;
Expand Down Expand Up @@ -484,6 +496,7 @@ message ContextInfo {
optional string smbClientCampaignId = 45;
optional string smbServerCampaignId = 46;
optional DataSharingContext dataSharingContext = 47;
optional bool alwaysShowAdAttribution = 48;
message AdReplyInfo {
optional string advertiserName = 1;
optional MediaType mediaType = 2;
Expand Down Expand Up @@ -592,13 +605,23 @@ message Conversation {
optional string username = 43;
optional string lidOriginType = 44;
optional uint32 commentsCount = 45;
optional bool locked = 46;
enum EndOfHistoryTransferType {
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;
}
}

message DeviceCapabilities {
optional ChatLockSupportLevel chatLockSupportLevel = 1;
enum ChatLockSupportLevel {
NONE = 0;
MINIMAL = 1;
FULL = 2;
}
}

message DeviceConsistencyCodeMessage {
optional uint32 generation = 1;
optional bytes signature = 2;
Expand Down Expand Up @@ -638,6 +661,8 @@ message DeviceProps {
optional bool supportCallLogHistory = 6;
optional bool supportBotUserAgentChatHistory = 7;
optional bool supportCagReactionsAndPolls = 8;
optional bool supportBizHostedMsg = 9;
optional bool supportRecentSyncChunkMessageCountTuning = 10;
}

enum PlatformType {
Expand Down Expand Up @@ -692,6 +717,10 @@ message EphemeralSetting {
optional sfixed64 timestamp = 2;
}

message EventAdditionalMetadata {
optional bool isStale = 1;
}

message EventResponse {
optional MessageKey eventResponseMessageKey = 1;
optional int64 timestampMs = 2;
Expand Down Expand Up @@ -732,6 +761,7 @@ message GlobalSettings {
optional int32 photoQualityMode = 16;
optional NotificationSettings individualNotificationSettings = 17;
optional NotificationSettings groupNotificationSettings = 18;
optional ChatLockSettings chatLockSettings = 19;
}

message GroupMention {
Expand Down Expand Up @@ -920,7 +950,7 @@ message MediaEntry {
}

message ProgressiveJpegDetails {
repeated int64 scanLengths = 1;
repeated uint32 scanLengths = 1;
optional bytes sidecar = 2;
}

Expand Down Expand Up @@ -1013,11 +1043,11 @@ message Message {
optional BCallMessage bcallMessage = 72;
optional FutureProofMessage lottieStickerMessage = 74;
optional EventMessage eventMessage = 75;
optional EncEventResponseMessage encEventResponseMessage = 76;
optional CommentMessage commentMessage = 77;
optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
optional ExtendedTextMessageWithParentKey extendedTextMessageWithParentKey = 79;
optional PlaceholderMessage placeholderMessage = 80;
optional EncEventUpdateMessage encEventUpdateMessage = 81;
optional SecretEncryptedMessage secretEncryptedMessage = 82;
message AppStateFatalExceptionNotification {
repeated string collectionNames = 1;
optional int64 timestamp = 2;
Expand Down Expand Up @@ -1274,7 +1304,7 @@ message Message {
optional bytes encIv = 3;
}

message EncEventUpdateMessage {
message EncEventResponseMessage {
optional MessageKey eventCreationMessageKey = 1;
optional bytes encPayload = 2;
optional bytes encIv = 3;
Expand All @@ -1286,11 +1316,6 @@ message Message {
optional bytes encIv = 3;
}

message EventEditMessage {
optional Message.EventMessage eventEditMessage = 1;
optional int64 editTimestampMs = 2;
}

message EventMessage {
optional ContextInfo contextInfo = 1;
optional bool isCanceled = 2;
Expand All @@ -1311,11 +1336,6 @@ message Message {
}
}

message EventUpdateMessage {
optional Message.EventResponseMessage response = 1;
optional Message.EventEditMessage edit = 2;
}

message ExtendedTextMessage {
optional string text = 1;
optional string matchedText = 2;
Expand Down Expand Up @@ -1365,11 +1385,6 @@ message Message {
}
}

message ExtendedTextMessageWithParentKey {
optional MessageKey key = 1;
optional Message.ExtendedTextMessage extendedTextMessage = 2;
}

message FutureProofMessage {
optional Message message = 1;
}
Expand Down Expand Up @@ -1500,6 +1515,12 @@ message Message {
optional bytes thumbnailEncSha256 = 28;
optional string staticUrl = 29;
repeated InteractiveAnnotation annotations = 30;
optional ImageSourceType imageSourceType = 31;
enum ImageSourceType {
USER_IMAGE = 0;
AI_GENERATED = 1;
AI_MODIFIED = 2;
}
}

message InitialSecurityNotificationSettingSync {
Expand Down Expand Up @@ -1546,6 +1567,7 @@ message Message {
bytes jpegThumbnail = 6;
Message.VideoMessage videoMessage = 7;
Message.LocationMessage locationMessage = 8;
Message.ProductMessage productMessage = 9;
}
}

Expand Down Expand Up @@ -1728,6 +1750,7 @@ message Message {
optional bytes jpegThumbnail = 3;
optional string caption = 4;
optional int64 inviteExpiration = 5;
optional ContextInfo contextInfo = 6;
}

message OrderMessage {
Expand Down Expand Up @@ -2006,6 +2029,17 @@ message Message {
}
}

message SecretEncryptedMessage {
optional MessageKey targetMessageKey = 1;
optional bytes encPayload = 2;
optional bytes encIv = 3;
optional SecretEncType secretEncType = 4;
enum SecretEncType {
UNKNOWN = 0;
EVENT_EDIT = 1;
}
}

message SendPaymentMessage {
optional Message noteMessage = 2;
optional MessageKey requestMessageKey = 3;
Expand Down Expand Up @@ -2191,6 +2225,21 @@ message MsgOpaqueData {
optional string targetMessageKey = 30;
optional bytes encPayload = 31;
optional bytes encIv = 32;
optional string eventName = 33;
optional bool isEventCanceled = 34;
optional string eventDescription = 35;
optional string eventJoinLink = 36;
optional int64 eventStartTime = 37;
optional EventLocation eventLocation = 38;
message EventLocation {
optional double degreesLatitude = 1;
optional double degreesLongitude = 2;
optional string name = 3;
optional string address = 4;
optional string url = 5;
optional bytes jpegThumbnail = 6;
}

message PollOption {
optional string name = 1;
}
Expand Down Expand Up @@ -2617,6 +2666,7 @@ message StickerMetadata {
optional uint64 fileLength = 9;
optional float weight = 10;
optional int64 lastStickerSentTs = 11;
optional bool isLottie = 12;
}

message SyncActionData {
Expand Down Expand Up @@ -2670,6 +2720,12 @@ message SyncActionValue {
optional LabelReorderingAction labelReorderingAction = 47;
optional PaymentInfoAction paymentInfoAction = 48;
optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
optional LockChatAction lockChatAction = 50;
optional ChatLockSettings chatLockSettings = 51;
optional WamoUserIdentifierAction wamoUserIdentifierAction = 52;
optional PrivacySettingDisableLinkPreviewsAction privacySettingDisableLinkPreviewsAction = 53;
optional DeviceCapabilities deviceCapabilities = 54;
optional NoteEditAction noteEditAction = 55;
message AgentAction {
optional string name = 1;
optional int32 deviceID = 2;
Expand Down Expand Up @@ -2770,6 +2826,10 @@ message SyncActionValue {
optional string locale = 1;
}

message LockChatAction {
optional bool locked = 1;
}

message MarkChatAsReadAction {
optional bool read = 1;
optional SyncActionValue.SyncActionMessageRange messageRange = 2;
Expand Down Expand Up @@ -2798,6 +2858,18 @@ message SyncActionValue {
optional bool autoMuted = 3;
}

message NoteEditAction {
optional NoteType type = 1;
optional string chatJid = 2;
optional int64 createdAt = 3;
optional bool deleted = 4;
optional string unstructuredContent = 5;
enum NoteType {
UNSTRUCTURED = 1;
STRUCTURED = 2;
}
}

message NuxAction {
optional bool acknowledged = 1;
}
Expand All @@ -2822,6 +2894,10 @@ message SyncActionValue {
optional string version = 1;
}

message PrivacySettingDisableLinkPreviewsAction {
optional bool isPreviewsDisabled = 1;
}

message PrivacySettingRelayAllCalls {
optional bool isEnabled = 1;
}
Expand Down Expand Up @@ -2875,6 +2951,7 @@ message SyncActionValue {
optional uint64 fileLength = 8;
optional bool isFavorite = 9;
optional uint32 deviceIdHint = 10;
optional bool isLottie = 11;
}

message SubscriptionAction {
Expand Down Expand Up @@ -2906,6 +2983,10 @@ message SyncActionValue {
optional bool muted = 1;
}

message WamoUserIdentifierAction {
optional string identifier = 1;
}

}

message SyncdIndex {
Expand Down Expand Up @@ -2982,6 +3063,33 @@ message TemplateButton {

}

message UserPassword {
optional Encoding encoding = 1;
optional Transformer transformer = 2;
repeated TransformerArg transformerArg = 3;
optional bytes transformedData = 4;
enum Encoding {
UTF8 = 0;
}
enum Transformer {
NONE = 0;
PBKDF2_HMAC_SHA512 = 1;
PBKDF2_HMAC_SHA384 = 2;
}
message TransformerArg {
optional string key = 1;
optional Value value = 2;
message Value {
oneof value {
bytes asBlob = 1;
uint32 asUnsignedInteger = 2;
}
}

}

}

message UserReceipt {
required string userJid = 1;
optional int64 receiptTimestamp = 2;
Expand Down Expand Up @@ -3117,6 +3225,7 @@ message WebMessageInfo {
repeated EventResponse eventResponses = 61;
optional ReportingTokenInfo reportingTokenInfo = 62;
optional uint64 newsletterServerId = 63;
optional EventAdditionalMetadata eventAdditionalMetadata = 64;
enum BizPrivacyStatus {
E2EE = 0;
FB = 2;
Expand Down Expand Up @@ -3333,6 +3442,10 @@ message WebMessageInfo {
REMINDER_SETUP_MESSAGE = 198;
REMINDER_SENT_MESSAGE = 199;
REMINDER_CANCEL_MESSAGE = 200;
BIZ_COEX_PRIVACY_INIT = 201;
BIZ_COEX_PRIVACY_TRANSITION = 202;
GROUP_DEACTIVATED = 203;
COMMUNITY_DEACTIVATE_SIBLING_GROUP = 204;
}
}

Expand Down

0 comments on commit 5e5e56d

Please sign in to comment.