@realvare/based 2.7.62 → 2.7.71

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.
Files changed (57) hide show
  1. package/README.MD +1062 -282
  2. package/WAProto/WAProto.proto +1073 -244
  3. package/WAProto/index.d.ts +16282 -8183
  4. package/WAProto/index.js +76605 -50628
  5. package/engine-requirements.js +10 -10
  6. package/lib/Defaults/baileys-version.json +1 -1
  7. package/lib/Defaults/index.d.ts +4 -2
  8. package/lib/Defaults/index.js +8 -6
  9. package/lib/Signal/Group/ciphertext-message.d.ts +1 -1
  10. package/lib/Signal/Group/ciphertext-message.js +1 -1
  11. package/lib/Signal/Group/sender-message-key.d.ts +1 -1
  12. package/lib/Signal/Group/sender-message-key.js +1 -1
  13. package/lib/Signal/libsignal.d.ts +1 -1
  14. package/lib/Socket/business.d.ts +1 -1
  15. package/lib/Socket/business.js +1 -1
  16. package/lib/Socket/chats.d.ts +4 -1
  17. package/lib/Socket/chats.js +213 -36
  18. package/lib/Socket/groups.js +87 -15
  19. package/lib/Socket/index.js +9 -0
  20. package/lib/Socket/messages-interactive.js +259 -0
  21. package/lib/Socket/messages-recv.js +1473 -1228
  22. package/lib/Socket/messages-send.js +437 -469
  23. package/lib/Socket/socket.js +143 -26
  24. package/lib/Socket/usync.js +57 -4
  25. package/lib/Store/make-in-memory-store.js +28 -15
  26. package/lib/Types/Auth.d.ts +4 -0
  27. package/lib/Types/Message.d.ts +316 -6
  28. package/lib/Types/Message.js +1 -1
  29. package/lib/Types/Socket.d.ts +2 -0
  30. package/lib/Utils/cache-manager.d.ts +16 -0
  31. package/lib/Utils/cache-manager.js +22 -5
  32. package/lib/Utils/chat-utils.js +17 -13
  33. package/lib/Utils/decode-wa-message.js +1 -11
  34. package/lib/Utils/event-buffer.js +103 -2
  35. package/lib/Utils/generics.js +5 -6
  36. package/lib/Utils/index.d.ts +5 -0
  37. package/lib/Utils/index.js +3 -0
  38. package/lib/Utils/jid-validation.d.ts +2 -0
  39. package/lib/Utils/jid-validation.js +43 -10
  40. package/lib/Utils/link-preview.js +38 -28
  41. package/lib/Utils/messages-media.d.ts +1 -1
  42. package/lib/Utils/messages-media.js +22 -53
  43. package/lib/Utils/messages.js +653 -65
  44. package/lib/Utils/performance-config.d.ts +2 -0
  45. package/lib/Utils/performance-config.js +16 -7
  46. package/lib/Utils/process-message.js +124 -12
  47. package/lib/Utils/rate-limiter.js +15 -20
  48. package/lib/WABinary/generic-utils.js +5 -1
  49. package/lib/WABinary/jid-utils.d.ts +1 -0
  50. package/lib/WABinary/jid-utils.js +265 -5
  51. package/lib/WAUSync/Protocols/USyncContactProtocol.js +75 -5
  52. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +59 -6
  53. package/lib/WAUSync/USyncQuery.js +64 -6
  54. package/lib/index.d.ts +1 -0
  55. package/lib/index.js +5 -4
  56. package/package.json +10 -15
  57. package/WAProto/index.ts.ts +0 -53473
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
- package proto;
2
+ package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1023888953
4
+ /// WhatsApp Version: 2.3000.1031424117
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -42,167 +42,212 @@ message ADVSignedKeyIndexList {
42
42
  optional bytes accountSignatureKey = 3;
43
43
  }
44
44
 
45
+ message AIHomeState {
46
+ optional int64 lastFetchTime = 1;
47
+ repeated AIHomeOption capabilityOptions = 2;
48
+ repeated AIHomeOption conversationOptions = 3;
49
+ message AIHomeOption {
50
+ optional AIHomeActionType type = 1;
51
+ optional string title = 2;
52
+ optional string promptText = 3;
53
+ optional string sessionId = 4;
54
+ optional string imageWdsIdentifier = 5;
55
+ optional string imageTintColor = 6;
56
+ optional string imageBackgroundColor = 7;
57
+ enum AIHomeActionType {
58
+ PROMPT = 0;
59
+ CREATE_IMAGE = 1;
60
+ ANIMATE_PHOTO = 2;
61
+ ANALYZE_FILE = 3;
62
+ }
63
+ }
64
+
65
+ }
66
+
45
67
  message AIQueryFanout {
46
68
  optional MessageKey messageKey = 1;
47
69
  optional Message message = 2;
48
70
  optional int64 timestamp = 3;
49
71
  }
50
72
 
