@jkt48connect-corp/baileys 7.2.6 → 7.2.8
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/LICENSE +1 -1
- package/README.md +838 -94
- package/WAProto/WAProto.proto +969 -88
- package/WAProto/index.d.ts +13199 -1260
- package/WAProto/index.js +124901 -74525
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.d.ts +7 -8
- package/lib/Defaults/index.js +5 -3
- package/lib/Defaults/phonenumber-mcc.json +221 -221
- package/lib/Signal/libsignal.js +18 -9
- package/lib/Socket/Client/abstract-socket-client.d.ts +0 -2
- package/lib/Socket/Client/mobile-socket-client.d.ts +0 -1
- package/lib/Socket/business.d.ts +40 -40
- package/lib/Socket/chats.d.ts +13 -14
- package/lib/Socket/groups.d.ts +20 -21
- package/lib/Socket/groups.js +1 -1
- package/lib/Socket/index.d.ts +49 -49
- package/lib/Socket/messages-recv.d.ts +39 -39
- package/lib/Socket/messages-recv.js +310 -151
- package/lib/Socket/messages-send.d.ts +33 -31
- package/lib/Socket/messages-send.js +269 -36
- package/lib/Socket/newsletter.d.ts +24 -25
- package/lib/Socket/newsletter.js +3 -3
- package/lib/Socket/registration.d.ts +49 -52
- package/lib/Socket/registration.js +7 -7
- package/lib/Socket/socket.d.ts +6 -7
- package/lib/Socket/socket.js +7 -3
- package/lib/Store/make-cache-manager-store.d.ts +1 -0
- package/lib/Store/make-in-memory-store.d.ts +3 -4
- package/lib/Store/make-in-memory-store.js +13 -11
- package/lib/Store/make-ordered-dictionary.d.ts +1 -1
- package/lib/Types/Auth.d.ts +0 -1
- package/lib/Types/Call.d.ts +1 -1
- package/lib/Types/Chat.d.ts +12 -7
- package/lib/Types/Events.d.ts +17 -2
- package/lib/Types/GroupMetadata.d.ts +3 -1
- package/lib/Types/Label.d.ts +11 -0
- package/lib/Types/Label.js +1 -1
- package/lib/Types/LabelAssociation.js +1 -1
- package/lib/Types/Message.d.ts +164 -13
- package/lib/Types/Newsletter.js +3 -3
- package/lib/Types/Socket.d.ts +7 -2
- package/lib/Types/index.d.ts +9 -0
- package/lib/Types/index.js +1 -1
- package/lib/Utils/auth-utils.js +3 -3
- package/lib/Utils/business.d.ts +1 -1
- package/lib/Utils/business.js +2 -2
- package/lib/Utils/chat-utils.d.ts +11 -12
- package/lib/Utils/chat-utils.js +41 -20
- package/lib/Utils/crypto.d.ts +15 -16
- package/lib/Utils/crypto.js +35 -23
- package/lib/Utils/decode-wa-message.d.ts +17 -0
- package/lib/Utils/decode-wa-message.js +43 -15
- package/lib/Utils/generics.d.ts +10 -19
- package/lib/Utils/generics.js +32 -16
- package/lib/Utils/history.d.ts +6 -2
- package/lib/Utils/history.js +3 -0
- package/lib/Utils/index.d.ts +0 -1
- package/lib/Utils/index.js +0 -1
- package/lib/Utils/logger.d.ts +1 -3
- package/lib/Utils/make-mutex.d.ts +2 -2
- package/lib/Utils/messages-media.d.ts +25 -28
- package/lib/Utils/messages-media.js +38 -47
- package/lib/Utils/messages.d.ts +5 -8
- package/lib/Utils/messages.js +430 -12
- package/lib/Utils/noise-handler.d.ts +4 -5
- package/lib/Utils/process-message.js +2 -2
- package/lib/Utils/use-multi-file-auth-state.js +17 -3
- package/lib/Utils/validate-connection.d.ts +2 -2
- package/lib/Utils/validate-connection.js +12 -23
- package/lib/WABinary/decode.d.ts +1 -2
- package/lib/WABinary/decode.js +17 -7
- package/lib/WABinary/encode.d.ts +1 -2
- package/lib/WABinary/encode.js +33 -17
- package/lib/WABinary/generic-utils.d.ts +2 -3
- package/lib/WABinary/generic-utils.js +2 -2
- package/lib/WABinary/jid-utils.d.ts +1 -1
- package/lib/WAM/BinaryInfo.d.ts +2 -11
- package/lib/WAM/encode.d.ts +1 -2
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +57 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +30 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
- package/lib/WAUSync/Protocols/index.d.ts +4 -0
- package/lib/WAUSync/Protocols/index.js +20 -0
- package/lib/WAUSync/USyncQuery.d.ts +26 -0
- package/lib/WAUSync/USyncQuery.js +79 -0
- package/lib/WAUSync/USyncUser.d.ts +10 -0
- package/lib/WAUSync/USyncUser.js +22 -0
- package/lib/WAUSync/index.d.ts +3 -0
- package/lib/WAUSync/index.js +19 -0
- package/lib/index.js +4 -1
- package/package.json +15 -10
- package/lib/Socket/community.d.ts +0 -219
- package/lib/Socket/community.js +0 -354
- package/lib/Utils/use-single-file-auth-statev2.d.ts +0 -12
- package/lib/Utils/use-single-file-auth-statev2.js +0 -75
- package/lib/index.d.ts +0 -11
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.1020086232
|
5
|
+
|
4
6
|
message ADVDeviceIdentity {
|
5
7
|
optional uint32 rawId = 1;
|
6
8
|
optional uint64 timestamp = 2;
|
@@ -40,6 +42,96 @@ message ADVSignedKeyIndexList {
|
|
40
42
|
optional bytes accountSignatureKey = 3;
|
41
43
|
}
|
42
44
|
|
45
|
+
message AIRichResponseMessage {
|
46
|
+
optional AIRichResponseMessageType messageType = 1;
|
47
|
+
repeated AIRichResponseSubMessage submessages = 2;
|
48
|
+
message AIRichResponseCodeMetadata {
|
49
|
+
optional string codeLanguage = 1;
|
50
|
+
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
51
|
+
message AIRichResponseCodeBlock {
|
52
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
53
|
+
optional string codeContent = 2;
|
54
|
+
}
|
55
|
+
|
56
|
+
enum AIRichResponseCodeHighlightType {
|
57
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
58
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
59
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
60
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
61
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
62
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
message AIRichResponseDynamicMetadata {
|
67
|
+
optional AIRichResponseDynamicMetadataType type = 1;
|
68
|
+
optional uint64 version = 2;
|
69
|
+
optional string url = 3;
|
70
|
+
optional uint32 loopCount = 4;
|
71
|
+
enum AIRichResponseDynamicMetadataType {
|
72
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
73
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
74
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
message AIRichResponseGridImageMetadata {
|
79
|
+
optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
|
80
|
+
repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
|
81
|
+
}
|
82
|
+
|
83
|
+
message AIRichResponseImageURL {
|
84
|
+
optional string imagePreviewUrl = 1;
|
85
|
+
optional string imageHighResUrl = 2;
|
86
|
+
optional string sourceUrl = 3;
|
87
|
+
}
|
88
|
+
|
89
|
+
message AIRichResponseInlineImageMetadata {
|
90
|
+
optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
|
91
|
+
optional string imageText = 2;
|
92
|
+
optional AIRichResponseImageAlignment alignment = 3;
|
93
|
+
optional string tapLinkUrl = 4;
|
94
|
+
enum AIRichResponseImageAlignment {
|
95
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
96
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
97
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
enum AIRichResponseMessageType {
|
102
|
+
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
103
|
+
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
104
|
+
}
|
105
|
+
message AIRichResponseSubMessage {
|
106
|
+
optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
|
107
|
+
optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
108
|
+
optional string messageText = 3;
|
109
|
+
optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
|
110
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
|
111
|
+
optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
|
112
|
+
optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
113
|
+
}
|
114
|
+
|
115
|
+
enum AIRichResponseSubMessageType {
|
116
|
+
AI_RICH_RESPONSE_UNKNOWN = 0;
|
117
|
+
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
118
|
+
AI_RICH_RESPONSE_TEXT = 2;
|
119
|
+
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
120
|
+
AI_RICH_RESPONSE_TABLE = 4;
|
121
|
+
AI_RICH_RESPONSE_CODE = 5;
|
122
|
+
AI_RICH_RESPONSE_DYNAMIC = 6;
|
123
|
+
}
|
124
|
+
message AIRichResponseTableMetadata {
|
125
|
+
repeated AIRichResponseTableRow rows = 1;
|
126
|
+
message AIRichResponseTableRow {
|
127
|
+
repeated string items = 1;
|
128
|
+
optional bool isHeading = 2;
|
129
|
+
}
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
}
|
134
|
+
|
43
135
|
message ActionLink {
|
44
136
|
optional string url = 1;
|
45
137
|
optional string buttonTitle = 2;
|
@@ -109,12 +201,146 @@ message BotAvatarMetadata {
|
|
109
201
|
optional uint32 wordCount = 5;
|
110
202
|
}
|
111
203
|
|
204
|
+
message BotCapabilityMetadata {
|
205
|
+
repeated BotCapabilityType capabilities = 1;
|
206
|
+
enum BotCapabilityType {
|
207
|
+
PROGRESS_INDICATOR = 1;
|
208
|
+
RICH_RESPONSE_HEADING = 2;
|
209
|
+
RICH_RESPONSE_NESTED_LIST = 3;
|
210
|
+
AI_MEMORY = 4;
|
211
|
+
RICH_RESPONSE_THREAD_SURFING = 5;
|
212
|
+
RICH_RESPONSE_TABLE = 6;
|
213
|
+
RICH_RESPONSE_CODE = 7;
|
214
|
+
RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
|
215
|
+
RICH_RESPONSE_INLINE_IMAGE = 9;
|
216
|
+
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
217
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
218
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
219
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
|
220
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
|
221
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
|
222
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
|
223
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
|
224
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
|
225
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
|
226
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
|
227
|
+
RICH_RESPONSE_SUB_HEADING = 21;
|
228
|
+
RICH_RESPONSE_GRID_IMAGE = 22;
|
229
|
+
AI_STUDIO_UGC_MEMORY = 23;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
message BotImagineMetadata {
|
234
|
+
optional ImagineType imagineType = 1;
|
235
|
+
enum ImagineType {
|
236
|
+
UNKNOWN = 0;
|
237
|
+
IMAGINE = 1;
|
238
|
+
MEMU = 2;
|
239
|
+
FLASH = 3;
|
240
|
+
EDIT = 4;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
message BotLinkedAccount {
|
245
|
+
optional BotLinkedAccountType type = 1;
|
246
|
+
enum BotLinkedAccountType {
|
247
|
+
BOT_LINKED_ACCOUNT_TYPE_1P = 0;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
message BotLinkedAccountsMetadata {
|
252
|
+
repeated BotLinkedAccount accounts = 1;
|
253
|
+
optional bytes acAuthTokens = 2;
|
254
|
+
}
|
255
|
+
|
256
|
+
message BotMediaMetadata {
|
257
|
+
optional string fileSha256 = 1;
|
258
|
+
optional string mediaKey = 2;
|
259
|
+
optional string fileEncSha256 = 3;
|
260
|
+
optional string directPath = 4;
|
261
|
+
optional int64 mediaKeyTimestamp = 5;
|
262
|
+
optional string mimetype = 6;
|
263
|
+
optional OrientationType orientationType = 7;
|
264
|
+
enum OrientationType {
|
265
|
+
CENTER = 1;
|
266
|
+
LEFT = 2;
|
267
|
+
RIGHT = 3;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
message BotMemoryFact {
|
272
|
+
optional string fact = 1;
|
273
|
+
optional string factId = 2;
|
274
|
+
}
|
275
|
+
|
276
|
+
message BotMemoryMetadata {
|
277
|
+
repeated BotMemoryFact addedFacts = 1;
|
278
|
+
repeated BotMemoryFact removedFacts = 2;
|
279
|
+
optional string disclaimer = 3;
|
280
|
+
}
|
281
|
+
|
282
|
+
message BotMemuMetadata {
|
283
|
+
repeated BotMediaMetadata faceImages = 1;
|
284
|
+
}
|
285
|
+
|
112
286
|
message BotMetadata {
|
113
287
|
optional BotAvatarMetadata avatarMetadata = 1;
|
114
288
|
optional string personaId = 2;
|
115
289
|
optional BotPluginMetadata pluginMetadata = 3;
|
116
290
|
optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
|
117
291
|
optional string invokerJid = 5;
|
292
|
+
optional BotSessionMetadata sessionMetadata = 6;
|
293
|
+
optional BotMemuMetadata memuMetadata = 7;
|
294
|
+
optional string timezone = 8;
|
295
|
+
optional BotReminderMetadata reminderMetadata = 9;
|
296
|
+
optional BotModelMetadata modelMetadata = 10;
|
297
|
+
optional string messageDisclaimerText = 11;
|
298
|
+
optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
|
299
|
+
optional BotCapabilityMetadata capabilityMetadata = 13;
|
300
|
+
optional BotImagineMetadata imagineMetadata = 14;
|
301
|
+
optional BotMemoryMetadata memoryMetadata = 15;
|
302
|
+
optional BotRenderingMetadata renderingMetadata = 16;
|
303
|
+
optional BotMetricsMetadata botMetricsMetadata = 17;
|
304
|
+
optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
|
305
|
+
}
|
306
|
+
|
307
|
+
enum BotMetricsEntryPoint {
|
308
|
+
FAVICON = 1;
|
309
|
+
CHATLIST = 2;
|
310
|
+
AISEARCH_NULL_STATE_PAPER_PLANE = 3;
|
311
|
+
AISEARCH_NULL_STATE_SUGGESTION = 4;
|
312
|
+
AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
|
313
|
+
AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
|
314
|
+
AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
|
315
|
+
AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
|
316
|
+
AIVOICE_SEARCH_BAR = 9;
|
317
|
+
AIVOICE_FAVICON = 10;
|
318
|
+
AISTUDIO = 11;
|
319
|
+
DEEPLINK = 12;
|
320
|
+
NOTIFICATION = 13;
|
321
|
+
PROFILE_MESSAGE_BUTTON = 14;
|
322
|
+
FORWARD = 15;
|
323
|
+
APP_SHORTCUT = 16;
|
324
|
+
FF_FAMILY = 17;
|
325
|
+
}
|
326
|
+
message BotMetricsMetadata {
|
327
|
+
optional string destinationId = 1;
|
328
|
+
optional BotMetricsEntryPoint destinationEntryPoint = 2;
|
329
|
+
}
|
330
|
+
|
331
|
+
message BotModelMetadata {
|
332
|
+
optional ModelType modelType = 1;
|
333
|
+
optional PremiumModelStatus premiumModelStatus = 2;
|
334
|
+
enum ModelType {
|
335
|
+
UNKNOWN_TYPE = 0;
|
336
|
+
LLAMA_PROD = 1;
|
337
|
+
LLAMA_PROD_PREMIUM = 2;
|
338
|
+
}
|
339
|
+
enum PremiumModelStatus {
|
340
|
+
UNKNOWN_STATUS = 0;
|
341
|
+
AVAILABLE = 1;
|
342
|
+
QUOTA_EXCEED_LIMIT = 2;
|
343
|
+
}
|
118
344
|
}
|
119
345
|
|
120
346
|
message BotPluginMetadata {
|
@@ -125,20 +351,86 @@ message BotPluginMetadata {
|
|
125
351
|
optional string searchProviderUrl = 5;
|
126
352
|
optional uint32 referenceIndex = 6;
|
127
353
|
optional uint32 expectedLinksCount = 7;
|
128
|
-
optional
|
354
|
+
optional string searchQuery = 9;
|
355
|
+
optional MessageKey parentPluginMessageKey = 10;
|
356
|
+
optional PluginType deprecatedField = 11;
|
357
|
+
optional PluginType parentPluginType = 12;
|
358
|
+
optional string faviconCdnUrl = 13;
|
129
359
|
enum PluginType {
|
360
|
+
UNKNOWN_PLUGIN = 0;
|
130
361
|
REELS = 1;
|
131
362
|
SEARCH = 2;
|
132
363
|
}
|
133
364
|
enum SearchProvider {
|
365
|
+
UNKNOWN = 0;
|
134
366
|
BING = 1;
|
135
367
|
GOOGLE = 2;
|
368
|
+
SUPPORT = 3;
|
136
369
|
}
|
137
370
|
}
|
138
371
|
|
372
|
+
message BotProgressIndicatorMetadata {
|
373
|
+
optional string progressDescription = 1;
|
374
|
+
}
|
375
|
+
|
376
|
+
message BotPromptSuggestion {
|
377
|
+
optional string prompt = 1;
|
378
|
+
optional string promptId = 2;
|
379
|
+
}
|
380
|
+
|
381
|
+
message BotPromptSuggestions {
|
382
|
+
repeated BotPromptSuggestion suggestions = 1;
|
383
|
+
}
|
384
|
+
|
385
|
+
message BotReminderMetadata {
|
386
|
+
optional MessageKey requestMessageKey = 1;
|
387
|
+
optional ReminderAction action = 2;
|
388
|
+
optional string name = 3;
|
389
|
+
optional uint64 nextTriggerTimestamp = 4;
|
390
|
+
optional ReminderFrequency frequency = 5;
|
391
|
+
enum ReminderAction {
|
392
|
+
NOTIFY = 1;
|
393
|
+
CREATE = 2;
|
394
|
+
DELETE = 3;
|
395
|
+
UPDATE = 4;
|
396
|
+
}
|
397
|
+
enum ReminderFrequency {
|
398
|
+
ONCE = 1;
|
399
|
+
DAILY = 2;
|
400
|
+
WEEKLY = 3;
|
401
|
+
BIWEEKLY = 4;
|
402
|
+
MONTHLY = 5;
|
403
|
+
}
|
404
|
+
}
|
405
|
+
|
406
|
+
message BotRenderingMetadata {
|
407
|
+
repeated Keyword keywords = 1;
|
408
|
+
message Keyword {
|
409
|
+
optional string value = 1;
|
410
|
+
repeated string associatedPrompts = 2;
|
411
|
+
}
|
412
|
+
|
413
|
+
}
|
414
|
+
|
415
|
+
message BotSessionMetadata {
|
416
|
+
optional string sessionId = 1;
|
417
|
+
optional BotSessionSource sessionSource = 2;
|
418
|
+
}
|
419
|
+
|
420
|
+
enum BotSessionSource {
|
421
|
+
NONE = 0;
|
422
|
+
NULL_STATE = 1;
|
423
|
+
TYPEAHEAD = 2;
|
424
|
+
USER_INPUT = 3;
|
425
|
+
EMU_FLASH = 4;
|
426
|
+
EMU_FLASH_FOLLOWUP = 5;
|
427
|
+
VOICE = 6;
|
428
|
+
}
|
139
429
|
message BotSuggestedPromptMetadata {
|
140
430
|
repeated string suggestedPrompts = 1;
|
141
431
|
optional uint32 selectedPromptIndex = 2;
|
432
|
+
optional BotPromptSuggestions promptSuggestions = 3;
|
433
|
+
optional string selectedPromptId = 4;
|
142
434
|
}
|
143
435
|
|
144
436
|
message CallLogRecord {
|
@@ -206,6 +498,11 @@ message CertChain {
|
|
206
498
|
|
207
499
|
}
|
208
500
|
|
501
|
+
message ChatLockSettings {
|
502
|
+
optional bool hideLockedChats = 1;
|
503
|
+
optional UserPassword secretCode = 2;
|
504
|
+
}
|
505
|
+
|
209
506
|
message ChatRowOpaqueData {
|
210
507
|
optional DraftMessage draftMessage = 1;
|
211
508
|
message DraftMessage {
|
@@ -245,6 +542,18 @@ message ChatRowOpaqueData {
|
|
245
542
|
|
246
543
|
}
|
247
544
|
|
545
|
+
message Citation {
|
546
|
+
required string title = 1;
|
547
|
+
required string subtitle = 2;
|
548
|
+
required string cmsId = 3;
|
549
|
+
required string imageUrl = 4;
|
550
|
+
}
|
551
|
+
|
552
|
+
message ClientPairingProps {
|
553
|
+
optional bool isChatDbLidMigrated = 1;
|
554
|
+
optional bool isSyncdPureLidSession = 2;
|
555
|
+
}
|
556
|
+
|
248
557
|
message ClientPayload {
|
249
558
|
optional uint64 username = 1;
|
250
559
|
optional bool passive = 3;
|
@@ -273,6 +582,7 @@ message ClientPayload {
|
|
273
582
|
optional int32 yearClass = 36;
|
274
583
|
optional int32 memClass = 37;
|
275
584
|
optional InteropData interopData = 38;
|
585
|
+
optional TrafficAnonymization trafficAnonymization = 40;
|
276
586
|
enum ConnectReason {
|
277
587
|
PUSH = 0;
|
278
588
|
USER_ACTIVATED = 1;
|
@@ -308,6 +618,7 @@ message ClientPayload {
|
|
308
618
|
HARDCODED = 2;
|
309
619
|
OVERRIDE = 3;
|
310
620
|
FALLBACK = 4;
|
621
|
+
MNS = 5;
|
311
622
|
}
|
312
623
|
}
|
313
624
|
|
@@ -330,6 +641,7 @@ message ClientPayload {
|
|
330
641
|
message InteropData {
|
331
642
|
optional uint64 accountId = 1;
|
332
643
|
optional bytes token = 2;
|
644
|
+
optional bool enableReadReceipts = 3;
|
333
645
|
}
|
334
646
|
|
335
647
|
enum Product {
|
@@ -338,6 +650,10 @@ message ClientPayload {
|
|
338
650
|
INTEROP = 2;
|
339
651
|
INTEROP_MSGR = 3;
|
340
652
|
}
|
653
|
+
enum TrafficAnonymization {
|
654
|
+
OFF = 0;
|
655
|
+
STANDARD = 1;
|
656
|
+
}
|
341
657
|
message UserAgent {
|
342
658
|
optional Platform platform = 1;
|
343
659
|
optional AppVersion appVersion = 2;
|
@@ -354,6 +670,7 @@ message ClientPayload {
|
|
354
670
|
optional string deviceBoard = 13;
|
355
671
|
optional string deviceExpId = 14;
|
356
672
|
optional DeviceType deviceType = 15;
|
673
|
+
optional string deviceModelType = 16;
|
357
674
|
message AppVersion {
|
358
675
|
optional uint32 primary = 1;
|
359
676
|
optional uint32 secondary = 2;
|
@@ -426,6 +743,7 @@ message ClientPayload {
|
|
426
743
|
WIN_STORE = 2;
|
427
744
|
DARWIN = 3;
|
428
745
|
WIN32 = 4;
|
746
|
+
WIN_HYBRID = 5;
|
429
747
|
}
|
430
748
|
message WebdPayload {
|
431
749
|
optional bool usesParticipantInKey = 1;
|
@@ -450,6 +768,21 @@ message CommentMetadata {
|
|
450
768
|
optional uint32 replyCount = 2;
|
451
769
|
}
|
452
770
|
|
771
|
+
message CompanionCommitment {
|
772
|
+
optional bytes hash = 1;
|
773
|
+
}
|
774
|
+
|
775
|
+
message CompanionEphemeralIdentity {
|
776
|
+
optional bytes publicKey = 1;
|
777
|
+
optional DeviceProps.PlatformType deviceType = 2;
|
778
|
+
optional string ref = 3;
|
779
|
+
}
|
780
|
+
|
781
|
+
message Config {
|
782
|
+
map<uint32, Field> field = 1;
|
783
|
+
optional uint32 version = 2;
|
784
|
+
}
|
785
|
+
|
453
786
|
message ContextInfo {
|
454
787
|
optional string stanzaId = 1;
|
455
788
|
optional string participant = 2;
|
@@ -484,6 +817,15 @@ message ContextInfo {
|
|
484
817
|
optional string smbClientCampaignId = 45;
|
485
818
|
optional string smbServerCampaignId = 46;
|
486
819
|
optional DataSharingContext dataSharingContext = 47;
|
820
|
+
optional bool alwaysShowAdAttribution = 48;
|
821
|
+
optional FeatureEligibilities featureEligibilities = 49;
|
822
|
+
optional string entryPointConversionExternalSource = 50;
|
823
|
+
optional string entryPointConversionExternalMedium = 51;
|
824
|
+
optional string ctwaSignals = 54;
|
825
|
+
optional bytes ctwaPayload = 55;
|
826
|
+
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
827
|
+
optional StatusAttributionType statusAttributionType = 57;
|
828
|
+
optional UrlTrackingMap urlTrackingMap = 58;
|
487
829
|
message AdReplyInfo {
|
488
830
|
optional string advertiserName = 1;
|
489
831
|
optional MediaType mediaType = 2;
|
@@ -502,6 +844,16 @@ message ContextInfo {
|
|
502
844
|
|
503
845
|
message DataSharingContext {
|
504
846
|
optional bool showMmDisclosure = 1;
|
847
|
+
optional string encryptedSignalTokenConsented = 2;
|
848
|
+
repeated Parameters parameters = 3;
|
849
|
+
message Parameters {
|
850
|
+
optional string key = 1;
|
851
|
+
optional string stringData = 2;
|
852
|
+
optional int64 intData = 3;
|
853
|
+
optional float floatData = 4;
|
854
|
+
optional ContextInfo.DataSharingContext.Parameters contents = 5;
|
855
|
+
}
|
856
|
+
|
505
857
|
}
|
506
858
|
|
507
859
|
message ExternalAdReplyInfo {
|
@@ -519,6 +871,14 @@ message ContextInfo {
|
|
519
871
|
optional bool showAdAttribution = 12;
|
520
872
|
optional string ctwaClid = 13;
|
521
873
|
optional string ref = 14;
|
874
|
+
optional bool clickToWhatsappCall = 15;
|
875
|
+
optional bool adContextPreviewDismissed = 16;
|
876
|
+
optional string sourceApp = 17;
|
877
|
+
optional bool automatedGreetingMessageShown = 18;
|
878
|
+
optional string greetingMessageBody = 19;
|
879
|
+
optional string ctaPayload = 20;
|
880
|
+
optional bool disableNudge = 21;
|
881
|
+
optional string originalImageUrl = 22;
|
522
882
|
enum MediaType {
|
523
883
|
NONE = 0;
|
524
884
|
IMAGE = 1;
|
@@ -526,6 +886,19 @@ message ContextInfo {
|
|
526
886
|
}
|
527
887
|
}
|
528
888
|
|
889
|
+
message FeatureEligibilities {
|
890
|
+
optional bool cannotBeReactedTo = 1;
|
891
|
+
optional bool cannotBeRanked = 2;
|
892
|
+
optional bool canRequestFeedback = 3;
|
893
|
+
optional bool canBeReshared = 4;
|
894
|
+
}
|
895
|
+
|
896
|
+
message ForwardedAIBotMessageInfo {
|
897
|
+
optional string botName = 1;
|
898
|
+
optional string botJid = 2;
|
899
|
+
optional string creatorName = 3;
|
900
|
+
}
|
901
|
+
|
529
902
|
message ForwardedNewsletterMessageInfo {
|
530
903
|
optional string newsletterJid = 1;
|
531
904
|
optional int32 serverMessageId = 2;
|
@@ -539,6 +912,11 @@ message ContextInfo {
|
|
539
912
|
}
|
540
913
|
}
|
541
914
|
|
915
|
+
enum StatusAttributionType {
|
916
|
+
NONE = 0;
|
917
|
+
RESHARED_FROM_MENTION = 1;
|
918
|
+
RESHARED_FROM_POST = 2;
|
919
|
+
}
|
542
920
|
message UTMInfo {
|
543
921
|
optional string utmSource = 1;
|
544
922
|
optional string utmCampaign = 2;
|
@@ -592,6 +970,10 @@ message Conversation {
|
|
592
970
|
optional string username = 43;
|
593
971
|
optional string lidOriginType = 44;
|
594
972
|
optional uint32 commentsCount = 45;
|
973
|
+
optional bool locked = 46;
|
974
|
+
optional PrivacySystemMessage systemMessageToInsert = 47;
|
975
|
+
optional bool capiCreatedGroup = 48;
|
976
|
+
optional string accountLid = 49;
|
595
977
|
enum EndOfHistoryTransferType {
|
596
978
|
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
597
979
|
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
@@ -599,6 +981,15 @@ message Conversation {
|
|
599
981
|
}
|
600
982
|
}
|
601
983
|
|
984
|
+
message DeviceCapabilities {
|
985
|
+
optional ChatLockSupportLevel chatLockSupportLevel = 1;
|
986
|
+
enum ChatLockSupportLevel {
|
987
|
+
NONE = 0;
|
988
|
+
MINIMAL = 1;
|
989
|
+
FULL = 2;
|
990
|
+
}
|
991
|
+
}
|
992
|
+
|
602
993
|
message DeviceConsistencyCodeMessage {
|
603
994
|
optional uint32 generation = 1;
|
604
995
|
optional bytes signature = 2;
|
@@ -638,6 +1029,12 @@ message DeviceProps {
|
|
638
1029
|
optional bool supportCallLogHistory = 6;
|
639
1030
|
optional bool supportBotUserAgentChatHistory = 7;
|
640
1031
|
optional bool supportCagReactionsAndPolls = 8;
|
1032
|
+
optional bool supportBizHostedMsg = 9;
|
1033
|
+
optional bool supportRecentSyncChunkMessageCountTuning = 10;
|
1034
|
+
optional bool supportHostedGroupMsg = 11;
|
1035
|
+
optional bool supportFbidBotChatHistory = 12;
|
1036
|
+
optional bool supportAddOnHistorySyncMigration = 13;
|
1037
|
+
optional bool supportMessageAssociation = 14;
|
641
1038
|
}
|
642
1039
|
|
643
1040
|
enum PlatformType {
|
@@ -664,6 +1061,8 @@ message DeviceProps {
|
|
664
1061
|
AR_DEVICE = 20;
|
665
1062
|
UWP = 21;
|
666
1063
|
VR = 22;
|
1064
|
+
CLOUD_API = 23;
|
1065
|
+
SMARTGLASSES = 24;
|
667
1066
|
}
|
668
1067
|
}
|
669
1068
|
|
@@ -684,14 +1083,50 @@ message DisappearingMode {
|
|
684
1083
|
ACCOUNT_SETTING = 2;
|
685
1084
|
BULK_CHANGE = 3;
|
686
1085
|
BIZ_SUPPORTS_FB_HOSTING = 4;
|
1086
|
+
UNKNOWN_GROUPS = 5;
|
1087
|
+
}
|
1088
|
+
}
|
1089
|
+
|
1090
|
+
message EmbeddedContent {
|
1091
|
+
oneof content {
|
1092
|
+
EmbeddedMessage embeddedMessage = 1;
|
1093
|
+
EmbeddedMusic embeddedMusic = 2;
|
687
1094
|
}
|
688
1095
|
}
|
689
1096
|
|
1097
|
+
message EmbeddedMessage {
|
1098
|
+
optional string stanzaId = 1;
|
1099
|
+
optional Message message = 2;
|
1100
|
+
}
|
1101
|
+
|
1102
|
+
message EmbeddedMusic {
|
1103
|
+
optional string musicContentMediaId = 1;
|
1104
|
+
optional string songId = 2;
|
1105
|
+
optional string author = 3;
|
1106
|
+
optional string title = 4;
|
1107
|
+
optional string artworkDirectPath = 5;
|
1108
|
+
optional bytes artworkSha256 = 6;
|
1109
|
+
optional bytes artworkEncSha256 = 7;
|
1110
|
+
optional bytes artworkMediaKey = 11;
|
1111
|
+
optional string artistAttribution = 8;
|
1112
|
+
optional bytes countryBlocklist = 9;
|
1113
|
+
optional bool isExplicit = 10;
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
message EncryptedPairingRequest {
|
1117
|
+
optional bytes encryptedPayload = 1;
|
1118
|
+
optional bytes iv = 2;
|
1119
|
+
}
|
1120
|
+
|
690
1121
|
message EphemeralSetting {
|
691
1122
|
optional sfixed32 duration = 1;
|
692
1123
|
optional sfixed64 timestamp = 2;
|
693
1124
|
}
|
694
1125
|
|
1126
|
+
message EventAdditionalMetadata {
|
1127
|
+
optional bool isStale = 1;
|
1128
|
+
}
|
1129
|
+
|
695
1130
|
message EventResponse {
|
696
1131
|
optional MessageKey eventResponseMessageKey = 1;
|
697
1132
|
optional int64 timestampMs = 2;
|
@@ -713,6 +1148,14 @@ message ExternalBlobReference {
|
|
713
1148
|
optional bytes fileEncSha256 = 6;
|
714
1149
|
}
|
715
1150
|
|
1151
|
+
message Field {
|
1152
|
+
optional uint32 minVersion = 1;
|
1153
|
+
optional uint32 maxVersion = 2;
|
1154
|
+
optional uint32 notReportableMinVersion = 3;
|
1155
|
+
optional bool isMessage = 4;
|
1156
|
+
map<uint32, Field> subfield = 5;
|
1157
|
+
}
|
1158
|
+
|
716
1159
|
message GlobalSettings {
|
717
1160
|
optional WallpaperSettings lightThemeWallpaper = 1;
|
718
1161
|
optional MediaVisibility mediaVisibility = 2;
|
@@ -732,6 +1175,7 @@ message GlobalSettings {
|
|
732
1175
|
optional int32 photoQualityMode = 16;
|
733
1176
|
optional NotificationSettings individualNotificationSettings = 17;
|
734
1177
|
optional NotificationSettings groupNotificationSettings = 18;
|
1178
|
+
optional ChatLockSettings chatLockSettings = 19;
|
735
1179
|
}
|
736
1180
|
|
737
1181
|
message GroupMention {
|
@@ -787,6 +1231,8 @@ message HistorySync {
|
|
787
1231
|
repeated CallLogRecord callLogRecords = 13;
|
788
1232
|
optional BotAIWaitListState aiWaitListState = 14;
|
789
1233
|
repeated PhoneNumberToLIDMapping phoneNumberToLidMappings = 15;
|
1234
|
+
optional string companionMetaNonce = 16;
|
1235
|
+
optional bytes shareableChatIdentifierEncryptionKey = 17;
|
790
1236
|
enum BotAIWaitListState {
|
791
1237
|
IN_WAITLIST = 0;
|
792
1238
|
AI_AVAILABLE = 1;
|
@@ -846,9 +1292,12 @@ message IdentityKeyPairStructure {
|
|
846
1292
|
message InteractiveAnnotation {
|
847
1293
|
repeated Point polygonVertices = 1;
|
848
1294
|
optional bool shouldSkipConfirmation = 4;
|
1295
|
+
optional EmbeddedContent embeddedContent = 5;
|
849
1296
|
oneof action {
|
850
1297
|
Location location = 2;
|
851
1298
|
ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
|
1299
|
+
bool embeddedAction = 6;
|
1300
|
+
TapLinkAction tapAction = 7;
|
852
1301
|
}
|
853
1302
|
}
|
854
1303
|
|
@@ -878,6 +1327,25 @@ message KeyId {
|
|
878
1327
|
optional bytes id = 1;
|
879
1328
|
}
|
880
1329
|
|
1330
|
+
message LIDMigrationMapping {
|
1331
|
+
required uint64 pn = 1;
|
1332
|
+
required uint64 assignedLid = 2;
|
1333
|
+
optional uint64 latestLid = 3;
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
message LIDMigrationMappingSyncMessage {
|
1337
|
+
optional bytes encodedMappingPayload = 1;
|
1338
|
+
}
|
1339
|
+
|
1340
|
+
message LIDMigrationMappingSyncPayload {
|
1341
|
+
repeated LIDMigrationMapping pnToLidMappings = 1;
|
1342
|
+
}
|
1343
|
+
|
1344
|
+
message LegacyMessage {
|
1345
|
+
optional Message.EventResponseMessage eventResponseMessage = 1;
|
1346
|
+
optional Message.PollVoteMessage pollVote = 2;
|
1347
|
+
}
|
1348
|
+
|
881
1349
|
message LocalizedName {
|
882
1350
|
optional string lg = 1;
|
883
1351
|
optional string lc = 2;
|
@@ -894,38 +1362,6 @@ message MediaData {
|
|
894
1362
|
optional string localPath = 1;
|
895
1363
|
}
|
896
1364
|
|
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
1365
|
message MediaNotifyMessage {
|
930
1366
|
optional string expressPathUrl = 1;
|
931
1367
|
optional bytes fileEncSha256 = 2;
|
@@ -936,6 +1372,7 @@ message MediaRetryNotification {
|
|
936
1372
|
optional string stanzaId = 1;
|
937
1373
|
optional string directPath = 2;
|
938
1374
|
optional ResultType result = 3;
|
1375
|
+
optional bytes messageSecret = 4;
|
939
1376
|
enum ResultType {
|
940
1377
|
GENERAL_ERROR = 0;
|
941
1378
|
SUCCESS = 1;
|
@@ -1013,11 +1450,31 @@ message Message {
|
|
1013
1450
|
optional BCallMessage bcallMessage = 72;
|
1014
1451
|
optional FutureProofMessage lottieStickerMessage = 74;
|
1015
1452
|
optional EventMessage eventMessage = 75;
|
1453
|
+
optional EncEventResponseMessage encEventResponseMessage = 76;
|
1016
1454
|
optional CommentMessage commentMessage = 77;
|
1017
1455
|
optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
|
1018
|
-
optional ExtendedTextMessageWithParentKey extendedTextMessageWithParentKey = 79;
|
1019
1456
|
optional PlaceholderMessage placeholderMessage = 80;
|
1020
|
-
optional
|
1457
|
+
optional SecretEncryptedMessage secretEncryptedMessage = 82;
|
1458
|
+
optional AlbumMessage albumMessage = 83;
|
1459
|
+
optional FutureProofMessage eventCoverImage = 85;
|
1460
|
+
optional StickerPackMessage stickerPackMessage = 86;
|
1461
|
+
optional FutureProofMessage statusMentionMessage = 87;
|
1462
|
+
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
|
1463
|
+
optional FutureProofMessage pollCreationOptionImageMessage = 90;
|
1464
|
+
optional FutureProofMessage associatedChildMessage = 91;
|
1465
|
+
optional FutureProofMessage groupStatusMentionMessage = 92;
|
1466
|
+
optional FutureProofMessage pollCreationMessageV4 = 93;
|
1467
|
+
optional FutureProofMessage pollCreationMessageV5 = 94;
|
1468
|
+
optional FutureProofMessage statusAddYours = 95;
|
1469
|
+
optional FutureProofMessage groupStatusMessage = 96;
|
1470
|
+
optional AIRichResponseMessage richResponseMessage = 97;
|
1471
|
+
optional StatusNotificationMessage statusNotificationMessage = 98;
|
1472
|
+
message AlbumMessage {
|
1473
|
+
optional uint32 expectedImageCount = 2;
|
1474
|
+
optional uint32 expectedVideoCount = 3;
|
1475
|
+
optional ContextInfo contextInfo = 17;
|
1476
|
+
}
|
1477
|
+
|
1021
1478
|
message AppStateFatalExceptionNotification {
|
1022
1479
|
repeated string collectionNames = 1;
|
1023
1480
|
optional int64 timestamp = 2;
|
@@ -1068,6 +1525,7 @@ message Message {
|
|
1068
1525
|
optional bytes waveform = 19;
|
1069
1526
|
optional fixed32 backgroundArgb = 20;
|
1070
1527
|
optional bool viewOnce = 21;
|
1528
|
+
optional string accessibilityLabel = 22;
|
1071
1529
|
}
|
1072
1530
|
|
1073
1531
|
message BCallMessage {
|
@@ -1088,6 +1546,7 @@ message Message {
|
|
1088
1546
|
optional string text = 3;
|
1089
1547
|
optional uint64 kindNegative = 4;
|
1090
1548
|
optional uint64 kindPositive = 5;
|
1549
|
+
optional ReportKind kindReport = 6;
|
1091
1550
|
enum BotFeedbackKind {
|
1092
1551
|
BOT_FEEDBACK_POSITIVE = 0;
|
1093
1552
|
BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
|
@@ -1099,6 +1558,9 @@ message Message {
|
|
1099
1558
|
BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
|
1100
1559
|
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
|
1101
1560
|
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
|
1561
|
+
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
|
1562
|
+
BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
|
1563
|
+
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
|
1102
1564
|
}
|
1103
1565
|
enum BotFeedbackKindMultipleNegative {
|
1104
1566
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
|
@@ -1114,6 +1576,9 @@ message Message {
|
|
1114
1576
|
enum BotFeedbackKindMultiplePositive {
|
1115
1577
|
BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
|
1116
1578
|
}
|
1579
|
+
enum ReportKind {
|
1580
|
+
GENERIC = 0;
|
1581
|
+
}
|
1117
1582
|
}
|
1118
1583
|
|
1119
1584
|
message ButtonsMessage {
|
@@ -1179,6 +1644,8 @@ message Message {
|
|
1179
1644
|
optional string conversionSource = 2;
|
1180
1645
|
optional bytes conversionData = 3;
|
1181
1646
|
optional uint32 conversionDelaySeconds = 4;
|
1647
|
+
optional string ctwaSignals = 5;
|
1648
|
+
optional bytes ctwaPayload = 6;
|
1182
1649
|
}
|
1183
1650
|
|
1184
1651
|
message CallLogMessage {
|
@@ -1218,6 +1685,18 @@ message Message {
|
|
1218
1685
|
optional string id = 2;
|
1219
1686
|
}
|
1220
1687
|
|
1688
|
+
message CloudAPIThreadControlNotification {
|
1689
|
+
optional CloudAPIThreadControl status = 1;
|
1690
|
+
optional int64 senderNotificationTimestampMs = 2;
|
1691
|
+
optional string consumerLid = 3;
|
1692
|
+
optional string consumerPhoneNumber = 4;
|
1693
|
+
enum CloudAPIThreadControl {
|
1694
|
+
UNKNOWN = 0;
|
1695
|
+
CONTROL_PASSED = 1;
|
1696
|
+
CONTROL_TAKEN = 2;
|
1697
|
+
}
|
1698
|
+
}
|
1699
|
+
|
1221
1700
|
message CommentMessage {
|
1222
1701
|
optional Message message = 1;
|
1223
1702
|
optional MessageKey targetMessageKey = 2;
|
@@ -1266,6 +1745,7 @@ message Message {
|
|
1266
1745
|
optional uint32 thumbnailHeight = 18;
|
1267
1746
|
optional uint32 thumbnailWidth = 19;
|
1268
1747
|
optional string caption = 20;
|
1748
|
+
optional string accessibilityLabel = 21;
|
1269
1749
|
}
|
1270
1750
|
|
1271
1751
|
message EncCommentMessage {
|
@@ -1274,7 +1754,7 @@ message Message {
|
|
1274
1754
|
optional bytes encIv = 3;
|
1275
1755
|
}
|
1276
1756
|
|
1277
|
-
message
|
1757
|
+
message EncEventResponseMessage {
|
1278
1758
|
optional MessageKey eventCreationMessageKey = 1;
|
1279
1759
|
optional bytes encPayload = 2;
|
1280
1760
|
optional bytes encIv = 3;
|
@@ -1286,11 +1766,6 @@ message Message {
|
|
1286
1766
|
optional bytes encIv = 3;
|
1287
1767
|
}
|
1288
1768
|
|
1289
|
-
message EventEditMessage {
|
1290
|
-
optional Message.EventMessage eventEditMessage = 1;
|
1291
|
-
optional int64 editTimestampMs = 2;
|
1292
|
-
}
|
1293
|
-
|
1294
1769
|
message EventMessage {
|
1295
1770
|
optional ContextInfo contextInfo = 1;
|
1296
1771
|
optional bool isCanceled = 2;
|
@@ -1299,27 +1774,25 @@ message Message {
|
|
1299
1774
|
optional Message.LocationMessage location = 5;
|
1300
1775
|
optional string joinLink = 6;
|
1301
1776
|
optional int64 startTime = 7;
|
1777
|
+
optional int64 endTime = 8;
|
1778
|
+
optional bool extraGuestsAllowed = 9;
|
1302
1779
|
}
|
1303
1780
|
|
1304
1781
|
message EventResponseMessage {
|
1305
1782
|
optional EventResponseType response = 1;
|
1306
1783
|
optional int64 timestampMs = 2;
|
1784
|
+
optional int32 extraGuestCount = 3;
|
1307
1785
|
enum EventResponseType {
|
1308
1786
|
UNKNOWN = 0;
|
1309
1787
|
GOING = 1;
|
1310
1788
|
NOT_GOING = 2;
|
1789
|
+
MAYBE = 3;
|
1311
1790
|
}
|
1312
1791
|
}
|
1313
1792
|
|
1314
|
-
message EventUpdateMessage {
|
1315
|
-
optional Message.EventResponseMessage response = 1;
|
1316
|
-
optional Message.EventEditMessage edit = 2;
|
1317
|
-
}
|
1318
|
-
|
1319
1793
|
message ExtendedTextMessage {
|
1320
1794
|
optional string text = 1;
|
1321
1795
|
optional string matchedText = 2;
|
1322
|
-
optional string canonicalUrl = 4;
|
1323
1796
|
optional string description = 5;
|
1324
1797
|
optional string title = 6;
|
1325
1798
|
optional fixed32 textArgb = 7;
|
@@ -1341,6 +1814,9 @@ message Message {
|
|
1341
1814
|
optional bytes inviteLinkParentGroupThumbnailV2 = 28;
|
1342
1815
|
optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
|
1343
1816
|
optional bool viewOnce = 30;
|
1817
|
+
optional uint32 videoHeight = 31;
|
1818
|
+
optional uint32 videoWidth = 32;
|
1819
|
+
optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
|
1344
1820
|
enum FontType {
|
1345
1821
|
SYSTEM = 0;
|
1346
1822
|
SYSTEM_TEXT = 1;
|
@@ -1362,12 +1838,13 @@ message Message {
|
|
1362
1838
|
VIDEO = 1;
|
1363
1839
|
PLACEHOLDER = 4;
|
1364
1840
|
IMAGE = 5;
|
1841
|
+
PAYMENT_LINKS = 6;
|
1842
|
+
PROFILE = 7;
|
1365
1843
|
}
|
1366
1844
|
}
|
1367
1845
|
|
1368
|
-
message
|
1369
|
-
optional
|
1370
|
-
optional Message.ExtendedTextMessage extendedTextMessage = 2;
|
1846
|
+
message FullHistorySyncOnDemandRequestMetadata {
|
1847
|
+
optional string requestId = 1;
|
1371
1848
|
}
|
1372
1849
|
|
1373
1850
|
message FutureProofMessage {
|
@@ -1461,6 +1938,8 @@ message Message {
|
|
1461
1938
|
optional int64 oldestMsgInChunkTimestampSec = 10;
|
1462
1939
|
optional bytes initialHistBootstrapInlinePayload = 11;
|
1463
1940
|
optional string peerDataRequestSessionId = 12;
|
1941
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
|
1942
|
+
optional string encHandle = 14;
|
1464
1943
|
enum HistorySyncType {
|
1465
1944
|
INITIAL_BOOTSTRAP = 0;
|
1466
1945
|
INITIAL_STATUS_V3 = 1;
|
@@ -1469,6 +1948,7 @@ message Message {
|
|
1469
1948
|
PUSH_NAME = 4;
|
1470
1949
|
NON_BLOCKING_DATA = 5;
|
1471
1950
|
ON_DEMAND = 6;
|
1951
|
+
NO_HISTORY = 7;
|
1472
1952
|
}
|
1473
1953
|
}
|
1474
1954
|
|
@@ -1500,6 +1980,13 @@ message Message {
|
|
1500
1980
|
optional bytes thumbnailEncSha256 = 28;
|
1501
1981
|
optional string staticUrl = 29;
|
1502
1982
|
repeated InteractiveAnnotation annotations = 30;
|
1983
|
+
optional ImageSourceType imageSourceType = 31;
|
1984
|
+
optional string accessibilityLabel = 32;
|
1985
|
+
enum ImageSourceType {
|
1986
|
+
USER_IMAGE = 0;
|
1987
|
+
AI_GENERATED = 1;
|
1988
|
+
AI_MODIFIED = 2;
|
1989
|
+
}
|
1503
1990
|
}
|
1504
1991
|
|
1505
1992
|
message InitialSecurityNotificationSettingSync {
|
@@ -1511,6 +1998,7 @@ message Message {
|
|
1511
1998
|
optional Body body = 2;
|
1512
1999
|
optional Footer footer = 3;
|
1513
2000
|
optional ContextInfo contextInfo = 15;
|
2001
|
+
optional UrlTrackingMap urlTrackingMap = 16;
|
1514
2002
|
oneof interactiveMessage {
|
1515
2003
|
Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
|
1516
2004
|
Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
|
@@ -1546,6 +2034,7 @@ message Message {
|
|
1546
2034
|
bytes jpegThumbnail = 6;
|
1547
2035
|
Message.VideoMessage videoMessage = 7;
|
1548
2036
|
Message.LocationMessage locationMessage = 8;
|
2037
|
+
Message.ProductMessage productMessage = 9;
|
1549
2038
|
}
|
1550
2039
|
}
|
1551
2040
|
|
@@ -1711,6 +2200,16 @@ message Message {
|
|
1711
2200
|
optional ContextInfo contextInfo = 17;
|
1712
2201
|
}
|
1713
2202
|
|
2203
|
+
message MMSThumbnailMetadata {
|
2204
|
+
optional string thumbnailDirectPath = 1;
|
2205
|
+
optional bytes thumbnailSha256 = 2;
|
2206
|
+
optional bytes thumbnailEncSha256 = 3;
|
2207
|
+
optional bytes mediaKey = 4;
|
2208
|
+
optional int64 mediaKeyTimestamp = 5;
|
2209
|
+
optional uint32 thumbnailHeight = 6;
|
2210
|
+
optional uint32 thumbnailWidth = 7;
|
2211
|
+
}
|
2212
|
+
|
1714
2213
|
message MessageHistoryBundle {
|
1715
2214
|
optional string mimetype = 2;
|
1716
2215
|
optional bytes fileSha256 = 3;
|
@@ -1728,6 +2227,7 @@ message Message {
|
|
1728
2227
|
optional bytes jpegThumbnail = 3;
|
1729
2228
|
optional string caption = 4;
|
1730
2229
|
optional int64 inviteExpiration = 5;
|
2230
|
+
optional ContextInfo contextInfo = 6;
|
1731
2231
|
}
|
1732
2232
|
|
1733
2233
|
message OrderMessage {
|
@@ -1772,12 +2272,19 @@ message Message {
|
|
1772
2272
|
repeated RequestUrlPreview requestUrlPreview = 3;
|
1773
2273
|
optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
|
1774
2274
|
repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
|
2275
|
+
optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
|
2276
|
+
message FullHistorySyncOnDemandRequest {
|
2277
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
2278
|
+
optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
|
2279
|
+
}
|
2280
|
+
|
1775
2281
|
message HistorySyncOnDemandRequest {
|
1776
2282
|
optional string chatJid = 1;
|
1777
2283
|
optional string oldestMsgId = 2;
|
1778
2284
|
optional bool oldestMsgFromMe = 3;
|
1779
2285
|
optional int32 onDemandMsgCount = 4;
|
1780
2286
|
optional int64 oldestMsgTimestampMs = 5;
|
2287
|
+
optional string accountLid = 6;
|
1781
2288
|
}
|
1782
2289
|
|
1783
2290
|
message PlaceholderMessageResendRequest {
|
@@ -1804,12 +2311,32 @@ message Message {
|
|
1804
2311
|
optional Message.StickerMessage stickerMessage = 2;
|
1805
2312
|
optional LinkPreviewResponse linkPreviewResponse = 3;
|
1806
2313
|
optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
|
2314
|
+
optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
|
2315
|
+
optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
|
2316
|
+
optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
|
2317
|
+
message CompanionMetaNonceFetchResponse {
|
2318
|
+
optional string nonce = 1;
|
2319
|
+
}
|
2320
|
+
|
2321
|
+
message FullHistorySyncOnDemandRequestResponse {
|
2322
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
2323
|
+
optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
|
2324
|
+
}
|
2325
|
+
|
2326
|
+
enum FullHistorySyncOnDemandResponseCode {
|
2327
|
+
REQUEST_SUCCESS = 0;
|
2328
|
+
REQUEST_TIME_EXPIRED = 1;
|
2329
|
+
DECLINED_SHARING_HISTORY = 2;
|
2330
|
+
GENERIC_ERROR = 3;
|
2331
|
+
ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
|
2332
|
+
ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
|
2333
|
+
ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
|
2334
|
+
}
|
1807
2335
|
message LinkPreviewResponse {
|
1808
2336
|
optional string url = 1;
|
1809
2337
|
optional string title = 2;
|
1810
2338
|
optional string description = 3;
|
1811
2339
|
optional bytes thumbData = 4;
|
1812
|
-
optional string canonicalUrl = 5;
|
1813
2340
|
optional string matchText = 6;
|
1814
2341
|
optional string previewType = 7;
|
1815
2342
|
optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
|
@@ -1829,6 +2356,11 @@ message Message {
|
|
1829
2356
|
optional bytes webMessageInfoBytes = 1;
|
1830
2357
|
}
|
1831
2358
|
|
2359
|
+
message WaffleNonceFetchResponse {
|
2360
|
+
optional string nonce = 1;
|
2361
|
+
optional string waEntFbid = 2;
|
2362
|
+
}
|
2363
|
+
|
1832
2364
|
}
|
1833
2365
|
|
1834
2366
|
}
|
@@ -1839,6 +2371,9 @@ message Message {
|
|
1839
2371
|
GENERATE_LINK_PREVIEW = 2;
|
1840
2372
|
HISTORY_SYNC_ON_DEMAND = 3;
|
1841
2373
|
PLACEHOLDER_MESSAGE_RESEND = 4;
|
2374
|
+
WAFFLE_LINKING_NONCE_FETCH = 5;
|
2375
|
+
FULL_HISTORY_SYNC_ON_DEMAND = 6;
|
2376
|
+
COMPANION_META_NONCE_FETCH = 7;
|
1842
2377
|
}
|
1843
2378
|
message PinInChatMessage {
|
1844
2379
|
optional MessageKey key = 1;
|
@@ -1858,16 +2393,29 @@ message Message {
|
|
1858
2393
|
}
|
1859
2394
|
}
|
1860
2395
|
|
2396
|
+
enum PollContentType {
|
2397
|
+
UNKNOWN = 0;
|
2398
|
+
TEXT = 1;
|
2399
|
+
IMAGE = 2;
|
2400
|
+
}
|
1861
2401
|
message PollCreationMessage {
|
1862
2402
|
optional bytes encKey = 1;
|
1863
2403
|
optional string name = 2;
|
1864
2404
|
repeated Option options = 3;
|
1865
2405
|
optional uint32 selectableOptionsCount = 4;
|
1866
2406
|
optional ContextInfo contextInfo = 5;
|
2407
|
+
optional Message.PollContentType pollContentType = 6;
|
2408
|
+
optional PollType pollType = 7;
|
2409
|
+
optional Option correctAnswer = 8;
|
1867
2410
|
message Option {
|
1868
2411
|
optional string optionName = 1;
|
2412
|
+
optional string optionHash = 2;
|
1869
2413
|
}
|
1870
2414
|
|
2415
|
+
enum PollType {
|
2416
|
+
POLL = 0;
|
2417
|
+
QUIZ = 1;
|
2418
|
+
}
|
1871
2419
|
}
|
1872
2420
|
|
1873
2421
|
message PollEncValue {
|
@@ -1875,6 +2423,17 @@ message Message {
|
|
1875
2423
|
optional bytes encIv = 2;
|
1876
2424
|
}
|
1877
2425
|
|
2426
|
+
message PollResultSnapshotMessage {
|
2427
|
+
optional string name = 1;
|
2428
|
+
repeated PollVote pollVotes = 2;
|
2429
|
+
optional ContextInfo contextInfo = 3;
|
2430
|
+
message PollVote {
|
2431
|
+
optional string optionName = 1;
|
2432
|
+
optional int64 optionVoteCount = 2;
|
2433
|
+
}
|
2434
|
+
|
2435
|
+
}
|
2436
|
+
|
1878
2437
|
message PollUpdateMessage {
|
1879
2438
|
optional MessageKey pollCreationMessageKey = 1;
|
1880
2439
|
optional Message.PollEncValue vote = 2;
|
@@ -1914,6 +2473,7 @@ message Message {
|
|
1914
2473
|
optional uint32 productImageCount = 9;
|
1915
2474
|
optional string firstImageId = 11;
|
1916
2475
|
optional int64 salePriceAmount1000 = 12;
|
2476
|
+
optional string signedUrl = 13;
|
1917
2477
|
}
|
1918
2478
|
|
1919
2479
|
}
|
@@ -1937,6 +2497,8 @@ message Message {
|
|
1937
2497
|
optional string invokerJid = 19;
|
1938
2498
|
optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
|
1939
2499
|
optional MediaNotifyMessage mediaNotifyMessage = 21;
|
2500
|
+
optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
|
2501
|
+
optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
|
1940
2502
|
enum Type {
|
1941
2503
|
REVOKE = 0;
|
1942
2504
|
EPHEMERAL_SETTING = 3;
|
@@ -1954,6 +2516,11 @@ message Message {
|
|
1954
2516
|
REQUEST_WELCOME_MESSAGE = 18;
|
1955
2517
|
BOT_FEEDBACK_MESSAGE = 19;
|
1956
2518
|
MEDIA_NOTIFY_MESSAGE = 20;
|
2519
|
+
CLOUD_API_THREAD_CONTROL_NOTIFICATION = 21;
|
2520
|
+
LID_MIGRATION_MAPPING_SYNC = 22;
|
2521
|
+
REMINDER_MESSAGE = 23;
|
2522
|
+
BOT_MEMU_ONBOARDING_MESSAGE = 24;
|
2523
|
+
STATUS_MENTION_MESSAGE = 25;
|
1957
2524
|
}
|
1958
2525
|
}
|
1959
2526
|
|
@@ -2006,6 +2573,17 @@ message Message {
|
|
2006
2573
|
}
|
2007
2574
|
}
|
2008
2575
|
|
2576
|
+
message SecretEncryptedMessage {
|
2577
|
+
optional MessageKey targetMessageKey = 1;
|
2578
|
+
optional bytes encPayload = 2;
|
2579
|
+
optional bytes encIv = 3;
|
2580
|
+
optional SecretEncType secretEncType = 4;
|
2581
|
+
enum SecretEncType {
|
2582
|
+
UNKNOWN = 0;
|
2583
|
+
EVENT_EDIT = 1;
|
2584
|
+
}
|
2585
|
+
}
|
2586
|
+
|
2009
2587
|
message SendPaymentMessage {
|
2010
2588
|
optional Message noteMessage = 2;
|
2011
2589
|
optional MessageKey requestMessageKey = 3;
|
@@ -2017,6 +2595,17 @@ message Message {
|
|
2017
2595
|
optional bytes axolotlSenderKeyDistributionMessage = 2;
|
2018
2596
|
}
|
2019
2597
|
|
2598
|
+
message StatusNotificationMessage {
|
2599
|
+
optional MessageKey responseMessageKey = 1;
|
2600
|
+
optional MessageKey originalMessageKey = 2;
|
2601
|
+
optional StatusNotificationType type = 3;
|
2602
|
+
enum StatusNotificationType {
|
2603
|
+
UNKNOWN = 0;
|
2604
|
+
STATUS_ADD_YOURS = 1;
|
2605
|
+
STATUS_RESHARE = 2;
|
2606
|
+
}
|
2607
|
+
}
|
2608
|
+
|
2020
2609
|
message StickerMessage {
|
2021
2610
|
optional string url = 1;
|
2022
2611
|
optional bytes fileSha256 = 2;
|
@@ -2037,6 +2626,46 @@ message Message {
|
|
2037
2626
|
optional bool isAvatar = 19;
|
2038
2627
|
optional bool isAiSticker = 20;
|
2039
2628
|
optional bool isLottie = 21;
|
2629
|
+
optional string accessibilityLabel = 22;
|
2630
|
+
}
|
2631
|
+
|
2632
|
+
message StickerPackMessage {
|
2633
|
+
optional string stickerPackId = 1;
|
2634
|
+
optional string name = 2;
|
2635
|
+
optional string publisher = 3;
|
2636
|
+
repeated Sticker stickers = 4;
|
2637
|
+
optional uint64 fileLength = 5;
|
2638
|
+
optional bytes fileSha256 = 6;
|
2639
|
+
optional bytes fileEncSha256 = 7;
|
2640
|
+
optional bytes mediaKey = 8;
|
2641
|
+
optional string directPath = 9;
|
2642
|
+
optional string caption = 10;
|
2643
|
+
optional ContextInfo contextInfo = 11;
|
2644
|
+
optional string packDescription = 12;
|
2645
|
+
optional int64 mediaKeyTimestamp = 13;
|
2646
|
+
optional string trayIconFileName = 14;
|
2647
|
+
optional string thumbnailDirectPath = 15;
|
2648
|
+
optional bytes thumbnailSha256 = 16;
|
2649
|
+
optional bytes thumbnailEncSha256 = 17;
|
2650
|
+
optional uint32 thumbnailHeight = 18;
|
2651
|
+
optional uint32 thumbnailWidth = 19;
|
2652
|
+
optional string imageDataHash = 20;
|
2653
|
+
optional uint64 stickerPackSize = 21;
|
2654
|
+
optional StickerPackOrigin stickerPackOrigin = 22;
|
2655
|
+
message Sticker {
|
2656
|
+
optional string fileName = 1;
|
2657
|
+
optional bool isAnimated = 2;
|
2658
|
+
repeated string emojis = 3;
|
2659
|
+
optional string accessibilityLabel = 4;
|
2660
|
+
optional bool isLottie = 5;
|
2661
|
+
optional string mimetype = 6;
|
2662
|
+
}
|
2663
|
+
|
2664
|
+
enum StickerPackOrigin {
|
2665
|
+
FIRST_PARTY = 0;
|
2666
|
+
THIRD_PARTY = 1;
|
2667
|
+
USER_CREATED = 2;
|
2668
|
+
}
|
2040
2669
|
}
|
2041
2670
|
|
2042
2671
|
message StickerSyncRMRMessage {
|
@@ -2117,6 +2746,8 @@ message Message {
|
|
2117
2746
|
optional bytes thumbnailEncSha256 = 23;
|
2118
2747
|
optional string staticUrl = 24;
|
2119
2748
|
repeated InteractiveAnnotation annotations = 25;
|
2749
|
+
optional string accessibilityLabel = 26;
|
2750
|
+
repeated ProcessedVideo processedVideos = 27;
|
2120
2751
|
enum Attribution {
|
2121
2752
|
NONE = 0;
|
2122
2753
|
GIPHY = 1;
|
@@ -2126,8 +2757,45 @@ message Message {
|
|
2126
2757
|
|
2127
2758
|
}
|
2128
2759
|
|
2760
|
+
message MessageAddOn {
|
2761
|
+
optional MessageAddOnType messageAddOnType = 1;
|
2762
|
+
optional Message messageAddOn = 2;
|
2763
|
+
optional int64 senderTimestampMs = 3;
|
2764
|
+
optional int64 serverTimestampMs = 4;
|
2765
|
+
optional WebMessageInfo.Status status = 5;
|
2766
|
+
optional MessageAddOnContextInfo addOnContextInfo = 6;
|
2767
|
+
optional MessageKey messageAddOnKey = 7;
|
2768
|
+
optional LegacyMessage legacyMessage = 8;
|
2769
|
+
enum MessageAddOnType {
|
2770
|
+
UNDEFINED = 0;
|
2771
|
+
REACTION = 1;
|
2772
|
+
EVENT_RESPONSE = 2;
|
2773
|
+
POLL_UPDATE = 3;
|
2774
|
+
PIN_IN_CHAT = 4;
|
2775
|
+
}
|
2776
|
+
}
|
2777
|
+
|
2129
2778
|
message MessageAddOnContextInfo {
|
2130
2779
|
optional uint32 messageAddOnDurationInSecs = 1;
|
2780
|
+
optional MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 2;
|
2781
|
+
}
|
2782
|
+
|
2783
|
+
message MessageAssociation {
|
2784
|
+
optional AssociationType associationType = 1;
|
2785
|
+
optional MessageKey parentMessageKey = 2;
|
2786
|
+
optional int32 messageIndex = 3;
|
2787
|
+
enum AssociationType {
|
2788
|
+
UNKNOWN = 0;
|
2789
|
+
MEDIA_ALBUM = 1;
|
2790
|
+
BOT_PLUGIN = 2;
|
2791
|
+
EVENT_COVER_IMAGE = 3;
|
2792
|
+
STATUS_POLL = 4;
|
2793
|
+
HD_VIDEO_DUAL_UPLOAD = 5;
|
2794
|
+
STATUS_TAPPABLE_MESSAGE = 6;
|
2795
|
+
MEDIA_POLL = 7;
|
2796
|
+
STATUS_ADD_YOURS = 8;
|
2797
|
+
STATUS_NOTIFICATION = 9;
|
2798
|
+
}
|
2131
2799
|
}
|
2132
2800
|
|
2133
2801
|
message MessageContextInfo {
|
@@ -2139,6 +2807,14 @@ message MessageContextInfo {
|
|
2139
2807
|
optional bytes botMessageSecret = 6;
|
2140
2808
|
optional BotMetadata botMetadata = 7;
|
2141
2809
|
optional int32 reportingTokenVersion = 8;
|
2810
|
+
optional MessageAddonExpiryType messageAddOnExpiryType = 9;
|
2811
|
+
optional MessageAssociation messageAssociation = 10;
|
2812
|
+
optional bool capiCreatedGroup = 11;
|
2813
|
+
optional string supportPayload = 12;
|
2814
|
+
enum MessageAddonExpiryType {
|
2815
|
+
STATIC = 1;
|
2816
|
+
DEPENDENT_ON_PARENT = 2;
|
2817
|
+
}
|
2142
2818
|
}
|
2143
2819
|
|
2144
2820
|
message MessageKey {
|
@@ -2168,7 +2844,6 @@ message MsgOpaqueData {
|
|
2168
2844
|
optional double lat = 7;
|
2169
2845
|
optional int32 paymentAmount1000 = 8;
|
2170
2846
|
optional string paymentNoteMsgBody = 9;
|
2171
|
-
optional string canonicalUrl = 10;
|
2172
2847
|
optional string matchedText = 11;
|
2173
2848
|
optional string title = 12;
|
2174
2849
|
optional string description = 13;
|
@@ -2184,6 +2859,8 @@ message MsgOpaqueData {
|
|
2184
2859
|
optional string pollUpdateParentKey = 23;
|
2185
2860
|
optional PollEncValue encPollVote = 24;
|
2186
2861
|
optional bool isSentCagPollCreation = 28;
|
2862
|
+
optional PollContentType pollContentType = 42;
|
2863
|
+
optional PollVotesSnapshot pollVotesSnapshot = 41;
|
2187
2864
|
optional string encReactionTargetMessageKey = 25;
|
2188
2865
|
optional bytes encReactionEncPayload = 26;
|
2189
2866
|
optional bytes encReactionEncIv = 27;
|
@@ -2191,8 +2868,39 @@ message MsgOpaqueData {
|
|
2191
2868
|
optional string targetMessageKey = 30;
|
2192
2869
|
optional bytes encPayload = 31;
|
2193
2870
|
optional bytes encIv = 32;
|
2871
|
+
optional string eventName = 33;
|
2872
|
+
optional bool isEventCanceled = 34;
|
2873
|
+
optional string eventDescription = 35;
|
2874
|
+
optional string eventJoinLink = 36;
|
2875
|
+
optional int64 eventStartTime = 37;
|
2876
|
+
optional EventLocation eventLocation = 38;
|
2877
|
+
optional int64 eventEndTime = 40;
|
2878
|
+
message EventLocation {
|
2879
|
+
optional double degreesLatitude = 1;
|
2880
|
+
optional double degreesLongitude = 2;
|
2881
|
+
optional string name = 3;
|
2882
|
+
optional string address = 4;
|
2883
|
+
optional string url = 5;
|
2884
|
+
optional bytes jpegThumbnail = 6;
|
2885
|
+
}
|
2886
|
+
|
2887
|
+
enum PollContentType {
|
2888
|
+
UNKNOWN = 0;
|
2889
|
+
TEXT = 1;
|
2890
|
+
IMAGE = 2;
|
2891
|
+
}
|
2194
2892
|
message PollOption {
|
2195
2893
|
optional string name = 1;
|
2894
|
+
optional string hash = 2;
|
2895
|
+
}
|
2896
|
+
|
2897
|
+
message PollVoteSnapshot {
|
2898
|
+
optional MsgOpaqueData.PollOption option = 1;
|
2899
|
+
optional int32 optionVoteCount = 2;
|
2900
|
+
}
|
2901
|
+
|
2902
|
+
message PollVotesSnapshot {
|
2903
|
+
repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
|
2196
2904
|
}
|
2197
2905
|
|
2198
2906
|
}
|
@@ -2231,6 +2939,12 @@ message NotificationSettings {
|
|
2231
2939
|
optional string callVibrate = 6;
|
2232
2940
|
}
|
2233
2941
|
|
2942
|
+
message PairingRequest {
|
2943
|
+
optional bytes companionPublicKey = 1;
|
2944
|
+
optional bytes companionIdentityKey = 2;
|
2945
|
+
optional bytes advSecret = 3;
|
2946
|
+
}
|
2947
|
+
|
2234
2948
|
message PastParticipant {
|
2235
2949
|
optional string userJid = 1;
|
2236
2950
|
optional LeaveReason leaveReason = 2;
|
@@ -2266,6 +2980,8 @@ message PatchDebugData {
|
|
2266
2980
|
WEB = 4;
|
2267
2981
|
UWP = 5;
|
2268
2982
|
DARWIN = 6;
|
2983
|
+
IPAD = 7;
|
2984
|
+
WEAROS = 8;
|
2269
2985
|
}
|
2270
2986
|
}
|
2271
2987
|
|
@@ -2429,46 +3145,43 @@ message PremiumMessageInfo {
|
|
2429
3145
|
optional string serverCampaignId = 1;
|
2430
3146
|
}
|
2431
3147
|
|
2432
|
-
message
|
2433
|
-
optional
|
2434
|
-
optional
|
3148
|
+
message PrimaryEphemeralIdentity {
|
3149
|
+
optional bytes publicKey = 1;
|
3150
|
+
optional bytes nonce = 2;
|
2435
3151
|
}
|
2436
3152
|
|
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;
|
3153
|
+
enum PrivacySystemMessage {
|
3154
|
+
E2EE_MSG = 1;
|
3155
|
+
NE2EE_SELF = 2;
|
3156
|
+
NE2EE_OTHER = 3;
|
3157
|
+
}
|
3158
|
+
message ProcessedVideo {
|
3159
|
+
optional string directPath = 1;
|
3160
|
+
optional bytes fileSha256 = 2;
|
3161
|
+
optional uint32 height = 3;
|
3162
|
+
optional uint32 width = 4;
|
3163
|
+
optional uint64 fileLength = 5;
|
3164
|
+
optional uint32 bitrate = 6;
|
3165
|
+
optional VideoQuality quality = 7;
|
3166
|
+
repeated string capabilities = 8;
|
3167
|
+
enum VideoQuality {
|
3168
|
+
UNDEFINED = 0;
|
3169
|
+
LOW = 1;
|
3170
|
+
MID = 2;
|
3171
|
+
HIGH = 3;
|
2469
3172
|
}
|
2470
3173
|
}
|
2471
3174
|
|
3175
|
+
message ProloguePayload {
|
3176
|
+
optional bytes companionEphemeralIdentity = 1;
|
3177
|
+
optional CompanionCommitment commitment = 2;
|
3178
|
+
}
|
3179
|
+
|
3180
|
+
message Pushname {
|
3181
|
+
optional string id = 1;
|
3182
|
+
optional string pushname = 2;
|
3183
|
+
}
|
3184
|
+
|
2472
3185
|
message Reaction {
|
2473
3186
|
optional MessageKey key = 1;
|
2474
3187
|
optional string text = 2;
|
@@ -2487,6 +3200,13 @@ message RecordStructure {
|
|
2487
3200
|
repeated SessionStructure previousSessions = 2;
|
2488
3201
|
}
|
2489
3202
|
|
3203
|
+
message Reportable {
|
3204
|
+
optional uint32 minVersion = 1;
|
3205
|
+
optional uint32 maxVersion = 2;
|
3206
|
+
optional uint32 notReportableMinVersion = 3;
|
3207
|
+
optional bool never = 4;
|
3208
|
+
}
|
3209
|
+
|
2490
3210
|
message ReportingTokenInfo {
|
2491
3211
|
optional bytes reportingTag = 1;
|
2492
3212
|
}
|
@@ -2600,6 +3320,10 @@ message SignedPreKeyRecordStructure {
|
|
2600
3320
|
optional fixed64 timestamp = 5;
|
2601
3321
|
}
|
2602
3322
|
|
3323
|
+
message StatusMentionMessage {
|
3324
|
+
optional Message quotedStatus = 1;
|
3325
|
+
}
|
3326
|
+
|
2603
3327
|
message StatusPSA {
|
2604
3328
|
required uint64 campaignId = 44;
|
2605
3329
|
optional uint64 campaignExpirationTimestamp = 45;
|
@@ -2617,6 +3341,7 @@ message StickerMetadata {
|
|
2617
3341
|
optional uint64 fileLength = 9;
|
2618
3342
|
optional float weight = 10;
|
2619
3343
|
optional int64 lastStickerSentTs = 11;
|
3344
|
+
optional bool isLottie = 12;
|
2620
3345
|
}
|
2621
3346
|
|
2622
3347
|
message SyncActionData {
|
@@ -2670,6 +3395,17 @@ message SyncActionValue {
|
|
2670
3395
|
optional LabelReorderingAction labelReorderingAction = 47;
|
2671
3396
|
optional PaymentInfoAction paymentInfoAction = 48;
|
2672
3397
|
optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
|
3398
|
+
optional LockChatAction lockChatAction = 50;
|
3399
|
+
optional ChatLockSettings chatLockSettings = 51;
|
3400
|
+
optional WamoUserIdentifierAction wamoUserIdentifierAction = 52;
|
3401
|
+
optional PrivacySettingDisableLinkPreviewsAction privacySettingDisableLinkPreviewsAction = 53;
|
3402
|
+
optional DeviceCapabilities deviceCapabilities = 54;
|
3403
|
+
optional NoteEditAction noteEditAction = 55;
|
3404
|
+
optional FavoritesAction favoritesAction = 56;
|
3405
|
+
optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
|
3406
|
+
optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
|
3407
|
+
optional UsernameChatStartModeAction usernameChatStartMode = 59;
|
3408
|
+
optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
|
2673
3409
|
message AgentAction {
|
2674
3410
|
optional string name = 1;
|
2675
3411
|
optional int32 deviceID = 2;
|
@@ -2746,6 +3482,14 @@ message SyncActionValue {
|
|
2746
3482
|
optional bool isOptIn = 1;
|
2747
3483
|
}
|
2748
3484
|
|
3485
|
+
message FavoritesAction {
|
3486
|
+
repeated Favorite favorites = 1;
|
3487
|
+
message Favorite {
|
3488
|
+
optional string id = 1;
|
3489
|
+
}
|
3490
|
+
|
3491
|
+
}
|
3492
|
+
|
2749
3493
|
message KeyExpiration {
|
2750
3494
|
optional int32 expiredKeyEpoch = 1;
|
2751
3495
|
}
|
@@ -2760,6 +3504,16 @@ message SyncActionValue {
|
|
2760
3504
|
optional int32 predefinedId = 3;
|
2761
3505
|
optional bool deleted = 4;
|
2762
3506
|
optional int32 orderIndex = 5;
|
3507
|
+
optional bool isActive = 6;
|
3508
|
+
optional ListType type = 7;
|
3509
|
+
enum ListType {
|
3510
|
+
NONE = 0;
|
3511
|
+
UNREAD = 1;
|
3512
|
+
GROUPS = 2;
|
3513
|
+
FAVORITES = 3;
|
3514
|
+
PREDEFINED = 4;
|
3515
|
+
CUSTOM = 5;
|
3516
|
+
}
|
2763
3517
|
}
|
2764
3518
|
|
2765
3519
|
message LabelReorderingAction {
|
@@ -2770,6 +3524,10 @@ message SyncActionValue {
|
|
2770
3524
|
optional string locale = 1;
|
2771
3525
|
}
|
2772
3526
|
|
3527
|
+
message LockChatAction {
|
3528
|
+
optional bool locked = 1;
|
3529
|
+
}
|
3530
|
+
|
2773
3531
|
message MarkChatAsReadAction {
|
2774
3532
|
optional bool read = 1;
|
2775
3533
|
optional SyncActionValue.SyncActionMessageRange messageRange = 2;
|
@@ -2792,12 +3550,45 @@ message SyncActionValue {
|
|
2792
3550
|
optional int32 repliedCount = 1;
|
2793
3551
|
}
|
2794
3552
|
|
3553
|
+
message MerchantPaymentPartnerAction {
|
3554
|
+
required Status status = 1;
|
3555
|
+
required string country = 2;
|
3556
|
+
optional string gatewayName = 3;
|
3557
|
+
optional string credentialId = 4;
|
3558
|
+
enum Status {
|
3559
|
+
ACTIVE = 0;
|
3560
|
+
INACTIVE = 1;
|
3561
|
+
}
|
3562
|
+
}
|
3563
|
+
|
2795
3564
|
message MuteAction {
|
2796
3565
|
optional bool muted = 1;
|
2797
3566
|
optional int64 muteEndTimestamp = 2;
|
2798
3567
|
optional bool autoMuted = 3;
|
2799
3568
|
}
|
2800
3569
|
|
3570
|
+
message NoteEditAction {
|
3571
|
+
optional NoteType type = 1;
|
3572
|
+
optional string chatJid = 2;
|
3573
|
+
optional int64 createdAt = 3;
|
3574
|
+
optional bool deleted = 4;
|
3575
|
+
optional string unstructuredContent = 5;
|
3576
|
+
enum NoteType {
|
3577
|
+
UNSTRUCTURED = 1;
|
3578
|
+
STRUCTURED = 2;
|
3579
|
+
}
|
3580
|
+
}
|
3581
|
+
|
3582
|
+
message NotificationActivitySettingAction {
|
3583
|
+
optional NotificationActivitySetting notificationActivitySetting = 1;
|
3584
|
+
enum NotificationActivitySetting {
|
3585
|
+
DEFAULT_ALL_MESSAGES = 0;
|
3586
|
+
ALL_MESSAGES = 1;
|
3587
|
+
HIGHLIGHTS = 2;
|
3588
|
+
DEFAULT_HIGHLIGHTS = 3;
|
3589
|
+
}
|
3590
|
+
}
|
3591
|
+
|
2801
3592
|
message NuxAction {
|
2802
3593
|
optional bool acknowledged = 1;
|
2803
3594
|
}
|
@@ -2822,6 +3613,10 @@ message SyncActionValue {
|
|
2822
3613
|
optional string version = 1;
|
2823
3614
|
}
|
2824
3615
|
|
3616
|
+
message PrivacySettingDisableLinkPreviewsAction {
|
3617
|
+
optional bool isPreviewsDisabled = 1;
|
3618
|
+
}
|
3619
|
+
|
2825
3620
|
message PrivacySettingRelayAllCalls {
|
2826
3621
|
optional bool isEnabled = 1;
|
2827
3622
|
}
|
@@ -2875,6 +3670,7 @@ message SyncActionValue {
|
|
2875
3670
|
optional uint64 fileLength = 8;
|
2876
3671
|
optional bool isFavorite = 9;
|
2877
3672
|
optional uint32 deviceIdHint = 10;
|
3673
|
+
optional bool isLottie = 11;
|
2878
3674
|
}
|
2879
3675
|
|
2880
3676
|
message SubscriptionAction {
|
@@ -2906,6 +3702,25 @@ message SyncActionValue {
|
|
2906
3702
|
optional bool muted = 1;
|
2907
3703
|
}
|
2908
3704
|
|
3705
|
+
message UsernameChatStartModeAction {
|
3706
|
+
optional ChatStartMode chatStartMode = 1;
|
3707
|
+
enum ChatStartMode {
|
3708
|
+
LID = 1;
|
3709
|
+
PN = 2;
|
3710
|
+
}
|
3711
|
+
}
|
3712
|
+
|
3713
|
+
message WaffleAccountLinkStateAction {
|
3714
|
+
optional AccountLinkState linkState = 2;
|
3715
|
+
enum AccountLinkState {
|
3716
|
+
ACTIVE = 0;
|
3717
|
+
}
|
3718
|
+
}
|
3719
|
+
|
3720
|
+
message WamoUserIdentifierAction {
|
3721
|
+
optional string identifier = 1;
|
3722
|
+
}
|
3723
|
+
|
2909
3724
|
}
|
2910
3725
|
|
2911
3726
|
message SyncdIndex {
|
@@ -2958,6 +3773,11 @@ message SyncdVersion {
|
|
2958
3773
|
optional uint64 version = 1;
|
2959
3774
|
}
|
2960
3775
|
|
3776
|
+
message TapLinkAction {
|
3777
|
+
optional string title = 1;
|
3778
|
+
optional string tapUrl = 2;
|
3779
|
+
}
|
3780
|
+
|
2961
3781
|
message TemplateButton {
|
2962
3782
|
optional uint32 index = 4;
|
2963
3783
|
oneof button {
|
@@ -2982,6 +3802,45 @@ message TemplateButton {
|
|
2982
3802
|
|
2983
3803
|
}
|
2984
3804
|
|
3805
|
+
message UrlTrackingMap {
|
3806
|
+
repeated UrlTrackingMapElement urlTrackingMapElements = 1;
|
3807
|
+
message UrlTrackingMapElement {
|
3808
|
+
optional string originalUrl = 1;
|
3809
|
+
optional string unconsentedUsersUrl = 2;
|
3810
|
+
optional string consentedUsersUrl = 3;
|
3811
|
+
optional uint32 cardIndex = 4;
|
3812
|
+
}
|
3813
|
+
|
3814
|
+
}
|
3815
|
+
|
3816
|
+
message UserPassword {
|
3817
|
+
optional Encoding encoding = 1;
|
3818
|
+
optional Transformer transformer = 2;
|
3819
|
+
repeated TransformerArg transformerArg = 3;
|
3820
|
+
optional bytes transformedData = 4;
|
3821
|
+
enum Encoding {
|
3822
|
+
UTF8 = 0;
|
3823
|
+
UTF8_BROKEN = 1;
|
3824
|
+
}
|
3825
|
+
enum Transformer {
|
3826
|
+
NONE = 0;
|
3827
|
+
PBKDF2_HMAC_SHA512 = 1;
|
3828
|
+
PBKDF2_HMAC_SHA384 = 2;
|
3829
|
+
}
|
3830
|
+
message TransformerArg {
|
3831
|
+
optional string key = 1;
|
3832
|
+
optional Value value = 2;
|
3833
|
+
message Value {
|
3834
|
+
oneof value {
|
3835
|
+
bytes asBlob = 1;
|
3836
|
+
uint32 asUnsignedInteger = 2;
|
3837
|
+
}
|
3838
|
+
}
|
3839
|
+
|
3840
|
+
}
|
3841
|
+
|
3842
|
+
}
|
3843
|
+
|
2985
3844
|
message UserReceipt {
|
2986
3845
|
required string userJid = 1;
|
2987
3846
|
optional int64 receiptTimestamp = 2;
|
@@ -3117,6 +3976,16 @@ message WebMessageInfo {
|
|
3117
3976
|
repeated EventResponse eventResponses = 61;
|
3118
3977
|
optional ReportingTokenInfo reportingTokenInfo = 62;
|
3119
3978
|
optional uint64 newsletterServerId = 63;
|
3979
|
+
optional EventAdditionalMetadata eventAdditionalMetadata = 64;
|
3980
|
+
optional bool isMentionedInStatus = 65;
|
3981
|
+
repeated string statusMentions = 66;
|
3982
|
+
optional MessageKey targetMessageId = 67;
|
3983
|
+
repeated MessageAddOn messageAddOns = 68;
|
3984
|
+
optional StatusMentionMessage statusMentionMessageInfo = 69;
|
3985
|
+
optional bool isSupportAiMessage = 70;
|
3986
|
+
repeated string statusMentionSources = 71;
|
3987
|
+
repeated Citation supportAiCitations = 72;
|
3988
|
+
optional string botTargetId = 73;
|
3120
3989
|
enum BizPrivacyStatus {
|
3121
3990
|
E2EE = 0;
|
3122
3991
|
FB = 2;
|
@@ -3333,6 +4202,18 @@ message WebMessageInfo {
|
|
3333
4202
|
REMINDER_SETUP_MESSAGE = 198;
|
3334
4203
|
REMINDER_SENT_MESSAGE = 199;
|
3335
4204
|
REMINDER_CANCEL_MESSAGE = 200;
|
4205
|
+
BIZ_COEX_PRIVACY_INIT = 201;
|
4206
|
+
BIZ_COEX_PRIVACY_TRANSITION = 202;
|
4207
|
+
GROUP_DEACTIVATED = 203;
|
4208
|
+
COMMUNITY_DEACTIVATE_SIBLING_GROUP = 204;
|
4209
|
+
EVENT_UPDATED = 205;
|
4210
|
+
EVENT_CANCELED = 206;
|
4211
|
+
COMMUNITY_OWNER_UPDATED = 207;
|
4212
|
+
COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208;
|
4213
|
+
CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209;
|
4214
|
+
STATUS_MENTION = 210;
|
4215
|
+
USER_CONTROLS_SYSTEM_MESSAGE = 211;
|
4216
|
+
SUPPORT_SYSTEM_MESSAGE = 212;
|
3336
4217
|
}
|
3337
4218
|
}
|
3338
4219
|
|