@genuxofficial/baileys 1.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/WAProto/WAProto.proto +1385 -96
- package/WAProto/index.d.ts +19244 -2787
- package/WAProto/index.js +138202 -74217
- package/engine-requirements.js +10 -0
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.js +1 -0
- package/lib/Socket/business.d.ts +47 -17
- package/lib/Socket/chats.d.ts +10 -9
- package/lib/Socket/chats.js +36 -16
- package/lib/Socket/groups.d.ts +12 -11
- package/lib/Socket/groups.js +16 -3
- package/lib/Socket/index.d.ts +52 -22
- package/lib/Socket/messages-recv.d.ts +46 -15
- package/lib/Socket/messages-recv.js +158 -23
- package/lib/Socket/messages-send.d.ts +39 -11
- package/lib/Socket/messages-send.js +188 -22
- package/lib/Socket/newsletter.d.ts +137 -0
- package/lib/Socket/newsletter.js +256 -0
- package/lib/Socket/socket.d.ts +4 -4
- package/lib/Socket/socket.js +25 -12
- package/lib/Socket/usync.d.ts +5 -5
- package/lib/Store/index.d.ts +1 -2
- package/lib/Store/index.js +1 -3
- package/lib/Store/make-in-memory-store.js +14 -5
- package/lib/Types/Chat.d.ts +6 -5
- package/lib/Types/Events.d.ts +27 -0
- package/lib/Types/GroupMetadata.d.ts +6 -0
- package/lib/Types/Label.d.ts +0 -11
- package/lib/Types/Message.d.ts +150 -12
- package/lib/Types/Message.js +0 -2
- package/lib/Types/Newsletter.d.ts +79 -0
- package/lib/Types/Newsletter.js +18 -0
- package/lib/Types/Socket.d.ts +8 -3
- package/lib/Types/index.d.ts +1 -0
- package/lib/Types/index.js +1 -0
- package/lib/Utils/auth-utils.d.ts +1 -1
- package/lib/Utils/auth-utils.js +3 -4
- package/lib/Utils/business.js +15 -3
- package/lib/Utils/chat-utils.js +0 -16
- package/lib/Utils/crypto.js +6 -4
- package/lib/Utils/decode-wa-message.d.ts +5 -3
- package/lib/Utils/decode-wa-message.js +158 -31
- package/lib/Utils/event-buffer.js +1 -3
- package/lib/Utils/generics.d.ts +3 -2
- package/lib/Utils/generics.js +16 -36
- package/lib/Utils/history.d.ts +2 -2
- package/lib/Utils/link-preview.d.ts +1 -1
- package/lib/Utils/link-preview.js +1 -24
- package/lib/Utils/make-mutex.js +0 -1
- package/lib/Utils/messages-media.d.ts +14 -5
- package/lib/Utils/messages-media.js +130 -69
- package/lib/Utils/messages.d.ts +1 -1
- package/lib/Utils/messages.js +309 -57
- package/lib/Utils/noise-handler.d.ts +1 -1
- package/lib/Utils/process-message.js +0 -1
- package/lib/Utils/use-multi-file-auth-state.js +44 -13
- package/lib/Utils/validate-connection.js +1 -3
- package/lib/WABinary/decode.js +3 -2
- package/lib/WABinary/encode.js +13 -5
- package/lib/WABinary/generic-utils.d.ts +3 -5
- package/lib/WABinary/generic-utils.js +34 -19
- package/lib/WABinary/jid-utils.d.ts +12 -3
- package/lib/WABinary/jid-utils.js +29 -4
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +21 -12
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +3 -3
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +25 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +53 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +8 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +24 -0
- package/lib/WAUSync/USyncQuery.d.ts +2 -0
- package/lib/WAUSync/USyncQuery.js +10 -0
- package/lib/WAUSync/USyncUser.d.ts +2 -0
- package/lib/WAUSync/USyncUser.js +4 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/package.json +20 -12
- package/WAProto/GenerateStatics.sh +0 -4
- package/lib/Store/make-cache-manager-store.d.ts +0 -14
- package/lib/Store/make-cache-manager-store.js +0 -83
package/WAProto/WAProto.proto
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
syntax = "
|
1
|
+
syntax = "proto3";
|
2
2
|
package proto;
|
3
3
|
|
4
|
+
/// WhatsApp Version: 2.3000.1022982921
|
5
|
+
|
4
6
|
message ADVDeviceIdentity {
|
5
7
|
optional uint32 rawId = 1;
|
6
8
|
optional uint64 timestamp = 2;
|
@@ -40,6 +42,176 @@ message ADVSignedKeyIndexList {
|
|
40
42
|
optional bytes accountSignatureKey = 3;
|
41
43
|
}
|
42
44
|
|
45
|
+
message AIQueryFanout {
|
46
|
+
optional MessageKey messageKey = 1;
|
47
|
+
optional Message message = 2;
|
48
|
+
optional int64 timestamp = 3;
|
49
|
+
}
|
50
|
+
|
51
|
+
message AIRichResponseMessage {
|
52
|
+
optional AIRichResponseMessageType messageType = 1;
|
53
|
+
repeated AIRichResponseSubMessage submessages = 2;
|
54
|
+
optional AIRichResponseUnifiedResponse unifiedResponse = 3;
|
55
|
+
message AIRichResponseCodeMetadata {
|
56
|
+
optional string codeLanguage = 1;
|
57
|
+
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
58
|
+
message AIRichResponseCodeBlock {
|
59
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
60
|
+
optional string codeContent = 2;
|
61
|
+
}
|
62
|
+
|
63
|
+
enum AIRichResponseCodeHighlightType {
|
64
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
65
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
66
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
67
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
68
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
69
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
message AIRichResponseContentItemsMetadata {
|
74
|
+
repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
|
75
|
+
optional ContentType contentType = 2;
|
76
|
+
message AIRichResponseContentItemMetadata {
|
77
|
+
oneof aIRichResponseContentItem {
|
78
|
+
AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
message AIRichResponseReelItem {
|
83
|
+
optional string title = 1;
|
84
|
+
optional string profileIconUrl = 2;
|
85
|
+
optional string thumbnailUrl = 3;
|
86
|
+
optional string videoUrl = 4;
|
87
|
+
}
|
88
|
+
|
89
|
+
enum ContentType {
|
90
|
+
DEFAULT = 0;
|
91
|
+
CAROUSEL = 1;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
message AIRichResponseDynamicMetadata {
|
96
|
+
optional AIRichResponseDynamicMetadataType type = 1;
|
97
|
+
optional uint64 version = 2;
|
98
|
+
optional string url = 3;
|
99
|
+
optional uint32 loopCount = 4;
|
100
|
+
enum AIRichResponseDynamicMetadataType {
|
101
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
102
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
103
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
message AIRichResponseGridImageMetadata {
|
108
|
+
optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
|
109
|
+
repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
|
110
|
+
}
|
111
|
+
|
112
|
+
message AIRichResponseImageURL {
|
113
|
+
optional string imagePreviewUrl = 1;
|
114
|
+
optional string imageHighResUrl = 2;
|
115
|
+
optional string sourceUrl = 3;
|
116
|
+
}
|
117
|
+
|
118
|
+
message AIRichResponseInlineImageMetadata {
|
119
|
+
optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
|
120
|
+
optional string imageText = 2;
|
121
|
+
optional AIRichResponseImageAlignment alignment = 3;
|
122
|
+
optional string tapLinkUrl = 4;
|
123
|
+
enum AIRichResponseImageAlignment {
|
124
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
125
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
126
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
message AIRichResponseLatexMetadata {
|
131
|
+
optional string text = 1;
|
132
|
+
repeated AIRichResponseLatexExpression expressions = 2;
|
133
|
+
message AIRichResponseLatexExpression {
|
134
|
+
optional string latexExpression = 1;
|
135
|
+
optional string url = 2;
|
136
|
+
optional double width = 3;
|
137
|
+
optional double height = 4;
|
138
|
+
optional double fontHeight = 5;
|
139
|
+
optional double imageTopPadding = 6;
|
140
|
+
optional double imageLeadingPadding = 7;
|
141
|
+
optional double imageBottomPadding = 8;
|
142
|
+
optional double imageTrailingPadding = 9;
|
143
|
+
}
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
message AIRichResponseMapMetadata {
|
148
|
+
optional double centerLatitude = 1;
|
149
|
+
optional double centerLongitude = 2;
|
150
|
+
optional double latitudeDelta = 3;
|
151
|
+
optional double longitudeDelta = 4;
|
152
|
+
repeated AIRichResponseMapAnnotation annotations = 5;
|
153
|
+
optional bool showInfoList = 6;
|
154
|
+
message AIRichResponseMapAnnotation {
|
155
|
+
optional uint32 annotationNumber = 1;
|
156
|
+
optional double latitude = 2;
|
157
|
+
optional double longitude = 3;
|
158
|
+
optional string title = 4;
|
159
|
+
optional string body = 5;
|
160
|
+
}
|
161
|
+
|
162
|
+
}
|
163
|
+
|
164
|
+
enum AIRichResponseMessageType {
|
165
|
+
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
166
|
+
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
167
|
+
}
|
168
|
+
message AIRichResponseSubMessage {
|
169
|
+
optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
|
170
|
+
optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
171
|
+
optional string messageText = 3;
|
172
|
+
optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
|
173
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
|
174
|
+
optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
|
175
|
+
optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
176
|
+
optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
|
177
|
+
optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
|
178
|
+
optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
|
179
|
+
}
|
180
|
+
|
181
|
+
enum AIRichResponseSubMessageType {
|
182
|
+
AI_RICH_RESPONSE_UNKNOWN = 0;
|
183
|
+
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
184
|
+
AI_RICH_RESPONSE_TEXT = 2;
|
185
|
+
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
186
|
+
AI_RICH_RESPONSE_TABLE = 4;
|
187
|
+
AI_RICH_RESPONSE_CODE = 5;
|
188
|
+
AI_RICH_RESPONSE_DYNAMIC = 6;
|
189
|
+
AI_RICH_RESPONSE_MAP = 7;
|
190
|
+
AI_RICH_RESPONSE_LATEX = 8;
|
191
|
+
AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
|
192
|
+
}
|
193
|
+
message AIRichResponseTableMetadata {
|
194
|
+
repeated AIRichResponseTableRow rows = 1;
|
195
|
+
message AIRichResponseTableRow {
|
196
|
+
repeated string items = 1;
|
197
|
+
optional bool isHeading = 2;
|
198
|
+
}
|
199
|
+
|
200
|
+
}
|
201
|
+
|
202
|
+
message AIRichResponseUnifiedResponse {
|
203
|
+
optional bytes data = 1;
|
204
|
+
}
|
205
|
+
|
206
|
+
}
|
207
|
+
|
208
|
+
message Account {
|
209
|
+
optional string lid = 1;
|
210
|
+
optional string username = 2;
|
211
|
+
optional string countryCode = 3;
|
212
|
+
optional bool isUsernameDeleted = 4;
|
213
|
+
}
|
214
|
+
|
43
215
|
message ActionLink {
|
44
216
|
optional string url = 1;
|
45
217
|
optional string buttonTitle = 2;
|
@@ -101,6 +273,11 @@ message BizIdentityInfo {
|
|
101
273
|
}
|
102
274
|
}
|
103
275
|
|
276
|
+
message BotAgeCollectionMetadata {
|
277
|
+
optional bool ageCollectionEligible = 1;
|
278
|
+
optional bool shouldTriggerAgeCollectionOnClient = 2;
|
279
|
+
}
|
280
|
+
|
104
281
|
message BotAvatarMetadata {
|
105
282
|
optional uint32 sentiment = 1;
|
106
283
|
optional string behaviorGraph = 2;
|
@@ -109,12 +286,188 @@ message BotAvatarMetadata {
|
|
109
286
|
optional uint32 wordCount = 5;
|
110
287
|
}
|
111
288
|
|
289
|
+
message BotCapabilityMetadata {
|
290
|
+
repeated BotCapabilityType capabilities = 1;
|
291
|
+
enum BotCapabilityType {
|
292
|
+
UNKNOWN = 0;
|
293
|
+
PROGRESS_INDICATOR = 1;
|
294
|
+
RICH_RESPONSE_HEADING = 2;
|
295
|
+
RICH_RESPONSE_NESTED_LIST = 3;
|
296
|
+
AI_MEMORY = 4;
|
297
|
+
RICH_RESPONSE_THREAD_SURFING = 5;
|
298
|
+
RICH_RESPONSE_TABLE = 6;
|
299
|
+
RICH_RESPONSE_CODE = 7;
|
300
|
+
RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
|
301
|
+
RICH_RESPONSE_INLINE_IMAGE = 9;
|
302
|
+
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
303
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
304
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
305
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
|
306
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
|
307
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
|
308
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
|
309
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
|
310
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
|
311
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
|
312
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
|
313
|
+
RICH_RESPONSE_SUB_HEADING = 21;
|
314
|
+
RICH_RESPONSE_GRID_IMAGE = 22;
|
315
|
+
AI_STUDIO_UGC_MEMORY = 23;
|
316
|
+
RICH_RESPONSE_LATEX = 24;
|
317
|
+
RICH_RESPONSE_MAPS = 25;
|
318
|
+
RICH_RESPONSE_INLINE_REELS = 26;
|
319
|
+
AGENTIC_PLANNING = 27;
|
320
|
+
ACCOUNT_LINKING = 28;
|
321
|
+
STREAMING_DISAGGREGATION = 29;
|
322
|
+
RICH_RESPONSE_GRID_IMAGE_3P = 30;
|
323
|
+
RICH_RESPONSE_LATEX_INLINE = 31;
|
324
|
+
QUERY_PLAN = 32;
|
325
|
+
PROACTIVE_MESSAGE = 33;
|
326
|
+
RICH_RESPONSE_UNIFIED_RESPONSE = 34;
|
327
|
+
PROMOTION_MESSAGE = 35;
|
328
|
+
}
|
329
|
+
}
|
330
|
+
|
331
|
+
message BotImagineMetadata {
|
332
|
+
optional ImagineType imagineType = 1;
|
333
|
+
enum ImagineType {
|
334
|
+
UNKNOWN = 0;
|
335
|
+
IMAGINE = 1;
|
336
|
+
MEMU = 2;
|
337
|
+
FLASH = 3;
|
338
|
+
EDIT = 4;
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
message BotLinkedAccount {
|
343
|
+
optional BotLinkedAccountType type = 1;
|
344
|
+
enum BotLinkedAccountType {
|
345
|
+
BOT_LINKED_ACCOUNT_TYPE_1P = 0;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
message BotLinkedAccountsMetadata {
|
350
|
+
repeated BotLinkedAccount accounts = 1;
|
351
|
+
optional bytes acAuthTokens = 2;
|
352
|
+
optional int32 acErrorCode = 3;
|
353
|
+
}
|
354
|
+
|
355
|
+
message BotMediaMetadata {
|
356
|
+
optional string fileSha256 = 1;
|
357
|
+
optional string mediaKey = 2;
|
358
|
+
optional string fileEncSha256 = 3;
|
359
|
+
optional string directPath = 4;
|
360
|
+
optional int64 mediaKeyTimestamp = 5;
|
361
|
+
optional string mimetype = 6;
|
362
|
+
optional OrientationType orientationType = 7;
|
363
|
+
enum OrientationType {
|
364
|
+
CENTER = 1;
|
365
|
+
LEFT = 2;
|
366
|
+
RIGHT = 3;
|
367
|
+
}
|
368
|
+
}
|
369
|
+
|
370
|
+
message BotMemoryFact {
|
371
|
+
optional string fact = 1;
|
372
|
+
optional string factId = 2;
|
373
|
+
}
|
374
|
+
|
375
|
+
message BotMemoryMetadata {
|
376
|
+
repeated BotMemoryFact addedFacts = 1;
|
377
|
+
repeated BotMemoryFact removedFacts = 2;
|
378
|
+
optional string disclaimer = 3;
|
379
|
+
}
|
380
|
+
|
381
|
+
message BotMemuMetadata {
|
382
|
+
repeated BotMediaMetadata faceImages = 1;
|
383
|
+
}
|
384
|
+
|
112
385
|
message BotMetadata {
|
113
386
|
optional BotAvatarMetadata avatarMetadata = 1;
|
114
387
|
optional string personaId = 2;
|
115
388
|
optional BotPluginMetadata pluginMetadata = 3;
|
116
389
|
optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
|
117
390
|
optional string invokerJid = 5;
|
391
|
+
optional BotSessionMetadata sessionMetadata = 6;
|
392
|
+
optional BotMemuMetadata memuMetadata = 7;
|
393
|
+
optional string timezone = 8;
|
394
|
+
optional BotReminderMetadata reminderMetadata = 9;
|
395
|
+
optional BotModelMetadata modelMetadata = 10;
|
396
|
+
optional string messageDisclaimerText = 11;
|
397
|
+
optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
|
398
|
+
optional BotCapabilityMetadata capabilityMetadata = 13;
|
399
|
+
optional BotImagineMetadata imagineMetadata = 14;
|
400
|
+
optional BotMemoryMetadata memoryMetadata = 15;
|
401
|
+
optional BotRenderingMetadata renderingMetadata = 16;
|
402
|
+
optional BotMetricsMetadata botMetricsMetadata = 17;
|
403
|
+
optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
|
404
|
+
optional BotSourcesMetadata richResponseSourcesMetadata = 19;
|
405
|
+
optional bytes aiConversationContext = 20;
|
406
|
+
optional BotPromotionMessageMetadata botPromotionMessageMetadata = 21;
|
407
|
+
optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
|
408
|
+
optional BotQuotaMetadata botQuotaMetadata = 23;
|
409
|
+
optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
|
410
|
+
}
|
411
|
+
|
412
|
+
enum BotMetricsEntryPoint {
|
413
|
+
FAVICON = 1;
|
414
|
+
CHATLIST = 2;
|
415
|
+
AISEARCH_NULL_STATE_PAPER_PLANE = 3;
|
416
|
+
AISEARCH_NULL_STATE_SUGGESTION = 4;
|
417
|
+
AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
|
418
|
+
AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
|
419
|
+
AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
|
420
|
+
AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
|
421
|
+
AIVOICE_SEARCH_BAR = 9;
|
422
|
+
AIVOICE_FAVICON = 10;
|
423
|
+
AISTUDIO = 11;
|
424
|
+
DEEPLINK = 12;
|
425
|
+
NOTIFICATION = 13;
|
426
|
+
PROFILE_MESSAGE_BUTTON = 14;
|
427
|
+
FORWARD = 15;
|
428
|
+
APP_SHORTCUT = 16;
|
429
|
+
FF_FAMILY = 17;
|
430
|
+
AI_TAB = 18;
|
431
|
+
AI_HOME = 19;
|
432
|
+
AI_DEEPLINK_IMMERSIVE = 20;
|
433
|
+
AI_DEEPLINK = 21;
|
434
|
+
META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
|
435
|
+
UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
|
436
|
+
NEW_CHAT_AI_STUDIO = 24;
|
437
|
+
}
|
438
|
+
message BotMetricsMetadata {
|
439
|
+
optional string destinationId = 1;
|
440
|
+
optional BotMetricsEntryPoint destinationEntryPoint = 2;
|
441
|
+
optional BotMetricsThreadEntryPoint threadOrigin = 3;
|
442
|
+
}
|
443
|
+
|
444
|
+
enum BotMetricsThreadEntryPoint {
|
445
|
+
AI_TAB_THREAD = 1;
|
446
|
+
AI_HOME_THREAD = 2;
|
447
|
+
AI_DEEPLINK_IMMERSIVE_THREAD = 3;
|
448
|
+
AI_DEEPLINK_THREAD = 4;
|
449
|
+
}
|
450
|
+
message BotModeSelectionMetadata {
|
451
|
+
repeated BotUserSelectionMode mode = 1;
|
452
|
+
enum BotUserSelectionMode {
|
453
|
+
UNKNOWN_MODE = 0;
|
454
|
+
REASONING_MODE = 1;
|
455
|
+
}
|
456
|
+
}
|
457
|
+
|
458
|
+
message BotModelMetadata {
|
459
|
+
optional ModelType modelType = 1;
|
460
|
+
optional PremiumModelStatus premiumModelStatus = 2;
|
461
|
+
enum ModelType {
|
462
|
+
UNKNOWN_TYPE = 0;
|
463
|
+
LLAMA_PROD = 1;
|
464
|
+
LLAMA_PROD_PREMIUM = 2;
|
465
|
+
}
|
466
|
+
enum PremiumModelStatus {
|
467
|
+
UNKNOWN_STATUS = 0;
|
468
|
+
AVAILABLE = 1;
|
469
|
+
QUOTA_EXCEED_LIMIT = 2;
|
470
|
+
}
|
118
471
|
}
|
119
472
|
|
120
473
|
message BotPluginMetadata {
|
@@ -125,20 +478,176 @@ message BotPluginMetadata {
|
|
125
478
|
optional string searchProviderUrl = 5;
|
126
479
|
optional uint32 referenceIndex = 6;
|
127
480
|
optional uint32 expectedLinksCount = 7;
|
128
|
-
optional
|
481
|
+
optional string searchQuery = 9;
|
482
|
+
optional MessageKey parentPluginMessageKey = 10;
|
483
|
+
optional PluginType deprecatedField = 11;
|
484
|
+
optional PluginType parentPluginType = 12;
|
485
|
+
optional string faviconCdnUrl = 13;
|
129
486
|
enum PluginType {
|
487
|
+
UNKNOWN_PLUGIN = 0;
|
130
488
|
REELS = 1;
|
131
489
|
SEARCH = 2;
|
132
490
|
}
|
133
491
|
enum SearchProvider {
|
492
|
+
UNKNOWN = 0;
|
134
493
|
BING = 1;
|
135
494
|
GOOGLE = 2;
|
495
|
+
SUPPORT = 3;
|
136
496
|
}
|
137
497
|
}
|
138
498
|
|
499
|
+
message BotProgressIndicatorMetadata {
|
500
|
+
optional string progressDescription = 1;
|
501
|
+
repeated BotPlanningStepMetadata stepsMetadata = 2;
|
502
|
+
message BotPlanningStepMetadata {
|
503
|
+
optional string statusTitle = 1;
|
504
|
+
optional string statusBody = 2;
|
505
|
+
repeated BotPlanningSearchSourcesMetadata sourcesMetadata = 3;
|
506
|
+
optional PlanningStepStatus status = 4;
|
507
|
+
optional bool isReasoning = 5;
|
508
|
+
optional bool isEnhancedSearch = 6;
|
509
|
+
repeated BotPlanningStepSectionMetadata sections = 7;
|
510
|
+
message BotPlanningSearchSourceMetadata {
|
511
|
+
optional string title = 1;
|
512
|
+
optional BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;
|
513
|
+
optional string sourceUrl = 3;
|
514
|
+
optional string favIconUrl = 4;
|
515
|
+
}
|
516
|
+
|
517
|
+
message BotPlanningSearchSourcesMetadata {
|
518
|
+
optional string sourceTitle = 1;
|
519
|
+
optional BotPlanningSearchSourceProvider provider = 2;
|
520
|
+
optional string sourceUrl = 3;
|
521
|
+
enum BotPlanningSearchSourceProvider {
|
522
|
+
UNKNOWN = 0;
|
523
|
+
OTHER = 1;
|
524
|
+
GOOGLE = 2;
|
525
|
+
BING = 3;
|
526
|
+
}
|
527
|
+
}
|
528
|
+
|
529
|
+
message BotPlanningStepSectionMetadata {
|
530
|
+
optional string sectionTitle = 1;
|
531
|
+
optional string sectionBody = 2;
|
532
|
+
repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
|
533
|
+
}
|
534
|
+
|
535
|
+
enum BotSearchSourceProvider {
|
536
|
+
UNKNOWN_PROVIDER = 0;
|
537
|
+
OTHER = 1;
|
538
|
+
GOOGLE = 2;
|
539
|
+
BING = 3;
|
540
|
+
}
|
541
|
+
enum PlanningStepStatus {
|
542
|
+
UNKNOWN = 0;
|
543
|
+
PLANNED = 1;
|
544
|
+
EXECUTING = 2;
|
545
|
+
FINISHED = 3;
|
546
|
+
}
|
547
|
+
}
|
548
|
+
|
549
|
+
}
|
550
|
+
|
551
|
+
message BotPromotionMessageMetadata {
|
552
|
+
optional BotPromotionType promotionType = 1;
|
553
|
+
optional string buttonTitle = 2;
|
554
|
+
enum BotPromotionType {
|
555
|
+
UNKNOWN_TYPE = 0;
|
556
|
+
C50 = 1;
|
557
|
+
}
|
558
|
+
}
|
559
|
+
|
560
|
+
message BotPromptSuggestion {
|
561
|
+
optional string prompt = 1;
|
562
|
+
optional string promptId = 2;
|
563
|
+
}
|
564
|
+
|
565
|
+
message BotPromptSuggestions {
|
566
|
+
repeated BotPromptSuggestion suggestions = 1;
|
567
|
+
}
|
568
|
+
|
569
|
+
message BotQuotaMetadata {
|
570
|
+
repeated BotFeatureQuotaMetadata botFeatureQuotaMetadata = 1;
|
571
|
+
message BotFeatureQuotaMetadata {
|
572
|
+
optional BotFeatureType featureType = 1;
|
573
|
+
optional uint32 remainingQuota = 2;
|
574
|
+
optional uint64 expirationTimestamp = 3;
|
575
|
+
enum BotFeatureType {
|
576
|
+
UNKNOWN_FEATURE = 0;
|
577
|
+
REASONING_FEATURE = 1;
|
578
|
+
}
|
579
|
+
}
|
580
|
+
|
581
|
+
}
|
582
|
+
|
583
|
+
message BotReminderMetadata {
|
584
|
+
optional MessageKey requestMessageKey = 1;
|
585
|
+
optional ReminderAction action = 2;
|
586
|
+
optional string name = 3;
|
587
|
+
optional uint64 nextTriggerTimestamp = 4;
|
588
|
+
optional ReminderFrequency frequency = 5;
|
589
|
+
enum ReminderAction {
|
590
|
+
NOTIFY = 1;
|
591
|
+
CREATE = 2;
|
592
|
+
DELETE = 3;
|
593
|
+
UPDATE = 4;
|
594
|
+
}
|
595
|
+
enum ReminderFrequency {
|
596
|
+
ONCE = 1;
|
597
|
+
DAILY = 2;
|
598
|
+
WEEKLY = 3;
|
599
|
+
BIWEEKLY = 4;
|
600
|
+
MONTHLY = 5;
|
601
|
+
}
|
602
|
+
}
|
603
|
+
|
604
|
+
message BotRenderingMetadata {
|
605
|
+
repeated Keyword keywords = 1;
|
606
|
+
message Keyword {
|
607
|
+
optional string value = 1;
|
608
|
+
repeated string associatedPrompts = 2;
|
609
|
+
}
|
610
|
+
|
611
|
+
}
|
612
|
+
|
613
|
+
message BotSessionMetadata {
|
614
|
+
optional string sessionId = 1;
|
615
|
+
optional BotSessionSource sessionSource = 2;
|
616
|
+
}
|
617
|
+
|
618
|
+
enum BotSessionSource {
|
619
|
+
NONE = 0;
|
620
|
+
NULL_STATE = 1;
|
621
|
+
TYPEAHEAD = 2;
|
622
|
+
USER_INPUT = 3;
|
623
|
+
EMU_FLASH = 4;
|
624
|
+
EMU_FLASH_FOLLOWUP = 5;
|
625
|
+
VOICE = 6;
|
626
|
+
}
|
627
|
+
message BotSourcesMetadata {
|
628
|
+
repeated BotSourceItem sources = 1;
|
629
|
+
message BotSourceItem {
|
630
|
+
optional SourceProvider provider = 1;
|
631
|
+
optional string thumbnailCdnUrl = 2;
|
632
|
+
optional string sourceProviderUrl = 3;
|
633
|
+
optional string sourceQuery = 4;
|
634
|
+
optional string faviconCdnUrl = 5;
|
635
|
+
optional uint32 citationNumber = 6;
|
636
|
+
enum SourceProvider {
|
637
|
+
UNKNOWN = 0;
|
638
|
+
BING = 1;
|
639
|
+
GOOGLE = 2;
|
640
|
+
SUPPORT = 3;
|
641
|
+
}
|
642
|
+
}
|
643
|
+
|
644
|
+
}
|
645
|
+
|
139
646
|
message BotSuggestedPromptMetadata {
|
140
647
|
repeated string suggestedPrompts = 1;
|
141
648
|
optional uint32 selectedPromptIndex = 2;
|
649
|
+
optional BotPromptSuggestions promptSuggestions = 3;
|
650
|
+
optional string selectedPromptId = 4;
|
142
651
|
}
|
143
652
|
|
144
653
|
message CallLogRecord {
|
@@ -206,6 +715,11 @@ message CertChain {
|
|
206
715
|
|
207
716
|
}
|
208
717
|
|
718
|
+
message ChatLockSettings {
|
719
|
+
optional bool hideLockedChats = 1;
|
720
|
+
optional UserPassword secretCode = 2;
|
721
|
+
}
|
722
|
+
|
209
723
|
message ChatRowOpaqueData {
|
210
724
|
optional DraftMessage draftMessage = 1;
|
211
725
|
message DraftMessage {
|
@@ -245,6 +759,18 @@ message ChatRowOpaqueData {
|
|
245
759
|
|
246
760
|
}
|
247
761
|
|
762
|
+
message Citation {
|
763
|
+
required string title = 1;
|
764
|
+
required string subtitle = 2;
|
765
|
+
required string cmsId = 3;
|
766
|
+
required string imageUrl = 4;
|
767
|
+
}
|
768
|
+
|
769
|
+
message ClientPairingProps {
|
770
|
+
optional bool isChatDbLidMigrated = 1;
|
771
|
+
optional bool isSyncdPureLidSession = 2;
|
772
|
+
}
|
773
|
+
|
248
774
|
message ClientPayload {
|
249
775
|
optional uint64 username = 1;
|
250
776
|
optional bool passive = 3;
|
@@ -273,6 +799,13 @@ message ClientPayload {
|
|
273
799
|
optional int32 yearClass = 36;
|
274
800
|
optional int32 memClass = 37;
|
275
801
|
optional InteropData interopData = 38;
|
802
|
+
optional TrafficAnonymization trafficAnonymization = 40;
|
803
|
+
optional bool lidDbMigrated = 41;
|
804
|
+
optional AccountType accountType = 42;
|
805
|
+
enum AccountType {
|
806
|
+
DEFAULT = 0;
|
807
|
+
GUEST = 1;
|
808
|
+
}
|
276
809
|
enum ConnectReason {
|
277
810
|
PUSH = 0;
|
278
811
|
USER_ACTIVATED = 1;
|
@@ -308,6 +841,7 @@ message ClientPayload {
|
|
308
841
|
HARDCODED = 2;
|
309
842
|
OVERRIDE = 3;
|
310
843
|
FALLBACK = 4;
|
844
|
+
MNS = 5;
|
311
845
|
}
|
312
846
|
}
|
313
847
|
|
@@ -330,6 +864,7 @@ message ClientPayload {
|
|
330
864
|
message InteropData {
|
331
865
|
optional uint64 accountId = 1;
|
332
866
|
optional bytes token = 2;
|
867
|
+
optional bool enableReadReceipts = 3;
|
333
868
|
}
|
334
869
|
|
335
870
|
enum Product {
|
@@ -337,6 +872,11 @@ message ClientPayload {
|
|
337
872
|
MESSENGER = 1;
|
338
873
|
INTEROP = 2;
|
339
874
|
INTEROP_MSGR = 3;
|
875
|
+
WHATSAPP_LID = 4;
|
876
|
+
}
|
877
|
+
enum TrafficAnonymization {
|
878
|
+
OFF = 0;
|
879
|
+
STANDARD = 1;
|
340
880
|
}
|
341
881
|
message UserAgent {
|
342
882
|
optional Platform platform = 1;
|
@@ -354,6 +894,7 @@ message ClientPayload {
|
|
354
894
|
optional string deviceBoard = 13;
|
355
895
|
optional string deviceExpId = 14;
|
356
896
|
optional DeviceType deviceType = 15;
|
897
|
+
optional string deviceModelType = 16;
|
357
898
|
message AppVersion {
|
358
899
|
optional uint32 primary = 1;
|
359
900
|
optional uint32 secondary = 2;
|
@@ -426,6 +967,7 @@ message ClientPayload {
|
|
426
967
|
WIN_STORE = 2;
|
427
968
|
DARWIN = 3;
|
428
969
|
WIN32 = 4;
|
970
|
+
WIN_HYBRID = 5;
|
429
971
|
}
|
430
972
|
message WebdPayload {
|
431
973
|
optional bool usesParticipantInKey = 1;
|
@@ -450,6 +992,21 @@ message CommentMetadata {
|
|
450
992
|
optional uint32 replyCount = 2;
|
451
993
|
}
|
452
994
|
|
995
|
+
message CompanionCommitment {
|
996
|
+
optional bytes hash = 1;
|
997
|
+
}
|
998
|
+
|
999
|
+
message CompanionEphemeralIdentity {
|
1000
|
+
optional bytes publicKey = 1;
|
1001
|
+
optional DeviceProps.PlatformType deviceType = 2;
|
1002
|
+
optional string ref = 3;
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
message Config {
|
1006
|
+
map<uint32, Field> field = 1;
|
1007
|
+
optional uint32 version = 2;
|
1008
|
+
}
|
1009
|
+
|
453
1010
|
message ContextInfo {
|
454
1011
|
optional string stanzaId = 1;
|
455
1012
|
optional string participant = 2;
|
@@ -484,6 +1041,20 @@ message ContextInfo {
|
|
484
1041
|
optional string smbClientCampaignId = 45;
|
485
1042
|
optional string smbServerCampaignId = 46;
|
486
1043
|
optional DataSharingContext dataSharingContext = 47;
|
1044
|
+
optional bool alwaysShowAdAttribution = 48;
|
1045
|
+
optional FeatureEligibilities featureEligibilities = 49;
|
1046
|
+
optional string entryPointConversionExternalSource = 50;
|
1047
|
+
optional string entryPointConversionExternalMedium = 51;
|
1048
|
+
optional string ctwaSignals = 54;
|
1049
|
+
optional bytes ctwaPayload = 55;
|
1050
|
+
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
1051
|
+
optional StatusAttributionType statusAttributionType = 57;
|
1052
|
+
optional UrlTrackingMap urlTrackingMap = 58;
|
1053
|
+
optional PairedMediaType pairedMediaType = 59;
|
1054
|
+
optional uint32 rankingVersion = 60;
|
1055
|
+
optional MemberLabel memberLabel = 62;
|
1056
|
+
optional bool isQuestion = 63;
|
1057
|
+
optional StatusSourceType statusSourceType = 64;
|
487
1058
|
message AdReplyInfo {
|
488
1059
|
optional string advertiserName = 1;
|
489
1060
|
optional MediaType mediaType = 2;
|
@@ -502,6 +1073,16 @@ message ContextInfo {
|
|
502
1073
|
|
503
1074
|
message DataSharingContext {
|
504
1075
|
optional bool showMmDisclosure = 1;
|
1076
|
+
optional string encryptedSignalTokenConsented = 2;
|
1077
|
+
repeated Parameters parameters = 3;
|
1078
|
+
message Parameters {
|
1079
|
+
optional string key = 1;
|
1080
|
+
optional string stringData = 2;
|
1081
|
+
optional int64 intData = 3;
|
1082
|
+
optional float floatData = 4;
|
1083
|
+
optional ContextInfo.DataSharingContext.Parameters contents = 5;
|
1084
|
+
}
|
1085
|
+
|
505
1086
|
}
|
506
1087
|
|
507
1088
|
message ExternalAdReplyInfo {
|
@@ -519,6 +1100,21 @@ message ContextInfo {
|
|
519
1100
|
optional bool showAdAttribution = 12;
|
520
1101
|
optional string ctwaClid = 13;
|
521
1102
|
optional string ref = 14;
|
1103
|
+
optional bool clickToWhatsappCall = 15;
|
1104
|
+
optional bool adContextPreviewDismissed = 16;
|
1105
|
+
optional string sourceApp = 17;
|
1106
|
+
optional bool automatedGreetingMessageShown = 18;
|
1107
|
+
optional string greetingMessageBody = 19;
|
1108
|
+
optional string ctaPayload = 20;
|
1109
|
+
optional bool disableNudge = 21;
|
1110
|
+
optional string originalImageUrl = 22;
|
1111
|
+
optional string automatedGreetingMessageCtaType = 23;
|
1112
|
+
optional bool wtwaAdFormat = 24;
|
1113
|
+
optional AdType adType = 25;
|
1114
|
+
enum AdType {
|
1115
|
+
CTWA = 0;
|
1116
|
+
CAWC = 1;
|
1117
|
+
}
|
522
1118
|
enum MediaType {
|
523
1119
|
NONE = 0;
|
524
1120
|
IMAGE = 1;
|
@@ -526,6 +1122,19 @@ message ContextInfo {
|
|
526
1122
|
}
|
527
1123
|
}
|
528
1124
|
|
1125
|
+
message FeatureEligibilities {
|
1126
|
+
optional bool cannotBeReactedTo = 1;
|
1127
|
+
optional bool cannotBeRanked = 2;
|
1128
|
+
optional bool canRequestFeedback = 3;
|
1129
|
+
optional bool canBeReshared = 4;
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
message ForwardedAIBotMessageInfo {
|
1133
|
+
optional string botName = 1;
|
1134
|
+
optional string botJid = 2;
|
1135
|
+
optional string creatorName = 3;
|
1136
|
+
}
|
1137
|
+
|
529
1138
|
message ForwardedNewsletterMessageInfo {
|
530
1139
|
optional string newsletterJid = 1;
|
531
1140
|
optional int32 serverMessageId = 2;
|
@@ -539,6 +1148,28 @@ message ContextInfo {
|
|
539
1148
|
}
|
540
1149
|
}
|
541
1150
|
|
1151
|
+
enum PairedMediaType {
|
1152
|
+
NOT_PAIRED_MEDIA = 0;
|
1153
|
+
SD_VIDEO_PARENT = 1;
|
1154
|
+
HD_VIDEO_CHILD = 2;
|
1155
|
+
SD_IMAGE_PARENT = 3;
|
1156
|
+
HD_IMAGE_CHILD = 4;
|
1157
|
+
MOTION_PHOTO_PARENT = 5;
|
1158
|
+
MOTION_PHOTO_CHILD = 6;
|
1159
|
+
}
|
1160
|
+
enum StatusAttributionType {
|
1161
|
+
NONE = 0;
|
1162
|
+
RESHARED_FROM_MENTION = 1;
|
1163
|
+
RESHARED_FROM_POST = 2;
|
1164
|
+
}
|
1165
|
+
enum StatusSourceType {
|
1166
|
+
IMAGE = 0;
|
1167
|
+
VIDEO = 1;
|
1168
|
+
GIF = 2;
|
1169
|
+
AUDIO = 3;
|
1170
|
+
TEXT = 4;
|
1171
|
+
MUSIC_STANDALONE = 5;
|
1172
|
+
}
|
542
1173
|
message UTMInfo {
|
543
1174
|
optional string utmSource = 1;
|
544
1175
|
optional string utmCampaign = 2;
|
@@ -592,6 +1223,14 @@ message Conversation {
|
|
592
1223
|
optional string username = 43;
|
593
1224
|
optional string lidOriginType = 44;
|
594
1225
|
optional uint32 commentsCount = 45;
|
1226
|
+
optional bool locked = 46;
|
1227
|
+
optional PrivacySystemMessage systemMessageToInsert = 47;
|
1228
|
+
optional bool capiCreatedGroup = 48;
|
1229
|
+
optional string accountLid = 49;
|
1230
|
+
optional bool limitSharing = 50;
|
1231
|
+
optional int64 limitSharingSettingTimestamp = 51;
|
1232
|
+
optional LimitSharing.TriggerType limitSharingTrigger = 52;
|
1233
|
+
optional bool limitSharingInitiatedByMe = 53;
|
595
1234
|
enum EndOfHistoryTransferType {
|
596
1235
|
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
597
1236
|
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
@@ -599,6 +1238,20 @@ message Conversation {
|
|
599
1238
|
}
|
600
1239
|
}
|
601
1240
|
|
1241
|
+
message DeviceCapabilities {
|
1242
|
+
optional ChatLockSupportLevel chatLockSupportLevel = 1;
|
1243
|
+
optional LIDMigration lidMigration = 2;
|
1244
|
+
enum ChatLockSupportLevel {
|
1245
|
+
NONE = 0;
|
1246
|
+
MINIMAL = 1;
|
1247
|
+
FULL = 2;
|
1248
|
+
}
|
1249
|
+
message LIDMigration {
|
1250
|
+
optional uint64 chatDbMigrationTimestamp = 1;
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
}
|
1254
|
+
|
602
1255
|
message DeviceConsistencyCodeMessage {
|
603
1256
|
optional uint32 generation = 1;
|
604
1257
|
optional bytes signature = 2;
|
@@ -638,6 +1291,12 @@ message DeviceProps {
|
|
638
1291
|
optional bool supportCallLogHistory = 6;
|
639
1292
|
optional bool supportBotUserAgentChatHistory = 7;
|
640
1293
|
optional bool supportCagReactionsAndPolls = 8;
|
1294
|
+
optional bool supportBizHostedMsg = 9;
|
1295
|
+
optional bool supportRecentSyncChunkMessageCountTuning = 10;
|
1296
|
+
optional bool supportHostedGroupMsg = 11;
|
1297
|
+
optional bool supportFbidBotChatHistory = 12;
|
1298
|
+
optional bool supportAddOnHistorySyncMigration = 13;
|
1299
|
+
optional bool supportMessageAssociation = 14;
|
641
1300
|
}
|
642
1301
|
|
643
1302
|
enum PlatformType {
|
@@ -664,6 +1323,8 @@ message DeviceProps {
|
|
664
1323
|
AR_DEVICE = 20;
|
665
1324
|
UWP = 21;
|
666
1325
|
VR = 22;
|
1326
|
+
CLOUD_API = 23;
|
1327
|
+
SMARTGLASSES = 24;
|
667
1328
|
}
|
668
1329
|
}
|
669
1330
|
|
@@ -684,14 +1345,50 @@ message DisappearingMode {
|
|
684
1345
|
ACCOUNT_SETTING = 2;
|
685
1346
|
BULK_CHANGE = 3;
|
686
1347
|
BIZ_SUPPORTS_FB_HOSTING = 4;
|
1348
|
+
UNKNOWN_GROUPS = 5;
|
687
1349
|
}
|
688
1350
|
}
|
689
1351
|
|
1352
|
+
message EmbeddedContent {
|
1353
|
+
oneof content {
|
1354
|
+
EmbeddedMessage embeddedMessage = 1;
|
1355
|
+
EmbeddedMusic embeddedMusic = 2;
|
1356
|
+
}
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
message EmbeddedMessage {
|
1360
|
+
optional string stanzaId = 1;
|
1361
|
+
optional Message message = 2;
|
1362
|
+
}
|
1363
|
+
|
1364
|
+
message EmbeddedMusic {
|
1365
|
+
optional string musicContentMediaId = 1;
|
1366
|
+
optional string songId = 2;
|
1367
|
+
optional string author = 3;
|
1368
|
+
optional string title = 4;
|
1369
|
+
optional string artworkDirectPath = 5;
|
1370
|
+
optional bytes artworkSha256 = 6;
|
1371
|
+
optional bytes artworkEncSha256 = 7;
|
1372
|
+
optional bytes artworkMediaKey = 11;
|
1373
|
+
optional string artistAttribution = 8;
|
1374
|
+
optional bytes countryBlocklist = 9;
|
1375
|
+
optional bool isExplicit = 10;
|
1376
|
+
}
|
1377
|
+
|
1378
|
+
message EncryptedPairingRequest {
|
1379
|
+
optional bytes encryptedPayload = 1;
|
1380
|
+
optional bytes iv = 2;
|
1381
|
+
}
|
1382
|
+
|
690
1383
|
message EphemeralSetting {
|
691
1384
|
optional sfixed32 duration = 1;
|
692
1385
|
optional sfixed64 timestamp = 2;
|
693
1386
|
}
|
694
1387
|
|
1388
|
+
message EventAdditionalMetadata {
|
1389
|
+
optional bool isStale = 1;
|
1390
|
+
}
|
1391
|
+
|
695
1392
|
message EventResponse {
|
696
1393
|
optional MessageKey eventResponseMessageKey = 1;
|
697
1394
|
optional int64 timestampMs = 2;
|
@@ -713,6 +1410,14 @@ message ExternalBlobReference {
|
|
713
1410
|
optional bytes fileEncSha256 = 6;
|
714
1411
|
}
|
715
1412
|
|
1413
|
+
message Field {
|
1414
|
+
optional uint32 minVersion = 1;
|
1415
|
+
optional uint32 maxVersion = 2;
|
1416
|
+
optional uint32 notReportableMinVersion = 3;
|
1417
|
+
optional bool isMessage = 4;
|
1418
|
+
map<uint32, Field> subfield = 5;
|
1419
|
+
}
|
1420
|
+
|
716
1421
|
message GlobalSettings {
|
717
1422
|
optional WallpaperSettings lightThemeWallpaper = 1;
|
718
1423
|
optional MediaVisibility mediaVisibility = 2;
|
@@ -732,6 +1437,8 @@ message GlobalSettings {
|
|
732
1437
|
optional int32 photoQualityMode = 16;
|
733
1438
|
optional NotificationSettings individualNotificationSettings = 17;
|
734
1439
|
optional NotificationSettings groupNotificationSettings = 18;
|
1440
|
+
optional ChatLockSettings chatLockSettings = 19;
|
1441
|
+
optional int64 chatDbLidMigrationTimestamp = 20;
|
735
1442
|
}
|
736
1443
|
|
737
1444
|
message GroupMention {
|
@@ -787,6 +1494,9 @@ message HistorySync {
|
|
787
1494
|
repeated CallLogRecord callLogRecords = 13;
|
788
1495
|
optional BotAIWaitListState aiWaitListState = 14;
|
789
1496
|
repeated PhoneNumberToLIDMapping phoneNumberToLidMappings = 15;
|
1497
|
+
optional string companionMetaNonce = 16;
|
1498
|
+
optional bytes shareableChatIdentifierEncryptionKey = 17;
|
1499
|
+
repeated Account accounts = 18;
|
790
1500
|
enum BotAIWaitListState {
|
791
1501
|
IN_WAITLIST = 0;
|
792
1502
|
AI_AVAILABLE = 1;
|
@@ -846,9 +1556,18 @@ message IdentityKeyPairStructure {
|
|
846
1556
|
message InteractiveAnnotation {
|
847
1557
|
repeated Point polygonVertices = 1;
|
848
1558
|
optional bool shouldSkipConfirmation = 4;
|
1559
|
+
optional EmbeddedContent embeddedContent = 5;
|
1560
|
+
optional StatusLinkType statusLinkType = 8;
|
849
1561
|
oneof action {
|
850
1562
|
Location location = 2;
|
851
1563
|
ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
|
1564
|
+
bool embeddedAction = 6;
|
1565
|
+
TapLinkAction tapAction = 7;
|
1566
|
+
}
|
1567
|
+
enum StatusLinkType {
|
1568
|
+
RASTERIZED_LINK_PREVIEW = 1;
|
1569
|
+
RASTERIZED_LINK_TRUNCATED = 2;
|
1570
|
+
RASTERIZED_LINK_FULL_URL = 3;
|
852
1571
|
}
|
853
1572
|
}
|
854
1573
|
|
@@ -878,6 +1597,39 @@ message KeyId {
|
|
878
1597
|
optional bytes id = 1;
|
879
1598
|
}
|
880
1599
|
|
1600
|
+
message LIDMigrationMapping {
|
1601
|
+
required uint64 pn = 1;
|
1602
|
+
required uint64 assignedLid = 2;
|
1603
|
+
optional uint64 latestLid = 3;
|
1604
|
+
}
|
1605
|
+
|
1606
|
+
message LIDMigrationMappingSyncMessage {
|
1607
|
+
optional bytes encodedMappingPayload = 1;
|
1608
|
+
}
|
1609
|
+
|
1610
|
+
message LIDMigrationMappingSyncPayload {
|
1611
|
+
repeated LIDMigrationMapping pnToLidMappings = 1;
|
1612
|
+
optional uint64 chatDbMigrationTimestamp = 2;
|
1613
|
+
}
|
1614
|
+
|
1615
|
+
message LegacyMessage {
|
1616
|
+
optional Message.EventResponseMessage eventResponseMessage = 1;
|
1617
|
+
optional Message.PollVoteMessage pollVote = 2;
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
message LimitSharing {
|
1621
|
+
optional bool sharingLimited = 1;
|
1622
|
+
optional TriggerType trigger = 2;
|
1623
|
+
optional int64 limitSharingSettingTimestamp = 3;
|
1624
|
+
optional bool initiatedByMe = 4;
|
1625
|
+
enum TriggerType {
|
1626
|
+
UNKNOWN = 0;
|
1627
|
+
CHAT_SETTING = 1;
|
1628
|
+
BIZ_SUPPORTS_FB_HOSTING = 2;
|
1629
|
+
UNKNOWN_GROUP = 3;
|
1630
|
+
}
|
1631
|
+
}
|
1632
|
+
|
881
1633
|
message LocalizedName {
|
882
1634
|
optional string lg = 1;
|
883
1635
|
optional string lc = 2;
|
@@ -894,38 +1646,6 @@ message MediaData {
|
|
894
1646
|
optional string localPath = 1;
|
895
1647
|
}
|
896
1648
|
|
897
|
-
message MediaEntry {
|
898
|
-
optional bytes fileSha256 = 1;
|
899
|
-
optional bytes mediaKey = 2;
|
900
|
-
optional bytes fileEncSha256 = 3;
|
901
|
-
optional string directPath = 4;
|
902
|
-
optional int64 mediaKeyTimestamp = 5;
|
903
|
-
optional string serverMediaType = 6;
|
904
|
-
optional bytes uploadToken = 7;
|
905
|
-
optional bytes validatedTimestamp = 8;
|
906
|
-
optional bytes sidecar = 9;
|
907
|
-
optional string objectId = 10;
|
908
|
-
optional string fbid = 11;
|
909
|
-
optional DownloadableThumbnail downloadableThumbnail = 12;
|
910
|
-
optional string handle = 13;
|
911
|
-
optional string filename = 14;
|
912
|
-
optional ProgressiveJpegDetails progressiveJpegDetails = 15;
|
913
|
-
message DownloadableThumbnail {
|
914
|
-
optional bytes fileSha256 = 1;
|
915
|
-
optional bytes fileEncSha256 = 2;
|
916
|
-
optional string directPath = 3;
|
917
|
-
optional bytes mediaKey = 4;
|
918
|
-
optional int64 mediaKeyTimestamp = 5;
|
919
|
-
optional string objectId = 6;
|
920
|
-
}
|
921
|
-
|
922
|
-
message ProgressiveJpegDetails {
|
923
|
-
repeated int64 scanLengths = 1;
|
924
|
-
optional bytes sidecar = 2;
|
925
|
-
}
|
926
|
-
|
927
|
-
}
|
928
|
-
|
929
1649
|
message MediaNotifyMessage {
|
930
1650
|
optional string expressPathUrl = 1;
|
931
1651
|
optional bytes fileEncSha256 = 2;
|
@@ -936,6 +1656,7 @@ message MediaRetryNotification {
|
|
936
1656
|
optional string stanzaId = 1;
|
937
1657
|
optional string directPath = 2;
|
938
1658
|
optional ResultType result = 3;
|
1659
|
+
optional bytes messageSecret = 4;
|
939
1660
|
enum ResultType {
|
940
1661
|
GENERAL_ERROR = 0;
|
941
1662
|
SUCCESS = 1;
|
@@ -949,6 +1670,11 @@ enum MediaVisibility {
|
|
949
1670
|
OFF = 1;
|
950
1671
|
ON = 2;
|
951
1672
|
}
|
1673
|
+
message MemberLabel {
|
1674
|
+
optional string label = 1;
|
1675
|
+
optional int64 labelTimestamp = 2;
|
1676
|
+
}
|
1677
|
+
|
952
1678
|
message Message {
|
953
1679
|
optional string conversation = 1;
|
954
1680
|
optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
|
@@ -1013,11 +1739,35 @@ message Message {
|
|
1013
1739
|
optional BCallMessage bcallMessage = 72;
|
1014
1740
|
optional FutureProofMessage lottieStickerMessage = 74;
|
1015
1741
|
optional EventMessage eventMessage = 75;
|
1742
|
+
optional EncEventResponseMessage encEventResponseMessage = 76;
|
1016
1743
|
optional CommentMessage commentMessage = 77;
|
1017
1744
|
optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
|
1018
|
-
optional ExtendedTextMessageWithParentKey extendedTextMessageWithParentKey = 79;
|
1019
1745
|
optional PlaceholderMessage placeholderMessage = 80;
|
1020
|
-
optional
|
1746
|
+
optional SecretEncryptedMessage secretEncryptedMessage = 82;
|
1747
|
+
optional AlbumMessage albumMessage = 83;
|
1748
|
+
optional FutureProofMessage eventCoverImage = 85;
|
1749
|
+
optional StickerPackMessage stickerPackMessage = 86;
|
1750
|
+
optional FutureProofMessage statusMentionMessage = 87;
|
1751
|
+
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
|
1752
|
+
optional FutureProofMessage pollCreationOptionImageMessage = 90;
|
1753
|
+
optional FutureProofMessage associatedChildMessage = 91;
|
1754
|
+
optional FutureProofMessage groupStatusMentionMessage = 92;
|
1755
|
+
optional FutureProofMessage pollCreationMessageV4 = 93;
|
1756
|
+
optional FutureProofMessage pollCreationMessageV5 = 94;
|
1757
|
+
optional FutureProofMessage statusAddYours = 95;
|
1758
|
+
optional FutureProofMessage groupStatusMessage = 96;
|
1759
|
+
optional AIRichResponseMessage richResponseMessage = 97;
|
1760
|
+
optional StatusNotificationMessage statusNotificationMessage = 98;
|
1761
|
+
optional FutureProofMessage limitSharingMessage = 99;
|
1762
|
+
optional FutureProofMessage botTaskMessage = 100;
|
1763
|
+
optional FutureProofMessage questionMessage = 101;
|
1764
|
+
optional MessageHistoryNotice messageHistoryNotice = 102;
|
1765
|
+
message AlbumMessage {
|
1766
|
+
optional uint32 expectedImageCount = 2;
|
1767
|
+
optional uint32 expectedVideoCount = 3;
|
1768
|
+
optional ContextInfo contextInfo = 17;
|
1769
|
+
}
|
1770
|
+
|
1021
1771
|
message AppStateFatalExceptionNotification {
|
1022
1772
|
repeated string collectionNames = 1;
|
1023
1773
|
optional int64 timestamp = 2;
|
@@ -1068,6 +1818,7 @@ message Message {
|
|
1068
1818
|
optional bytes waveform = 19;
|
1069
1819
|
optional fixed32 backgroundArgb = 20;
|
1070
1820
|
optional bool viewOnce = 21;
|
1821
|
+
optional string accessibilityLabel = 22;
|
1071
1822
|
}
|
1072
1823
|
|
1073
1824
|
message BCallMessage {
|
@@ -1088,6 +1839,7 @@ message Message {
|
|
1088
1839
|
optional string text = 3;
|
1089
1840
|
optional uint64 kindNegative = 4;
|
1090
1841
|
optional uint64 kindPositive = 5;
|
1842
|
+
optional ReportKind kindReport = 6;
|
1091
1843
|
enum BotFeedbackKind {
|
1092
1844
|
BOT_FEEDBACK_POSITIVE = 0;
|
1093
1845
|
BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
|
@@ -1099,6 +1851,9 @@ message Message {
|
|
1099
1851
|
BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
|
1100
1852
|
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
|
1101
1853
|
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
|
1854
|
+
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
|
1855
|
+
BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
|
1856
|
+
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
|
1102
1857
|
}
|
1103
1858
|
enum BotFeedbackKindMultipleNegative {
|
1104
1859
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
|
@@ -1114,6 +1869,9 @@ message Message {
|
|
1114
1869
|
enum BotFeedbackKindMultiplePositive {
|
1115
1870
|
BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
|
1116
1871
|
}
|
1872
|
+
enum ReportKind {
|
1873
|
+
GENERIC = 0;
|
1874
|
+
}
|
1117
1875
|
}
|
1118
1876
|
|
1119
1877
|
message ButtonsMessage {
|
@@ -1179,6 +1937,9 @@ message Message {
|
|
1179
1937
|
optional string conversionSource = 2;
|
1180
1938
|
optional bytes conversionData = 3;
|
1181
1939
|
optional uint32 conversionDelaySeconds = 4;
|
1940
|
+
optional string ctwaSignals = 5;
|
1941
|
+
optional bytes ctwaPayload = 6;
|
1942
|
+
optional ContextInfo contextInfo = 7;
|
1182
1943
|
}
|
1183
1944
|
|
1184
1945
|
message CallLogMessage {
|
@@ -1218,6 +1979,24 @@ message Message {
|
|
1218
1979
|
optional string id = 2;
|
1219
1980
|
}
|
1220
1981
|
|
1982
|
+
message CloudAPIThreadControlNotification {
|
1983
|
+
optional CloudAPIThreadControl status = 1;
|
1984
|
+
optional int64 senderNotificationTimestampMs = 2;
|
1985
|
+
optional string consumerLid = 3;
|
1986
|
+
optional string consumerPhoneNumber = 4;
|
1987
|
+
optional CloudAPIThreadControlNotificationContent notificationContent = 5;
|
1988
|
+
enum CloudAPIThreadControl {
|
1989
|
+
UNKNOWN = 0;
|
1990
|
+
CONTROL_PASSED = 1;
|
1991
|
+
CONTROL_TAKEN = 2;
|
1992
|
+
}
|
1993
|
+
message CloudAPIThreadControlNotificationContent {
|
1994
|
+
optional string handoffNotificationText = 1;
|
1995
|
+
optional string extraJson = 2;
|
1996
|
+
}
|
1997
|
+
|
1998
|
+
}
|
1999
|
+
|
1221
2000
|
message CommentMessage {
|
1222
2001
|
optional Message message = 1;
|
1223
2002
|
optional MessageKey targetMessageKey = 2;
|
@@ -1266,6 +2045,7 @@ message Message {
|
|
1266
2045
|
optional uint32 thumbnailHeight = 18;
|
1267
2046
|
optional uint32 thumbnailWidth = 19;
|
1268
2047
|
optional string caption = 20;
|
2048
|
+
optional string accessibilityLabel = 21;
|
1269
2049
|
}
|
1270
2050
|
|
1271
2051
|
message EncCommentMessage {
|
@@ -1274,7 +2054,7 @@ message Message {
|
|
1274
2054
|
optional bytes encIv = 3;
|
1275
2055
|
}
|
1276
2056
|
|
1277
|
-
message
|
2057
|
+
message EncEventResponseMessage {
|
1278
2058
|
optional MessageKey eventCreationMessageKey = 1;
|
1279
2059
|
optional bytes encPayload = 2;
|
1280
2060
|
optional bytes encIv = 3;
|
@@ -1286,11 +2066,6 @@ message Message {
|
|
1286
2066
|
optional bytes encIv = 3;
|
1287
2067
|
}
|
1288
2068
|
|
1289
|
-
message EventEditMessage {
|
1290
|
-
optional Message.EventMessage eventEditMessage = 1;
|
1291
|
-
optional int64 editTimestampMs = 2;
|
1292
|
-
}
|
1293
|
-
|
1294
2069
|
message EventMessage {
|
1295
2070
|
optional ContextInfo contextInfo = 1;
|
1296
2071
|
optional bool isCanceled = 2;
|
@@ -1299,27 +2074,26 @@ message Message {
|
|
1299
2074
|
optional Message.LocationMessage location = 5;
|
1300
2075
|
optional string joinLink = 6;
|
1301
2076
|
optional int64 startTime = 7;
|
2077
|
+
optional int64 endTime = 8;
|
2078
|
+
optional bool extraGuestsAllowed = 9;
|
2079
|
+
optional bool isScheduleCall = 10;
|
1302
2080
|
}
|
1303
2081
|
|
1304
2082
|
message EventResponseMessage {
|
1305
2083
|
optional EventResponseType response = 1;
|
1306
2084
|
optional int64 timestampMs = 2;
|
2085
|
+
optional int32 extraGuestCount = 3;
|
1307
2086
|
enum EventResponseType {
|
1308
2087
|
UNKNOWN = 0;
|
1309
2088
|
GOING = 1;
|
1310
2089
|
NOT_GOING = 2;
|
2090
|
+
MAYBE = 3;
|
1311
2091
|
}
|
1312
2092
|
}
|
1313
2093
|
|
1314
|
-
message EventUpdateMessage {
|
1315
|
-
optional Message.EventResponseMessage response = 1;
|
1316
|
-
optional Message.EventEditMessage edit = 2;
|
1317
|
-
}
|
1318
|
-
|
1319
2094
|
message ExtendedTextMessage {
|
1320
2095
|
optional string text = 1;
|
1321
2096
|
optional string matchedText = 2;
|
1322
|
-
optional string canonicalUrl = 4;
|
1323
2097
|
optional string description = 5;
|
1324
2098
|
optional string title = 6;
|
1325
2099
|
optional fixed32 textArgb = 7;
|
@@ -1341,6 +2115,11 @@ message Message {
|
|
1341
2115
|
optional bytes inviteLinkParentGroupThumbnailV2 = 28;
|
1342
2116
|
optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
|
1343
2117
|
optional bool viewOnce = 30;
|
2118
|
+
optional uint32 videoHeight = 31;
|
2119
|
+
optional uint32 videoWidth = 32;
|
2120
|
+
optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
|
2121
|
+
optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
|
2122
|
+
optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
|
1344
2123
|
enum FontType {
|
1345
2124
|
SYSTEM = 0;
|
1346
2125
|
SYSTEM_TEXT = 1;
|
@@ -1362,12 +2141,13 @@ message Message {
|
|
1362
2141
|
VIDEO = 1;
|
1363
2142
|
PLACEHOLDER = 4;
|
1364
2143
|
IMAGE = 5;
|
2144
|
+
PAYMENT_LINKS = 6;
|
2145
|
+
PROFILE = 7;
|
1365
2146
|
}
|
1366
2147
|
}
|
1367
2148
|
|
1368
|
-
message
|
1369
|
-
optional
|
1370
|
-
optional Message.ExtendedTextMessage extendedTextMessage = 2;
|
2149
|
+
message FullHistorySyncOnDemandRequestMetadata {
|
2150
|
+
optional string requestId = 1;
|
1371
2151
|
}
|
1372
2152
|
|
1373
2153
|
message FutureProofMessage {
|
@@ -1461,6 +2241,8 @@ message Message {
|
|
1461
2241
|
optional int64 oldestMsgInChunkTimestampSec = 10;
|
1462
2242
|
optional bytes initialHistBootstrapInlinePayload = 11;
|
1463
2243
|
optional string peerDataRequestSessionId = 12;
|
2244
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
|
2245
|
+
optional string encHandle = 14;
|
1464
2246
|
enum HistorySyncType {
|
1465
2247
|
INITIAL_BOOTSTRAP = 0;
|
1466
2248
|
INITIAL_STATUS_V3 = 1;
|
@@ -1469,6 +2251,7 @@ message Message {
|
|
1469
2251
|
PUSH_NAME = 4;
|
1470
2252
|
NON_BLOCKING_DATA = 5;
|
1471
2253
|
ON_DEMAND = 6;
|
2254
|
+
NO_HISTORY = 7;
|
1472
2255
|
}
|
1473
2256
|
}
|
1474
2257
|
|
@@ -1500,6 +2283,14 @@ message Message {
|
|
1500
2283
|
optional bytes thumbnailEncSha256 = 28;
|
1501
2284
|
optional string staticUrl = 29;
|
1502
2285
|
repeated InteractiveAnnotation annotations = 30;
|
2286
|
+
optional ImageSourceType imageSourceType = 31;
|
2287
|
+
optional string accessibilityLabel = 32;
|
2288
|
+
enum ImageSourceType {
|
2289
|
+
USER_IMAGE = 0;
|
2290
|
+
AI_GENERATED = 1;
|
2291
|
+
AI_MODIFIED = 2;
|
2292
|
+
RASTERIZED_TEXT_STATUS = 3;
|
2293
|
+
}
|
1503
2294
|
}
|
1504
2295
|
|
1505
2296
|
message InitialSecurityNotificationSettingSync {
|
@@ -1511,6 +2302,7 @@ message Message {
|
|
1511
2302
|
optional Body body = 2;
|
1512
2303
|
optional Footer footer = 3;
|
1513
2304
|
optional ContextInfo contextInfo = 15;
|
2305
|
+
optional UrlTrackingMap urlTrackingMap = 16;
|
1514
2306
|
oneof interactiveMessage {
|
1515
2307
|
Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
|
1516
2308
|
Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
|
@@ -1546,6 +2338,7 @@ message Message {
|
|
1546
2338
|
bytes jpegThumbnail = 6;
|
1547
2339
|
Message.VideoMessage videoMessage = 7;
|
1548
2340
|
Message.LocationMessage locationMessage = 8;
|
2341
|
+
Message.ProductMessage productMessage = 9;
|
1549
2342
|
}
|
1550
2343
|
}
|
1551
2344
|
|
@@ -1620,6 +2413,12 @@ message Message {
|
|
1620
2413
|
optional int64 timestampMs = 3;
|
1621
2414
|
}
|
1622
2415
|
|
2416
|
+
message LinkPreviewMetadata {
|
2417
|
+
optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
|
2418
|
+
optional Message.URLMetadata urlMetadata = 2;
|
2419
|
+
optional uint32 fbExperimentId = 3;
|
2420
|
+
}
|
2421
|
+
|
1623
2422
|
message ListMessage {
|
1624
2423
|
optional string title = 1;
|
1625
2424
|
optional string description = 2;
|
@@ -1711,15 +2510,36 @@ message Message {
|
|
1711
2510
|
optional ContextInfo contextInfo = 17;
|
1712
2511
|
}
|
1713
2512
|
|
2513
|
+
message MMSThumbnailMetadata {
|
2514
|
+
optional string thumbnailDirectPath = 1;
|
2515
|
+
optional bytes thumbnailSha256 = 2;
|
2516
|
+
optional bytes thumbnailEncSha256 = 3;
|
2517
|
+
optional bytes mediaKey = 4;
|
2518
|
+
optional int64 mediaKeyTimestamp = 5;
|
2519
|
+
optional uint32 thumbnailHeight = 6;
|
2520
|
+
optional uint32 thumbnailWidth = 7;
|
2521
|
+
}
|
2522
|
+
|
1714
2523
|
message MessageHistoryBundle {
|
1715
|
-
optional string mimetype =
|
1716
|
-
optional bytes fileSha256 =
|
1717
|
-
optional bytes mediaKey =
|
1718
|
-
optional bytes fileEncSha256 =
|
1719
|
-
optional string directPath =
|
1720
|
-
optional int64 mediaKeyTimestamp =
|
1721
|
-
optional ContextInfo contextInfo =
|
1722
|
-
|
2524
|
+
optional string mimetype = 1;
|
2525
|
+
optional bytes fileSha256 = 2;
|
2526
|
+
optional bytes mediaKey = 3;
|
2527
|
+
optional bytes fileEncSha256 = 4;
|
2528
|
+
optional string directPath = 5;
|
2529
|
+
optional int64 mediaKeyTimestamp = 6;
|
2530
|
+
optional ContextInfo contextInfo = 7;
|
2531
|
+
optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
|
2532
|
+
}
|
2533
|
+
|
2534
|
+
message MessageHistoryMetadata {
|
2535
|
+
repeated string historyReceivers = 1;
|
2536
|
+
optional int64 firstMessageTimestamp = 2;
|
2537
|
+
optional int64 messageCount = 3;
|
2538
|
+
}
|
2539
|
+
|
2540
|
+
message MessageHistoryNotice {
|
2541
|
+
optional ContextInfo contextInfo = 1;
|
2542
|
+
optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
|
1723
2543
|
}
|
1724
2544
|
|
1725
2545
|
message NewsletterAdminInviteMessage {
|
@@ -1728,6 +2548,7 @@ message Message {
|
|
1728
2548
|
optional bytes jpegThumbnail = 3;
|
1729
2549
|
optional string caption = 4;
|
1730
2550
|
optional int64 inviteExpiration = 5;
|
2551
|
+
optional ContextInfo contextInfo = 6;
|
1731
2552
|
}
|
1732
2553
|
|
1733
2554
|
message OrderMessage {
|
@@ -1745,6 +2566,7 @@ message Message {
|
|
1745
2566
|
optional ContextInfo contextInfo = 17;
|
1746
2567
|
optional int32 messageVersion = 12;
|
1747
2568
|
optional MessageKey orderRequestMessageId = 13;
|
2569
|
+
optional string catalogType = 15;
|
1748
2570
|
enum OrderStatus {
|
1749
2571
|
INQUIRY = 1;
|
1750
2572
|
ACCEPTED = 2;
|
@@ -1766,18 +2588,43 @@ message Message {
|
|
1766
2588
|
}
|
1767
2589
|
}
|
1768
2590
|
|
2591
|
+
message PaymentLinkMetadata {
|
2592
|
+
optional PaymentLinkButton button = 1;
|
2593
|
+
optional PaymentLinkHeader header = 2;
|
2594
|
+
message PaymentLinkButton {
|
2595
|
+
optional string displayText = 1;
|
2596
|
+
}
|
2597
|
+
|
2598
|
+
message PaymentLinkHeader {
|
2599
|
+
optional PaymentLinkHeaderType headerType = 1;
|
2600
|
+
enum PaymentLinkHeaderType {
|
2601
|
+
LINK_PREVIEW = 0;
|
2602
|
+
ORDER = 1;
|
2603
|
+
}
|
2604
|
+
}
|
2605
|
+
|
2606
|
+
}
|
2607
|
+
|
1769
2608
|
message PeerDataOperationRequestMessage {
|
1770
2609
|
optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
|
1771
2610
|
repeated RequestStickerReupload requestStickerReupload = 2;
|
1772
2611
|
repeated RequestUrlPreview requestUrlPreview = 3;
|
1773
2612
|
optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
|
1774
2613
|
repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
|
2614
|
+
optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
|
2615
|
+
optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
|
2616
|
+
message FullHistorySyncOnDemandRequest {
|
2617
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
2618
|
+
optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
|
2619
|
+
}
|
2620
|
+
|
1775
2621
|
message HistorySyncOnDemandRequest {
|
1776
2622
|
optional string chatJid = 1;
|
1777
2623
|
optional string oldestMsgId = 2;
|
1778
2624
|
optional bool oldestMsgFromMe = 3;
|
1779
2625
|
optional int32 onDemandMsgCount = 4;
|
1780
2626
|
optional int64 oldestMsgTimestampMs = 5;
|
2627
|
+
optional string accountLid = 6;
|
1781
2628
|
}
|
1782
2629
|
|
1783
2630
|
message PlaceholderMessageResendRequest {
|
@@ -1793,6 +2640,11 @@ message Message {
|
|
1793
2640
|
optional bool includeHqThumbnail = 2;
|
1794
2641
|
}
|
1795
2642
|
|
2643
|
+
message SyncDCollectionFatalRecoveryRequest {
|
2644
|
+
optional string collectionName = 1;
|
2645
|
+
optional int64 timestamp = 2;
|
2646
|
+
}
|
2647
|
+
|
1796
2648
|
}
|
1797
2649
|
|
1798
2650
|
message PeerDataOperationRequestResponseMessage {
|
@@ -1804,12 +2656,33 @@ message Message {
|
|
1804
2656
|
optional Message.StickerMessage stickerMessage = 2;
|
1805
2657
|
optional LinkPreviewResponse linkPreviewResponse = 3;
|
1806
2658
|
optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
|
2659
|
+
optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
|
2660
|
+
optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
|
2661
|
+
optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
|
2662
|
+
optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
|
2663
|
+
message CompanionMetaNonceFetchResponse {
|
2664
|
+
optional string nonce = 1;
|
2665
|
+
}
|
2666
|
+
|
2667
|
+
message FullHistorySyncOnDemandRequestResponse {
|
2668
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
2669
|
+
optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
|
2670
|
+
}
|
2671
|
+
|
2672
|
+
enum FullHistorySyncOnDemandResponseCode {
|
2673
|
+
REQUEST_SUCCESS = 0;
|
2674
|
+
REQUEST_TIME_EXPIRED = 1;
|
2675
|
+
DECLINED_SHARING_HISTORY = 2;
|
2676
|
+
GENERIC_ERROR = 3;
|
2677
|
+
ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
|
2678
|
+
ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
|
2679
|
+
ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
|
2680
|
+
}
|
1807
2681
|
message LinkPreviewResponse {
|
1808
2682
|
optional string url = 1;
|
1809
2683
|
optional string title = 2;
|
1810
2684
|
optional string description = 3;
|
1811
2685
|
optional bytes thumbData = 4;
|
1812
|
-
optional string canonicalUrl = 5;
|
1813
2686
|
optional string matchText = 6;
|
1814
2687
|
optional string previewType = 7;
|
1815
2688
|
optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
|
@@ -1829,6 +2702,16 @@ message Message {
|
|
1829
2702
|
optional bytes webMessageInfoBytes = 1;
|
1830
2703
|
}
|
1831
2704
|
|
2705
|
+
message SyncDSnapshotFatalRecoveryResponse {
|
2706
|
+
optional bytes collectionSnapshot = 1;
|
2707
|
+
optional bool isCompressed = 2;
|
2708
|
+
}
|
2709
|
+
|
2710
|
+
message WaffleNonceFetchResponse {
|
2711
|
+
optional string nonce = 1;
|
2712
|
+
optional string waEntFbid = 2;
|
2713
|
+
}
|
2714
|
+
|
1832
2715
|
}
|
1833
2716
|
|
1834
2717
|
}
|
@@ -1839,6 +2722,10 @@ message Message {
|
|
1839
2722
|
GENERATE_LINK_PREVIEW = 2;
|
1840
2723
|
HISTORY_SYNC_ON_DEMAND = 3;
|
1841
2724
|
PLACEHOLDER_MESSAGE_RESEND = 4;
|
2725
|
+
WAFFLE_LINKING_NONCE_FETCH = 5;
|
2726
|
+
FULL_HISTORY_SYNC_ON_DEMAND = 6;
|
2727
|
+
COMPANION_META_NONCE_FETCH = 7;
|
2728
|
+
COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
|
1842
2729
|
}
|
1843
2730
|
message PinInChatMessage {
|
1844
2731
|
optional MessageKey key = 1;
|
@@ -1858,16 +2745,29 @@ message Message {
|
|
1858
2745
|
}
|
1859
2746
|
}
|
1860
2747
|
|
2748
|
+
enum PollContentType {
|
2749
|
+
UNKNOWN = 0;
|
2750
|
+
TEXT = 1;
|
2751
|
+
IMAGE = 2;
|
2752
|
+
}
|
1861
2753
|
message PollCreationMessage {
|
1862
2754
|
optional bytes encKey = 1;
|
1863
2755
|
optional string name = 2;
|
1864
2756
|
repeated Option options = 3;
|
1865
2757
|
optional uint32 selectableOptionsCount = 4;
|
1866
2758
|
optional ContextInfo contextInfo = 5;
|
2759
|
+
optional Message.PollContentType pollContentType = 6;
|
2760
|
+
optional PollType pollType = 7;
|
2761
|
+
optional Option correctAnswer = 8;
|
1867
2762
|
message Option {
|
1868
2763
|
optional string optionName = 1;
|
2764
|
+
optional string optionHash = 2;
|
1869
2765
|
}
|
1870
2766
|
|
2767
|
+
enum PollType {
|
2768
|
+
POLL = 0;
|
2769
|
+
QUIZ = 1;
|
2770
|
+
}
|
1871
2771
|
}
|
1872
2772
|
|
1873
2773
|
message PollEncValue {
|
@@ -1875,6 +2775,17 @@ message Message {
|
|
1875
2775
|
optional bytes encIv = 2;
|
1876
2776
|
}
|
1877
2777
|
|
2778
|
+
message PollResultSnapshotMessage {
|
2779
|
+
optional string name = 1;
|
2780
|
+
repeated PollVote pollVotes = 2;
|
2781
|
+
optional ContextInfo contextInfo = 3;
|
2782
|
+
message PollVote {
|
2783
|
+
optional string optionName = 1;
|
2784
|
+
optional int64 optionVoteCount = 2;
|
2785
|
+
}
|
2786
|
+
|
2787
|
+
}
|
2788
|
+
|
1878
2789
|
message PollUpdateMessage {
|
1879
2790
|
optional MessageKey pollCreationMessageKey = 1;
|
1880
2791
|
optional Message.PollEncValue vote = 2;
|
@@ -1914,6 +2825,7 @@ message Message {
|
|
1914
2825
|
optional uint32 productImageCount = 9;
|
1915
2826
|
optional string firstImageId = 11;
|
1916
2827
|
optional int64 salePriceAmount1000 = 12;
|
2828
|
+
optional string signedUrl = 13;
|
1917
2829
|
}
|
1918
2830
|
|
1919
2831
|
}
|
@@ -1937,6 +2849,12 @@ message Message {
|
|
1937
2849
|
optional string invokerJid = 19;
|
1938
2850
|
optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
|
1939
2851
|
optional MediaNotifyMessage mediaNotifyMessage = 21;
|
2852
|
+
optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
|
2853
|
+
optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
|
2854
|
+
optional LimitSharing limitSharing = 24;
|
2855
|
+
optional bytes aiPsiMetadata = 25;
|
2856
|
+
optional AIQueryFanout aiQueryFanout = 26;
|
2857
|
+
optional MemberLabel memberLabel = 27;
|
1940
2858
|
enum Type {
|
1941
2859
|
REVOKE = 0;
|
1942
2860
|
EPHEMERAL_SETTING = 3;
|
@@ -1954,6 +2872,16 @@ message Message {
|
|
1954
2872
|
REQUEST_WELCOME_MESSAGE = 18;
|
1955
2873
|
BOT_FEEDBACK_MESSAGE = 19;
|
1956
2874
|
MEDIA_NOTIFY_MESSAGE = 20;
|
2875
|
+
CLOUD_API_THREAD_CONTROL_NOTIFICATION = 21;
|
2876
|
+
LID_MIGRATION_MAPPING_SYNC = 22;
|
2877
|
+
REMINDER_MESSAGE = 23;
|
2878
|
+
BOT_MEMU_ONBOARDING_MESSAGE = 24;
|
2879
|
+
STATUS_MENTION_MESSAGE = 25;
|
2880
|
+
STOP_GENERATION_MESSAGE = 26;
|
2881
|
+
LIMIT_SHARING = 27;
|
2882
|
+
AI_PSI_METADATA = 28;
|
2883
|
+
AI_QUERY_FANOUT = 29;
|
2884
|
+
GROUP_MEMBER_LABEL_CHANGE = 30;
|
1957
2885
|
}
|
1958
2886
|
}
|
1959
2887
|
|
@@ -2006,6 +2934,18 @@ message Message {
|
|
2006
2934
|
}
|
2007
2935
|
}
|
2008
2936
|
|
2937
|
+
message SecretEncryptedMessage {
|
2938
|
+
optional MessageKey targetMessageKey = 1;
|
2939
|
+
optional bytes encPayload = 2;
|
2940
|
+
optional bytes encIv = 3;
|
2941
|
+
optional SecretEncType secretEncType = 4;
|
2942
|
+
enum SecretEncType {
|
2943
|
+
UNKNOWN = 0;
|
2944
|
+
EVENT_EDIT = 1;
|
2945
|
+
MESSAGE_EDIT = 2;
|
2946
|
+
}
|
2947
|
+
}
|
2948
|
+
|
2009
2949
|
message SendPaymentMessage {
|
2010
2950
|
optional Message noteMessage = 2;
|
2011
2951
|
optional MessageKey requestMessageKey = 3;
|
@@ -2017,6 +2957,17 @@ message Message {
|
|
2017
2957
|
optional bytes axolotlSenderKeyDistributionMessage = 2;
|
2018
2958
|
}
|
2019
2959
|
|
2960
|
+
message StatusNotificationMessage {
|
2961
|
+
optional MessageKey responseMessageKey = 1;
|
2962
|
+
optional MessageKey originalMessageKey = 2;
|
2963
|
+
optional StatusNotificationType type = 3;
|
2964
|
+
enum StatusNotificationType {
|
2965
|
+
UNKNOWN = 0;
|
2966
|
+
STATUS_ADD_YOURS = 1;
|
2967
|
+
STATUS_RESHARE = 2;
|
2968
|
+
}
|
2969
|
+
}
|
2970
|
+
|
2020
2971
|
message StickerMessage {
|
2021
2972
|
optional string url = 1;
|
2022
2973
|
optional bytes fileSha256 = 2;
|
@@ -2037,6 +2988,46 @@ message Message {
|
|
2037
2988
|
optional bool isAvatar = 19;
|
2038
2989
|
optional bool isAiSticker = 20;
|
2039
2990
|
optional bool isLottie = 21;
|
2991
|
+
optional string accessibilityLabel = 22;
|
2992
|
+
}
|
2993
|
+
|
2994
|
+
message StickerPackMessage {
|
2995
|
+
optional string stickerPackId = 1;
|
2996
|
+
optional string name = 2;
|
2997
|
+
optional string publisher = 3;
|
2998
|
+
repeated Sticker stickers = 4;
|
2999
|
+
optional uint64 fileLength = 5;
|
3000
|
+
optional bytes fileSha256 = 6;
|
3001
|
+
optional bytes fileEncSha256 = 7;
|
3002
|
+
optional bytes mediaKey = 8;
|
3003
|
+
optional string directPath = 9;
|
3004
|
+
optional string caption = 10;
|
3005
|
+
optional ContextInfo contextInfo = 11;
|
3006
|
+
optional string packDescription = 12;
|
3007
|
+
optional int64 mediaKeyTimestamp = 13;
|
3008
|
+
optional string trayIconFileName = 14;
|
3009
|
+
optional string thumbnailDirectPath = 15;
|
3010
|
+
optional bytes thumbnailSha256 = 16;
|
3011
|
+
optional bytes thumbnailEncSha256 = 17;
|
3012
|
+
optional uint32 thumbnailHeight = 18;
|
3013
|
+
optional uint32 thumbnailWidth = 19;
|
3014
|
+
optional string imageDataHash = 20;
|
3015
|
+
optional uint64 stickerPackSize = 21;
|
3016
|
+
optional StickerPackOrigin stickerPackOrigin = 22;
|
3017
|
+
message Sticker {
|
3018
|
+
optional string fileName = 1;
|
3019
|
+
optional bool isAnimated = 2;
|
3020
|
+
repeated string emojis = 3;
|
3021
|
+
optional string accessibilityLabel = 4;
|
3022
|
+
optional bool isLottie = 5;
|
3023
|
+
optional string mimetype = 6;
|
3024
|
+
}
|
3025
|
+
|
3026
|
+
enum StickerPackOrigin {
|
3027
|
+
FIRST_PARTY = 0;
|
3028
|
+
THIRD_PARTY = 1;
|
3029
|
+
USER_CREATED = 2;
|
3030
|
+
}
|
2040
3031
|
}
|
2041
3032
|
|
2042
3033
|
message StickerSyncRMRMessage {
|
@@ -2092,6 +3083,10 @@ message Message {
|
|
2092
3083
|
|
2093
3084
|
}
|
2094
3085
|
|
3086
|
+
message URLMetadata {
|
3087
|
+
optional uint32 fbExperimentId = 1;
|
3088
|
+
}
|
3089
|
+
|
2095
3090
|
message VideoMessage {
|
2096
3091
|
optional string url = 1;
|
2097
3092
|
optional string mimetype = 2;
|
@@ -2117,6 +3112,9 @@ message Message {
|
|
2117
3112
|
optional bytes thumbnailEncSha256 = 23;
|
2118
3113
|
optional string staticUrl = 24;
|
2119
3114
|
repeated InteractiveAnnotation annotations = 25;
|
3115
|
+
optional string accessibilityLabel = 26;
|
3116
|
+
repeated ProcessedVideo processedVideos = 27;
|
3117
|
+
optional uint32 externalShareFullVideoDurationInSeconds = 28;
|
2120
3118
|
enum Attribution {
|
2121
3119
|
NONE = 0;
|
2122
3120
|
GIPHY = 1;
|
@@ -2126,8 +3124,50 @@ message Message {
|
|
2126
3124
|
|
2127
3125
|
}
|
2128
3126
|
|
3127
|
+
message MessageAddOn {
|
3128
|
+
optional MessageAddOnType messageAddOnType = 1;
|
3129
|
+
optional Message messageAddOn = 2;
|
3130
|
+
optional int64 senderTimestampMs = 3;
|
3131
|
+
optional int64 serverTimestampMs = 4;
|
3132
|
+
optional WebMessageInfo.Status status = 5;
|
3133
|
+
optional MessageAddOnContextInfo addOnContextInfo = 6;
|
3134
|
+
optional MessageKey messageAddOnKey = 7;
|
3135
|
+
optional LegacyMessage legacyMessage = 8;
|
3136
|
+
enum MessageAddOnType {
|
3137
|
+
UNDEFINED = 0;
|
3138
|
+
REACTION = 1;
|
3139
|
+
EVENT_RESPONSE = 2;
|
3140
|
+
POLL_UPDATE = 3;
|
3141
|
+
PIN_IN_CHAT = 4;
|
3142
|
+
}
|
3143
|
+
}
|
3144
|
+
|
2129
3145
|
message MessageAddOnContextInfo {
|
2130
3146
|
optional uint32 messageAddOnDurationInSecs = 1;
|
3147
|
+
optional MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 2;
|
3148
|
+
}
|
3149
|
+
|
3150
|
+
message MessageAssociation {
|
3151
|
+
optional AssociationType associationType = 1;
|
3152
|
+
optional MessageKey parentMessageKey = 2;
|
3153
|
+
optional int32 messageIndex = 3;
|
3154
|
+
enum AssociationType {
|
3155
|
+
UNKNOWN = 0;
|
3156
|
+
MEDIA_ALBUM = 1;
|
3157
|
+
BOT_PLUGIN = 2;
|
3158
|
+
EVENT_COVER_IMAGE = 3;
|
3159
|
+
STATUS_POLL = 4;
|
3160
|
+
HD_VIDEO_DUAL_UPLOAD = 5;
|
3161
|
+
STATUS_EXTERNAL_RESHARE = 6;
|
3162
|
+
MEDIA_POLL = 7;
|
3163
|
+
STATUS_ADD_YOURS = 8;
|
3164
|
+
STATUS_NOTIFICATION = 9;
|
3165
|
+
HD_IMAGE_DUAL_UPLOAD = 10;
|
3166
|
+
STICKER_ANNOTATION = 11;
|
3167
|
+
MOTION_PHOTO = 12;
|
3168
|
+
STATUS_LINK_ACTION = 13;
|
3169
|
+
VIEW_ALL_REPLIES = 14;
|
3170
|
+
}
|
2131
3171
|
}
|
2132
3172
|
|
2133
3173
|
message MessageContextInfo {
|
@@ -2139,6 +3179,16 @@ message MessageContextInfo {
|
|
2139
3179
|
optional bytes botMessageSecret = 6;
|
2140
3180
|
optional BotMetadata botMetadata = 7;
|
2141
3181
|
optional int32 reportingTokenVersion = 8;
|
3182
|
+
optional MessageAddonExpiryType messageAddOnExpiryType = 9;
|
3183
|
+
optional MessageAssociation messageAssociation = 10;
|
3184
|
+
optional bool capiCreatedGroup = 11;
|
3185
|
+
optional string supportPayload = 12;
|
3186
|
+
optional LimitSharing limitSharing = 13;
|
3187
|
+
optional LimitSharing limitSharingV2 = 14;
|
3188
|
+
enum MessageAddonExpiryType {
|
3189
|
+
STATIC = 1;
|
3190
|
+
DEPENDENT_ON_PARENT = 2;
|
3191
|
+
}
|
2142
3192
|
}
|
2143
3193
|
|
2144
3194
|
message MessageKey {
|
@@ -2168,7 +3218,6 @@ message MsgOpaqueData {
|
|
2168
3218
|
optional double lat = 7;
|
2169
3219
|
optional int32 paymentAmount1000 = 8;
|
2170
3220
|
optional string paymentNoteMsgBody = 9;
|
2171
|
-
optional string canonicalUrl = 10;
|
2172
3221
|
optional string matchedText = 11;
|
2173
3222
|
optional string title = 12;
|
2174
3223
|
optional string description = 13;
|
@@ -2184,6 +3233,8 @@ message MsgOpaqueData {
|
|
2184
3233
|
optional string pollUpdateParentKey = 23;
|
2185
3234
|
optional PollEncValue encPollVote = 24;
|
2186
3235
|
optional bool isSentCagPollCreation = 28;
|
3236
|
+
optional PollContentType pollContentType = 42;
|
3237
|
+
optional PollVotesSnapshot pollVotesSnapshot = 41;
|
2187
3238
|
optional string encReactionTargetMessageKey = 25;
|
2188
3239
|
optional bytes encReactionEncPayload = 26;
|
2189
3240
|
optional bytes encReactionEncIv = 27;
|
@@ -2191,8 +3242,40 @@ message MsgOpaqueData {
|
|
2191
3242
|
optional string targetMessageKey = 30;
|
2192
3243
|
optional bytes encPayload = 31;
|
2193
3244
|
optional bytes encIv = 32;
|
3245
|
+
optional string eventName = 33;
|
3246
|
+
optional bool isEventCanceled = 34;
|
3247
|
+
optional string eventDescription = 35;
|
3248
|
+
optional string eventJoinLink = 36;
|
3249
|
+
optional int64 eventStartTime = 37;
|
3250
|
+
optional EventLocation eventLocation = 38;
|
3251
|
+
optional int64 eventEndTime = 40;
|
3252
|
+
optional bytes plainProtobufBytes = 43;
|
3253
|
+
message EventLocation {
|
3254
|
+
optional double degreesLatitude = 1;
|
3255
|
+
optional double degreesLongitude = 2;
|
3256
|
+
optional string name = 3;
|
3257
|
+
optional string address = 4;
|
3258
|
+
optional string url = 5;
|
3259
|
+
optional bytes jpegThumbnail = 6;
|
3260
|
+
}
|
3261
|
+
|
3262
|
+
enum PollContentType {
|
3263
|
+
UNKNOWN = 0;
|
3264
|
+
TEXT = 1;
|
3265
|
+
IMAGE = 2;
|
3266
|
+
}
|
2194
3267
|
message PollOption {
|
2195
3268
|
optional string name = 1;
|
3269
|
+
optional string hash = 2;
|
3270
|
+
}
|
3271
|
+
|
3272
|
+
message PollVoteSnapshot {
|
3273
|
+
optional MsgOpaqueData.PollOption option = 1;
|
3274
|
+
optional int32 optionVoteCount = 2;
|
3275
|
+
}
|
3276
|
+
|
3277
|
+
message PollVotesSnapshot {
|
3278
|
+
repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
|
2196
3279
|
}
|
2197
3280
|
|
2198
3281
|
}
|
@@ -2231,6 +3314,12 @@ message NotificationSettings {
|
|
2231
3314
|
optional string callVibrate = 6;
|
2232
3315
|
}
|
2233
3316
|
|
3317
|
+
message PairingRequest {
|
3318
|
+
optional bytes companionPublicKey = 1;
|
3319
|
+
optional bytes companionIdentityKey = 2;
|
3320
|
+
optional bytes advSecret = 3;
|
3321
|
+
}
|
3322
|
+
|
2234
3323
|
message PastParticipant {
|
2235
3324
|
optional string userJid = 1;
|
2236
3325
|
optional LeaveReason leaveReason = 2;
|
@@ -2266,6 +3355,8 @@ message PatchDebugData {
|
|
2266
3355
|
WEB = 4;
|
2267
3356
|
UWP = 5;
|
2268
3357
|
DARWIN = 6;
|
3358
|
+
IPAD = 7;
|
3359
|
+
WEAROS = 8;
|
2269
3360
|
}
|
2270
3361
|
}
|
2271
3362
|
|
@@ -2429,46 +3520,43 @@ message PremiumMessageInfo {
|
|
2429
3520
|
optional string serverCampaignId = 1;
|
2430
3521
|
}
|
2431
3522
|
|
2432
|
-
message
|
2433
|
-
optional
|
2434
|
-
optional
|
3523
|
+
message PrimaryEphemeralIdentity {
|
3524
|
+
optional bytes publicKey = 1;
|
3525
|
+
optional bytes nonce = 2;
|
2435
3526
|
}
|
2436
3527
|
|
2437
|
-
|
2438
|
-
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
2446
|
-
|
2447
|
-
|
2448
|
-
|
2449
|
-
|
2450
|
-
|
2451
|
-
|
2452
|
-
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2456
|
-
enum FilterClientNotSupportedConfig {
|
2457
|
-
PASS_BY_DEFAULT = 1;
|
2458
|
-
FAIL_BY_DEFAULT = 2;
|
2459
|
-
}
|
2460
|
-
message FilterParameters {
|
2461
|
-
optional string key = 1;
|
2462
|
-
optional string value = 2;
|
2463
|
-
}
|
2464
|
-
|
2465
|
-
enum FilterResult {
|
2466
|
-
TRUE = 1;
|
2467
|
-
FALSE = 2;
|
2468
|
-
UNKNOWN = 3;
|
3528
|
+
enum PrivacySystemMessage {
|
3529
|
+
E2EE_MSG = 1;
|
3530
|
+
NE2EE_SELF = 2;
|
3531
|
+
NE2EE_OTHER = 3;
|
3532
|
+
}
|
3533
|
+
message ProcessedVideo {
|
3534
|
+
optional string directPath = 1;
|
3535
|
+
optional bytes fileSha256 = 2;
|
3536
|
+
optional uint32 height = 3;
|
3537
|
+
optional uint32 width = 4;
|
3538
|
+
optional uint64 fileLength = 5;
|
3539
|
+
optional uint32 bitrate = 6;
|
3540
|
+
optional VideoQuality quality = 7;
|
3541
|
+
repeated string capabilities = 8;
|
3542
|
+
enum VideoQuality {
|
3543
|
+
UNDEFINED = 0;
|
3544
|
+
LOW = 1;
|
3545
|
+
MID = 2;
|
3546
|
+
HIGH = 3;
|
2469
3547
|
}
|
2470
3548
|
}
|
2471
3549
|
|
3550
|
+
message ProloguePayload {
|
3551
|
+
optional bytes companionEphemeralIdentity = 1;
|
3552
|
+
optional CompanionCommitment commitment = 2;
|
3553
|
+
}
|
3554
|
+
|
3555
|
+
message Pushname {
|
3556
|
+
optional string id = 1;
|
3557
|
+
optional string pushname = 2;
|
3558
|
+
}
|
3559
|
+
|
2472
3560
|
message Reaction {
|
2473
3561
|
optional MessageKey key = 1;
|
2474
3562
|
optional string text = 2;
|
@@ -2487,6 +3575,13 @@ message RecordStructure {
|
|
2487
3575
|
repeated SessionStructure previousSessions = 2;
|
2488
3576
|
}
|
2489
3577
|
|
3578
|
+
message Reportable {
|
3579
|
+
optional uint32 minVersion = 1;
|
3580
|
+
optional uint32 maxVersion = 2;
|
3581
|
+
optional uint32 notReportableMinVersion = 3;
|
3582
|
+
optional bool never = 4;
|
3583
|
+
}
|
3584
|
+
|
2490
3585
|
message ReportingTokenInfo {
|
2491
3586
|
optional bytes reportingTag = 1;
|
2492
3587
|
}
|
@@ -2600,6 +3695,10 @@ message SignedPreKeyRecordStructure {
|
|
2600
3695
|
optional fixed64 timestamp = 5;
|
2601
3696
|
}
|
2602
3697
|
|
3698
|
+
message StatusMentionMessage {
|
3699
|
+
optional Message quotedStatus = 1;
|
3700
|
+
}
|
3701
|
+
|
2603
3702
|
message StatusPSA {
|
2604
3703
|
required uint64 campaignId = 44;
|
2605
3704
|
optional uint64 campaignExpirationTimestamp = 45;
|
@@ -2617,6 +3716,7 @@ message StickerMetadata {
|
|
2617
3716
|
optional uint64 fileLength = 9;
|
2618
3717
|
optional float weight = 10;
|
2619
3718
|
optional int64 lastStickerSentTs = 11;
|
3719
|
+
optional bool isLottie = 12;
|
2620
3720
|
}
|
2621
3721
|
|
2622
3722
|
message SyncActionData {
|
@@ -2670,6 +3770,20 @@ message SyncActionValue {
|
|
2670
3770
|
optional LabelReorderingAction labelReorderingAction = 47;
|
2671
3771
|
optional PaymentInfoAction paymentInfoAction = 48;
|
2672
3772
|
optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
|
3773
|
+
optional LockChatAction lockChatAction = 50;
|
3774
|
+
optional ChatLockSettings chatLockSettings = 51;
|
3775
|
+
optional WamoUserIdentifierAction wamoUserIdentifierAction = 52;
|
3776
|
+
optional PrivacySettingDisableLinkPreviewsAction privacySettingDisableLinkPreviewsAction = 53;
|
3777
|
+
optional DeviceCapabilities deviceCapabilities = 54;
|
3778
|
+
optional NoteEditAction noteEditAction = 55;
|
3779
|
+
optional FavoritesAction favoritesAction = 56;
|
3780
|
+
optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
|
3781
|
+
optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
|
3782
|
+
optional UsernameChatStartModeAction usernameChatStartMode = 59;
|
3783
|
+
optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
|
3784
|
+
optional LidContactAction lidContactAction = 61;
|
3785
|
+
optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
|
3786
|
+
optional PaymentTosAction paymentTosAction = 63;
|
2673
3787
|
message AgentAction {
|
2674
3788
|
optional string name = 1;
|
2675
3789
|
optional int32 deviceID = 2;
|
@@ -2710,6 +3824,12 @@ message SyncActionValue {
|
|
2710
3824
|
optional string firstName = 2;
|
2711
3825
|
optional string lidJid = 3;
|
2712
3826
|
optional bool saveOnPrimaryAddressbook = 4;
|
3827
|
+
optional string pnJid = 5;
|
3828
|
+
optional string username = 6;
|
3829
|
+
}
|
3830
|
+
|
3831
|
+
message CtwaPerCustomerDataSharingAction {
|
3832
|
+
optional bool isCtwaPerCustomerDataSharingEnabled = 1;
|
2713
3833
|
}
|
2714
3834
|
|
2715
3835
|
message CustomPaymentMethod {
|
@@ -2746,6 +3866,14 @@ message SyncActionValue {
|
|
2746
3866
|
optional bool isOptIn = 1;
|
2747
3867
|
}
|
2748
3868
|
|
3869
|
+
message FavoritesAction {
|
3870
|
+
repeated Favorite favorites = 1;
|
3871
|
+
message Favorite {
|
3872
|
+
optional string id = 1;
|
3873
|
+
}
|
3874
|
+
|
3875
|
+
}
|
3876
|
+
|
2749
3877
|
message KeyExpiration {
|
2750
3878
|
optional int32 expiredKeyEpoch = 1;
|
2751
3879
|
}
|
@@ -2760,16 +3888,40 @@ message SyncActionValue {
|
|
2760
3888
|
optional int32 predefinedId = 3;
|
2761
3889
|
optional bool deleted = 4;
|
2762
3890
|
optional int32 orderIndex = 5;
|
3891
|
+
optional bool isActive = 6;
|
3892
|
+
optional ListType type = 7;
|
3893
|
+
optional bool isImmutable = 8;
|
3894
|
+
enum ListType {
|
3895
|
+
NONE = 0;
|
3896
|
+
UNREAD = 1;
|
3897
|
+
GROUPS = 2;
|
3898
|
+
FAVORITES = 3;
|
3899
|
+
PREDEFINED = 4;
|
3900
|
+
CUSTOM = 5;
|
3901
|
+
COMMUNITY = 6;
|
3902
|
+
SERVER_ASSIGNED = 7;
|
3903
|
+
}
|
2763
3904
|
}
|
2764
3905
|
|
2765
3906
|
message LabelReorderingAction {
|
2766
3907
|
repeated int32 sortedLabelIds = 1;
|
2767
3908
|
}
|
2768
3909
|
|
3910
|
+
message LidContactAction {
|
3911
|
+
optional string fullName = 1;
|
3912
|
+
optional string firstName = 2;
|
3913
|
+
optional string username = 3;
|
3914
|
+
optional bool saveOnPrimaryAddressbook = 4;
|
3915
|
+
}
|
3916
|
+
|
2769
3917
|
message LocaleSetting {
|
2770
3918
|
optional string locale = 1;
|
2771
3919
|
}
|
2772
3920
|
|
3921
|
+
message LockChatAction {
|
3922
|
+
optional bool locked = 1;
|
3923
|
+
}
|
3924
|
+
|
2773
3925
|
message MarkChatAsReadAction {
|
2774
3926
|
optional bool read = 1;
|
2775
3927
|
optional SyncActionValue.SyncActionMessageRange messageRange = 2;
|
@@ -2792,12 +3944,45 @@ message SyncActionValue {
|
|
2792
3944
|
optional int32 repliedCount = 1;
|
2793
3945
|
}
|
2794
3946
|
|
3947
|
+
message MerchantPaymentPartnerAction {
|
3948
|
+
required Status status = 1;
|
3949
|
+
required string country = 2;
|
3950
|
+
optional string gatewayName = 3;
|
3951
|
+
optional string credentialId = 4;
|
3952
|
+
enum Status {
|
3953
|
+
ACTIVE = 0;
|
3954
|
+
INACTIVE = 1;
|
3955
|
+
}
|
3956
|
+
}
|
3957
|
+
|
2795
3958
|
message MuteAction {
|
2796
3959
|
optional bool muted = 1;
|
2797
3960
|
optional int64 muteEndTimestamp = 2;
|
2798
3961
|
optional bool autoMuted = 3;
|
2799
3962
|
}
|
2800
3963
|
|
3964
|
+
message NoteEditAction {
|
3965
|
+
optional NoteType type = 1;
|
3966
|
+
optional string chatJid = 2;
|
3967
|
+
optional int64 createdAt = 3;
|
3968
|
+
optional bool deleted = 4;
|
3969
|
+
optional string unstructuredContent = 5;
|
3970
|
+
enum NoteType {
|
3971
|
+
UNSTRUCTURED = 1;
|
3972
|
+
STRUCTURED = 2;
|
3973
|
+
}
|
3974
|
+
}
|
3975
|
+
|
3976
|
+
message NotificationActivitySettingAction {
|
3977
|
+
optional NotificationActivitySetting notificationActivitySetting = 1;
|
3978
|
+
enum NotificationActivitySetting {
|
3979
|
+
DEFAULT_ALL_MESSAGES = 0;
|
3980
|
+
ALL_MESSAGES = 1;
|
3981
|
+
HIGHLIGHTS = 2;
|
3982
|
+
DEFAULT_HIGHLIGHTS = 3;
|
3983
|
+
}
|
3984
|
+
}
|
3985
|
+
|
2801
3986
|
message NuxAction {
|
2802
3987
|
optional bool acknowledged = 1;
|
2803
3988
|
}
|
@@ -2806,6 +3991,14 @@ message SyncActionValue {
|
|
2806
3991
|
optional string cpi = 1;
|
2807
3992
|
}
|
2808
3993
|
|
3994
|
+
message PaymentTosAction {
|
3995
|
+
required PaymentNotice paymentNotice = 1;
|
3996
|
+
required bool accepted = 2;
|
3997
|
+
enum PaymentNotice {
|
3998
|
+
BR_PAY_PRIVACY_POLICY = 0;
|
3999
|
+
}
|
4000
|
+
}
|
4001
|
+
|
2809
4002
|
message PinAction {
|
2810
4003
|
optional bool pinned = 1;
|
2811
4004
|
}
|
@@ -2822,6 +4015,10 @@ message SyncActionValue {
|
|
2822
4015
|
optional string version = 1;
|
2823
4016
|
}
|
2824
4017
|
|
4018
|
+
message PrivacySettingDisableLinkPreviewsAction {
|
4019
|
+
optional bool isPreviewsDisabled = 1;
|
4020
|
+
}
|
4021
|
+
|
2825
4022
|
message PrivacySettingRelayAllCalls {
|
2826
4023
|
optional bool isEnabled = 1;
|
2827
4024
|
}
|
@@ -2875,6 +4072,7 @@ message SyncActionValue {
|
|
2875
4072
|
optional uint64 fileLength = 8;
|
2876
4073
|
optional bool isFavorite = 9;
|
2877
4074
|
optional uint32 deviceIdHint = 10;
|
4075
|
+
optional bool isLottie = 11;
|
2878
4076
|
}
|
2879
4077
|
|
2880
4078
|
message SubscriptionAction {
|
@@ -2906,6 +4104,25 @@ message SyncActionValue {
|
|
2906
4104
|
optional bool muted = 1;
|
2907
4105
|
}
|
2908
4106
|
|
4107
|
+
message UsernameChatStartModeAction {
|
4108
|
+
optional ChatStartMode chatStartMode = 1;
|
4109
|
+
enum ChatStartMode {
|
4110
|
+
LID = 1;
|
4111
|
+
PN = 2;
|
4112
|
+
}
|
4113
|
+
}
|
4114
|
+
|
4115
|
+
message WaffleAccountLinkStateAction {
|
4116
|
+
optional AccountLinkState linkState = 2;
|
4117
|
+
enum AccountLinkState {
|
4118
|
+
ACTIVE = 0;
|
4119
|
+
}
|
4120
|
+
}
|
4121
|
+
|
4122
|
+
message WamoUserIdentifierAction {
|
4123
|
+
optional string identifier = 1;
|
4124
|
+
}
|
4125
|
+
|
2909
4126
|
}
|
2910
4127
|
|
2911
4128
|
message SyncdIndex {
|
@@ -2958,6 +4175,11 @@ message SyncdVersion {
|
|
2958
4175
|
optional uint64 version = 1;
|
2959
4176
|
}
|
2960
4177
|
|
4178
|
+
message TapLinkAction {
|
4179
|
+
optional string title = 1;
|
4180
|
+
optional string tapUrl = 2;
|
4181
|
+
}
|
4182
|
+
|
2961
4183
|
message TemplateButton {
|
2962
4184
|
optional uint32 index = 4;
|
2963
4185
|
oneof button {
|
@@ -2982,6 +4204,45 @@ message TemplateButton {
|
|
2982
4204
|
|
2983
4205
|
}
|
2984
4206
|
|
4207
|
+
message UrlTrackingMap {
|
4208
|
+
repeated UrlTrackingMapElement urlTrackingMapElements = 1;
|
4209
|
+
message UrlTrackingMapElement {
|
4210
|
+
optional string originalUrl = 1;
|
4211
|
+
optional string unconsentedUsersUrl = 2;
|
4212
|
+
optional string consentedUsersUrl = 3;
|
4213
|
+
optional uint32 cardIndex = 4;
|
4214
|
+
}
|
4215
|
+
|
4216
|
+
}
|
4217
|
+
|
4218
|
+
message UserPassword {
|
4219
|
+
optional Encoding encoding = 1;
|
4220
|
+
optional Transformer transformer = 2;
|
4221
|
+
repeated TransformerArg transformerArg = 3;
|
4222
|
+
optional bytes transformedData = 4;
|
4223
|
+
enum Encoding {
|
4224
|
+
UTF8 = 0;
|
4225
|
+
UTF8_BROKEN = 1;
|
4226
|
+
}
|
4227
|
+
enum Transformer {
|
4228
|
+
NONE = 0;
|
4229
|
+
PBKDF2_HMAC_SHA512 = 1;
|
4230
|
+
PBKDF2_HMAC_SHA384 = 2;
|
4231
|
+
}
|
4232
|
+
message TransformerArg {
|
4233
|
+
optional string key = 1;
|
4234
|
+
optional Value value = 2;
|
4235
|
+
message Value {
|
4236
|
+
oneof value {
|
4237
|
+
bytes asBlob = 1;
|
4238
|
+
uint32 asUnsignedInteger = 2;
|
4239
|
+
}
|
4240
|
+
}
|
4241
|
+
|
4242
|
+
}
|
4243
|
+
|
4244
|
+
}
|
4245
|
+
|
2985
4246
|
message UserReceipt {
|
2986
4247
|
required string userJid = 1;
|
2987
4248
|
optional int64 receiptTimestamp = 2;
|
@@ -3117,6 +4378,16 @@ message WebMessageInfo {
|
|
3117
4378
|
repeated EventResponse eventResponses = 61;
|
3118
4379
|
optional ReportingTokenInfo reportingTokenInfo = 62;
|
3119
4380
|
optional uint64 newsletterServerId = 63;
|
4381
|
+
optional EventAdditionalMetadata eventAdditionalMetadata = 64;
|
4382
|
+
optional bool isMentionedInStatus = 65;
|
4383
|
+
repeated string statusMentions = 66;
|
4384
|
+
optional MessageKey targetMessageId = 67;
|
4385
|
+
repeated MessageAddOn messageAddOns = 68;
|
4386
|
+
optional StatusMentionMessage statusMentionMessageInfo = 69;
|
4387
|
+
optional bool isSupportAiMessage = 70;
|
4388
|
+
repeated string statusMentionSources = 71;
|
4389
|
+
repeated Citation supportAiCitations = 72;
|
4390
|
+
optional string botTargetId = 73;
|
3120
4391
|
enum BizPrivacyStatus {
|
3121
4392
|
E2EE = 0;
|
3122
4393
|
FB = 2;
|
@@ -3333,6 +4604,24 @@ message WebMessageInfo {
|
|
3333
4604
|
REMINDER_SETUP_MESSAGE = 198;
|
3334
4605
|
REMINDER_SENT_MESSAGE = 199;
|
3335
4606
|
REMINDER_CANCEL_MESSAGE = 200;
|
4607
|
+
BIZ_COEX_PRIVACY_INIT = 201;
|
4608
|
+
BIZ_COEX_PRIVACY_TRANSITION = 202;
|
4609
|
+
GROUP_DEACTIVATED = 203;
|
4610
|
+
COMMUNITY_DEACTIVATE_SIBLING_GROUP = 204;
|
4611
|
+
EVENT_UPDATED = 205;
|
4612
|
+
EVENT_CANCELED = 206;
|
4613
|
+
COMMUNITY_OWNER_UPDATED = 207;
|
4614
|
+
COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208;
|
4615
|
+
CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209;
|
4616
|
+
STATUS_MENTION = 210;
|
4617
|
+
USER_CONTROLS_SYSTEM_MESSAGE = 211;
|
4618
|
+
SUPPORT_SYSTEM_MESSAGE = 212;
|
4619
|
+
CHANGE_LID = 213;
|
4620
|
+
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE = 214;
|
4621
|
+
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE = 215;
|
4622
|
+
CHANGE_LIMIT_SHARING = 216;
|
4623
|
+
GROUP_MEMBER_LINK_MODE = 217;
|
4624
|
+
BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
|
3336
4625
|
}
|
3337
4626
|
}
|
3338
4627
|
|