51
- message AIRichResponseMessage {
52
- optional AIRichResponseMessageType messageType = 1;
53
- repeated AIRichResponseSubMessage submessages = 2;
54
- optional AIRichResponseUnifiedResponse unifiedResponse = 3;
55
- optional ContextInfo contextInfo = 4;
56
- message AIRichResponseCodeMetadata {
57
- optional string codeLanguage = 1;
58
- repeated AIRichResponseCodeBlock codeBlocks = 2;
59
- message AIRichResponseCodeBlock {
60
- optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
61
- optional string codeContent = 2;
62
- }
63
-
64
- enum AIRichResponseCodeHighlightType {
65
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
66
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
67
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
68
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
69
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
70
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
71
- }
72
- }
73
-
74
- message AIRichResponseContentItemsMetadata {
75
- repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
76
- optional ContentType contentType = 2;
77
- message AIRichResponseContentItemMetadata {
78
- oneof aIRichResponseContentItem {
79
- AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
80
- }
81
- }
82
-
83
- message AIRichResponseReelItem {
84
- optional string title = 1;
85
- optional string profileIconUrl = 2;
86
- optional string thumbnailUrl = 3;
87
- optional string videoUrl = 4;
88
- }
89
-
90
- enum ContentType {
91
- DEFAULT = 0;
92
- CAROUSEL = 1;
93
- }
73
+ message AIRegenerateMetadata {
74
+ optional MessageKey messageKey = 1;
75
+ optional int64 responseTimestampMs = 2;
76
+ }
77
+
78
+ message AIRichResponseCodeMetadata {
79
+ optional string codeLanguage = 1;
80
+ repeated AIRichResponseCodeBlock codeBlocks = 2;
81
+ message AIRichResponseCodeBlock {
82
+ optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
83
+ optional string codeContent = 2;
94
84
  }
95
85
 
96
- message AIRichResponseDynamicMetadata {
97
- optional AIRichResponseDynamicMetadataType type = 1;
98
- optional uint64 version = 2;
99
- optional string url = 3;
100
- optional uint32 loopCount = 4;
101
- enum AIRichResponseDynamicMetadataType {
102
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
103
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
104
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
86
+ enum AIRichResponseCodeHighlightType {
87
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
88
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
89
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
90
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
91
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
92
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
93
+ }
94
+ }
95
+
96
+ message AIRichResponseContentItemsMetadata {
97
+ repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
98
+ optional ContentType contentType = 2;
99
+ message AIRichResponseContentItemMetadata {
100
+ oneof aIRichResponseContentItem {
101
+ AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
105
102
  }
106
103
  }
107
104
 
108
- message AIRichResponseGridImageMetadata {
109
- optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
110
- repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
105
+ message AIRichResponseReelItem {
106
+ optional string title = 1;
107
+ optional string profileIconUrl = 2;
108
+ optional string thumbnailUrl = 3;
109
+ optional string videoUrl = 4;
111
110
  }
112
111
 
113
- message AIRichResponseImageURL {
114
- optional string imagePreviewUrl = 1;
115
- optional string imageHighResUrl = 2;
116
- optional string sourceUrl = 3;
112
+ enum ContentType {
113
+ DEFAULT = 0;
114
+ CAROUSEL = 1;
117
115
  }
118
-
119
- message AIRichResponseInlineImageMetadata {
120
- optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
121
- optional string imageText = 2;
122
- optional AIRichResponseImageAlignment alignment = 3;
123
- optional string tapLinkUrl = 4;
124
- enum AIRichResponseImageAlignment {
125
- AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
126
- AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
127
- AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
128
- }
116
+ }
117
+
118
+ message AIRichResponseDynamicMetadata {
119
+ optional AIRichResponseDynamicMetadataType type = 1;
120
+ optional uint64 version = 2;
121
+ optional string url = 3;
122
+ optional uint32 loopCount = 4;
123
+ enum AIRichResponseDynamicMetadataType {
124
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
125
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
126
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
129
127
  }
130
-
131
- message AIRichResponseLatexMetadata {
132
- optional string text = 1;
133
- repeated AIRichResponseLatexExpression expressions = 2;
134
- message AIRichResponseLatexExpression {
135
- optional string latexExpression = 1;
136
- optional string url = 2;
137
- optional double width = 3;
138
- optional double height = 4;
139
- optional double fontHeight = 5;
140
- optional double imageTopPadding = 6;
141
- optional double imageLeadingPadding = 7;
142
- optional double imageBottomPadding = 8;
143
- optional double imageTrailingPadding = 9;
144
- }
145
-
128
+ }
129
+
130
+ message AIRichResponseGridImageMetadata {
131
+ optional AIRichResponseImageURL gridImageUrl = 1;
132
+ repeated AIRichResponseImageURL imageUrls = 2;
133
+ }
134
+
135
+ message AIRichResponseImageURL {
136
+ optional string imagePreviewUrl = 1;
137
+ optional string imageHighResUrl = 2;
138
+ optional string sourceUrl = 3;
139
+ }
140
+
141
+ message AIRichResponseInlineImageMetadata {
142
+ optional AIRichResponseImageURL imageUrl = 1;
143
+ optional string imageText = 2;
144
+ optional AIRichResponseImageAlignment alignment = 3;
145
+ optional string tapLinkUrl = 4;
146
+ enum AIRichResponseImageAlignment {
147
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
148
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
149
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
150
+ }
151
+ }
152
+
153
+ message AIRichResponseLatexMetadata {
154
+ optional string text = 1;
155
+ repeated AIRichResponseLatexExpression expressions = 2;
156
+ message AIRichResponseLatexExpression {
157
+ optional string latexExpression = 1;
158
+ optional string url = 2;
159
+ optional double width = 3;
160
+ optional double height = 4;
161
+ optional double fontHeight = 5;
162
+ optional double imageTopPadding = 6;
163
+ optional double imageLeadingPadding = 7;
164
+ optional double imageBottomPadding = 8;
165
+ optional double imageTrailingPadding = 9;
166
+ }
167
+
168
+ }
169
+
170
+ message AIRichResponseMapMetadata {
171
+ optional double centerLatitude = 1;
172
+ optional double centerLongitude = 2;
173
+ optional double latitudeDelta = 3;
174
+ optional double longitudeDelta = 4;
175
+ repeated AIRichResponseMapAnnotation annotations = 5;
176
+ optional bool showInfoList = 6;
177
+ message AIRichResponseMapAnnotation {
178
+ optional uint32 annotationNumber = 1;
179
+ optional double latitude = 2;
180
+ optional double longitude = 3;
181
+ optional string title = 4;
182
+ optional string body = 5;
146
183
  }
147
184
 
148
- message AIRichResponseMapMetadata {
149
- optional double centerLatitude = 1;
150
- optional double centerLongitude = 2;
151
- optional double latitudeDelta = 3;
152
- optional double longitudeDelta = 4;
153
- repeated AIRichResponseMapAnnotation annotations = 5;
154
- optional bool showInfoList = 6;
155
- message AIRichResponseMapAnnotation {
156
- optional uint32 annotationNumber = 1;
157
- optional double latitude = 2;
158
- optional double longitude = 3;
159
- optional string title = 4;
160
- optional string body = 5;
161
- }
162
-
185
+ }
186
+
187
+ message AIRichResponseMessage {
188
+ optional AIRichResponseMessageType messageType = 1;
189
+ repeated AIRichResponseSubMessage submessages = 2;
190
+ optional AIRichResponseUnifiedResponse unifiedResponse = 3;
191
+ optional ContextInfo contextInfo = 4;
192
+ }
193
+
194
+ enum AIRichResponseMessageType {
195
+ AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
196
+ AI_RICH_RESPONSE_TYPE_STANDARD = 1;
197
+ }
198
+ message AIRichResponseSubMessage {
199
+ optional AIRichResponseSubMessageType messageType = 1;
200
+ optional AIRichResponseGridImageMetadata gridImageMetadata = 2;
201
+ optional string messageText = 3;
202
+ optional AIRichResponseInlineImageMetadata imageMetadata = 4;
203
+ optional AIRichResponseCodeMetadata codeMetadata = 5;
204
+ optional AIRichResponseTableMetadata tableMetadata = 6;
205
+ optional AIRichResponseDynamicMetadata dynamicMetadata = 7;
206
+ optional AIRichResponseLatexMetadata latexMetadata = 8;
207
+ optional AIRichResponseMapMetadata mapMetadata = 9;
208
+ optional AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
209
+ }
210
+
211
+ enum AIRichResponseSubMessageType {
212
+ AI_RICH_RESPONSE_UNKNOWN = 0;
213
+ AI_RICH_RESPONSE_GRID_IMAGE = 1;
214
+ AI_RICH_RESPONSE_TEXT = 2;
215
+ AI_RICH_RESPONSE_INLINE_IMAGE = 3;
216
+ AI_RICH_RESPONSE_TABLE = 4;
217
+ AI_RICH_RESPONSE_CODE = 5;
218
+ AI_RICH_RESPONSE_DYNAMIC = 6;
219
+ AI_RICH_RESPONSE_MAP = 7;
220
+ AI_RICH_RESPONSE_LATEX = 8;
221
+ AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
222
+ }
223
+ message AIRichResponseTableMetadata {
224
+ repeated AIRichResponseTableRow rows = 1;
225
+ optional string title = 2;
226
+ message AIRichResponseTableRow {
227
+ repeated string items = 1;
228
+ optional bool isHeading = 2;
163
229
  }
164
230
 
165
- enum AIRichResponseMessageType {
166
- AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
167
- AI_RICH_RESPONSE_TYPE_STANDARD = 1;
168
- }
169
- message AIRichResponseSubMessage {
170
- optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
171
- optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
172
- optional string messageText = 3;
173
- optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
174
- optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
175
- optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
176
- optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
177
- optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
178
- optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
179
- optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
180
- }
181
-
182
- enum AIRichResponseSubMessageType {
183
- AI_RICH_RESPONSE_UNKNOWN = 0;
184
- AI_RICH_RESPONSE_GRID_IMAGE = 1;
185
- AI_RICH_RESPONSE_TEXT = 2;
186
- AI_RICH_RESPONSE_INLINE_IMAGE = 3;
187
- AI_RICH_RESPONSE_TABLE = 4;
188
- AI_RICH_RESPONSE_CODE = 5;
189
- AI_RICH_RESPONSE_DYNAMIC = 6;
190
- AI_RICH_RESPONSE_MAP = 7;
191
- AI_RICH_RESPONSE_LATEX = 8;
192
- AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
193
- }
194
- message AIRichResponseTableMetadata {
195
- repeated AIRichResponseTableRow rows = 1;
196
- optional string title = 2;
197
- message AIRichResponseTableRow {
198
- repeated string items = 1;
199
- optional bool isHeading = 2;
231
+ }
232
+
233
+ message AIRichResponseUnifiedResponse {
234
+ optional bytes data = 1;
235
+ }
236
+
237
+ message AIThreadInfo {
238
+ optional AIThreadServerInfo serverInfo = 1;
239
+ optional AIThreadClientInfo clientInfo = 2;
240
+ message AIThreadClientInfo {
241
+ optional AIThreadType type = 1;
242
+ enum AIThreadType {
243
+ UNKNOWN = 0;
244
+ DEFAULT = 1;
245
+ INCOGNITO = 2;
200
246
  }
201
-
202
247
  }
203
248
 
204
- message AIRichResponseUnifiedResponse {
205
- optional bytes data = 1;
249
+ message AIThreadServerInfo {
250
+ optional string title = 1;
206
251
  }
207
252
 
208
253
  }
@@ -278,6 +323,11 @@ message BizIdentityInfo {
278
323
  message BotAgeCollectionMetadata {
279
324
  optional bool ageCollectionEligible = 1;
280
325
  optional bool shouldTriggerAgeCollectionOnClient = 2;
326
+ optional AgeCollectionType ageCollectionType = 3;
327
+ enum AgeCollectionType {
328
+ O18_BINARY = 0;
329
+ WAFFLE = 1;
330
+ }
281
331
  }
282
332
 
283
333
  message BotAvatarMetadata {
@@ -328,7 +378,137 @@ message BotCapabilityMetadata {
328
378
  RICH_RESPONSE_UNIFIED_RESPONSE = 34;
329
379
  PROMOTION_MESSAGE = 35;
330
380
  SIMPLIFIED_PROFILE_PAGE = 36;
381
+ RICH_RESPONSE_SOURCES_IN_MESSAGE = 37;
382
+ RICH_RESPONSE_SIDE_BY_SIDE_SURVEY = 38;
383
+ RICH_RESPONSE_UNIFIED_TEXT_COMPONENT = 39;
384
+ AI_SHARED_MEMORY = 40;
385
+ RICH_RESPONSE_UNIFIED_SOURCES = 41;
386
+ RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42;
387
+ RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
388
+ RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
389
+ RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
390
+ RICH_RESPONSE_IN_APP_SURVEY = 46;
391
+ AI_RESPONSE_MODEL_BRANDING = 47;
392
+ SESSION_TRANSPARENCY_SYSTEM_MESSAGE = 48;
393
+ RICH_RESPONSE_UR_REASONING = 49;
394
+ RICH_RESPONSE_UR_ZEITGEIST_CITATIONS = 50;
395
+ RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL = 51;
396
+ AI_IMAGINE_LOADING_INDICATOR = 52;
397
+ RICH_RESPONSE_UR_IMAGINE = 53;
398
+ AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR = 54;
399
+ }
400
+ }
401
+
402
+ message BotDocumentMessageMetadata {
403
+ optional DocumentPluginType pluginType = 1;
404
+ enum DocumentPluginType {
405
+ TEXT_EXTRACTION = 0;
406
+ OCR_AND_IMAGES = 1;
407
+ }
408
+ }
409
+
410
+ message BotFeedbackMessage {
411
+ optional MessageKey messageKey = 1;
412
+ optional BotFeedbackKind kind = 2;
413
+ optional string text = 3;
414
+ optional uint64 kindNegative = 4;
415
+ optional uint64 kindPositive = 5;
416
+ optional ReportKind kindReport = 6;
417
+ optional SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;
418
+ enum BotFeedbackKind {
419
+ BOT_FEEDBACK_POSITIVE = 0;
420
+ BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
421
+ BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
422
+ BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
423
+ BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
424
+ BOT_FEEDBACK_NEGATIVE_SAFE = 5;
425
+ BOT_FEEDBACK_NEGATIVE_OTHER = 6;
426
+ BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
427
+ BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
428
+ BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
429
+ BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
430
+ BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
431
+ BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
432
+ BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
433
+ BOT_FEEDBACK_NEGATIVE = 14;
434
+ }
435
+ enum BotFeedbackKindMultipleNegative {
436
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
437
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
438
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
439
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
440
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
441
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
442
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
443
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
444
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
445
+ }
446
+ enum BotFeedbackKindMultiplePositive {
447
+ BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
448
+ }
449
+ enum ReportKind {
450
+ NONE = 0;
451
+ GENERIC = 1;
452
+ }
453
+ message SideBySideSurveyMetadata {
454
+ optional string selectedRequestId = 1;
455
+ optional uint32 surveyId = 2;
456
+ optional string simonSessionFbid = 3;
457
+ optional string responseOtid = 4;
458
+ optional string responseTimestampMsString = 5;
459
+ optional bool isSelectedResponsePrimary = 6;
460
+ optional string messageIdToEdit = 7;
461
+ optional SideBySideSurveyAnalyticsData analyticsData = 8;
462
+ optional SidebySideSurveyMetaAiAnalyticsData metaAiAnalyticsData = 9;
463
+ message SideBySideSurveyAnalyticsData {
464
+ optional string tessaEvent = 1;
465
+ optional string tessaSessionFbid = 2;
466
+ optional string simonSessionFbid = 3;
467
+ }
468
+
469
+ message SidebySideSurveyMetaAiAnalyticsData {
470
+ optional uint32 surveyId = 1;
471
+ optional string primaryResponseId = 2;
472
+ optional string testArmName = 3;
473
+ optional string timestampMsString = 4;
474
+ optional SideBySideSurveyCTAImpressionEventData ctaImpressionEvent = 5;
475
+ optional SideBySideSurveyCTAClickEventData ctaClickEvent = 6;
476
+ optional SideBySideSurveyCardImpressionEventData cardImpressionEvent = 7;
477
+ optional SideBySideSurveyResponseEventData responseEvent = 8;
478
+ optional SideBySideSurveyAbandonEventData abandonEvent = 9;
479
+ message SideBySideSurveyAbandonEventData {
480
+ optional string abandonDwellTimeMsString = 1;
481
+ }
482
+
483
+ message SideBySideSurveyCTAClickEventData {
484
+ optional bool isSurveyExpired = 1;
485
+ optional string clickDwellTimeMsString = 2;
486
+ }
487
+
488
+ message SideBySideSurveyCTAImpressionEventData {
489
+ optional bool isSurveyExpired = 1;
490
+ }
491
+
492
+ message SideBySideSurveyCardImpressionEventData {
493
+ }
494
+
495
+ message SideBySideSurveyResponseEventData {
496
+ optional string responseDwellTimeMsString = 1;
497
+ optional string selectedResponseId = 2;
498
+ }
499
+
500
+ }
501
+
331
502
  }
503
+
504
+ }
505
+
506
+ message BotGroupMetadata {
507
+ repeated BotGroupParticipantMetadata participantsMetadata = 1;
508
+ }
509
+
510
+ message BotGroupParticipantMetadata {
511
+ optional string botFbid = 1;
332
512
  }
333
513
 
334
514
  message BotImagineMetadata {
@@ -385,6 +565,22 @@ message BotMemuMetadata {
385
565
  repeated BotMediaMetadata faceImages = 1;
386
566
  }
387
567
 
568
+ message BotMessageOrigin {
569
+ optional BotMessageOriginType type = 1;
570
+ enum BotMessageOriginType {
571
+ BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0;
572
+ }
573
+ }
574
+
575
+ message BotMessageOriginMetadata {
576
+ repeated BotMessageOrigin origins = 1;
577
+ }
578
+
579
+ message BotMessageSharingInfo {
580
+ optional BotMetricsEntryPoint botEntryPointOrigin = 1;
581
+ optional uint32 forwardScore = 2;
582
+ }
583
+
388
584
  message BotMetadata {
389
585
  optional BotAvatarMetadata avatarMetadata = 1;
390
586
  optional string personaId = 2;
@@ -413,9 +609,20 @@ message BotMetadata {
413
609
  optional string conversationStarterPromptId = 25;
414
610
  optional string botResponseId = 26;
415
611
  optional BotSignatureVerificationMetadata verificationMetadata = 27;
612
+ optional BotUnifiedResponseMutation unifiedResponseMutation = 28;
613
+ optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
614
+ optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
615
+ optional AIThreadInfo botThreadInfo = 31;
616
+ optional AIRegenerateMetadata regenerateMetadata = 32;
617
+ optional SessionTransparencyMetadata sessionTransparencyMetadata = 33;
618
+ optional BotDocumentMessageMetadata botDocumentMessageMetadata = 34;
619
+ optional BotGroupMetadata botGroupMetadata = 35;
620
+ optional BotRenderingConfigMetadata botRenderingConfigMetadata = 36;
621
+ optional bytes internalMetadata = 999;
416
622
  }
417
623
 
418
624
  enum BotMetricsEntryPoint {
625
+ UNDEFINED_ENTRY_POINT = 0;
419
626
  FAVICON = 1;
420
627
  CHATLIST = 2;
421
628
  AISEARCH_NULL_STATE_PAPER_PLANE = 3;
@@ -441,6 +648,23 @@ enum BotMetricsEntryPoint {
441
648
  UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
442
649
  NEW_CHAT_AI_STUDIO = 24;
443
650
  AIVOICE_FAVICON_CALL_HISTORY = 25;
651
+ ASK_META_AI_CONTEXT_MENU = 26;
652
+ ASK_META_AI_CONTEXT_MENU_1ON1 = 27;
653
+ ASK_META_AI_CONTEXT_MENU_GROUP = 28;
654
+ INVOKE_META_AI_1ON1 = 29;
655
+ INVOKE_META_AI_GROUP = 30;
656
+ META_AI_FORWARD = 31;
657
+ NEW_CHAT_AI_CONTACT = 32;
658
+ MESSAGE_QUICK_ACTION_1_ON_1_CHAT = 33;
659
+ MESSAGE_QUICK_ACTION_GROUP_CHAT = 34;
660
+ ATTACHMENT_TRAY_1_ON_1_CHAT = 35;
661
+ ATTACHMENT_TRAY_GROUP_CHAT = 36;
662
+ ASK_META_AI_MEDIA_VIEWER_1ON1 = 37;
663
+ ASK_META_AI_MEDIA_VIEWER_GROUP = 38;
664
+ MEDIA_PICKER_1_ON_1_CHAT = 39;
665
+ MEDIA_PICKER_GROUP_CHAT = 40;
666
+ ASK_META_AI_NO_SEARCH_RESULTS = 41;
667
+ META_AI_SETTINGS = 45;
444
668
  }
445
669
  message BotMetricsMetadata {
446
670
  optional string destinationId = 1;
@@ -453,6 +677,7 @@ enum BotMetricsThreadEntryPoint {
453
677
  AI_HOME_THREAD = 2;
454
678
  AI_DEEPLINK_IMMERSIVE_THREAD = 3;
455
679
  AI_DEEPLINK_THREAD = 4;
680
+ ASK_META_AI_CONTEXT_MENU_THREAD = 5;
456
681
  }
457
682
  message BotModeSelectionMetadata {
458
683
  repeated BotUserSelectionMode mode = 1;
@@ -465,6 +690,7 @@ message BotModeSelectionMetadata {
465
690
  message BotModelMetadata {
466
691
  optional ModelType modelType = 1;
467
692
  optional PremiumModelStatus premiumModelStatus = 2;
693
+ optional string modelNameOverride = 3;
468
694
  enum ModelType {
469
695
  UNKNOWN_TYPE = 0;
470
696
  LLAMA_PROD = 1;
@@ -506,6 +732,7 @@ message BotPluginMetadata {
506
732
  message BotProgressIndicatorMetadata {
507
733
  optional string progressDescription = 1;
508
734
  repeated BotPlanningStepMetadata stepsMetadata = 2;
735
+ optional int64 estimatedCompletionTime = 3;
509
736
  message BotPlanningStepMetadata {
510
737
  optional string statusTitle = 1;
511
738
  optional string statusBody = 2;
@@ -561,6 +788,7 @@ message BotPromotionMessageMetadata {
561
788
  enum BotPromotionType {
562
789
  UNKNOWN_TYPE = 0;
563
790
  C50 = 1;
791
+ SURVEY_PLATFORM = 2;
564
792
  }
565
793
  }
566
794
 
@@ -608,6 +836,11 @@ message BotReminderMetadata {
608
836
  }
609
837
  }
610
838
 
839
+ message BotRenderingConfigMetadata {
840
+ optional string bloksVersioningId = 1;
841
+ optional double pixelDensity = 2;
842
+ }
843
+
611
844
  message BotRenderingMetadata {
612
845
  repeated Keyword keywords = 1;
613
846
  message Keyword {
@@ -630,6 +863,7 @@ enum BotSessionSource {
630
863
  EMU_FLASH = 4;
631
864
  EMU_FLASH_FOLLOWUP = 5;
632
865
  VOICE = 6;
866
+ AI_HOME_SESSION = 7;
633
867
  }
634
868
  message BotSignatureVerificationMetadata {
635
869
  repeated BotSignatureVerificationUseCaseProof proofs = 1;
@@ -639,9 +873,10 @@ message BotSignatureVerificationUseCaseProof {
639
873
  optional int32 version = 1;
640
874
  optional BotSignatureUseCase useCase = 2;
641
875
  optional bytes signature = 3;
642
- optional bytes certificateChain = 4;
876
+ repeated bytes certificateChain = 4;
643
877
  enum BotSignatureUseCase {
644
- WA_BOT_MSG = 0;
878
+ UNSPECIFIED = 0;
879
+ WA_BOT_MSG = 1;
645
880
  }
646
881
  }
647
882
 
@@ -654,11 +889,13 @@ message BotSourcesMetadata {
654
889
  optional string sourceQuery = 4;
655
890
  optional string faviconCdnUrl = 5;
656
891
  optional uint32 citationNumber = 6;
892
+ optional string sourceTitle = 7;
657
893
  enum SourceProvider {
658
894
  UNKNOWN = 0;
659
895
  BING = 1;
660
896
  GOOGLE = 2;
661
897
  SUPPORT = 3;
898
+ OTHER = 4;
662
899
  }
663
900
  }
664
901
 
@@ -671,6 +908,22 @@ message BotSuggestedPromptMetadata {
671
908
  optional string selectedPromptId = 4;
672
909
  }
673
910
 
911
+ message BotUnifiedResponseMutation {
912
+ optional SideBySideMetadata sbsMetadata = 1;
913
+ repeated MediaDetailsMetadata mediaDetailsMetadataList = 2;
914
+ message MediaDetailsMetadata {
915
+ optional string id = 1;
916
+ optional BotMediaMetadata highResMedia = 2;
917
+ optional BotMediaMetadata previewMedia = 3;
918
+ }
919
+
920
+ message SideBySideMetadata {
921
+ optional string primaryResponseId = 1;
922
+ optional bool surveyCtaHasRendered = 2;
923
+ }
924
+
925
+ }
926
+
674
927
  message CallLogRecord {
675
928
  optional CallResult callResult = 1;
676
929
  optional bool isDndMode = 2;
@@ -781,16 +1034,17 @@ message ChatRowOpaqueData {
781
1034
  }
782
1035
 
783
1036
  message Citation {
784
- required string title = 1;
785
- required string subtitle = 2;
786
- required string cmsId = 3;
787
- required string imageUrl = 4;
1037
+ optional string title = 1;
1038
+ optional string subtitle = 2;
1039
+ optional string cmsId = 3;
1040
+ optional string imageUrl = 4;
788
1041
  }
789
1042
 
790
1043
  message ClientPairingProps {
791
1044
  optional bool isChatDbLidMigrated = 1;
792
1045
  optional bool isSyncdPureLidSession = 2;
793
1046
  optional bool isSyncdSnapshotRecoveryEnabled = 3;
1047
+ optional bool isHsThumbnailSyncEnabled = 4;
794
1048
  }
795
1049
 
796
1050
  message ClientPayload {
@@ -824,6 +1078,10 @@ message ClientPayload {
824
1078
  optional TrafficAnonymization trafficAnonymization = 40;
825
1079
  optional bool lidDbMigrated = 41;
826
1080
  optional AccountType accountType = 42;
1081
+ optional sfixed32 connectionSequenceInfo = 43;
1082
+ optional bool paaLink = 44;
1083
+ optional int32 preacksCount = 45;
1084
+ optional int32 processingQueueSize = 46;
827
1085
  enum AccountType {
828
1086
  DEFAULT = 0;
829
1087
  GUEST = 1;
@@ -864,6 +1122,8 @@ message ClientPayload {
864
1122
  OVERRIDE = 3;
865
1123
  FALLBACK = 4;
866
1124
  MNS = 5;
1125
+ MNS_SECONDARY = 6;
1126
+ SOCKS_PROXY = 7;
867
1127
  }
868
1128
  }
869
1129
 
@@ -969,6 +1229,8 @@ message ClientPayload {
969
1229
  IPAD = 33;
970
1230
  TEST = 34;
971
1231
  SMART_GLASSES = 35;
1232
+ BLUE_VR = 36;
1233
+ AR_WRIST = 37;
972
1234
  }
973
1235
  enum ReleaseChannel {
974
1236
  RELEASE = 0;
@@ -983,6 +1245,8 @@ message ClientPayload {
983
1245
  optional string version = 2;
984
1246
  optional WebdPayload webdPayload = 3;
985
1247
  optional WebSubPlatform webSubPlatform = 4;
1248
+ optional string browser = 5;
1249
+ optional string browserVersion = 6;
986
1250
  enum WebSubPlatform {
987
1251
  WEB_BROWSER = 0;
988
1252
  APP_STORE = 1;
@@ -1009,6 +1273,14 @@ message ClientPayload {
1009
1273
 
1010
1274
  }
1011
1275
 
1276
+ enum CollectionName {
1277
+ COLLECTION_NAME_UNKNOWN = 0;
1278
+ REGULAR = 1;
1279
+ REGULAR_LOW = 2;
1280
+ REGULAR_HIGH = 3;
1281
+ CRITICAL_BLOCK = 4;
1282
+ CRITICAL_UNBLOCK_LOW = 5;
1283
+ }
1012
1284
  message CommentMetadata {
1013
1285
  optional MessageKey commentParentKey = 1;
1014
1286
  optional uint32 replyCount = 2;
@@ -1078,6 +1350,13 @@ message ContextInfo {
1078
1350
  optional bool isQuestion = 63;
1079
1351
  optional StatusSourceType statusSourceType = 64;
1080
1352
  repeated StatusAttribution statusAttributions = 65;
1353
+ optional bool isGroupStatus = 66;
1354
+ optional ForwardOrigin forwardOrigin = 67;
1355
+ optional QuestionReplyQuotedMessage questionReplyQuotedMessage = 68;
1356
+ optional StatusAudienceMetadata statusAudienceMetadata = 69;
1357
+ optional uint32 nonJidMentions = 70;
1358
+ optional QuotedType quotedType = 71;
1359
+ optional BotMessageSharingInfo botMessageSharingInfo = 72;
1081
1360
  message AdReplyInfo {
1082
1361
  optional string advertiserName = 1;
1083
1362
  optional MediaType mediaType = 2;
@@ -1098,6 +1377,11 @@ message ContextInfo {
1098
1377
  optional bool showMmDisclosure = 1;
1099
1378
  optional string encryptedSignalTokenConsented = 2;
1100
1379
  repeated Parameters parameters = 3;
1380
+ optional int32 dataSharingFlags = 4;
1381
+ enum DataSharingFlags {
1382
+ SHOW_MM_DISCLOSURE_ON_CLICK = 1;
1383
+ SHOW_MM_DISCLOSURE_ON_READ = 2;
1384
+ }
1101
1385
  message Parameters {
1102
1386
  optional string key = 1;
1103
1387
  optional string stringData = 2;
@@ -1134,6 +1418,8 @@ message ContextInfo {
1134
1418
  optional string automatedGreetingMessageCtaType = 23;
1135
1419
  optional bool wtwaAdFormat = 24;
1136
1420
  optional AdType adType = 25;
1421
+ optional string wtwaWebsiteUrl = 26;
1422
+ optional string adPreviewUrl = 27;
1137
1423
  enum AdType {
1138
1424
  CTWA = 0;
1139
1425
  CAWC = 1;
@@ -1150,20 +1436,24 @@ message ContextInfo {
1150
1436
  optional bool cannotBeRanked = 2;
1151
1437
  optional bool canRequestFeedback = 3;
1152
1438
  optional bool canBeReshared = 4;
1439
+ optional bool canReceiveMultiReact = 5;
1153
1440
  }
1154
1441
 
1155
- message ForwardedAIBotMessageInfo {
1156
- optional string botName = 1;
1157
- optional string botJid = 2;
1158
- optional string creatorName = 3;
1442
+ enum ForwardOrigin {
1443
+ UNKNOWN = 0;
1444
+ CHAT = 1;
1445
+ STATUS = 2;
1446
+ CHANNELS = 3;
1447
+ META_AI = 4;
1448
+ UGC = 5;
1159
1449
  }
1160
-
1161
1450
  message ForwardedNewsletterMessageInfo {
1162
1451
  optional string newsletterJid = 1;
1163
1452
  optional int32 serverMessageId = 2;
1164
1453
  optional string newsletterName = 3;
1165
1454
  optional ContentType contentType = 4;
1166
1455
  optional string accessibilityText = 5;
1456
+ optional string profileName = 6;
1167
1457
  enum ContentType {
1168
1458
  UPDATE = 1;
1169
1459
  UPDATE_CARD = 2;
@@ -1179,12 +1469,34 @@ message ContextInfo {
1179
1469
  HD_IMAGE_CHILD = 4;
1180
1470
  MOTION_PHOTO_PARENT = 5;
1181
1471
  MOTION_PHOTO_CHILD = 6;
1472
+ HEVC_VIDEO_PARENT = 7;
1473
+ HEVC_VIDEO_CHILD = 8;
1474
+ }
1475
+ message QuestionReplyQuotedMessage {
1476
+ optional int32 serverQuestionId = 1;
1477
+ optional Message quotedQuestion = 2;
1478
+ optional Message quotedResponse = 3;
1479
+ }
1480
+
1481
+ enum QuotedType {
1482
+ EXPLICIT = 0;
1483
+ AUTO = 1;
1182
1484
  }
1183
1485
  enum StatusAttributionType {
1184
1486
  NONE = 0;
1185
1487
  RESHARED_FROM_MENTION = 1;
1186
1488
  RESHARED_FROM_POST = 2;
1489
+ RESHARED_FROM_POST_MANY_TIMES = 3;
1490
+ FORWARDED_FROM_STATUS = 4;
1491
+ }
1492
+ message StatusAudienceMetadata {
1493
+ optional AudienceType audienceType = 1;
1494
+ enum AudienceType {
1495
+ UNKNOWN = 0;
1496
+ CLOSE_FRIENDS = 1;
1497
+ }
1187
1498
  }
1499
+
1188
1500
  enum StatusSourceType {
1189
1501
  IMAGE = 0;
1190
1502
  VIDEO = 1;
@@ -1201,7 +1513,7 @@ message ContextInfo {
1201
1513
  }
1202
1514
 
1203
1515
  message Conversation {
1204
- required string id = 1;
1516
+ optional string id = 1;
1205
1517
  repeated HistorySyncMsg messages = 2;
1206
1518
  optional string newJid = 3;
1207
1519
  optional string oldJid = 4;
@@ -1254,16 +1566,35 @@ message Conversation {
1254
1566
  optional int64 limitSharingSettingTimestamp = 51;
1255
1567
  optional LimitSharing.TriggerType limitSharingTrigger = 52;
1256
1568
  optional bool limitSharingInitiatedByMe = 53;
1569
+ optional bool maibaAiThreadEnabled = 54;
1257
1570
  enum EndOfHistoryTransferType {
1258
1571
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1259
1572
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
1260
1573
  COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY = 2;
1574
+ COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS = 3;
1261
1575
  }
1262
1576
  }
1263
1577
 
1264
1578
  message DeviceCapabilities {
1265
1579
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
1266
1580
  optional LIDMigration lidMigration = 2;
1581
+ optional BusinessBroadcast businessBroadcast = 3;
1582
+ optional UserHasAvatar userHasAvatar = 4;
1583
+ optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
1584
+ optional AiThread aiThread = 6;
1585
+ message AiThread {
1586
+ optional SupportLevel supportLevel = 1;
1587
+ enum SupportLevel {
1588
+ NONE = 0;
1589
+ INFRA = 1;
1590
+ FULL = 2;
1591
+ }
1592
+ }
1593
+
1594
+ message BusinessBroadcast {
1595
+ optional bool importListEnabled = 1;
1596
+ }
1597
+
1267
1598
  enum ChatLockSupportLevel {
1268
1599
  NONE = 0;
1269
1600
  MINIMAL = 1;
@@ -1273,6 +1604,15 @@ message DeviceCapabilities {
1273
1604
  optional uint64 chatDbMigrationTimestamp = 1;
1274
1605
  }
1275
1606
 
1607
+ enum MemberNameTagPrimarySupport {
1608
+ DISABLED = 0;
1609
+ RECEIVER_ENABLED = 1;
1610
+ SENDER_ENABLED = 2;
1611
+ }
1612
+ message UserHasAvatar {
1613
+ optional bool userHasAvatar = 1;
1614
+ }
1615
+
1276
1616
  }
1277
1617
 
1278
1618
  message DeviceConsistencyCodeMessage {
@@ -1320,6 +1660,11 @@ message DeviceProps {
1320
1660
  optional bool supportFbidBotChatHistory = 12;
1321
1661
  optional bool supportAddOnHistorySyncMigration = 13;
1322
1662
  optional bool supportMessageAssociation = 14;
1663
+ optional bool supportGroupHistory = 15;
1664
+ optional bool onDemandReady = 16;
1665
+ optional bool supportGuestChat = 17;
1666
+ optional bool completeOnDemandReady = 18;
1667
+ optional uint32 thumbnailSyncDaysLimit = 19;
1323
1668
  }
1324
1669
 
1325
1670
  enum PlatformType {
@@ -1392,10 +1737,13 @@ message EmbeddedMusic {
1392
1737
  optional string artworkDirectPath = 5;
1393
1738
  optional bytes artworkSha256 = 6;
1394
1739
  optional bytes artworkEncSha256 = 7;
1395
- optional bytes artworkMediaKey = 11;
1396
1740
  optional string artistAttribution = 8;
1397
1741
  optional bytes countryBlocklist = 9;
1398
1742
  optional bool isExplicit = 10;
1743
+ optional bytes artworkMediaKey = 11;
1744
+ optional int64 musicSongStartTimeInMs = 12;
1745
+ optional int64 derivedContentStartTimeInMs = 13;
1746
+ optional int64 overlapDurationInMs = 14;
1399
1747
  }
1400
1748
 
1401
1749
  message EncryptedPairingRequest {
@@ -1441,6 +1789,12 @@ message Field {
1441
1789
  map<uint32, Field> subfield = 5;
1442
1790
  }
1443
1791
 
1792
+ message ForwardedAIBotMessageInfo {
1793
+ optional string botName = 1;
1794
+ optional string botJid = 2;
1795
+ optional string creatorName = 3;
1796
+ }
1797
+
1444
1798
  message GlobalSettings {
1445
1799
  optional WallpaperSettings lightThemeWallpaper = 1;
1446
1800
  optional MediaVisibility mediaVisibility = 2;
@@ -1464,14 +1818,32 @@ message GlobalSettings {
1464
1818
  optional int64 chatDbLidMigrationTimestamp = 20;
1465
1819
  }
1466
1820
 
1821
+ message GroupHistoryBundleInfo {
1822
+ optional Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
1823
+ optional ProcessState processState = 2;
1824
+ enum ProcessState {
1825
+ NOT_INJECTED = 0;
1826
+ INJECTED = 1;
1827
+ INJECTED_PARTIAL = 2;
1828
+ INJECTION_FAILED = 3;
1829
+ INJECTION_FAILED_NO_RETRY = 4;
1830
+ }
1831
+ }
1832
+
1833
+ message GroupHistoryIndividualMessageInfo {
1834
+ optional MessageKey bundleMessageKey = 1;
1835
+ optional bool editedAfterReceivedAsHistory = 2;
1836
+ }
1837
+
1467
1838
  message GroupMention {
1468
1839
  optional string groupJid = 1;
1469
1840
  optional string groupSubject = 2;
1470
1841
  }
1471
1842
 
1472
1843
  message GroupParticipant {
1473
- required string userJid = 1;
1844
+ optional string userJid = 1;
1474
1845
  optional Rank rank = 2;
1846
+ optional MemberLabel memberLabel = 3;
1475
1847
  enum Rank {
1476
1848
  REGULAR = 0;
1477
1849
  ADMIN = 1;
@@ -1486,24 +1858,28 @@ message HandshakeMessage {
1486
1858
  message ClientFinish {
1487
1859
  optional bytes static = 1;
1488
1860
  optional bytes payload = 2;
1861
+ optional bytes extendedCiphertext = 3;
1489
1862
  }
1490
1863
 
1491
1864
  message ClientHello {
1492
1865
  optional bytes ephemeral = 1;
1493
1866
  optional bytes static = 2;
1494
1867
  optional bytes payload = 3;
1868
+ optional bool useExtended = 4;
1869
+ optional bytes extendedCiphertext = 5;
1495
1870
  }
1496
1871
 
1497
1872
  message ServerHello {
1498
1873
  optional bytes ephemeral = 1;
1499
1874
  optional bytes static = 2;
1500
1875
  optional bytes payload = 3;
1876
+ optional bytes extendedStatic = 4;
1501
1877
  }
1502
1878
 
1503
1879
  }
1504
1880
 
1505
1881
  message HistorySync {
1506
- required HistorySyncType syncType = 1;
1882
+ optional HistorySyncType syncType = 1;
1507
1883
  repeated Conversation conversations = 2;
1508
1884
  repeated WebMessageInfo statusV3Messages = 3;
1509
1885
  optional uint32 chunkOrder = 5;
@@ -1576,6 +1952,44 @@ message IdentityKeyPairStructure {
1576
1952
  optional bytes privateKey = 2;
1577
1953
  }
1578
1954
 
1955
+ message InThreadSurveyMetadata {
1956
+ optional string tessaSessionId = 1;
1957
+ optional string simonSessionId = 2;
1958
+ optional string simonSurveyId = 3;
1959
+ optional string tessaRootId = 4;
1960
+ optional string requestId = 5;
1961
+ optional string tessaEvent = 6;
1962
+ optional string invitationHeaderText = 7;
1963
+ optional string invitationBodyText = 8;
1964
+ optional string invitationCtaText = 9;
1965
+ optional string invitationCtaUrl = 10;
1966
+ optional string surveyTitle = 11;
1967
+ repeated InThreadSurveyQuestion questions = 12;
1968
+ optional string surveyContinueButtonText = 13;
1969
+ optional string surveySubmitButtonText = 14;
1970
+ optional string privacyStatementFull = 15;
1971
+ repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
1972
+ optional string feedbackToastText = 17;
1973
+ optional int32 startQuestionIndex = 18;
1974
+ message InThreadSurveyOption {
1975
+ optional string stringValue = 1;
1976
+ optional uint32 numericValue = 2;
1977
+ optional string textTranslated = 3;
1978
+ }
1979
+
1980
+ message InThreadSurveyPrivacyStatementPart {
1981
+ optional string text = 1;
1982
+ optional string url = 2;
1983
+ }
1984
+
1985
+ message InThreadSurveyQuestion {
1986
+ optional string questionText = 1;
1987
+ optional string questionId = 2;
1988
+ repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
1989
+ }
1990
+
1991
+ }
1992
+
1579
1993
  message InteractiveAnnotation {
1580
1994
  repeated Point polygonVertices = 1;
1581
1995
  optional bool shouldSkipConfirmation = 4;
@@ -1594,6 +2008,10 @@ message InteractiveAnnotation {
1594
2008
  }
1595
2009
  }
1596
2010
 
2011
+ message InteractiveMessageAdditionalMetadata {
2012
+ optional bool isGalaxyFlowCompleted = 1;
2013
+ }
2014
+
1597
2015
  message KeepInChat {
1598
2016
  optional KeepType keepType = 1;
1599
2017
  optional int64 serverTimestamp = 2;
@@ -1621,8 +2039,8 @@ message KeyId {
1621
2039
  }
1622
2040
 
1623
2041
  message LIDMigrationMapping {
1624
- required uint64 pn = 1;
1625
- required uint64 assignedLid = 2;
2042
+ optional uint64 pn = 1;
2043
+ optional uint64 assignedLid = 2;
1626
2044
  optional uint64 latestLid = 3;
1627
2045
  }
1628
2046
 
@@ -1776,7 +2194,6 @@ message Message {
1776
2194
  optional FutureProofMessage associatedChildMessage = 91;
1777
2195
  optional FutureProofMessage groupStatusMentionMessage = 92;
1778
2196
  optional FutureProofMessage pollCreationMessageV4 = 93;
1779
- optional FutureProofMessage pollCreationMessageV5 = 94;
1780
2197
  optional FutureProofMessage statusAddYours = 95;
1781
2198
  optional FutureProofMessage groupStatusMessage = 96;
1782
2199
  optional AIRichResponseMessage richResponseMessage = 97;
@@ -1787,6 +2204,15 @@ message Message {
1787
2204
  optional MessageHistoryNotice messageHistoryNotice = 102;
1788
2205
  optional FutureProofMessage groupStatusMessageV2 = 103;
1789
2206
  optional FutureProofMessage botForwardedMessage = 104;
2207
+ optional StatusQuestionAnswerMessage statusQuestionAnswerMessage = 105;
2208
+ optional FutureProofMessage questionReplyMessage = 106;
2209
+ optional QuestionResponseMessage questionResponseMessage = 107;
2210
+ optional StatusQuotedMessage statusQuotedMessage = 109;
2211
+ optional StatusStickerInteractionMessage statusStickerInteractionMessage = 110;
2212
+ optional PollCreationMessage pollCreationMessageV5 = 111;
2213
+ optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
2214
+ optional PollResultSnapshotMessage pollResultSnapshotMessageV3 = 115;
2215
+ optional FutureProofMessage newsletterAdminProfileMessage = 116;
1790
2216
  message AlbumMessage {
1791
2217
  optional uint32 expectedImageCount = 2;
1792
2218
  optional uint32 expectedVideoCount = 3;
@@ -1844,6 +2270,7 @@ message Message {
1844
2270
  optional fixed32 backgroundArgb = 20;
1845
2271
  optional bool viewOnce = 21;
1846
2272
  optional string accessibilityLabel = 22;
2273
+ optional Message.MediaKeyDomain mediaKeyDomain = 23;
1847
2274
  }
1848
2275
 
1849
2276
  message BCallMessage {
@@ -1858,50 +2285,6 @@ message Message {
1858
2285
  }
1859
2286
  }
1860
2287
 
1861
- message BotFeedbackMessage {
1862
- optional MessageKey messageKey = 1;
1863
- optional BotFeedbackKind kind = 2;
1864
- optional string text = 3;
1865
- optional uint64 kindNegative = 4;
1866
- optional uint64 kindPositive = 5;
1867
- optional ReportKind kindReport = 6;
1868
- enum BotFeedbackKind {
1869
- BOT_FEEDBACK_POSITIVE = 0;
1870
- BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
1871
- BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
1872
- BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
1873
- BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
1874
- BOT_FEEDBACK_NEGATIVE_SAFE = 5;
1875
- BOT_FEEDBACK_NEGATIVE_OTHER = 6;
1876
- BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
1877
- BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
1878
- BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
1879
- BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
1880
- BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
1881
- BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
1882
- BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
1883
- BOT_FEEDBACK_NEGATIVE = 14;
1884
- }
1885
- enum BotFeedbackKindMultipleNegative {
1886
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
1887
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
1888
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
1889
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
1890
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
1891
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
1892
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
1893
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
1894
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
1895
- }
1896
- enum BotFeedbackKindMultiplePositive {
1897
- BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1898
- }
1899
- enum ReportKind {
1900
- NONE = 0;
1901
- GENERIC = 1;
1902
- }
1903
- }
1904
-
1905
2288
  message ButtonsMessage {
1906
2289
  optional string contentText = 6;
1907
2290
  optional string footerText = 7;
@@ -1968,6 +2351,9 @@ message Message {
1968
2351
  optional string ctwaSignals = 5;
1969
2352
  optional bytes ctwaPayload = 6;
1970
2353
  optional ContextInfo contextInfo = 7;
2354
+ optional string nativeFlowCallButtonPayload = 8;
2355
+ optional string deeplinkPayload = 9;
2356
+ optional MessageContextInfo messageContextInfo = 10;
1971
2357
  }
1972
2358
 
1973
2359
  message CallLogMessage {
@@ -2013,6 +2399,7 @@ message Message {
2013
2399
  optional string consumerLid = 3;
2014
2400
  optional string consumerPhoneNumber = 4;
2015
2401
  optional CloudAPIThreadControlNotificationContent notificationContent = 5;
2402
+ optional bool shouldSuppressNotification = 6;
2016
2403
  enum CloudAPIThreadControl {
2017
2404
  UNKNOWN = 0;
2018
2405
  CONTROL_PASSED = 1;
@@ -2074,6 +2461,7 @@ message Message {
2074
2461
  optional uint32 thumbnailWidth = 19;
2075
2462
  optional string caption = 20;
2076
2463
  optional string accessibilityLabel = 21;
2464
+ optional Message.MediaKeyDomain mediaKeyDomain = 22;
2077
2465
  }
2078
2466
 
2079
2467
  message EncCommentMessage {
@@ -2105,6 +2493,8 @@ message Message {
2105
2493
  optional int64 endTime = 8;
2106
2494
  optional bool extraGuestsAllowed = 9;
2107
2495
  optional bool isScheduleCall = 10;
2496
+ optional bool hasReminder = 11;
2497
+ optional int64 reminderOffsetSec = 12;
2108
2498
  }
2109
2499
 
2110
2500
  message EventResponseMessage {
@@ -2148,6 +2538,10 @@ message Message {
2148
2538
  optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
2149
2539
  optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
2150
2540
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
2541
+ repeated Message.VideoEndCard endCardTiles = 36;
2542
+ optional string videoContentUrl = 37;
2543
+ optional EmbeddedMusic musicMetadata = 38;
2544
+ optional Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;
2151
2545
  enum FontType {
2152
2546
  SYSTEM = 0;
2153
2547
  SYSTEM_TEXT = 1;
@@ -2256,13 +2650,17 @@ message Message {
2256
2650
 
2257
2651
  }
2258
2652
 
2653
+ message HistorySyncMessageAccessStatus {
2654
+ optional bool completeAccessGranted = 1;
2655
+ }
2656
+
2259
2657
  message HistorySyncNotification {
2260
2658
  optional bytes fileSha256 = 1;
2261
2659
  optional uint64 fileLength = 2;
2262
2660
  optional bytes mediaKey = 3;
2263
2661
  optional bytes fileEncSha256 = 4;
2264
2662
  optional string directPath = 5;
2265
- optional HistorySyncType syncType = 6;
2663
+ optional Message.HistorySyncType syncType = 6;
2266
2664
  optional uint32 chunkOrder = 7;
2267
2665
  optional string originalMessageId = 8;
2268
2666
  optional uint32 progress = 9;
@@ -2271,18 +2669,20 @@ message Message {
2271
2669
  optional string peerDataRequestSessionId = 12;
2272
2670
  optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
2273
2671
  optional string encHandle = 14;
2274
- enum HistorySyncType {
2275
- INITIAL_BOOTSTRAP = 0;
2276
- INITIAL_STATUS_V3 = 1;
2277
- FULL = 2;
2278
- RECENT = 3;
2279
- PUSH_NAME = 4;
2280
- NON_BLOCKING_DATA = 5;
2281
- ON_DEMAND = 6;
2282
- NO_HISTORY = 7;
2283
- }
2672
+ optional Message.HistorySyncMessageAccessStatus messageAccessStatus = 15;
2284
2673
  }
2285
2674
 
2675
+ enum HistorySyncType {
2676
+ INITIAL_BOOTSTRAP = 0;
2677
+ INITIAL_STATUS_V3 = 1;
2678
+ FULL = 2;
2679
+ RECENT = 3;
2680
+ PUSH_NAME = 4;
2681
+ NON_BLOCKING_DATA = 5;
2682
+ ON_DEMAND = 6;
2683
+ NO_HISTORY = 7;
2684
+ MESSAGE_ACCESS_STATUS = 8;
2685
+ }
2286
2686
  message ImageMessage {
2287
2687
  optional string url = 1;
2288
2688
  optional string mimetype = 2;
@@ -2313,6 +2713,8 @@ message Message {
2313
2713
  repeated InteractiveAnnotation annotations = 30;
2314
2714
  optional ImageSourceType imageSourceType = 31;
2315
2715
  optional string accessibilityLabel = 32;
2716
+ optional Message.MediaKeyDomain mediaKeyDomain = 33;
2717
+ optional string qrUrl = 34;
2316
2718
  enum ImageSourceType {
2317
2719
  USER_IMAGE = 0;
2318
2720
  AI_GENERATED = 1;
@@ -2344,6 +2746,12 @@ message Message {
2344
2746
  message CarouselMessage {
2345
2747
  repeated Message.InteractiveMessage cards = 1;
2346
2748
  optional int32 messageVersion = 2;
2749
+ optional CarouselCardType carouselCardType = 3;
2750
+ enum CarouselCardType {
2751
+ UNKNOWN = 0;
2752
+ HSCROLL_CARDS = 1;
2753
+ ALBUM_IMAGE = 2;
2754
+ }
2347
2755
  }
2348
2756
 
2349
2757
  message CollectionMessage {
@@ -2354,6 +2762,10 @@ message Message {
2354
2762
 
2355
2763
  message Footer {
2356
2764
  optional string text = 1;
2765
+ optional bool hasMediaAttachment = 3;
2766
+ oneof media {
2767
+ Message.AudioMessage audioMessage = 2;
2768
+ }
2357
2769
  }
2358
2770
 
2359
2771
  message Header {
@@ -2447,6 +2859,10 @@ message Message {
2447
2859
  optional uint32 fbExperimentId = 3;
2448
2860
  optional uint32 linkMediaDuration = 4;
2449
2861
  optional SocialMediaPostType socialMediaPostType = 5;
2862
+ optional bool linkInlineVideoMuted = 6;
2863
+ optional string videoContentUrl = 7;
2864
+ optional EmbeddedMusic musicMetadata = 8;
2865
+ optional string videoContentCaption = 9;
2450
2866
  enum SocialMediaPostType {
2451
2867
  NONE = 0;
2452
2868
  REEL = 1;
@@ -2556,8 +2972,16 @@ message Message {
2556
2972
  optional int64 mediaKeyTimestamp = 5;
2557
2973
  optional uint32 thumbnailHeight = 6;
2558
2974
  optional uint32 thumbnailWidth = 7;
2975
+ optional Message.MediaKeyDomain mediaKeyDomain = 8;
2559
2976
  }
2560
2977
 
2978
+ enum MediaKeyDomain {
2979
+ UNSET = 0;
2980
+ E2EE_CHAT = 1;
2981
+ STATUS = 2;
2982
+ CAPI = 3;
2983
+ BOT = 4;
2984
+ }
2561
2985
  message MessageHistoryBundle {
2562
2986
  optional string mimetype = 1;
2563
2987
  optional bytes fileSha256 = 2;
@@ -2571,7 +2995,7 @@ message Message {
2571
2995
 
2572
2996
  message MessageHistoryMetadata {
2573
2997
  repeated string historyReceivers = 1;
2574
- optional int64 firstMessageTimestamp = 2;
2998
+ optional int64 oldestMessageTimestamp = 2;
2575
2999
  optional int64 messageCount = 3;
2576
3000
  }
2577
3001
 
@@ -2589,6 +3013,14 @@ message Message {
2589
3013
  optional ContextInfo contextInfo = 6;
2590
3014
  }
2591
3015
 
3016
+ message NewsletterFollowerInviteMessage {
3017
+ optional string newsletterJid = 1;
3018
+ optional string newsletterName = 2;
3019
+ optional bytes jpegThumbnail = 3;
3020
+ optional string caption = 4;
3021
+ optional ContextInfo contextInfo = 5;
3022
+ }
3023
+
2592
3024
  message OrderMessage {
2593
3025
  optional string orderId = 1;
2594
3026
  optional bytes thumbnail = 2;
@@ -2615,6 +3047,11 @@ message Message {
2615
3047
  }
2616
3048
  }
2617
3049
 
3050
+ message PaymentExtendedMetadata {
3051
+ optional uint32 type = 1;
3052
+ optional string platform = 2;
3053
+ }
3054
+
2618
3055
  message PaymentInviteMessage {
2619
3056
  optional ServiceType serviceType = 1;
2620
3057
  optional int64 expiryTimestamp = 2;
@@ -2656,11 +3093,29 @@ message Message {
2656
3093
  repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
2657
3094
  optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
2658
3095
  optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
3096
+ optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
3097
+ optional GalaxyFlowAction galaxyFlowAction = 9;
2659
3098
  message FullHistorySyncOnDemandRequest {
2660
3099
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2661
3100
  optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
2662
3101
  }
2663
3102
 
3103
+ message GalaxyFlowAction {
3104
+ optional GalaxyFlowActionType type = 1;
3105
+ optional string flowId = 2;
3106
+ optional string stanzaId = 3;
3107
+ enum GalaxyFlowActionType {
3108
+ NOTIFY_LAUNCH = 1;
3109
+ }
3110
+ }
3111
+
3112
+ message HistorySyncChunkRetryRequest {
3113
+ optional Message.HistorySyncType syncType = 1;
3114
+ optional uint32 chunkOrder = 2;
3115
+ optional string chunkNotificationId = 3;
3116
+ optional bool regenerateChunk = 4;
3117
+ }
3118
+
2664
3119
  message HistorySyncOnDemandRequest {
2665
3120
  optional string chatJid = 1;
2666
3121
  optional string oldestMsgId = 2;
@@ -2704,8 +3159,11 @@ message Message {
2704
3159
  optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
2705
3160
  optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
2706
3161
  optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
3162
+ optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
2707
3163
  message CompanionCanonicalUserNonceFetchResponse {
2708
3164
  optional string nonce = 1;
3165
+ optional string waFbid = 2;
3166
+ optional bool forceRefresh = 3;
2709
3167
  }
2710
3168
 
2711
3169
  message CompanionMetaNonceFetchResponse {
@@ -2726,6 +3184,22 @@ message Message {
2726
3184
  ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
2727
3185
  ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
2728
3186
  }
3187
+ message HistorySyncChunkRetryResponse {
3188
+ optional Message.HistorySyncType syncType = 1;
3189
+ optional uint32 chunkOrder = 2;
3190
+ optional string requestId = 3;
3191
+ optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode responseCode = 4;
3192
+ optional bool canRecover = 5;
3193
+ }
3194
+
3195
+ enum HistorySyncChunkRetryResponseCode {
3196
+ GENERATION_ERROR = 1;
3197
+ CHUNK_CONSUMED = 2;
3198
+ TIMEOUT = 3;
3199
+ SESSION_EXHAUSTED = 4;
3200
+ CHUNK_EXHAUSTED = 5;
3201
+ DUPLICATED_REQUEST = 6;
3202
+ }
2729
3203
  message LinkPreviewResponse {
2730
3204
  optional string url = 1;
2731
3205
  optional string title = 2;
@@ -2734,6 +3208,7 @@ message Message {
2734
3208
  optional string matchText = 6;
2735
3209
  optional string previewType = 7;
2736
3210
  optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
3211
+ optional PaymentLinkPreviewMetadata previewMetadata = 9;
2737
3212
  message LinkPreviewHighQualityThumbnail {
2738
3213
  optional string directPath = 1;
2739
3214
  optional string thumbHash = 2;
@@ -2744,6 +3219,11 @@ message Message {
2744
3219
  optional int32 thumbHeight = 7;
2745
3220
  }
2746
3221
 
3222
+ message PaymentLinkPreviewMetadata {
3223
+ optional bool isBusinessVerified = 1;
3224
+ optional string providerName = 2;
3225
+ }
3226
+
2747
3227
  }
2748
3228
 
2749
3229
  message PlaceholderMessageResendResponse {
@@ -2775,6 +3255,8 @@ message Message {
2775
3255
  COMPANION_META_NONCE_FETCH = 7;
2776
3256
  COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
2777
3257
  COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
3258
+ HISTORY_SYNC_CHUNK_RETRY = 10;
3259
+ GALAXY_FLOW_ACTION = 11;
2778
3260
  }
2779
3261
  message PinInChatMessage {
2780
3262
  optional MessageKey key = 1;
@@ -2806,17 +3288,13 @@ message Message {
2806
3288
  optional uint32 selectableOptionsCount = 4;
2807
3289
  optional ContextInfo contextInfo = 5;
2808
3290
  optional Message.PollContentType pollContentType = 6;
2809
- optional PollType pollType = 7;
3291
+ optional Message.PollType pollType = 7;
2810
3292
  optional Option correctAnswer = 8;
2811
3293
  message Option {
2812
3294
  optional string optionName = 1;
2813
3295
  optional string optionHash = 2;
2814
3296
  }
2815
3297
 
2816
- enum PollType {
2817
- POLL = 0;
2818
- QUIZ = 1;
2819
- }
2820
3298
  }
2821
3299
 
2822
3300
  message PollEncValue {
@@ -2828,6 +3306,7 @@ message Message {
2828
3306
  optional string name = 1;
2829
3307
  repeated PollVote pollVotes = 2;
2830
3308
  optional ContextInfo contextInfo = 3;
3309
+ optional Message.PollType pollType = 4;
2831
3310
  message PollVote {
2832
3311
  optional string optionName = 1;
2833
3312
  optional int64 optionVoteCount = 2;
@@ -2835,6 +3314,10 @@ message Message {
2835
3314
 
2836
3315
  }
2837
3316
 
3317
+ enum PollType {
3318
+ POLL = 0;
3319
+ QUIZ = 1;
3320
+ }
2838
3321
  message PollUpdateMessage {
2839
3322
  optional MessageKey pollCreationMessageKey = 1;
2840
3323
  optional Message.PollEncValue vote = 2;
@@ -2894,7 +3377,7 @@ message Message {
2894
3377
  optional int64 timestampMs = 15;
2895
3378
  optional Message.PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16;
2896
3379
  optional Message.PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17;
2897
- optional Message.BotFeedbackMessage botFeedbackMessage = 18;
3380
+ optional BotFeedbackMessage botFeedbackMessage = 18;
2898
3381
  optional string invokerJid = 19;
2899
3382
  optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
2900
3383
  optional MediaNotifyMessage mediaNotifyMessage = 21;
@@ -2934,6 +3417,11 @@ message Message {
2934
3417
  }
2935
3418
  }
2936
3419
 
3420
+ message QuestionResponseMessage {
3421
+ optional MessageKey key = 1;
3422
+ optional string text = 2;
3423
+ }
3424
+
2937
3425
  message ReactionMessage {
2938
3426
  optional MessageKey key = 1;
2939
3427
  optional string text = 2;
@@ -2999,6 +3487,7 @@ message Message {
2999
3487
  optional Message noteMessage = 2;
3000
3488
  optional MessageKey requestMessageKey = 3;
3001
3489
  optional PaymentBackground background = 4;
3490
+ optional string transactionData = 5;
3002
3491
  }
3003
3492
 
3004
3493
  message SenderKeyDistributionMessage {
@@ -3014,6 +3503,32 @@ message Message {
3014
3503
  UNKNOWN = 0;
3015
3504
  STATUS_ADD_YOURS = 1;
3016
3505
  STATUS_RESHARE = 2;
3506
+ STATUS_QUESTION_ANSWER_RESHARE = 3;
3507
+ }
3508
+ }
3509
+
3510
+ message StatusQuestionAnswerMessage {
3511
+ optional MessageKey key = 1;
3512
+ optional string text = 2;
3513
+ }
3514
+
3515
+ message StatusQuotedMessage {
3516
+ optional StatusQuotedMessageType type = 1;
3517
+ optional string text = 2;
3518
+ optional bytes thumbnail = 3;
3519
+ optional MessageKey originalStatusId = 4;
3520
+ enum StatusQuotedMessageType {
3521
+ QUESTION_ANSWER = 1;
3522
+ }
3523
+ }
3524
+
3525
+ message StatusStickerInteractionMessage {
3526
+ optional MessageKey key = 1;
3527
+ optional string stickerKey = 2;
3528
+ optional StatusStickerType type = 3;
3529
+ enum StatusStickerType {
3530
+ UNKNOWN = 0;
3531
+ REACTION = 1;
3017
3532
  }
3018
3533
  }
3019
3534
 
@@ -3038,6 +3553,7 @@ message Message {
3038
3553
  optional bool isAiSticker = 20;
3039
3554
  optional bool isLottie = 21;
3040
3555
  optional string accessibilityLabel = 22;
3556
+ optional Message.MediaKeyDomain mediaKeyDomain = 23;
3041
3557
  }
3042
3558
 
3043
3559
  message StickerPackMessage {
@@ -3136,6 +3652,13 @@ message Message {
3136
3652
  optional uint32 fbExperimentId = 1;
3137
3653
  }
3138
3654
 
3655
+ message VideoEndCard {
3656
+ optional string username = 1;
3657
+ optional string caption = 2;
3658
+ optional string thumbnailImageUrl = 3;
3659
+ optional string profilePictureUrl = 4;
3660
+ }
3661
+
3139
3662
  message VideoMessage {
3140
3663
  optional string url = 1;
3141
3664
  optional string mimetype = 2;
@@ -3167,10 +3690,12 @@ message Message {
3167
3690
  optional uint64 motionPhotoPresentationOffsetMs = 29;
3168
3691
  optional string metadataUrl = 30;
3169
3692
  optional VideoSourceType videoSourceType = 31;
3693
+ optional Message.MediaKeyDomain mediaKeyDomain = 32;
3170
3694
  enum Attribution {
3171
3695
  NONE = 0;
3172
3696
  GIPHY = 1;
3173
3697
  TENOR = 2;
3698
+ KLIPY = 3;
3174
3699
  }
3175
3700
  enum VideoSourceType {
3176
3701
  USER_VIDEO = 0;
@@ -3224,6 +3749,10 @@ message MessageAssociation {
3224
3749
  STATUS_LINK_ACTION = 13;
3225
3750
  VIEW_ALL_REPLIES = 14;
3226
3751
  STATUS_ADD_YOURS_AI_IMAGINE = 15;
3752
+ STATUS_QUESTION = 16;
3753
+ STATUS_ADD_YOURS_DIWALI = 17;
3754
+ STATUS_REACTION = 18;
3755
+ HEVC_VIDEO_DUAL_UPLOAD = 19;
3227
3756
  }
3228
3757
  }
3229
3758
 
@@ -3243,6 +3772,7 @@ message MessageContextInfo {
3243
3772
  optional LimitSharing limitSharing = 13;
3244
3773
  optional LimitSharing limitSharingV2 = 14;
3245
3774
  repeated ThreadID threadId = 15;
3775
+ optional WebLinkRenderConfig weblinkRenderConfig = 16;
3246
3776
  enum MessageAddonExpiryType {
3247
3777
  STATIC = 1;
3248
3778
  DEPENDENT_ON_PARENT = 2;
@@ -3292,6 +3822,8 @@ message MsgOpaqueData {
3292
3822
  optional PollEncValue encPollVote = 24;
3293
3823
  optional bool isSentCagPollCreation = 28;
3294
3824
  optional PollContentType pollContentType = 42;
3825
+ optional PollType pollType = 46;
3826
+ optional int32 correctOptionIndex = 47;
3295
3827
  optional PollVotesSnapshot pollVotesSnapshot = 41;
3296
3828
  optional string encReactionTargetMessageKey = 25;
3297
3829
  optional bytes encReactionEncPayload = 26;
@@ -3307,6 +3839,8 @@ message MsgOpaqueData {
3307
3839
  optional int64 eventStartTime = 37;
3308
3840
  optional EventLocation eventLocation = 38;
3309
3841
  optional int64 eventEndTime = 40;
3842
+ optional bool eventIsScheduledCall = 44;
3843
+ optional bool eventExtraGuestsAllowed = 45;
3310
3844
  optional bytes plainProtobufBytes = 43;
3311
3845
  message EventLocation {
3312
3846
  optional double degreesLatitude = 1;
@@ -3327,6 +3861,10 @@ message MsgOpaqueData {
3327
3861
  optional string hash = 2;
3328
3862
  }
3329
3863
 
3864
+ enum PollType {
3865
+ POLL = 0;
3866
+ QUIZ = 1;
3867
+ }
3330
3868
  message PollVoteSnapshot {
3331
3869
  optional MsgOpaqueData.PollOption option = 1;
3332
3870
  optional int32 optionVoteCount = 2;
@@ -3343,6 +3881,83 @@ message MsgRowOpaqueData {
3343
3881
  optional MsgOpaqueData quotedMsg = 2;
3344
3882
  }
3345
3883
 
3884
+ enum MutationProps {
3885
+ STAR_ACTION = 2;
3886
+ CONTACT_ACTION = 3;
3887
+ MUTE_ACTION = 4;
3888
+ PIN_ACTION = 5;
3889
+ SECURITY_NOTIFICATION_SETTING = 6;
3890
+ PUSH_NAME_SETTING = 7;
3891
+ QUICK_REPLY_ACTION = 8;
3892
+ RECENT_EMOJI_WEIGHTS_ACTION = 11;
3893
+ LABEL_MESSAGE_ACTION = 13;
3894
+ LABEL_EDIT_ACTION = 14;
3895
+ LABEL_ASSOCIATION_ACTION = 15;
3896
+ LOCALE_SETTING = 16;
3897
+ ARCHIVE_CHAT_ACTION = 17;
3898
+ DELETE_MESSAGE_FOR_ME_ACTION = 18;
3899
+ KEY_EXPIRATION = 19;
3900
+ MARK_CHAT_AS_READ_ACTION = 20;
3901
+ CLEAR_CHAT_ACTION = 21;
3902
+ DELETE_CHAT_ACTION = 22;
3903
+ UNARCHIVE_CHATS_SETTING = 23;
3904
+ PRIMARY_FEATURE = 24;
3905
+ ANDROID_UNSUPPORTED_ACTIONS = 26;
3906
+ AGENT_ACTION = 27;
3907
+ SUBSCRIPTION_ACTION = 28;
3908
+ USER_STATUS_MUTE_ACTION = 29;
3909
+ TIME_FORMAT_ACTION = 30;
3910
+ NUX_ACTION = 31;
3911
+ PRIMARY_VERSION_ACTION = 32;
3912
+ STICKER_ACTION = 33;
3913
+ REMOVE_RECENT_STICKER_ACTION = 34;
3914
+ CHAT_ASSIGNMENT = 35;
3915
+ CHAT_ASSIGNMENT_OPENED_STATUS = 36;
3916
+ PN_FOR_LID_CHAT_ACTION = 37;
3917
+ MARKETING_MESSAGE_ACTION = 38;
3918
+ MARKETING_MESSAGE_BROADCAST_ACTION = 39;
3919
+ EXTERNAL_WEB_BETA_ACTION = 40;
3920
+ PRIVACY_SETTING_RELAY_ALL_CALLS = 41;
3921
+ CALL_LOG_ACTION = 42;
3922
+ UGC_BOT = 43;
3923
+ STATUS_PRIVACY = 44;
3924
+ BOT_WELCOME_REQUEST_ACTION = 45;
3925
+ DELETE_INDIVIDUAL_CALL_LOG = 46;
3926
+ LABEL_REORDERING_ACTION = 47;
3927
+ PAYMENT_INFO_ACTION = 48;
3928
+ CUSTOM_PAYMENT_METHODS_ACTION = 49;
3929
+ LOCK_CHAT_ACTION = 50;
3930
+ CHAT_LOCK_SETTINGS = 51;
3931
+ WAMO_USER_IDENTIFIER_ACTION = 52;
3932
+ PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION = 53;
3933
+ DEVICE_CAPABILITIES = 54;
3934
+ NOTE_EDIT_ACTION = 55;
3935
+ FAVORITES_ACTION = 56;
3936
+ MERCHANT_PAYMENT_PARTNER_ACTION = 57;
3937
+ WAFFLE_ACCOUNT_LINK_STATE_ACTION = 58;
3938
+ USERNAME_CHAT_START_MODE = 59;
3939
+ NOTIFICATION_ACTIVITY_SETTING_ACTION = 60;
3940
+ LID_CONTACT_ACTION = 61;
3941
+ CTWA_PER_CUSTOMER_DATA_SHARING_ACTION = 62;
3942
+ PAYMENT_TOS_ACTION = 63;
3943
+ PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION = 64;
3944
+ BUSINESS_BROADCAST_ASSOCIATION_ACTION = 65;
3945
+ DETECTED_OUTCOMES_STATUS_ACTION = 66;
3946
+ MAIBA_AI_FEATURES_CONTROL_ACTION = 68;
3947
+ BUSINESS_BROADCAST_LIST_ACTION = 69;
3948
+ MUSIC_USER_ID_ACTION = 70;
3949
+ STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION = 71;
3950
+ AVATAR_UPDATED_ACTION = 72;
3951
+ GALAXY_FLOW_ACTION = 73;
3952
+ PRIVATE_PROCESSING_SETTING_ACTION = 74;
3953
+ NEWSLETTER_SAVED_INTERESTS_ACTION = 75;
3954
+ AI_THREAD_RENAME_ACTION = 76;
3955
+ INTERACTIVE_MESSAGE_ACTION = 77;
3956
+ SETTINGS_SYNC_ACTION = 78;
3957
+ SHARE_OWN_PN = 10001;
3958
+ BUSINESS_BROADCAST_ACTION = 10002;
3959
+ AI_THREAD_DELETE_ACTION = 10003;
3960
+ }
3346
3961
  message NoiseCertificate {
3347
3962
  optional bytes details = 1;
3348
3963
  optional bytes signature = 2;
@@ -3415,6 +4030,9 @@ message PatchDebugData {
3415
4030
  DARWIN = 6;
3416
4031
  IPAD = 7;
3417
4032
  WEAROS = 8;
4033
+ WASG = 9;
4034
+ WEARM = 10;
4035
+ CAPI = 11;
3418
4036
  }
3419
4037
  }
3420
4038
 
@@ -3615,6 +4233,11 @@ message Pushname {
3615
4233
  optional string pushname = 2;
3616
4234
  }
3617
4235
 
4236
+ message QuarantinedMessage {
4237
+ optional bytes originalData = 1;
4238
+ optional string extractedText = 2;
4239
+ }
4240
+
3618
4241
  message Reaction {
3619
4242
  optional MessageKey key = 1;
3620
4243
  optional string text = 2;
@@ -3738,6 +4361,16 @@ message SessionStructure {
3738
4361
 
3739
4362
  }
3740
4363
 
4364
+ message SessionTransparencyMetadata {
4365
+ optional string disclaimerText = 1;
4366
+ optional string hcaId = 2;
4367
+ optional SessionTransparencyType sessionTransparencyType = 3;
4368
+ }
4369
+
4370
+ enum SessionTransparencyType {
4371
+ UNKNOWN_TYPE = 0;
4372
+ NY_AI_SAFETY_DISCLAIMER = 1;
4373
+ }
3741
4374
  message SignalMessage {
3742
4375
  optional bytes ratchetKey = 1;
3743
4376
  optional uint32 counter = 2;
@@ -3761,7 +4394,17 @@ message StatusAttribution {
3761
4394
  StatusAttribution.ExternalShare externalShare = 4;
3762
4395
  StatusAttribution.Music music = 5;
3763
4396
  StatusAttribution.GroupStatus groupStatus = 6;
4397
+ StatusAttribution.RLAttribution rlAttribution = 7;
4398
+ StatusAttribution.AiCreatedAttribution aiCreatedAttribution = 8;
4399
+ }
4400
+ message AiCreatedAttribution {
4401
+ optional Source source = 1;
4402
+ enum Source {
4403
+ UNKNOWN = 0;
4404
+ STATUS_MIMICRY = 1;
4405
+ }
3764
4406
  }
4407
+
3765
4408
  message ExternalShare {
3766
4409
  optional string actionUrl = 1;
3767
4410
  optional Source source = 2;
@@ -3775,6 +4418,10 @@ message StatusAttribution {
3775
4418
  SPOTIFY = 4;
3776
4419
  YOUTUBE = 5;
3777
4420
  PINTEREST = 6;
4421
+ THREADS = 7;
4422
+ APPLE_MUSIC = 8;
4423
+ SHARECHAT = 9;
4424
+ GOOGLE_PHOTOS = 10;
3778
4425
  }
3779
4426
  }
3780
4427
 
@@ -3791,6 +4438,16 @@ message StatusAttribution {
3791
4438
  optional bool isExplicit = 6;
3792
4439
  }
3793
4440
 
4441
+ message RLAttribution {
4442
+ optional Source source = 1;
4443
+ enum Source {
4444
+ UNKNOWN = 0;
4445
+ RAY_BAN_META_GLASSES = 1;
4446
+ OAKLEY_META_GLASSES = 2;
4447
+ HYPERNOVA_GLASSES = 3;
4448
+ }
4449
+ }
4450
+
3794
4451
  message StatusReshare {
3795
4452
  optional Source source = 1;
3796
4453
  optional Metadata metadata = 2;
@@ -3806,15 +4463,20 @@ message StatusAttribution {
3806
4463
  INTERNAL_RESHARE = 1;
3807
4464
  MENTION_RESHARE = 2;
3808
4465
  CHANNEL_RESHARE = 3;
4466
+ FORWARD = 4;
3809
4467
  }
3810
4468
  }
3811
4469
 
3812
4470
  enum Type {
3813
- RESHARE = 0;
3814
- EXTERNAL_SHARE = 1;
3815
- MUSIC = 2;
3816
- STATUS_MENTION = 3;
3817
- GROUP_STATUS = 4;
4471
+ UNKNOWN = 0;
4472
+ RESHARE = 1;
4473
+ EXTERNAL_SHARE = 2;
4474
+ MUSIC = 3;
4475
+ STATUS_MENTION = 4;
4476
+ GROUP_STATUS = 5;
4477
+ RL_ATTRIBUTION = 6;
4478
+ AI_CREATED = 7;
4479
+ LAYOUTS = 8;
3818
4480
  }
3819
4481
  }
3820
4482
 
@@ -3823,7 +4485,7 @@ message StatusMentionMessage {
3823
4485
  }
3824
4486
 
3825
4487
  message StatusPSA {
3826
- required uint64 campaignId = 44;
4488
+ optional uint64 campaignId = 44;
3827
4489
  optional uint64 campaignExpirationTimestamp = 45;
3828
4490
  }
3829
4491
 
@@ -3840,6 +4502,8 @@ message StickerMetadata {
3840
4502
  optional float weight = 10;
3841
4503
  optional int64 lastStickerSentTs = 11;
3842
4504
  optional bool isLottie = 12;
4505
+ optional string imageHash = 13;
4506
+ optional bool isAvatarSticker = 14;
3843
4507
  }
3844
4508
 
3845
4509
  message SyncActionData {
@@ -3855,7 +4519,6 @@ message SyncActionValue {
3855
4519
  optional ContactAction contactAction = 3;
3856
4520
  optional MuteAction muteAction = 4;
3857
4521
  optional PinAction pinAction = 5;
3858
- optional SecurityNotificationSetting securityNotificationSetting = 6;
3859
4522
  optional PushNameSetting pushNameSetting = 7;
3860
4523
  optional QuickReplyAction quickReplyAction = 8;
3861
4524
  optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11;
@@ -3887,6 +4550,7 @@ message SyncActionValue {
3887
4550
  optional ExternalWebBetaAction externalWebBetaAction = 40;
3888
4551
  optional PrivacySettingRelayAllCalls privacySettingRelayAllCalls = 41;
3889
4552
  optional CallLogAction callLogAction = 42;
4553
+ optional UGCBot ugcBot = 43;
3890
4554
  optional StatusPrivacyAction statusPrivacy = 44;
3891
4555
  optional BotWelcomeRequestAction botWelcomeRequestAction = 45;
3892
4556
  optional DeleteIndividualCallLogAction deleteIndividualCallLog = 46;
@@ -3908,13 +4572,27 @@ message SyncActionValue {
3908
4572
  optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
3909
4573
  optional PaymentTosAction paymentTosAction = 63;
3910
4574
  optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
3911
- optional BusinessBroadcastAssociationAction businessBroadcastAssociationAction = 65;
4575
+ optional DetectedOutcomesStatusAction detectedOutcomesStatusAction = 66;
4576
+ optional MaibaAIFeaturesControlAction maibaAiFeaturesControlAction = 68;
4577
+ optional BusinessBroadcastListAction businessBroadcastListAction = 69;
4578
+ optional MusicUserIdAction musicUserIdAction = 70;
4579
+ optional StatusPostOptInNotificationPreferencesAction statusPostOptInNotificationPreferencesAction = 71;
4580
+ optional AvatarUpdatedAction avatarUpdatedAction = 72;
4581
+ optional PrivateProcessingSettingAction privateProcessingSettingAction = 74;
4582
+ optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
4583
+ optional AiThreadRenameAction aiThreadRenameAction = 76;
4584
+ optional InteractiveMessageAction interactiveMessageAction = 77;
4585
+ optional SettingsSyncAction settingsSyncAction = 78;
3912
4586
  message AgentAction {
3913
4587
  optional string name = 1;
3914
4588
  optional int32 deviceID = 2;
3915
4589
  optional bool isDeleted = 3;
3916
4590
  }
3917
4591
 
4592
+ message AiThreadRenameAction {
4593
+ optional string newTitle = 1;
4594
+ }
4595
+
3918
4596
  message AndroidUnsupportedActions {
3919
4597
  optional bool allowed = 1;
3920
4598
  }
@@ -3924,14 +4602,36 @@ message SyncActionValue {
3924
4602
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
3925
4603
  }
3926
4604
 
4605
+ message AvatarUpdatedAction {
4606
+ optional AvatarEventType eventType = 1;
4607
+ repeated SyncActionValue.StickerAction recentAvatarStickers = 2;
4608
+ enum AvatarEventType {
4609
+ UPDATED = 0;
4610
+ CREATED = 1;
4611
+ DELETED = 2;
4612
+ }
4613
+ }
4614
+
3927
4615
  message BotWelcomeRequestAction {
3928
4616
  optional bool isSent = 1;
3929
4617
  }
3930
4618
 
4619
+ message BroadcastListParticipant {
4620
+ optional string lidJid = 1;
4621
+ optional string pnJid = 2;
4622
+ }
4623
+
3931
4624
  message BusinessBroadcastAssociationAction {
3932
4625
  optional bool deleted = 1;
3933
4626
  }
3934
4627
 
4628
+ message BusinessBroadcastListAction {
4629
+ optional bool deleted = 1;
4630
+ repeated SyncActionValue.BroadcastListParticipant participants = 2;
4631
+ optional string listName = 3;
4632
+ repeated string labelIds = 4;
4633
+ }
4634
+
3935
4635
  message CallLogAction {
3936
4636
  optional CallLogRecord callLogRecord = 1;
3937
4637
  }
@@ -3962,15 +4662,15 @@ message SyncActionValue {
3962
4662
  }
3963
4663
 
3964
4664
  message CustomPaymentMethod {
3965
- required string credentialId = 1;
3966
- required string country = 2;
3967
- required string type = 3;
4665
+ optional string credentialId = 1;
4666
+ optional string country = 2;
4667
+ optional string type = 3;
3968
4668
  repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
3969
4669
  }
3970
4670
 
3971
4671
  message CustomPaymentMethodMetadata {
3972
- required string key = 1;
3973
- required string value = 2;
4672
+ optional string key = 1;
4673
+ optional string value = 2;
3974
4674
  }
3975
4675
 
3976
4676
  message CustomPaymentMethodsAction {
@@ -3991,6 +4691,10 @@ message SyncActionValue {
3991
4691
  optional int64 messageTimestamp = 2;
3992
4692
  }
3993
4693
 
4694
+ message DetectedOutcomesStatusAction {
4695
+ optional bool isEnabled = 1;
4696
+ }
4697
+
3994
4698
  message ExternalWebBetaAction {
3995
4699
  optional bool isOptIn = 1;
3996
4700
  }
@@ -4003,6 +4707,13 @@ message SyncActionValue {
4003
4707
 
4004
4708
  }
4005
4709
 
4710
+ message InteractiveMessageAction {
4711
+ optional InteractiveMessageActionMode type = 1;
4712
+ enum InteractiveMessageActionMode {
4713
+ DISABLE_CTA = 1;
4714
+ }
4715
+ }
4716
+
4006
4717
  message KeyExpiration {
4007
4718
  optional int32 expiredKeyEpoch = 1;
4008
4719
  }
@@ -4020,6 +4731,7 @@ message SyncActionValue {
4020
4731
  optional bool isActive = 6;
4021
4732
  optional ListType type = 7;
4022
4733
  optional bool isImmutable = 8;
4734
+ optional int64 muteEndTimeMs = 9;
4023
4735
  enum ListType {
4024
4736
  NONE = 0;
4025
4737
  UNREAD = 1;
@@ -4029,6 +4741,8 @@ message SyncActionValue {
4029
4741
  CUSTOM = 5;
4030
4742
  COMMUNITY = 6;
4031
4743
  SERVER_ASSIGNED = 7;
4744
+ DRAFTED = 8;
4745
+ AI_HANDOFF = 9;
4032
4746
  }
4033
4747
  }
4034
4748
 
@@ -4040,7 +4754,6 @@ message SyncActionValue {
4040
4754
  optional string fullName = 1;
4041
4755
  optional string firstName = 2;
4042
4756
  optional string username = 3;
4043
- optional bool saveOnPrimaryAddressbook = 4;
4044
4757
  }
4045
4758
 
4046
4759
  message LocaleSetting {
@@ -4051,6 +4764,15 @@ message SyncActionValue {
4051
4764
  optional bool locked = 1;
4052
4765
  }
4053
4766
 
4767
+ message MaibaAIFeaturesControlAction {
4768
+ optional MaibaAIFeatureStatus aiFeatureStatus = 1;
4769
+ enum MaibaAIFeatureStatus {
4770
+ ENABLED = 0;
4771
+ ENABLED_HAS_LEARNING = 1;
4772
+ DISABLED = 2;
4773
+ }
4774
+ }
4775
+
4054
4776
  message MarkChatAsReadAction {
4055
4777
  optional bool read = 1;
4056
4778
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
@@ -4074,8 +4796,8 @@ message SyncActionValue {
4074
4796
  }
4075
4797
 
4076
4798
  message MerchantPaymentPartnerAction {
4077
- required Status status = 1;
4078
- required string country = 2;
4799
+ optional Status status = 1;
4800
+ optional string country = 2;
4079
4801
  optional string gatewayName = 3;
4080
4802
  optional string credentialId = 4;
4081
4803
  enum Status {
@@ -4084,12 +4806,21 @@ message SyncActionValue {
4084
4806
  }
4085
4807
  }
4086
4808
 
4809
+ message MusicUserIdAction {
4810
+ optional string musicUserId = 1;
4811
+ map<string, string> music_user_id_map = 2;
4812
+ }
4813
+
4087
4814
  message MuteAction {
4088
4815
  optional bool muted = 1;
4089
4816
  optional int64 muteEndTimestamp = 2;
4090
4817
  optional bool autoMuted = 3;
4091
4818
  }
4092
4819
 
4820
+ message NewsletterSavedInterestsAction {
4821
+ optional string newsletterSavedInterests = 1;
4822
+ }
4823
+
4093
4824
  message NoteEditAction {
4094
4825
  optional NoteType type = 1;
4095
4826
  optional string chatJid = 2;
@@ -4121,8 +4852,8 @@ message SyncActionValue {
4121
4852
  }
4122
4853
 
4123
4854
  message PaymentTosAction {
4124
- required PaymentNotice paymentNotice = 1;
4125
- required bool accepted = 2;
4855
+ optional PaymentNotice paymentNotice = 1;
4856
+ optional bool accepted = 2;
4126
4857
  enum PaymentNotice {
4127
4858
  BR_PAY_PRIVACY_POLICY = 0;
4128
4859
  }
@@ -4156,6 +4887,15 @@ message SyncActionValue {
4156
4887
  optional bool isEnabled = 1;
4157
4888
  }
4158
4889
 
4890
+ message PrivateProcessingSettingAction {
4891
+ optional PrivateProcessingStatus privateProcessingStatus = 1;
4892
+ enum PrivateProcessingStatus {
4893
+ UNDEFINED = 0;
4894
+ ENABLED = 1;
4895
+ DISABLED = 2;
4896
+ }
4897
+ }
4898
+
4159
4899
  message PushNameSetting {
4160
4900
  optional string name = 1;
4161
4901
  }
@@ -4176,14 +4916,79 @@ message SyncActionValue {
4176
4916
  optional int64 lastStickerSentTs = 1;
4177
4917
  }
4178
4918
 
4179
- message SecurityNotificationSetting {
4180
- optional bool showNotification = 1;
4919
+ message SettingsSyncAction {
4920
+ optional bool startAtLogin = 1;
4921
+ optional bool minimizeToTray = 2;
4922
+ optional string language = 3;
4923
+ optional bool replaceTextWithEmoji = 4;
4924
+ optional DisplayMode bannerNotificationDisplayMode = 5;
4925
+ optional DisplayMode unreadCounterBadgeDisplayMode = 6;
4926
+ optional bool isMessagesNotificationEnabled = 7;
4927
+ optional bool isCallsNotificationEnabled = 8;
4928
+ optional bool isReactionsNotificationEnabled = 9;
4929
+ optional bool isStatusReactionsNotificationEnabled = 10;
4930
+ optional bool isTextPreviewForNotificationEnabled = 11;
4931
+ optional int32 defaultNotificationToneId = 12;
4932
+ optional int32 groupDefaultNotificationToneId = 13;
4933
+ optional int32 appTheme = 14;
4934
+ optional int32 wallpaperId = 15;
4935
+ optional bool isDoodleWallpaperEnabled = 16;
4936
+ optional int32 fontSize = 17;
4937
+ optional bool isPhotosAutodownloadEnabled = 18;
4938
+ optional bool isAudiosAutodownloadEnabled = 19;
4939
+ optional bool isVideosAutodownloadEnabled = 20;
4940
+ optional bool isDocumentsAutodownloadEnabled = 21;
4941
+ optional bool disableLinkPreviews = 22;
4942
+ optional int32 notificationToneId = 23;
4943
+ enum DisplayMode {
4944
+ DISPLAY_MODE_UNKNOWN = 0;
4945
+ ALWAYS = 1;
4946
+ NEVER = 2;
4947
+ ONLY_WHEN_APP_IS_OPEN = 3;
4948
+ }
4949
+ enum SettingKey {
4950
+ SETTING_KEY_UNKNOWN = 0;
4951
+ START_AT_LOGIN = 1;
4952
+ MINIMIZE_TO_TRAY = 2;
4953
+ LANGUAGE = 3;
4954
+ REPLACE_TEXT_WITH_EMOJI = 4;
4955
+ BANNER_NOTIFICATION_DISPLAY_MODE = 5;
4956
+ UNREAD_COUNTER_BADGE_DISPLAY_MODE = 6;
4957
+ IS_MESSAGES_NOTIFICATION_ENABLED = 7;
4958
+ IS_CALLS_NOTIFICATION_ENABLED = 8;
4959
+ IS_REACTIONS_NOTIFICATION_ENABLED = 9;
4960
+ IS_STATUS_REACTIONS_NOTIFICATION_ENABLED = 10;
4961
+ IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED = 11;
4962
+ DEFAULT_NOTIFICATION_TONE_ID = 12;
4963
+ GROUP_DEFAULT_NOTIFICATION_TONE_ID = 13;
4964
+ APP_THEME = 14;
4965
+ WALLPAPER_ID = 15;
4966
+ IS_DOODLE_WALLPAPER_ENABLED = 16;
4967
+ FONT_SIZE = 17;
4968
+ IS_PHOTOS_AUTODOWNLOAD_ENABLED = 18;
4969
+ IS_AUDIOS_AUTODOWNLOAD_ENABLED = 19;
4970
+ IS_VIDEOS_AUTODOWNLOAD_ENABLED = 20;
4971
+ IS_DOCUMENTS_AUTODOWNLOAD_ENABLED = 21;
4972
+ DISABLE_LINK_PREVIEWS = 22;
4973
+ NOTIFICATION_TONE_ID = 23;
4974
+ }
4975
+ enum SettingPlatform {
4976
+ PLATFORM_UNKNOWN = 0;
4977
+ WEB = 1;
4978
+ HYBRID = 2;
4979
+ WINDOWS = 3;
4980
+ MAC = 4;
4981
+ }
4181
4982
  }
4182
4983
 
4183
4984
  message StarAction {
4184
4985
  optional bool starred = 1;
4185
4986
  }
4186
4987
 
4988
+ message StatusPostOptInNotificationPreferencesAction {
4989
+ optional bool enabled = 1;
4990
+ }
4991
+
4187
4992
  message StatusPrivacyAction {
4188
4993
  optional StatusDistributionMode mode = 1;
4189
4994
  repeated string userJid = 2;
@@ -4191,6 +4996,7 @@ message SyncActionValue {
4191
4996
  ALLOW_LIST = 0;
4192
4997
  DENY_LIST = 1;
4193
4998
  CONTACTS = 2;
4999
+ CLOSE_FRIENDS = 3;
4194
5000
  }
4195
5001
  }
4196
5002
 
@@ -4206,6 +5012,8 @@ message SyncActionValue {
4206
5012
  optional bool isFavorite = 9;
4207
5013
  optional uint32 deviceIdHint = 10;
4208
5014
  optional bool isLottie = 11;
5015
+ optional string imageHash = 12;
5016
+ optional bool isAvatarSticker = 13;
4209
5017
  }
4210
5018
 
4211
5019
  message SubscriptionAction {
@@ -4229,6 +5037,10 @@ message SyncActionValue {
4229
5037
  optional bool isTwentyFourHourFormatEnabled = 1;
4230
5038
  }
4231
5039
 
5040
+ message UGCBot {
5041
+ optional bytes definition = 1;
5042
+ }
5043
+
4232
5044
  message UnarchiveChatsSetting {
4233
5045
  optional bool unarchiveChats = 1;
4234
5046
  }
@@ -4249,6 +5061,8 @@ message SyncActionValue {
4249
5061
  optional AccountLinkState linkState = 2;
4250
5062
  enum AccountLinkState {
4251
5063
  ACTIVE = 0;
5064
+ PAUSED = 1;
5065
+ UNLINKED = 2;
4252
5066
  }
4253
5067
  }
4254
5068
 
@@ -4343,6 +5157,7 @@ message ThreadID {
4343
5157
  enum ThreadType {
4344
5158
  UNKNOWN = 0;
4345
5159
  VIEW_REPLIES = 1;
5160
+ AI_THREAD = 2;
4346
5161
  }
4347
5162
  }
4348
5163
 
@@ -4386,7 +5201,7 @@ message UserPassword {
4386
5201
  }
4387
5202
 
4388
5203
  message UserReceipt {
4389
- required string userJid = 1;
5204
+ optional string userJid = 1;
4390
5205
  optional int64 receiptTimestamp = 2;
4391
5206
  optional int64 readTimestamp = 3;
4392
5207
  optional int64 playedTimestamp = 4;
@@ -4467,8 +5282,12 @@ message WebFeatures {
4467
5282
  }
4468
5283
  }
4469
5284
 
5285
+ enum WebLinkRenderConfig {
5286
+ WEBVIEW = 0;
5287
+ SYSTEM = 1;
5288
+ }
4470
5289
  message WebMessageInfo {
4471
- required MessageKey key = 1;
5290
+ optional MessageKey key = 1;
4472
5291
  optional Message message = 2;
4473
5292
  optional uint64 messageTimestamp = 3;
4474
5293
  optional Status status = 4;
@@ -4530,6 +5349,11 @@ message WebMessageInfo {
4530
5349
  repeated string statusMentionSources = 71;
4531
5350
  repeated Citation supportAiCitations = 72;
4532
5351
  optional string botTargetId = 73;
5352
+ optional GroupHistoryIndividualMessageInfo groupHistoryIndividualMessageInfo = 74;
5353
+ optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
5354
+ optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
5355
+ optional QuarantinedMessage quarantinedMessage = 77;
5356
+ optional uint32 nonJidMentions = 78;
4533
5357
  enum BizPrivacyStatus {
4534
5358
  E2EE = 0;
4535
5359
  FB = 2;
@@ -4764,6 +5588,11 @@ message WebMessageInfo {
4764
5588
  CHANGE_LIMIT_SHARING = 216;
4765
5589
  GROUP_MEMBER_LINK_MODE = 217;
4766
5590
  BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
5591
+ PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219;
5592
+ QUARANTINED_MESSAGE = 220;
5593
+ GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE = 221;
5594
+ GROUP_OPEN_BOT_ADDED = 222;
5595
+ GROUP_TEE_BOT_ADDED = 223;
4767
5596
  }
4768
5597
  }
4769
5598
 
@@ -4772,4 +5601,4 @@ message WebNotificationsInfo {
4772
5601
  optional uint32 unreadChats = 3;
4773
5602
  optional uint32 notifyMessageCount = 4;
4774
5603
  repeated WebMessageInfo notifyMessages = 5;
4775
- }
5604
+ }