Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / communicate / src / main / proto / whatsapp_client_payload.proto
whatsapp_client_payload.proto169 lines · 4.7 KiBRaw
| 1 | syntax = "proto2"; |
| 2 | package whatsapp.payload; |
| 3 | option java_package = "com.vayunmathur.communicate.data.whatsapp.proto"; |
| 4 | option java_outer_classname = "WhatsAppPayloadProto"; |
| 5 | |
| 6 | message DeviceProps { |
| 7 | enum PlatformType { |
| 8 | UNKNOWN = 0; |
| 9 | CHROME = 1; |
| 10 | FIREFOX = 2; |
| 11 | IE = 3; |
| 12 | OPERA = 4; |
| 13 | SAFARI = 5; |
| 14 | EDGE = 6; |
| 15 | DESKTOP = 7; |
| 16 | IPAD = 8; |
| 17 | ANDROID_TABLET = 9; |
| 18 | OHANA = 10; |
| 19 | ALOHA = 11; |
| 20 | CATALINA = 12; |
| 21 | TCL_TV = 13; |
| 22 | IOS_PHONE = 14; |
| 23 | IOS_CATALYST = 15; |
| 24 | ANDROID_PHONE = 16; |
| 25 | ANDROID_AMBIGUOUS = 17; |
| 26 | WEAR_OS = 18; |
| 27 | AR_WRIST = 19; |
| 28 | AR_DEVICE = 20; |
| 29 | UWP = 21; |
| 30 | VR = 22; |
| 31 | } |
| 32 | |
| 33 | message AppVersion { |
| 34 | optional uint32 primary = 1; |
| 35 | optional uint32 secondary = 2; |
| 36 | optional uint32 tertiary = 3; |
| 37 | optional uint32 quaternary = 4; |
| 38 | optional uint32 quinary = 5; |
| 39 | } |
| 40 | |
| 41 | message HistorySyncConfig { |
| 42 | optional uint32 fullSyncDaysLimit = 1; |
| 43 | optional uint32 fullSyncSizeMbLimit = 2; |
| 44 | optional uint32 storageQuotaMb = 3; |
| 45 | optional bool inlineInitialPayloadInE2eeMsg = 4; |
| 46 | optional uint32 recentSyncDaysLimit = 5; |
| 47 | optional bool supportCallLogHistory = 6; |
| 48 | optional bool supportBotUserAgentChatHistory = 7; |
| 49 | optional bool supportCagReactionsAndPolls = 8; |
| 50 | optional bool supportBizHostedMsg = 9; |
| 51 | optional bool supportRecentSyncChunkMessageCountTuning = 10; |
| 52 | optional bool supportHostedGroupMsg = 11; |
| 53 | optional bool supportFbidBotChatHistory = 12; |
| 54 | optional bool supportMessageAssociation = 14; |
| 55 | optional bool supportGroupHistory = 15; |
| 56 | optional uint32 thumbnailSyncDaysLimit = 16; |
| 57 | optional bool supportManusHistory = 17; |
| 58 | optional bool supportHatchHistory = 18; |
| 59 | } |
| 60 | |
| 61 | optional string os = 1; |
| 62 | optional AppVersion version = 2; |
| 63 | optional PlatformType platformType = 3; |
| 64 | optional bool requireFullSync = 4; |
| 65 | optional HistorySyncConfig historySyncConfig = 5; |
| 66 | } |
| 67 | |
| 68 | message ClientPayload { |
| 69 | enum ConnectType { |
| 70 | CELLULAR_UNKNOWN = 0; |
| 71 | WIFI_UNKNOWN = 1; |
| 72 | } |
| 73 | |
| 74 | enum ConnectReason { |
| 75 | PUSH = 0; |
| 76 | USER_ACTIVATED = 1; |
| 77 | SCHEDULED = 2; |
| 78 | ERROR_RECONNECT = 3; |
| 79 | NETWORK_SWITCH = 4; |
| 80 | PING_RECONNECT = 5; |
| 81 | UNKNOWN = 6; |
| 82 | } |
| 83 | |
| 84 | message UserAgent { |
| 85 | enum ReleaseChannel { |
| 86 | RELEASE = 0; |
| 87 | BETA = 1; |
| 88 | ALPHA = 2; |
| 89 | DEBUG = 3; |
| 90 | } |
| 91 | |
| 92 | enum Platform { |
| 93 | ANDROID = 0; |
| 94 | IOS = 1; |
| 95 | WINDOWS_PHONE = 2; |
| 96 | BLACKBERRY = 3; |
| 97 | BLACKBERRYX = 4; |
| 98 | S40 = 5; |
| 99 | S60 = 6; |
| 100 | PYTHON_CLIENT = 7; |
| 101 | TIZEN = 8; |
| 102 | ENTERPRISE = 9; |
| 103 | SMB_ANDROID = 10; |
| 104 | KAIOS = 11; |
| 105 | SMB_IOS = 12; |
| 106 | WINDOWS = 13; |
| 107 | WEB = 14; |
| 108 | PORTAL = 15; |
| 109 | } |
| 110 | |
| 111 | message AppVersion { |
| 112 | optional uint32 primary = 1; |
| 113 | optional uint32 secondary = 2; |
| 114 | optional uint32 tertiary = 3; |
| 115 | optional uint32 quaternary = 4; |
| 116 | optional uint32 quinary = 5; |
| 117 | } |
| 118 | |
| 119 | optional Platform platform = 1; |
| 120 | optional AppVersion appVersion = 2; |
| 121 | optional string mcc = 3; |
| 122 | optional string mnc = 4; |
| 123 | optional string osVersion = 5; |
| 124 | optional string manufacturer = 6; |
| 125 | optional string device = 7; |
| 126 | optional string osBuildNumber = 8; |
| 127 | optional ReleaseChannel releaseChannel = 10; |
| 128 | optional string localeLanguageIso6391 = 11; |
| 129 | optional string localeCountryIso31661Alpha2 = 12; |
| 130 | } |
| 131 | |
| 132 | message WebInfo { |
| 133 | enum WebSubPlatform { |
| 134 | WEB_BROWSER = 0; |
| 135 | APP_STORE = 1; |
| 136 | WIN_STORE = 2; |
| 137 | DARWIN = 3; |
| 138 | WIN32 = 4; |
| 139 | } |
| 140 | |
| 141 | optional string refToken = 1; |
| 142 | optional string version = 2; |
| 143 | optional WebSubPlatform webSubPlatform = 4; |
| 144 | } |
| 145 | |
| 146 | message DevicePairingRegistrationData { |
| 147 | optional bytes eRegid = 1; |
| 148 | optional bytes eKeytype = 2; |
| 149 | optional bytes eIdent = 3; |
| 150 | optional bytes eSkeyId = 4; |
| 151 | optional bytes eSkeyVal = 5; |
| 152 | optional bytes eSkeySig = 6; |
| 153 | optional bytes buildHash = 7; |
| 154 | optional bytes deviceProps = 8; |
| 155 | } |
| 156 | |
| 157 | optional uint64 username = 1; |
| 158 | optional bool passive = 3; |
| 159 | optional UserAgent userAgent = 5; |
| 160 | optional WebInfo webInfo = 6; |
| 161 | optional string pushName = 7; |
| 162 | optional uint32 device = 18; |
| 163 | optional ConnectType connectType = 12; |
| 164 | optional ConnectReason connectReason = 13; |
| 165 | optional DevicePairingRegistrationData devicePairingData = 19; |
| 166 | optional bool pull = 33; |
| 167 | optional int32 lc = 24; |
| 168 | optional bool lidDbMigrated = 41; |
| 169 | } |