@genuxofficial/baileys 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +5 -1
  3. package/WAProto/index.d.ts +19244 -2787
  4. package/WAProto/index.js +138202 -74217
  5. package/engine-requirements.js +10 -0
  6. package/lib/Defaults/baileys-version.json +1 -1
  7. package/lib/Defaults/index.d.ts +3 -5
  8. package/lib/Defaults/index.js +7 -6
  9. package/lib/Signal/libsignal.js +18 -9
  10. package/lib/Socket/Client/types.d.ts +0 -2
  11. package/lib/Socket/Client/websocket.js +1 -1
  12. package/lib/Socket/business.d.ts +65 -37
  13. package/lib/Socket/chats.d.ts +22 -18
  14. package/lib/Socket/chats.js +110 -6
  15. package/lib/Socket/groups.d.ts +30 -26
  16. package/lib/Socket/groups.js +20 -6
  17. package/lib/Socket/index.d.ts +66 -38
  18. package/lib/Socket/messages-recv.d.ts +63 -33
  19. package/lib/Socket/messages-recv.js +174 -27
  20. package/lib/Socket/messages-send.d.ts +55 -29
  21. package/lib/Socket/messages-send.js +190 -26
  22. package/lib/Socket/newsletter.d.ts +140 -0
  23. package/lib/Socket/newsletter.js +252 -0
  24. package/lib/Socket/socket.d.ts +8 -10
  25. package/lib/Socket/socket.js +26 -13
  26. package/lib/Socket/usync.d.ts +10 -12
  27. package/lib/Socket/usync.js +10 -15
  28. package/lib/Store/index.d.ts +1 -2
  29. package/lib/Store/index.js +1 -3
  30. package/lib/Store/make-in-memory-store.d.ts +1 -1
  31. package/lib/Store/make-in-memory-store.js +14 -5
  32. package/lib/Store/make-ordered-dictionary.d.ts +1 -1
  33. package/lib/Types/Auth.d.ts +0 -2
  34. package/lib/Types/Chat.d.ts +7 -0
  35. package/lib/Types/Contact.d.ts +5 -0
  36. package/lib/Types/Events.d.ts +27 -0
  37. package/lib/Types/GroupMetadata.d.ts +7 -0
  38. package/lib/Types/Label.js +1 -1
  39. package/lib/Types/LabelAssociation.js +1 -1
  40. package/lib/Types/Message.d.ts +129 -16
  41. package/lib/Types/Message.js +0 -2
  42. package/lib/Types/Newsletter.d.ts +79 -0
  43. package/lib/Types/Newsletter.js +18 -0
  44. package/lib/Types/Socket.d.ts +8 -5
  45. package/lib/Types/index.d.ts +1 -0
  46. package/lib/Types/index.js +2 -1
  47. package/lib/Utils/auth-utils.d.ts +1 -1
  48. package/lib/Utils/auth-utils.js +6 -7
  49. package/lib/Utils/business.js +2 -2
  50. package/lib/Utils/chat-utils.d.ts +8 -10
  51. package/lib/Utils/chat-utils.js +11 -0
  52. package/lib/Utils/crypto.d.ts +14 -16
  53. package/lib/Utils/crypto.js +40 -26
  54. package/lib/Utils/decode-wa-message.d.ts +5 -3
  55. package/lib/Utils/decode-wa-message.js +171 -29
  56. package/lib/Utils/event-buffer.js +1 -3
  57. package/lib/Utils/generics.d.ts +35 -9
  58. package/lib/Utils/generics.js +93 -27
  59. package/lib/Utils/history.d.ts +2 -2
  60. package/lib/Utils/link-preview.d.ts +1 -1
  61. package/lib/Utils/link-preview.js +17 -7
  62. package/lib/Utils/make-mutex.d.ts +2 -2
  63. package/lib/Utils/make-mutex.js +0 -1
  64. package/lib/Utils/messages-media.d.ts +35 -16
  65. package/lib/Utils/messages-media.js +168 -43
  66. package/lib/Utils/messages.d.ts +6 -9
  67. package/lib/Utils/messages.js +297 -37
  68. package/lib/Utils/noise-handler.d.ts +5 -7
  69. package/lib/Utils/process-message.js +2 -3
  70. package/lib/Utils/use-multi-file-auth-state.js +44 -13
  71. package/lib/Utils/validate-connection.d.ts +2 -2
  72. package/lib/Utils/validate-connection.js +1 -3
  73. package/lib/WABinary/decode.d.ts +2 -4
  74. package/lib/WABinary/decode.js +20 -9
  75. package/lib/WABinary/encode.d.ts +1 -3
  76. package/lib/WABinary/encode.js +30 -12
  77. package/lib/WABinary/generic-utils.d.ts +1 -3
  78. package/lib/WABinary/generic-utils.js +2 -2
  79. package/lib/WABinary/jid-utils.d.ts +9 -4
  80. package/lib/WABinary/jid-utils.js +25 -4
  81. package/lib/WAM/BinaryInfo.d.ts +2 -12
  82. package/lib/WAM/encode.d.ts +1 -3
  83. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  84. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +2 -2
  85. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
  86. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +5 -5
  87. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +25 -0
  88. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +53 -0
  89. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +8 -0
  90. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +24 -0
  91. package/lib/WAUSync/USyncQuery.d.ts +2 -0
  92. package/lib/WAUSync/USyncQuery.js +27 -13
  93. package/lib/WAUSync/USyncUser.d.ts +2 -0
  94. package/lib/WAUSync/USyncUser.js +4 -0
  95. package/lib/index.d.ts +2 -1
  96. package/lib/index.js +3 -1
  97. package/package.json +59 -57
  98. package/WAProto/GenerateStatics.sh +0 -4
  99. package/WAProto/WAProto.proto +0 -3344
@@ -1,3344 +0,0 @@
1
- syntax = "proto2";
2
- package proto;
3
-
4
- message ADVDeviceIdentity {
5
- optional uint32 rawId = 1;
6
- optional uint64 timestamp = 2;
7
- optional uint32 keyIndex = 3;
8
- optional ADVEncryptionType accountType = 4;
9
- optional ADVEncryptionType deviceType = 5;
10
- }
11
-
12
- enum ADVEncryptionType {
13
- E2EE = 0;
14
- HOSTED = 1;
15
- }
16
- message ADVKeyIndexList {
17
- optional uint32 rawId = 1;
18
- optional uint64 timestamp = 2;
19
- optional uint32 currentIndex = 3;
20
- repeated uint32 validIndexes = 4 [packed=true];
21
- optional ADVEncryptionType accountType = 5;
22
- }
23
-
24
- message ADVSignedDeviceIdentity {
25
- optional bytes details = 1;
26
- optional bytes accountSignatureKey = 2;
27
- optional bytes accountSignature = 3;
28
- optional bytes deviceSignature = 4;
29
- }
30
-
31
- message ADVSignedDeviceIdentityHMAC {
32
- optional bytes details = 1;
33
- optional bytes hmac = 2;
34
- optional ADVEncryptionType accountType = 3;
35
- }
36
-
37
- message ADVSignedKeyIndexList {
38
- optional bytes details = 1;
39
- optional bytes accountSignature = 2;
40
- optional bytes accountSignatureKey = 3;
41
- }
42
-
43
- message ActionLink {
44
- optional string url = 1;
45
- optional string buttonTitle = 2;
46
- }
47
-
48
- message AutoDownloadSettings {
49
- optional bool downloadImages = 1;
50
- optional bool downloadAudio = 2;
51
- optional bool downloadVideo = 3;
52
- optional bool downloadDocuments = 4;
53
- }
54
-
55
- message AvatarUserSettings {
56
- optional string fbid = 1;
57
- optional string password = 2;
58
- }
59
-
60
- message BizAccountLinkInfo {
61
- optional uint64 whatsappBizAcctFbid = 1;
62
- optional string whatsappAcctNumber = 2;
63
- optional uint64 issueTime = 3;
64
- optional HostStorageType hostStorage = 4;
65
- optional AccountType accountType = 5;
66
- enum AccountType {
67
- ENTERPRISE = 0;
68
- }
69
- enum HostStorageType {
70
- ON_PREMISE = 0;
71
- FACEBOOK = 1;
72
- }
73
- }
74
-
75
- message BizAccountPayload {
76
- optional VerifiedNameCertificate vnameCert = 1;
77
- optional bytes bizAcctLinkInfo = 2;
78
- }
79
-
80
- message BizIdentityInfo {
81
- optional VerifiedLevelValue vlevel = 1;
82
- optional VerifiedNameCertificate vnameCert = 2;
83
- optional bool signed = 3;
84
- optional bool revoked = 4;
85
- optional HostStorageType hostStorage = 5;
86
- optional ActualActorsType actualActors = 6;
87
- optional uint64 privacyModeTs = 7;
88
- optional uint64 featureControls = 8;
89
- enum ActualActorsType {
90
- SELF = 0;
91
- BSP = 1;
92
- }
93
- enum HostStorageType {
94
- ON_PREMISE = 0;
95
- FACEBOOK = 1;
96
- }
97
- enum VerifiedLevelValue {
98
- UNKNOWN = 0;
99
- LOW = 1;
100
- HIGH = 2;
101
- }
102
- }
103
-
104
- message BotAvatarMetadata {
105
- optional uint32 sentiment = 1;
106
- optional string behaviorGraph = 2;
107
- optional uint32 action = 3;
108
- optional uint32 intensity = 4;
109
- optional uint32 wordCount = 5;
110
- }
111
-
112
- message BotMetadata {
113
- optional BotAvatarMetadata avatarMetadata = 1;
114
- optional string personaId = 2;
115
- optional BotPluginMetadata pluginMetadata = 3;
116
- optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
117
- optional string invokerJid = 5;
118
- }
119
-
120
- message BotPluginMetadata {
121
- optional SearchProvider provider = 1;
122
- optional PluginType pluginType = 2;
123
- optional string thumbnailCdnUrl = 3;
124
- optional string profilePhotoCdnUrl = 4;
125
- optional string searchProviderUrl = 5;
126
- optional uint32 referenceIndex = 6;
127
- optional uint32 expectedLinksCount = 7;
128
- optional uint32 pluginVersion = 8;
129
- enum PluginType {
130
- REELS = 1;
131
- SEARCH = 2;
132
- }
133
- enum SearchProvider {
134
- BING = 1;
135
- GOOGLE = 2;
136
- }
137
- }
138
-
139
- message BotSuggestedPromptMetadata {
140
- repeated string suggestedPrompts = 1;
141
- optional uint32 selectedPromptIndex = 2;
142
- }
143
-
144
- message CallLogRecord {
145
- optional CallResult callResult = 1;
146
- optional bool isDndMode = 2;
147
- optional SilenceReason silenceReason = 3;
148
- optional int64 duration = 4;
149
- optional int64 startTime = 5;
150
- optional bool isIncoming = 6;
151
- optional bool isVideo = 7;
152
- optional bool isCallLink = 8;
153
- optional string callLinkToken = 9;
154
- optional string scheduledCallId = 10;
155
- optional string callId = 11;
156
- optional string callCreatorJid = 12;
157
- optional string groupJid = 13;
158
- repeated ParticipantInfo participants = 14;
159
- optional CallType callType = 15;
160
- enum CallResult {
161
- CONNECTED = 0;
162
- REJECTED = 1;
163
- CANCELLED = 2;
164
- ACCEPTEDELSEWHERE = 3;
165
- MISSED = 4;
166
- INVALID = 5;
167
- UNAVAILABLE = 6;
168
- UPCOMING = 7;
169
- FAILED = 8;
170
- ABANDONED = 9;
171
- ONGOING = 10;
172
- }
173
- enum CallType {
174
- REGULAR = 0;
175
- SCHEDULED_CALL = 1;
176
- VOICE_CHAT = 2;
177
- }
178
- message ParticipantInfo {
179
- optional string userJid = 1;
180
- optional CallLogRecord.CallResult callResult = 2;
181
- }
182
-
183
- enum SilenceReason {
184
- NONE = 0;
185
- SCHEDULED = 1;
186
- PRIVACY = 2;
187
- LIGHTWEIGHT = 3;
188
- }
189
- }
190
-
191
- message CertChain {
192
- optional NoiseCertificate leaf = 1;
193
- optional NoiseCertificate intermediate = 2;
194
- message NoiseCertificate {
195
- optional bytes details = 1;
196
- optional bytes signature = 2;
197
- message Details {
198
- optional uint32 serial = 1;
199
- optional uint32 issuerSerial = 2;
200
- optional bytes key = 3;
201
- optional uint64 notBefore = 4;
202
- optional uint64 notAfter = 5;
203
- }
204
-
205
- }
206
-
207
- }
208
-
209
- message ChatRowOpaqueData {
210
- optional DraftMessage draftMessage = 1;
211
- message DraftMessage {
212
- optional string text = 1;
213
- optional string omittedUrl = 2;
214
- optional CtwaContextLinkData ctwaContextLinkData = 3;
215
- optional CtwaContextData ctwaContext = 4;
216
- optional int64 timestamp = 5;
217
- message CtwaContextData {
218
- optional string conversionSource = 1;
219
- optional bytes conversionData = 2;
220
- optional string sourceUrl = 3;
221
- optional string sourceId = 4;
222
- optional string sourceType = 5;
223
- optional string title = 6;
224
- optional string description = 7;
225
- optional string thumbnail = 8;
226
- optional string thumbnailUrl = 9;
227
- optional ContextInfoExternalAdReplyInfoMediaType mediaType = 10;
228
- optional string mediaUrl = 11;
229
- optional bool isSuspiciousLink = 12;
230
- enum ContextInfoExternalAdReplyInfoMediaType {
231
- NONE = 0;
232
- IMAGE = 1;
233
- VIDEO = 2;
234
- }
235
- }
236
-
237
- message CtwaContextLinkData {
238
- optional string context = 1;
239
- optional string sourceUrl = 2;
240
- optional string icebreaker = 3;
241
- optional string phone = 4;
242
- }
243
-
244
- }
245
-
246
- }
247
-
248
- message ClientPayload {
249
- optional uint64 username = 1;
250
- optional bool passive = 3;
251
- optional UserAgent userAgent = 5;
252
- optional WebInfo webInfo = 6;
253
- optional string pushName = 7;
254
- optional sfixed32 sessionId = 9;
255
- optional bool shortConnect = 10;
256
- optional ConnectType connectType = 12;
257
- optional ConnectReason connectReason = 13;
258
- repeated int32 shards = 14;
259
- optional DNSSource dnsSource = 15;
260
- optional uint32 connectAttemptCount = 16;
261
- optional uint32 device = 18;
262
- optional DevicePairingRegistrationData devicePairingData = 19;
263
- optional Product product = 20;
264
- optional bytes fbCat = 21;
265
- optional bytes fbUserAgent = 22;
266
- optional bool oc = 23;
267
- optional int32 lc = 24;
268
- optional IOSAppExtension iosAppExtension = 30;
269
- optional uint64 fbAppId = 31;
270
- optional bytes fbDeviceId = 32;
271
- optional bool pull = 33;
272
- optional bytes paddingBytes = 34;
273
- optional int32 yearClass = 36;
274
- optional int32 memClass = 37;
275
- optional InteropData interopData = 38;
276
- enum ConnectReason {
277
- PUSH = 0;
278
- USER_ACTIVATED = 1;
279
- SCHEDULED = 2;
280
- ERROR_RECONNECT = 3;
281
- NETWORK_SWITCH = 4;
282
- PING_RECONNECT = 5;
283
- UNKNOWN = 6;
284
- }
285
- enum ConnectType {
286
- CELLULAR_UNKNOWN = 0;
287
- WIFI_UNKNOWN = 1;
288
- CELLULAR_EDGE = 100;
289
- CELLULAR_IDEN = 101;
290
- CELLULAR_UMTS = 102;
291
- CELLULAR_EVDO = 103;
292
- CELLULAR_GPRS = 104;
293
- CELLULAR_HSDPA = 105;
294
- CELLULAR_HSUPA = 106;
295
- CELLULAR_HSPA = 107;
296
- CELLULAR_CDMA = 108;
297
- CELLULAR_1XRTT = 109;
298
- CELLULAR_EHRPD = 110;
299
- CELLULAR_LTE = 111;
300
- CELLULAR_HSPAP = 112;
301
- }
302
- message DNSSource {
303
- optional DNSResolutionMethod dnsMethod = 15;
304
- optional bool appCached = 16;
305
- enum DNSResolutionMethod {
306
- SYSTEM = 0;
307
- GOOGLE = 1;
308
- HARDCODED = 2;
309
- OVERRIDE = 3;
310
- FALLBACK = 4;
311
- }
312
- }
313
-
314
- message DevicePairingRegistrationData {
315
- optional bytes eRegid = 1;
316
- optional bytes eKeytype = 2;
317
- optional bytes eIdent = 3;
318
- optional bytes eSkeyId = 4;
319
- optional bytes eSkeyVal = 5;
320
- optional bytes eSkeySig = 6;
321
- optional bytes buildHash = 7;
322
- optional bytes deviceProps = 8;
323
- }
324
-
325
- enum IOSAppExtension {
326
- SHARE_EXTENSION = 0;
327
- SERVICE_EXTENSION = 1;
328
- INTENTS_EXTENSION = 2;
329
- }
330
- message InteropData {
331
- optional uint64 accountId = 1;
332
- optional bytes token = 2;
333
- }
334
-
335
- enum Product {
336
- WHATSAPP = 0;
337
- MESSENGER = 1;
338
- INTEROP = 2;
339
- INTEROP_MSGR = 3;
340
- }
341
- message UserAgent {
342
- optional Platform platform = 1;
343
- optional AppVersion appVersion = 2;
344
- optional string mcc = 3;
345
- optional string mnc = 4;
346
- optional string osVersion = 5;
347
- optional string manufacturer = 6;
348
- optional string device = 7;
349
- optional string osBuildNumber = 8;
350
- optional string phoneId = 9;
351
- optional ReleaseChannel releaseChannel = 10;
352
- optional string localeLanguageIso6391 = 11;
353
- optional string localeCountryIso31661Alpha2 = 12;
354
- optional string deviceBoard = 13;
355
- optional string deviceExpId = 14;
356
- optional DeviceType deviceType = 15;
357
- message AppVersion {
358
- optional uint32 primary = 1;
359
- optional uint32 secondary = 2;
360
- optional uint32 tertiary = 3;
361
- optional uint32 quaternary = 4;
362
- optional uint32 quinary = 5;
363
- }
364
-
365
- enum DeviceType {
366
- PHONE = 0;
367
- TABLET = 1;
368
- DESKTOP = 2;
369
- WEARABLE = 3;
370
- VR = 4;
371
- }
372
- enum Platform {
373
- ANDROID = 0;
374
- IOS = 1;
375
- WINDOWS_PHONE = 2;
376
- BLACKBERRY = 3;
377
- BLACKBERRYX = 4;
378
- S40 = 5;
379
- S60 = 6;
380
- PYTHON_CLIENT = 7;
381
- TIZEN = 8;
382
- ENTERPRISE = 9;
383
- SMB_ANDROID = 10;
384
- KAIOS = 11;
385
- SMB_IOS = 12;
386
- WINDOWS = 13;
387
- WEB = 14;
388
- PORTAL = 15;
389
- GREEN_ANDROID = 16;
390
- GREEN_IPHONE = 17;
391
- BLUE_ANDROID = 18;
392
- BLUE_IPHONE = 19;
393
- FBLITE_ANDROID = 20;
394
- MLITE_ANDROID = 21;
395
- IGLITE_ANDROID = 22;
396
- PAGE = 23;
397
- MACOS = 24;
398
- OCULUS_MSG = 25;
399
- OCULUS_CALL = 26;
400
- MILAN = 27;
401
- CAPI = 28;
402
- WEAROS = 29;
403
- ARDEVICE = 30;
404
- VRDEVICE = 31;
405
- BLUE_WEB = 32;
406
- IPAD = 33;
407
- TEST = 34;
408
- SMART_GLASSES = 35;
409
- }
410
- enum ReleaseChannel {
411
- RELEASE = 0;
412
- BETA = 1;
413
- ALPHA = 2;
414
- DEBUG = 3;
415
- }
416
- }
417
-
418
- message WebInfo {
419
- optional string refToken = 1;
420
- optional string version = 2;
421
- optional WebdPayload webdPayload = 3;
422
- optional WebSubPlatform webSubPlatform = 4;
423
- enum WebSubPlatform {
424
- WEB_BROWSER = 0;
425
- APP_STORE = 1;
426
- WIN_STORE = 2;
427
- DARWIN = 3;
428
- WIN32 = 4;
429
- }
430
- message WebdPayload {
431
- optional bool usesParticipantInKey = 1;
432
- optional bool supportsStarredMessages = 2;
433
- optional bool supportsDocumentMessages = 3;
434
- optional bool supportsUrlMessages = 4;
435
- optional bool supportsMediaRetry = 5;
436
- optional bool supportsE2EImage = 6;
437
- optional bool supportsE2EVideo = 7;
438
- optional bool supportsE2EAudio = 8;
439
- optional bool supportsE2EDocument = 9;
440
- optional string documentTypes = 10;
441
- optional bytes features = 11;
442
- }
443
-
444
- }
445
-
446
- }
447
-
448
- message CommentMetadata {
449
- optional MessageKey commentParentKey = 1;
450
- optional uint32 replyCount = 2;
451
- }
452
-
453
- message ContextInfo {
454
- optional string stanzaId = 1;
455
- optional string participant = 2;
456
- optional Message quotedMessage = 3;
457
- optional string remoteJid = 4;
458
- repeated string mentionedJid = 15;
459
- optional string conversionSource = 18;
460
- optional bytes conversionData = 19;
461
- optional uint32 conversionDelaySeconds = 20;
462
- optional uint32 forwardingScore = 21;
463
- optional bool isForwarded = 22;
464
- optional AdReplyInfo quotedAd = 23;
465
- optional MessageKey placeholderKey = 24;
466
- optional uint32 expiration = 25;
467
- optional int64 ephemeralSettingTimestamp = 26;
468
- optional bytes ephemeralSharedSecret = 27;
469
- optional ExternalAdReplyInfo externalAdReply = 28;
470
- optional string entryPointConversionSource = 29;
471
- optional string entryPointConversionApp = 30;
472
- optional uint32 entryPointConversionDelaySeconds = 31;
473
- optional DisappearingMode disappearingMode = 32;
474
- optional ActionLink actionLink = 33;
475
- optional string groupSubject = 34;
476
- optional string parentGroupJid = 35;
477
- optional string trustBannerType = 37;
478
- optional uint32 trustBannerAction = 38;
479
- optional bool isSampled = 39;
480
- repeated GroupMention groupMentions = 40;
481
- optional UTMInfo utm = 41;
482
- optional ForwardedNewsletterMessageInfo forwardedNewsletterMessageInfo = 43;
483
- optional BusinessMessageForwardInfo businessMessageForwardInfo = 44;
484
- optional string smbClientCampaignId = 45;
485
- optional string smbServerCampaignId = 46;
486
- optional DataSharingContext dataSharingContext = 47;
487
- message AdReplyInfo {
488
- optional string advertiserName = 1;
489
- optional MediaType mediaType = 2;
490
- optional bytes jpegThumbnail = 16;
491
- optional string caption = 17;
492
- enum MediaType {
493
- NONE = 0;
494
- IMAGE = 1;
495
- VIDEO = 2;
496
- }
497
- }
498
-
499
- message BusinessMessageForwardInfo {
500
- optional string businessOwnerJid = 1;
501
- }
502
-
503
- message DataSharingContext {
504
- optional bool showMmDisclosure = 1;
505
- }
506
-
507
- message ExternalAdReplyInfo {
508
- optional string title = 1;
509
- optional string body = 2;
510
- optional MediaType mediaType = 3;
511
- optional string thumbnailUrl = 4;
512
- optional string mediaUrl = 5;
513
- optional bytes thumbnail = 6;
514
- optional string sourceType = 7;
515
- optional string sourceId = 8;
516
- optional string sourceUrl = 9;
517
- optional bool containsAutoReply = 10;
518
- optional bool renderLargerThumbnail = 11;
519
- optional bool showAdAttribution = 12;
520
- optional string ctwaClid = 13;
521
- optional string ref = 14;
522
- enum MediaType {
523
- NONE = 0;
524
- IMAGE = 1;
525
- VIDEO = 2;
526
- }
527
- }
528
-
529
- message ForwardedNewsletterMessageInfo {
530
- optional string newsletterJid = 1;
531
- optional int32 serverMessageId = 2;
532
- optional string newsletterName = 3;
533
- optional ContentType contentType = 4;
534
- optional string accessibilityText = 5;
535
- enum ContentType {
536
- UPDATE = 1;
537
- UPDATE_CARD = 2;
538
- LINK_CARD = 3;
539
- }
540
- }
541
-
542
- message UTMInfo {
543
- optional string utmSource = 1;
544
- optional string utmCampaign = 2;
545
- }
546
-
547
- }
548
-
549
- message Conversation {
550
- required string id = 1;
551
- repeated HistorySyncMsg messages = 2;
552
- optional string newJid = 3;
553
- optional string oldJid = 4;
554
- optional uint64 lastMsgTimestamp = 5;
555
- optional uint32 unreadCount = 6;
556
- optional bool readOnly = 7;
557
- optional bool endOfHistoryTransfer = 8;
558
- optional uint32 ephemeralExpiration = 9;
559
- optional int64 ephemeralSettingTimestamp = 10;
560
- optional EndOfHistoryTransferType endOfHistoryTransferType = 11;
561
- optional uint64 conversationTimestamp = 12;
562
- optional string name = 13;
563
- optional string pHash = 14;
564
- optional bool notSpam = 15;
565
- optional bool archived = 16;
566
- optional DisappearingMode disappearingMode = 17;
567
- optional uint32 unreadMentionCount = 18;
568
- optional bool markedAsUnread = 19;
569
- repeated GroupParticipant participant = 20;
570
- optional bytes tcToken = 21;
571
- optional uint64 tcTokenTimestamp = 22;
572
- optional bytes contactPrimaryIdentityKey = 23;
573
- optional uint32 pinned = 24;
574
- optional uint64 muteEndTime = 25;
575
- optional WallpaperSettings wallpaper = 26;
576
- optional MediaVisibility mediaVisibility = 27;
577
- optional uint64 tcTokenSenderTimestamp = 28;
578
- optional bool suspended = 29;
579
- optional bool terminated = 30;
580
- optional uint64 createdAt = 31;
581
- optional string createdBy = 32;
582
- optional string description = 33;
583
- optional bool support = 34;
584
- optional bool isParentGroup = 35;
585
- optional string parentGroupId = 37;
586
- optional bool isDefaultSubgroup = 36;
587
- optional string displayName = 38;
588
- optional string pnJid = 39;
589
- optional bool shareOwnPn = 40;
590
- optional bool pnhDuplicateLidThread = 41;
591
- optional string lidJid = 42;
592
- optional string username = 43;
593
- optional string lidOriginType = 44;
594
- optional uint32 commentsCount = 45;
595
- enum EndOfHistoryTransferType {
596
- COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
597
- COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
598
- COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY = 2;
599
- }
600
- }
601
-
602
- message DeviceConsistencyCodeMessage {
603
- optional uint32 generation = 1;
604
- optional bytes signature = 2;
605
- }
606
-
607
- message DeviceListMetadata {
608
- optional bytes senderKeyHash = 1;
609
- optional uint64 senderTimestamp = 2;
610
- repeated uint32 senderKeyIndexes = 3 [packed=true];
611
- optional ADVEncryptionType senderAccountType = 4;
612
- optional ADVEncryptionType receiverAccountType = 5;
613
- optional bytes recipientKeyHash = 8;
614
- optional uint64 recipientTimestamp = 9;
615
- repeated uint32 recipientKeyIndexes = 10 [packed=true];
616
- }
617
-
618
- message DeviceProps {
619
- optional string os = 1;
620
- optional AppVersion version = 2;
621
- optional PlatformType platformType = 3;
622
- optional bool requireFullSync = 4;
623
- optional HistorySyncConfig historySyncConfig = 5;
624
- message AppVersion {
625
- optional uint32 primary = 1;
626
- optional uint32 secondary = 2;
627
- optional uint32 tertiary = 3;
628
- optional uint32 quaternary = 4;
629
- optional uint32 quinary = 5;
630
- }
631
-
632
- message HistorySyncConfig {
633
- optional uint32 fullSyncDaysLimit = 1;
634
- optional uint32 fullSyncSizeMbLimit = 2;
635
- optional uint32 storageQuotaMb = 3;
636
- optional bool inlineInitialPayloadInE2EeMsg = 4;
637
- optional uint32 recentSyncDaysLimit = 5;
638
- optional bool supportCallLogHistory = 6;
639
- optional bool supportBotUserAgentChatHistory = 7;
640
- optional bool supportCagReactionsAndPolls = 8;
641
- }
642
-
643
- enum PlatformType {
644
- UNKNOWN = 0;
645
- CHROME = 1;
646
- FIREFOX = 2;
647
- IE = 3;
648
- OPERA = 4;
649
- SAFARI = 5;
650
- EDGE = 6;
651
- DESKTOP = 7;
652
- IPAD = 8;
653
- ANDROID_TABLET = 9;
654
- OHANA = 10;
655
- ALOHA = 11;
656
- CATALINA = 12;
657
- TCL_TV = 13;
658
- IOS_PHONE = 14;
659
- IOS_CATALYST = 15;
660
- ANDROID_PHONE = 16;
661
- ANDROID_AMBIGUOUS = 17;
662
- WEAR_OS = 18;
663
- AR_WRIST = 19;
664
- AR_DEVICE = 20;
665
- UWP = 21;
666
- VR = 22;
667
- }
668
- }
669
-
670
- message DisappearingMode {
671
- optional Initiator initiator = 1;
672
- optional Trigger trigger = 2;
673
- optional string initiatorDeviceJid = 3;
674
- optional bool initiatedByMe = 4;
675
- enum Initiator {
676
- CHANGED_IN_CHAT = 0;
677
- INITIATED_BY_ME = 1;
678
- INITIATED_BY_OTHER = 2;
679
- BIZ_UPGRADE_FB_HOSTING = 3;
680
- }
681
- enum Trigger {
682
- UNKNOWN = 0;
683
- CHAT_SETTING = 1;
684
- ACCOUNT_SETTING = 2;
685
- BULK_CHANGE = 3;
686
- BIZ_SUPPORTS_FB_HOSTING = 4;
687
- }
688
- }
689
-
690
- message EphemeralSetting {
691
- optional sfixed32 duration = 1;
692
- optional sfixed64 timestamp = 2;
693
- }
694
-
695
- message EventResponse {
696
- optional MessageKey eventResponseMessageKey = 1;
697
- optional int64 timestampMs = 2;
698
- optional Message.EventResponseMessage eventResponseMessage = 3;
699
- optional bool unread = 4;
700
- }
701
-
702
- message ExitCode {
703
- optional uint64 code = 1;
704
- optional string text = 2;
705
- }
706
-
707
- message ExternalBlobReference {
708
- optional bytes mediaKey = 1;
709
- optional string directPath = 2;
710
- optional string handle = 3;
711
- optional uint64 fileSizeBytes = 4;
712
- optional bytes fileSha256 = 5;
713
- optional bytes fileEncSha256 = 6;
714
- }
715
-
716
- message GlobalSettings {
717
- optional WallpaperSettings lightThemeWallpaper = 1;
718
- optional MediaVisibility mediaVisibility = 2;
719
- optional WallpaperSettings darkThemeWallpaper = 3;
720
- optional AutoDownloadSettings autoDownloadWiFi = 4;
721
- optional AutoDownloadSettings autoDownloadCellular = 5;
722
- optional AutoDownloadSettings autoDownloadRoaming = 6;
723
- optional bool showIndividualNotificationsPreview = 7;
724
- optional bool showGroupNotificationsPreview = 8;
725
- optional int32 disappearingModeDuration = 9;
726
- optional int64 disappearingModeTimestamp = 10;
727
- optional AvatarUserSettings avatarUserSettings = 11;
728
- optional int32 fontSize = 12;
729
- optional bool securityNotifications = 13;
730
- optional bool autoUnarchiveChats = 14;
731
- optional int32 videoQualityMode = 15;
732
- optional int32 photoQualityMode = 16;
733
- optional NotificationSettings individualNotificationSettings = 17;
734
- optional NotificationSettings groupNotificationSettings = 18;
735
- }
736
-
737
- message GroupMention {
738
- optional string groupJid = 1;
739
- optional string groupSubject = 2;
740
- }
741
-
742
- message GroupParticipant {
743
- required string userJid = 1;
744
- optional Rank rank = 2;
745
- enum Rank {
746
- REGULAR = 0;
747
- ADMIN = 1;
748
- SUPERADMIN = 2;
749
- }
750
- }
751
-
752
- message HandshakeMessage {
753
- optional ClientHello clientHello = 2;
754
- optional ServerHello serverHello = 3;
755
- optional ClientFinish clientFinish = 4;
756
- message ClientFinish {
757
- optional bytes static = 1;
758
- optional bytes payload = 2;
759
- }
760
-
761
- message ClientHello {
762
- optional bytes ephemeral = 1;
763
- optional bytes static = 2;
764
- optional bytes payload = 3;
765
- }
766
-
767
- message ServerHello {
768
- optional bytes ephemeral = 1;
769
- optional bytes static = 2;
770
- optional bytes payload = 3;
771
- }
772
-
773
- }
774
-
775
- message HistorySync {
776
- required HistorySyncType syncType = 1;
777
- repeated Conversation conversations = 2;
778
- repeated WebMessageInfo statusV3Messages = 3;
779
- optional uint32 chunkOrder = 5;
780
- optional uint32 progress = 6;
781
- repeated Pushname pushnames = 7;
782
- optional GlobalSettings globalSettings = 8;
783
- optional bytes threadIdUserSecret = 9;
784
- optional uint32 threadDsTimeframeOffset = 10;
785
- repeated StickerMetadata recentStickers = 11;
786
- repeated PastParticipants pastParticipants = 12;
787
- repeated CallLogRecord callLogRecords = 13;
788
- optional BotAIWaitListState aiWaitListState = 14;
789
- repeated PhoneNumberToLIDMapping phoneNumberToLidMappings = 15;
790
- enum BotAIWaitListState {
791
- IN_WAITLIST = 0;
792
- AI_AVAILABLE = 1;
793
- }
794
- enum HistorySyncType {
795
- INITIAL_BOOTSTRAP = 0;
796
- INITIAL_STATUS_V3 = 1;
797
- FULL = 2;
798
- RECENT = 3;
799
- PUSH_NAME = 4;
800
- NON_BLOCKING_DATA = 5;
801
- ON_DEMAND = 6;
802
- }
803
- }
804
-
805
- message HistorySyncMsg {
806
- optional WebMessageInfo message = 1;
807
- optional uint64 msgOrderId = 2;
808
- }
809
-
810
- message HydratedTemplateButton {
811
- optional uint32 index = 4;
812
- oneof hydratedButton {
813
- HydratedTemplateButton.HydratedQuickReplyButton quickReplyButton = 1;
814
- HydratedTemplateButton.HydratedURLButton urlButton = 2;
815
- HydratedTemplateButton.HydratedCallButton callButton = 3;
816
- }
817
- message HydratedCallButton {
818
- optional string displayText = 1;
819
- optional string phoneNumber = 2;
820
- }
821
-
822
- message HydratedQuickReplyButton {
823
- optional string displayText = 1;
824
- optional string id = 2;
825
- }
826
-
827
- message HydratedURLButton {
828
- optional string displayText = 1;
829
- optional string url = 2;
830
- optional string consentedUsersUrl = 3;
831
- optional WebviewPresentationType webviewPresentation = 4;
832
- enum WebviewPresentationType {
833
- FULL = 1;
834
- TALL = 2;
835
- COMPACT = 3;
836
- }
837
- }
838
-
839
- }
840
-
841
- message IdentityKeyPairStructure {
842
- optional bytes publicKey = 1;
843
- optional bytes privateKey = 2;
844
- }
845
-
846
- message InteractiveAnnotation {
847
- repeated Point polygonVertices = 1;
848
- optional bool shouldSkipConfirmation = 4;
849
- oneof action {
850
- Location location = 2;
851
- ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
852
- }
853
- }
854
-
855
- message KeepInChat {
856
- optional KeepType keepType = 1;
857
- optional int64 serverTimestamp = 2;
858
- optional MessageKey key = 3;
859
- optional string deviceJid = 4;
860
- optional int64 clientTimestampMs = 5;
861
- optional int64 serverTimestampMs = 6;
862
- }
863
-
864
- enum KeepType {
865
- UNKNOWN = 0;
866
- KEEP_FOR_ALL = 1;
867
- UNDO_KEEP_FOR_ALL = 2;
868
- }
869
- message KeyExchangeMessage {
870
- optional uint32 id = 1;
871
- optional bytes baseKey = 2;
872
- optional bytes ratchetKey = 3;
873
- optional bytes identityKey = 4;
874
- optional bytes baseKeySignature = 5;
875
- }
876
-
877
- message KeyId {
878
- optional bytes id = 1;
879
- }
880
-
881
- message LocalizedName {
882
- optional string lg = 1;
883
- optional string lc = 2;
884
- optional string verifiedName = 3;
885
- }
886
-
887
- message Location {
888
- optional double degreesLatitude = 1;
889
- optional double degreesLongitude = 2;
890
- optional string name = 3;
891
- }
892
-
893
- message MediaData {
894
- optional string localPath = 1;
895
- }
896
-
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
- message MediaNotifyMessage {
930
- optional string expressPathUrl = 1;
931
- optional bytes fileEncSha256 = 2;
932
- optional uint64 fileLength = 3;
933
- }
934
-
935
- message MediaRetryNotification {
936
- optional string stanzaId = 1;
937
- optional string directPath = 2;
938
- optional ResultType result = 3;
939
- enum ResultType {
940
- GENERAL_ERROR = 0;
941
- SUCCESS = 1;
942
- NOT_FOUND = 2;
943
- DECRYPTION_ERROR = 3;
944
- }
945
- }
946
-
947
- enum MediaVisibility {
948
- DEFAULT = 0;
949
- OFF = 1;
950
- ON = 2;
951
- }
952
- message Message {
953
- optional string conversation = 1;
954
- optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
955
- optional ImageMessage imageMessage = 3;
956
- optional ContactMessage contactMessage = 4;
957
- optional LocationMessage locationMessage = 5;
958
- optional ExtendedTextMessage extendedTextMessage = 6;
959
- optional DocumentMessage documentMessage = 7;
960
- optional AudioMessage audioMessage = 8;
961
- optional VideoMessage videoMessage = 9;
962
- optional Call call = 10;
963
- optional Chat chat = 11;
964
- optional ProtocolMessage protocolMessage = 12;
965
- optional ContactsArrayMessage contactsArrayMessage = 13;
966
- optional HighlyStructuredMessage highlyStructuredMessage = 14;
967
- optional SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15;
968
- optional SendPaymentMessage sendPaymentMessage = 16;
969
- optional LiveLocationMessage liveLocationMessage = 18;
970
- optional RequestPaymentMessage requestPaymentMessage = 22;
971
- optional DeclinePaymentRequestMessage declinePaymentRequestMessage = 23;
972
- optional CancelPaymentRequestMessage cancelPaymentRequestMessage = 24;
973
- optional TemplateMessage templateMessage = 25;
974
- optional StickerMessage stickerMessage = 26;
975
- optional GroupInviteMessage groupInviteMessage = 28;
976
- optional TemplateButtonReplyMessage templateButtonReplyMessage = 29;
977
- optional ProductMessage productMessage = 30;
978
- optional DeviceSentMessage deviceSentMessage = 31;
979
- optional MessageContextInfo messageContextInfo = 35;
980
- optional ListMessage listMessage = 36;
981
- optional FutureProofMessage viewOnceMessage = 37;
982
- optional OrderMessage orderMessage = 38;
983
- optional ListResponseMessage listResponseMessage = 39;
984
- optional FutureProofMessage ephemeralMessage = 40;
985
- optional InvoiceMessage invoiceMessage = 41;
986
- optional ButtonsMessage buttonsMessage = 42;
987
- optional ButtonsResponseMessage buttonsResponseMessage = 43;
988
- optional PaymentInviteMessage paymentInviteMessage = 44;
989
- optional InteractiveMessage interactiveMessage = 45;
990
- optional ReactionMessage reactionMessage = 46;
991
- optional StickerSyncRMRMessage stickerSyncRmrMessage = 47;
992
- optional InteractiveResponseMessage interactiveResponseMessage = 48;
993
- optional PollCreationMessage pollCreationMessage = 49;
994
- optional PollUpdateMessage pollUpdateMessage = 50;
995
- optional KeepInChatMessage keepInChatMessage = 51;
996
- optional FutureProofMessage documentWithCaptionMessage = 53;
997
- optional RequestPhoneNumberMessage requestPhoneNumberMessage = 54;
998
- optional FutureProofMessage viewOnceMessageV2 = 55;
999
- optional EncReactionMessage encReactionMessage = 56;
1000
- optional FutureProofMessage editedMessage = 58;
1001
- optional FutureProofMessage viewOnceMessageV2Extension = 59;
1002
- optional PollCreationMessage pollCreationMessageV2 = 60;
1003
- optional ScheduledCallCreationMessage scheduledCallCreationMessage = 61;
1004
- optional FutureProofMessage groupMentionedMessage = 62;
1005
- optional PinInChatMessage pinInChatMessage = 63;
1006
- optional PollCreationMessage pollCreationMessageV3 = 64;
1007
- optional ScheduledCallEditMessage scheduledCallEditMessage = 65;
1008
- optional VideoMessage ptvMessage = 66;
1009
- optional FutureProofMessage botInvokeMessage = 67;
1010
- optional CallLogMessage callLogMesssage = 69;
1011
- optional MessageHistoryBundle messageHistoryBundle = 70;
1012
- optional EncCommentMessage encCommentMessage = 71;
1013
- optional BCallMessage bcallMessage = 72;
1014
- optional FutureProofMessage lottieStickerMessage = 74;
1015
- optional EventMessage eventMessage = 75;
1016
- optional CommentMessage commentMessage = 77;
1017
- optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
1018
- optional ExtendedTextMessageWithParentKey extendedTextMessageWithParentKey = 79;
1019
- optional PlaceholderMessage placeholderMessage = 80;
1020
- optional EncEventUpdateMessage encEventUpdateMessage = 81;
1021
- message AppStateFatalExceptionNotification {
1022
- repeated string collectionNames = 1;
1023
- optional int64 timestamp = 2;
1024
- }
1025
-
1026
- message AppStateSyncKey {
1027
- optional Message.AppStateSyncKeyId keyId = 1;
1028
- optional Message.AppStateSyncKeyData keyData = 2;
1029
- }
1030
-
1031
- message AppStateSyncKeyData {
1032
- optional bytes keyData = 1;
1033
- optional Message.AppStateSyncKeyFingerprint fingerprint = 2;
1034
- optional int64 timestamp = 3;
1035
- }
1036
-
1037
- message AppStateSyncKeyFingerprint {
1038
- optional uint32 rawId = 1;
1039
- optional uint32 currentIndex = 2;
1040
- repeated uint32 deviceIndexes = 3 [packed=true];
1041
- }
1042
-
1043
- message AppStateSyncKeyId {
1044
- optional bytes keyId = 1;
1045
- }
1046
-
1047
- message AppStateSyncKeyRequest {
1048
- repeated Message.AppStateSyncKeyId keyIds = 1;
1049
- }
1050
-
1051
- message AppStateSyncKeyShare {
1052
- repeated Message.AppStateSyncKey keys = 1;
1053
- }
1054
-
1055
- message AudioMessage {
1056
- optional string url = 1;
1057
- optional string mimetype = 2;
1058
- optional bytes fileSha256 = 3;
1059
- optional uint64 fileLength = 4;
1060
- optional uint32 seconds = 5;
1061
- optional bool ptt = 6;
1062
- optional bytes mediaKey = 7;
1063
- optional bytes fileEncSha256 = 8;
1064
- optional string directPath = 9;
1065
- optional int64 mediaKeyTimestamp = 10;
1066
- optional ContextInfo contextInfo = 17;
1067
- optional bytes streamingSidecar = 18;
1068
- optional bytes waveform = 19;
1069
- optional fixed32 backgroundArgb = 20;
1070
- optional bool viewOnce = 21;
1071
- }
1072
-
1073
- message BCallMessage {
1074
- optional string sessionId = 1;
1075
- optional MediaType mediaType = 2;
1076
- optional bytes masterKey = 3;
1077
- optional string caption = 4;
1078
- enum MediaType {
1079
- UNKNOWN = 0;
1080
- AUDIO = 1;
1081
- VIDEO = 2;
1082
- }
1083
- }
1084
-
1085
- message BotFeedbackMessage {
1086
- optional MessageKey messageKey = 1;
1087
- optional BotFeedbackKind kind = 2;
1088
- optional string text = 3;
1089
- optional uint64 kindNegative = 4;
1090
- optional uint64 kindPositive = 5;
1091
- enum BotFeedbackKind {
1092
- BOT_FEEDBACK_POSITIVE = 0;
1093
- BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
1094
- BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
1095
- BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
1096
- BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
1097
- BOT_FEEDBACK_NEGATIVE_SAFE = 5;
1098
- BOT_FEEDBACK_NEGATIVE_OTHER = 6;
1099
- BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
1100
- BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
1101
- BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
1102
- }
1103
- enum BotFeedbackKindMultipleNegative {
1104
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
1105
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
1106
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
1107
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
1108
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
1109
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
1110
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
1111
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
1112
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
1113
- }
1114
- enum BotFeedbackKindMultiplePositive {
1115
- BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1116
- }
1117
- }
1118
-
1119
- message ButtonsMessage {
1120
- optional string contentText = 6;
1121
- optional string footerText = 7;
1122
- optional ContextInfo contextInfo = 8;
1123
- repeated Button buttons = 9;
1124
- optional HeaderType headerType = 10;
1125
- oneof header {
1126
- string text = 1;
1127
- Message.DocumentMessage documentMessage = 2;
1128
- Message.ImageMessage imageMessage = 3;
1129
- Message.VideoMessage videoMessage = 4;
1130
- Message.LocationMessage locationMessage = 5;
1131
- }
1132
- message Button {
1133
- optional string buttonId = 1;
1134
- optional ButtonText buttonText = 2;
1135
- optional Type type = 3;
1136
- optional NativeFlowInfo nativeFlowInfo = 4;
1137
- message ButtonText {
1138
- optional string displayText = 1;
1139
- }
1140
-
1141
- message NativeFlowInfo {
1142
- optional string name = 1;
1143
- optional string paramsJson = 2;
1144
- }
1145
-
1146
- enum Type {
1147
- UNKNOWN = 0;
1148
- RESPONSE = 1;
1149
- NATIVE_FLOW = 2;
1150
- }
1151
- }
1152
-
1153
- enum HeaderType {
1154
- UNKNOWN = 0;
1155
- EMPTY = 1;
1156
- TEXT = 2;
1157
- DOCUMENT = 3;
1158
- IMAGE = 4;
1159
- VIDEO = 5;
1160
- LOCATION = 6;
1161
- }
1162
- }
1163
-
1164
- message ButtonsResponseMessage {
1165
- optional string selectedButtonId = 1;
1166
- optional ContextInfo contextInfo = 3;
1167
- optional Type type = 4;
1168
- oneof response {
1169
- string selectedDisplayText = 2;
1170
- }
1171
- enum Type {
1172
- UNKNOWN = 0;
1173
- DISPLAY_TEXT = 1;
1174
- }
1175
- }
1176
-
1177
- message Call {
1178
- optional bytes callKey = 1;
1179
- optional string conversionSource = 2;
1180
- optional bytes conversionData = 3;
1181
- optional uint32 conversionDelaySeconds = 4;
1182
- }
1183
-
1184
- message CallLogMessage {
1185
- optional bool isVideo = 1;
1186
- optional CallOutcome callOutcome = 2;
1187
- optional int64 durationSecs = 3;
1188
- optional CallType callType = 4;
1189
- repeated CallParticipant participants = 5;
1190
- enum CallOutcome {
1191
- CONNECTED = 0;
1192
- MISSED = 1;
1193
- FAILED = 2;
1194
- REJECTED = 3;
1195
- ACCEPTED_ELSEWHERE = 4;
1196
- ONGOING = 5;
1197
- SILENCED_BY_DND = 6;
1198
- SILENCED_UNKNOWN_CALLER = 7;
1199
- }
1200
- message CallParticipant {
1201
- optional string jid = 1;
1202
- optional Message.CallLogMessage.CallOutcome callOutcome = 2;
1203
- }
1204
-
1205
- enum CallType {
1206
- REGULAR = 0;
1207
- SCHEDULED_CALL = 1;
1208
- VOICE_CHAT = 2;
1209
- }
1210
- }
1211
-
1212
- message CancelPaymentRequestMessage {
1213
- optional MessageKey key = 1;
1214
- }
1215
-
1216
- message Chat {
1217
- optional string displayName = 1;
1218
- optional string id = 2;
1219
- }
1220
-
1221
- message CommentMessage {
1222
- optional Message message = 1;
1223
- optional MessageKey targetMessageKey = 2;
1224
- }
1225
-
1226
- message ContactMessage {
1227
- optional string displayName = 1;
1228
- optional string vcard = 16;
1229
- optional ContextInfo contextInfo = 17;
1230
- }
1231
-
1232
- message ContactsArrayMessage {
1233
- optional string displayName = 1;
1234
- repeated Message.ContactMessage contacts = 2;
1235
- optional ContextInfo contextInfo = 17;
1236
- }
1237
-
1238
- message DeclinePaymentRequestMessage {
1239
- optional MessageKey key = 1;
1240
- }
1241
-
1242
- message DeviceSentMessage {
1243
- optional string destinationJid = 1;
1244
- optional Message message = 2;
1245
- optional string phash = 3;
1246
- }
1247
-
1248
- message DocumentMessage {
1249
- optional string url = 1;
1250
- optional string mimetype = 2;
1251
- optional string title = 3;
1252
- optional bytes fileSha256 = 4;
1253
- optional uint64 fileLength = 5;
1254
- optional uint32 pageCount = 6;
1255
- optional bytes mediaKey = 7;
1256
- optional string fileName = 8;
1257
- optional bytes fileEncSha256 = 9;
1258
- optional string directPath = 10;
1259
- optional int64 mediaKeyTimestamp = 11;
1260
- optional bool contactVcard = 12;
1261
- optional string thumbnailDirectPath = 13;
1262
- optional bytes thumbnailSha256 = 14;
1263
- optional bytes thumbnailEncSha256 = 15;
1264
- optional bytes jpegThumbnail = 16;
1265
- optional ContextInfo contextInfo = 17;
1266
- optional uint32 thumbnailHeight = 18;
1267
- optional uint32 thumbnailWidth = 19;
1268
- optional string caption = 20;
1269
- }
1270
-
1271
- message EncCommentMessage {
1272
- optional MessageKey targetMessageKey = 1;
1273
- optional bytes encPayload = 2;
1274
- optional bytes encIv = 3;
1275
- }
1276
-
1277
- message EncEventUpdateMessage {
1278
- optional MessageKey eventCreationMessageKey = 1;
1279
- optional bytes encPayload = 2;
1280
- optional bytes encIv = 3;
1281
- }
1282
-
1283
- message EncReactionMessage {
1284
- optional MessageKey targetMessageKey = 1;
1285
- optional bytes encPayload = 2;
1286
- optional bytes encIv = 3;
1287
- }
1288
-
1289
- message EventEditMessage {
1290
- optional Message.EventMessage eventEditMessage = 1;
1291
- optional int64 editTimestampMs = 2;
1292
- }
1293
-
1294
- message EventMessage {
1295
- optional ContextInfo contextInfo = 1;
1296
- optional bool isCanceled = 2;
1297
- optional string name = 3;
1298
- optional string description = 4;
1299
- optional Message.LocationMessage location = 5;
1300
- optional string joinLink = 6;
1301
- optional int64 startTime = 7;
1302
- }
1303
-
1304
- message EventResponseMessage {
1305
- optional EventResponseType response = 1;
1306
- optional int64 timestampMs = 2;
1307
- enum EventResponseType {
1308
- UNKNOWN = 0;
1309
- GOING = 1;
1310
- NOT_GOING = 2;
1311
- }
1312
- }
1313
-
1314
- message EventUpdateMessage {
1315
- optional Message.EventResponseMessage response = 1;
1316
- optional Message.EventEditMessage edit = 2;
1317
- }
1318
-
1319
- message ExtendedTextMessage {
1320
- optional string text = 1;
1321
- optional string matchedText = 2;
1322
- optional string canonicalUrl = 4;
1323
- optional string description = 5;
1324
- optional string title = 6;
1325
- optional fixed32 textArgb = 7;
1326
- optional fixed32 backgroundArgb = 8;
1327
- optional FontType font = 9;
1328
- optional PreviewType previewType = 10;
1329
- optional bytes jpegThumbnail = 16;
1330
- optional ContextInfo contextInfo = 17;
1331
- optional bool doNotPlayInline = 18;
1332
- optional string thumbnailDirectPath = 19;
1333
- optional bytes thumbnailSha256 = 20;
1334
- optional bytes thumbnailEncSha256 = 21;
1335
- optional bytes mediaKey = 22;
1336
- optional int64 mediaKeyTimestamp = 23;
1337
- optional uint32 thumbnailHeight = 24;
1338
- optional uint32 thumbnailWidth = 25;
1339
- optional InviteLinkGroupType inviteLinkGroupType = 26;
1340
- optional string inviteLinkParentGroupSubjectV2 = 27;
1341
- optional bytes inviteLinkParentGroupThumbnailV2 = 28;
1342
- optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
1343
- optional bool viewOnce = 30;
1344
- enum FontType {
1345
- SYSTEM = 0;
1346
- SYSTEM_TEXT = 1;
1347
- FB_SCRIPT = 2;
1348
- SYSTEM_BOLD = 6;
1349
- MORNINGBREEZE_REGULAR = 7;
1350
- CALISTOGA_REGULAR = 8;
1351
- EXO2_EXTRABOLD = 9;
1352
- COURIERPRIME_BOLD = 10;
1353
- }
1354
- enum InviteLinkGroupType {
1355
- DEFAULT = 0;
1356
- PARENT = 1;
1357
- SUB = 2;
1358
- DEFAULT_SUB = 3;
1359
- }
1360
- enum PreviewType {
1361
- NONE = 0;
1362
- VIDEO = 1;
1363
- PLACEHOLDER = 4;
1364
- IMAGE = 5;
1365
- }
1366
- }
1367
-
1368
- message ExtendedTextMessageWithParentKey {
1369
- optional MessageKey key = 1;
1370
- optional Message.ExtendedTextMessage extendedTextMessage = 2;
1371
- }
1372
-
1373
- message FutureProofMessage {
1374
- optional Message message = 1;
1375
- }
1376
-
1377
- message GroupInviteMessage {
1378
- optional string groupJid = 1;
1379
- optional string inviteCode = 2;
1380
- optional int64 inviteExpiration = 3;
1381
- optional string groupName = 4;
1382
- optional bytes jpegThumbnail = 5;
1383
- optional string caption = 6;
1384
- optional ContextInfo contextInfo = 7;
1385
- optional GroupType groupType = 8;
1386
- enum GroupType {
1387
- DEFAULT = 0;
1388
- PARENT = 1;
1389
- }
1390
- }
1391
-
1392
- message HighlyStructuredMessage {
1393
- optional string namespace = 1;
1394
- optional string elementName = 2;
1395
- repeated string params = 3;
1396
- optional string fallbackLg = 4;
1397
- optional string fallbackLc = 5;
1398
- repeated HSMLocalizableParameter localizableParams = 6;
1399
- optional string deterministicLg = 7;
1400
- optional string deterministicLc = 8;
1401
- optional Message.TemplateMessage hydratedHsm = 9;
1402
- message HSMLocalizableParameter {
1403
- optional string default = 1;
1404
- oneof paramOneof {
1405
- Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMCurrency currency = 2;
1406
- Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime dateTime = 3;
1407
- }
1408
- message HSMCurrency {
1409
- optional string currencyCode = 1;
1410
- optional int64 amount1000 = 2;
1411
- }
1412
-
1413
- message HSMDateTime {
1414
- oneof datetimeOneof {
1415
- Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeComponent component = 1;
1416
- Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeUnixEpoch unixEpoch = 2;
1417
- }
1418
- message HSMDateTimeComponent {
1419
- optional DayOfWeekType dayOfWeek = 1;
1420
- optional uint32 year = 2;
1421
- optional uint32 month = 3;
1422
- optional uint32 dayOfMonth = 4;
1423
- optional uint32 hour = 5;
1424
- optional uint32 minute = 6;
1425
- optional CalendarType calendar = 7;
1426
- enum CalendarType {
1427
- GREGORIAN = 1;
1428
- SOLAR_HIJRI = 2;
1429
- }
1430
- enum DayOfWeekType {
1431
- MONDAY = 1;
1432
- TUESDAY = 2;
1433
- WEDNESDAY = 3;
1434
- THURSDAY = 4;
1435
- FRIDAY = 5;
1436
- SATURDAY = 6;
1437
- SUNDAY = 7;
1438
- }
1439
- }
1440
-
1441
- message HSMDateTimeUnixEpoch {
1442
- optional int64 timestamp = 1;
1443
- }
1444
-
1445
- }
1446
-
1447
- }
1448
-
1449
- }
1450
-
1451
- message HistorySyncNotification {
1452
- optional bytes fileSha256 = 1;
1453
- optional uint64 fileLength = 2;
1454
- optional bytes mediaKey = 3;
1455
- optional bytes fileEncSha256 = 4;
1456
- optional string directPath = 5;
1457
- optional HistorySyncType syncType = 6;
1458
- optional uint32 chunkOrder = 7;
1459
- optional string originalMessageId = 8;
1460
- optional uint32 progress = 9;
1461
- optional int64 oldestMsgInChunkTimestampSec = 10;
1462
- optional bytes initialHistBootstrapInlinePayload = 11;
1463
- optional string peerDataRequestSessionId = 12;
1464
- enum HistorySyncType {
1465
- INITIAL_BOOTSTRAP = 0;
1466
- INITIAL_STATUS_V3 = 1;
1467
- FULL = 2;
1468
- RECENT = 3;
1469
- PUSH_NAME = 4;
1470
- NON_BLOCKING_DATA = 5;
1471
- ON_DEMAND = 6;
1472
- }
1473
- }
1474
-
1475
- message ImageMessage {
1476
- optional string url = 1;
1477
- optional string mimetype = 2;
1478
- optional string caption = 3;
1479
- optional bytes fileSha256 = 4;
1480
- optional uint64 fileLength = 5;
1481
- optional uint32 height = 6;
1482
- optional uint32 width = 7;
1483
- optional bytes mediaKey = 8;
1484
- optional bytes fileEncSha256 = 9;
1485
- repeated InteractiveAnnotation interactiveAnnotations = 10;
1486
- optional string directPath = 11;
1487
- optional int64 mediaKeyTimestamp = 12;
1488
- optional bytes jpegThumbnail = 16;
1489
- optional ContextInfo contextInfo = 17;
1490
- optional bytes firstScanSidecar = 18;
1491
- optional uint32 firstScanLength = 19;
1492
- optional uint32 experimentGroupId = 20;
1493
- optional bytes scansSidecar = 21;
1494
- repeated uint32 scanLengths = 22;
1495
- optional bytes midQualityFileSha256 = 23;
1496
- optional bytes midQualityFileEncSha256 = 24;
1497
- optional bool viewOnce = 25;
1498
- optional string thumbnailDirectPath = 26;
1499
- optional bytes thumbnailSha256 = 27;
1500
- optional bytes thumbnailEncSha256 = 28;
1501
- optional string staticUrl = 29;
1502
- repeated InteractiveAnnotation annotations = 30;
1503
- }
1504
-
1505
- message InitialSecurityNotificationSettingSync {
1506
- optional bool securityNotificationEnabled = 1;
1507
- }
1508
-
1509
- message InteractiveMessage {
1510
- optional Header header = 1;
1511
- optional Body body = 2;
1512
- optional Footer footer = 3;
1513
- optional ContextInfo contextInfo = 15;
1514
- oneof interactiveMessage {
1515
- Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
1516
- Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
1517
- Message.InteractiveMessage.NativeFlowMessage nativeFlowMessage = 6;
1518
- Message.InteractiveMessage.CarouselMessage carouselMessage = 7;
1519
- }
1520
- message Body {
1521
- optional string text = 1;
1522
- }
1523
-
1524
- message CarouselMessage {
1525
- repeated Message.InteractiveMessage cards = 1;
1526
- optional int32 messageVersion = 2;
1527
- }
1528
-
1529
- message CollectionMessage {
1530
- optional string bizJid = 1;
1531
- optional string id = 2;
1532
- optional int32 messageVersion = 3;
1533
- }
1534
-
1535
- message Footer {
1536
- optional string text = 1;
1537
- }
1538
-
1539
- message Header {
1540
- optional string title = 1;
1541
- optional string subtitle = 2;
1542
- optional bool hasMediaAttachment = 5;
1543
- oneof media {
1544
- Message.DocumentMessage documentMessage = 3;
1545
- Message.ImageMessage imageMessage = 4;
1546
- bytes jpegThumbnail = 6;
1547
- Message.VideoMessage videoMessage = 7;
1548
- Message.LocationMessage locationMessage = 8;
1549
- }
1550
- }
1551
-
1552
- message NativeFlowMessage {
1553
- repeated NativeFlowButton buttons = 1;
1554
- optional string messageParamsJson = 2;
1555
- optional int32 messageVersion = 3;
1556
- message NativeFlowButton {
1557
- optional string name = 1;
1558
- optional string buttonParamsJson = 2;
1559
- }
1560
-
1561
- }
1562
-
1563
- message ShopMessage {
1564
- optional string id = 1;
1565
- optional Surface surface = 2;
1566
- optional int32 messageVersion = 3;
1567
- enum Surface {
1568
- UNKNOWN_SURFACE = 0;
1569
- FB = 1;
1570
- IG = 2;
1571
- WA = 3;
1572
- }
1573
- }
1574
-
1575
- }
1576
-
1577
- message InteractiveResponseMessage {
1578
- optional Body body = 1;
1579
- optional ContextInfo contextInfo = 15;
1580
- oneof interactiveResponseMessage {
1581
- Message.InteractiveResponseMessage.NativeFlowResponseMessage nativeFlowResponseMessage = 2;
1582
- }
1583
- message Body {
1584
- optional string text = 1;
1585
- optional Format format = 2;
1586
- enum Format {
1587
- DEFAULT = 0;
1588
- EXTENSIONS_1 = 1;
1589
- }
1590
- }
1591
-
1592
- message NativeFlowResponseMessage {
1593
- optional string name = 1;
1594
- optional string paramsJson = 2;
1595
- optional int32 version = 3;
1596
- }
1597
-
1598
- }
1599
-
1600
- message InvoiceMessage {
1601
- optional string note = 1;
1602
- optional string token = 2;
1603
- optional AttachmentType attachmentType = 3;
1604
- optional string attachmentMimetype = 4;
1605
- optional bytes attachmentMediaKey = 5;
1606
- optional int64 attachmentMediaKeyTimestamp = 6;
1607
- optional bytes attachmentFileSha256 = 7;
1608
- optional bytes attachmentFileEncSha256 = 8;
1609
- optional string attachmentDirectPath = 9;
1610
- optional bytes attachmentJpegThumbnail = 10;
1611
- enum AttachmentType {
1612
- IMAGE = 0;
1613
- PDF = 1;
1614
- }
1615
- }
1616
-
1617
- message KeepInChatMessage {
1618
- optional MessageKey key = 1;
1619
- optional KeepType keepType = 2;
1620
- optional int64 timestampMs = 3;
1621
- }
1622
-
1623
- message ListMessage {
1624
- optional string title = 1;
1625
- optional string description = 2;
1626
- optional string buttonText = 3;
1627
- optional ListType listType = 4;
1628
- repeated Section sections = 5;
1629
- optional ProductListInfo productListInfo = 6;
1630
- optional string footerText = 7;
1631
- optional ContextInfo contextInfo = 8;
1632
- enum ListType {
1633
- UNKNOWN = 0;
1634
- SINGLE_SELECT = 1;
1635
- PRODUCT_LIST = 2;
1636
- }
1637
- message Product {
1638
- optional string productId = 1;
1639
- }
1640
-
1641
- message ProductListHeaderImage {
1642
- optional string productId = 1;
1643
- optional bytes jpegThumbnail = 2;
1644
- }
1645
-
1646
- message ProductListInfo {
1647
- repeated Message.ListMessage.ProductSection productSections = 1;
1648
- optional Message.ListMessage.ProductListHeaderImage headerImage = 2;
1649
- optional string businessOwnerJid = 3;
1650
- }
1651
-
1652
- message ProductSection {
1653
- optional string title = 1;
1654
- repeated Message.ListMessage.Product products = 2;
1655
- }
1656
-
1657
- message Row {
1658
- optional string title = 1;
1659
- optional string description = 2;
1660
- optional string rowId = 3;
1661
- }
1662
-
1663
- message Section {
1664
- optional string title = 1;
1665
- repeated Message.ListMessage.Row rows = 2;
1666
- }
1667
-
1668
- }
1669
-
1670
- message ListResponseMessage {
1671
- optional string title = 1;
1672
- optional ListType listType = 2;
1673
- optional SingleSelectReply singleSelectReply = 3;
1674
- optional ContextInfo contextInfo = 4;
1675
- optional string description = 5;
1676
- enum ListType {
1677
- UNKNOWN = 0;
1678
- SINGLE_SELECT = 1;
1679
- }
1680
- message SingleSelectReply {
1681
- optional string selectedRowId = 1;
1682
- }
1683
-
1684
- }
1685
-
1686
- message LiveLocationMessage {
1687
- optional double degreesLatitude = 1;
1688
- optional double degreesLongitude = 2;
1689
- optional uint32 accuracyInMeters = 3;
1690
- optional float speedInMps = 4;
1691
- optional uint32 degreesClockwiseFromMagneticNorth = 5;
1692
- optional string caption = 6;
1693
- optional int64 sequenceNumber = 7;
1694
- optional uint32 timeOffset = 8;
1695
- optional bytes jpegThumbnail = 16;
1696
- optional ContextInfo contextInfo = 17;
1697
- }
1698
-
1699
- message LocationMessage {
1700
- optional double degreesLatitude = 1;
1701
- optional double degreesLongitude = 2;
1702
- optional string name = 3;
1703
- optional string address = 4;
1704
- optional string url = 5;
1705
- optional bool isLive = 6;
1706
- optional uint32 accuracyInMeters = 7;
1707
- optional float speedInMps = 8;
1708
- optional uint32 degreesClockwiseFromMagneticNorth = 9;
1709
- optional string comment = 11;
1710
- optional bytes jpegThumbnail = 16;
1711
- optional ContextInfo contextInfo = 17;
1712
- }
1713
-
1714
- message MessageHistoryBundle {
1715
- optional string mimetype = 2;
1716
- optional bytes fileSha256 = 3;
1717
- optional bytes mediaKey = 5;
1718
- optional bytes fileEncSha256 = 6;
1719
- optional string directPath = 7;
1720
- optional int64 mediaKeyTimestamp = 8;
1721
- optional ContextInfo contextInfo = 9;
1722
- repeated string participants = 10;
1723
- }
1724
-
1725
- message NewsletterAdminInviteMessage {
1726
- optional string newsletterJid = 1;
1727
- optional string newsletterName = 2;
1728
- optional bytes jpegThumbnail = 3;
1729
- optional string caption = 4;
1730
- optional int64 inviteExpiration = 5;
1731
- }
1732
-
1733
- message OrderMessage {
1734
- optional string orderId = 1;
1735
- optional bytes thumbnail = 2;
1736
- optional int32 itemCount = 3;
1737
- optional OrderStatus status = 4;
1738
- optional OrderSurface surface = 5;
1739
- optional string message = 6;
1740
- optional string orderTitle = 7;
1741
- optional string sellerJid = 8;
1742
- optional string token = 9;
1743
- optional int64 totalAmount1000 = 10;
1744
- optional string totalCurrencyCode = 11;
1745
- optional ContextInfo contextInfo = 17;
1746
- optional int32 messageVersion = 12;
1747
- optional MessageKey orderRequestMessageId = 13;
1748
- enum OrderStatus {
1749
- INQUIRY = 1;
1750
- ACCEPTED = 2;
1751
- DECLINED = 3;
1752
- }
1753
- enum OrderSurface {
1754
- CATALOG = 1;
1755
- }
1756
- }
1757
-
1758
- message PaymentInviteMessage {
1759
- optional ServiceType serviceType = 1;
1760
- optional int64 expiryTimestamp = 2;
1761
- enum ServiceType {
1762
- UNKNOWN = 0;
1763
- FBPAY = 1;
1764
- NOVI = 2;
1765
- UPI = 3;
1766
- }
1767
- }
1768
-
1769
- message PeerDataOperationRequestMessage {
1770
- optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
1771
- repeated RequestStickerReupload requestStickerReupload = 2;
1772
- repeated RequestUrlPreview requestUrlPreview = 3;
1773
- optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
1774
- repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
1775
- message HistorySyncOnDemandRequest {
1776
- optional string chatJid = 1;
1777
- optional string oldestMsgId = 2;
1778
- optional bool oldestMsgFromMe = 3;
1779
- optional int32 onDemandMsgCount = 4;
1780
- optional int64 oldestMsgTimestampMs = 5;
1781
- }
1782
-
1783
- message PlaceholderMessageResendRequest {
1784
- optional MessageKey messageKey = 1;
1785
- }
1786
-
1787
- message RequestStickerReupload {
1788
- optional string fileSha256 = 1;
1789
- }
1790
-
1791
- message RequestUrlPreview {
1792
- optional string url = 1;
1793
- optional bool includeHqThumbnail = 2;
1794
- }
1795
-
1796
- }
1797
-
1798
- message PeerDataOperationRequestResponseMessage {
1799
- optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
1800
- optional string stanzaId = 2;
1801
- repeated PeerDataOperationResult peerDataOperationResult = 3;
1802
- message PeerDataOperationResult {
1803
- optional MediaRetryNotification.ResultType mediaUploadResult = 1;
1804
- optional Message.StickerMessage stickerMessage = 2;
1805
- optional LinkPreviewResponse linkPreviewResponse = 3;
1806
- optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
1807
- message LinkPreviewResponse {
1808
- optional string url = 1;
1809
- optional string title = 2;
1810
- optional string description = 3;
1811
- optional bytes thumbData = 4;
1812
- optional string canonicalUrl = 5;
1813
- optional string matchText = 6;
1814
- optional string previewType = 7;
1815
- optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
1816
- message LinkPreviewHighQualityThumbnail {
1817
- optional string directPath = 1;
1818
- optional string thumbHash = 2;
1819
- optional string encThumbHash = 3;
1820
- optional bytes mediaKey = 4;
1821
- optional int64 mediaKeyTimestampMs = 5;
1822
- optional int32 thumbWidth = 6;
1823
- optional int32 thumbHeight = 7;
1824
- }
1825
-
1826
- }
1827
-
1828
- message PlaceholderMessageResendResponse {
1829
- optional bytes webMessageInfoBytes = 1;
1830
- }
1831
-
1832
- }
1833
-
1834
- }
1835
-
1836
- enum PeerDataOperationRequestType {
1837
- UPLOAD_STICKER = 0;
1838
- SEND_RECENT_STICKER_BOOTSTRAP = 1;
1839
- GENERATE_LINK_PREVIEW = 2;
1840
- HISTORY_SYNC_ON_DEMAND = 3;
1841
- PLACEHOLDER_MESSAGE_RESEND = 4;
1842
- }
1843
- message PinInChatMessage {
1844
- optional MessageKey key = 1;
1845
- optional Type type = 2;
1846
- optional int64 senderTimestampMs = 3;
1847
- enum Type {
1848
- UNKNOWN_TYPE = 0;
1849
- PIN_FOR_ALL = 1;
1850
- UNPIN_FOR_ALL = 2;
1851
- }
1852
- }
1853
-
1854
- message PlaceholderMessage {
1855
- optional PlaceholderType type = 1;
1856
- enum PlaceholderType {
1857
- MASK_LINKED_DEVICES = 0;
1858
- }
1859
- }
1860
-
1861
- message PollCreationMessage {
1862
- optional bytes encKey = 1;
1863
- optional string name = 2;
1864
- repeated Option options = 3;
1865
- optional uint32 selectableOptionsCount = 4;
1866
- optional ContextInfo contextInfo = 5;
1867
- message Option {
1868
- optional string optionName = 1;
1869
- }
1870
-
1871
- }
1872
-
1873
- message PollEncValue {
1874
- optional bytes encPayload = 1;
1875
- optional bytes encIv = 2;
1876
- }
1877
-
1878
- message PollUpdateMessage {
1879
- optional MessageKey pollCreationMessageKey = 1;
1880
- optional Message.PollEncValue vote = 2;
1881
- optional Message.PollUpdateMessageMetadata metadata = 3;
1882
- optional int64 senderTimestampMs = 4;
1883
- }
1884
-
1885
- message PollUpdateMessageMetadata {
1886
- }
1887
-
1888
- message PollVoteMessage {
1889
- repeated bytes selectedOptions = 1;
1890
- }
1891
-
1892
- message ProductMessage {
1893
- optional ProductSnapshot product = 1;
1894
- optional string businessOwnerJid = 2;
1895
- optional CatalogSnapshot catalog = 4;
1896
- optional string body = 5;
1897
- optional string footer = 6;
1898
- optional ContextInfo contextInfo = 17;
1899
- message CatalogSnapshot {
1900
- optional Message.ImageMessage catalogImage = 1;
1901
- optional string title = 2;
1902
- optional string description = 3;
1903
- }
1904
-
1905
- message ProductSnapshot {
1906
- optional Message.ImageMessage productImage = 1;
1907
- optional string productId = 2;
1908
- optional string title = 3;
1909
- optional string description = 4;
1910
- optional string currencyCode = 5;
1911
- optional int64 priceAmount1000 = 6;
1912
- optional string retailerId = 7;
1913
- optional string url = 8;
1914
- optional uint32 productImageCount = 9;
1915
- optional string firstImageId = 11;
1916
- optional int64 salePriceAmount1000 = 12;
1917
- }
1918
-
1919
- }
1920
-
1921
- message ProtocolMessage {
1922
- optional MessageKey key = 1;
1923
- optional Type type = 2;
1924
- optional uint32 ephemeralExpiration = 4;
1925
- optional int64 ephemeralSettingTimestamp = 5;
1926
- optional Message.HistorySyncNotification historySyncNotification = 6;
1927
- optional Message.AppStateSyncKeyShare appStateSyncKeyShare = 7;
1928
- optional Message.AppStateSyncKeyRequest appStateSyncKeyRequest = 8;
1929
- optional Message.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9;
1930
- optional Message.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10;
1931
- optional DisappearingMode disappearingMode = 11;
1932
- optional Message editedMessage = 14;
1933
- optional int64 timestampMs = 15;
1934
- optional Message.PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16;
1935
- optional Message.PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17;
1936
- optional Message.BotFeedbackMessage botFeedbackMessage = 18;
1937
- optional string invokerJid = 19;
1938
- optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
1939
- optional MediaNotifyMessage mediaNotifyMessage = 21;
1940
- enum Type {
1941
- REVOKE = 0;
1942
- EPHEMERAL_SETTING = 3;
1943
- EPHEMERAL_SYNC_RESPONSE = 4;
1944
- HISTORY_SYNC_NOTIFICATION = 5;
1945
- APP_STATE_SYNC_KEY_SHARE = 6;
1946
- APP_STATE_SYNC_KEY_REQUEST = 7;
1947
- MSG_FANOUT_BACKFILL_REQUEST = 8;
1948
- INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9;
1949
- APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10;
1950
- SHARE_PHONE_NUMBER = 11;
1951
- MESSAGE_EDIT = 14;
1952
- PEER_DATA_OPERATION_REQUEST_MESSAGE = 16;
1953
- PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE = 17;
1954
- REQUEST_WELCOME_MESSAGE = 18;
1955
- BOT_FEEDBACK_MESSAGE = 19;
1956
- MEDIA_NOTIFY_MESSAGE = 20;
1957
- }
1958
- }
1959
-
1960
- message ReactionMessage {
1961
- optional MessageKey key = 1;
1962
- optional string text = 2;
1963
- optional string groupingKey = 3;
1964
- optional int64 senderTimestampMs = 4;
1965
- }
1966
-
1967
- message RequestPaymentMessage {
1968
- optional Message noteMessage = 4;
1969
- optional string currencyCodeIso4217 = 1;
1970
- optional uint64 amount1000 = 2;
1971
- optional string requestFrom = 3;
1972
- optional int64 expiryTimestamp = 5;
1973
- optional Money amount = 6;
1974
- optional PaymentBackground background = 7;
1975
- }
1976
-
1977
- message RequestPhoneNumberMessage {
1978
- optional ContextInfo contextInfo = 1;
1979
- }
1980
-
1981
- message RequestWelcomeMessageMetadata {
1982
- optional LocalChatState localChatState = 1;
1983
- enum LocalChatState {
1984
- EMPTY = 0;
1985
- NON_EMPTY = 1;
1986
- }
1987
- }
1988
-
1989
- message ScheduledCallCreationMessage {
1990
- optional int64 scheduledTimestampMs = 1;
1991
- optional CallType callType = 2;
1992
- optional string title = 3;
1993
- enum CallType {
1994
- UNKNOWN = 0;
1995
- VOICE = 1;
1996
- VIDEO = 2;
1997
- }
1998
- }
1999
-
2000
- message ScheduledCallEditMessage {
2001
- optional MessageKey key = 1;
2002
- optional EditType editType = 2;
2003
- enum EditType {
2004
- UNKNOWN = 0;
2005
- CANCEL = 1;
2006
- }
2007
- }
2008
-
2009
- message SendPaymentMessage {
2010
- optional Message noteMessage = 2;
2011
- optional MessageKey requestMessageKey = 3;
2012
- optional PaymentBackground background = 4;
2013
- }
2014
-
2015
- message SenderKeyDistributionMessage {
2016
- optional string groupId = 1;
2017
- optional bytes axolotlSenderKeyDistributionMessage = 2;
2018
- }
2019
-
2020
- message StickerMessage {
2021
- optional string url = 1;
2022
- optional bytes fileSha256 = 2;
2023
- optional bytes fileEncSha256 = 3;
2024
- optional bytes mediaKey = 4;
2025
- optional string mimetype = 5;
2026
- optional uint32 height = 6;
2027
- optional uint32 width = 7;
2028
- optional string directPath = 8;
2029
- optional uint64 fileLength = 9;
2030
- optional int64 mediaKeyTimestamp = 10;
2031
- optional uint32 firstFrameLength = 11;
2032
- optional bytes firstFrameSidecar = 12;
2033
- optional bool isAnimated = 13;
2034
- optional bytes pngThumbnail = 16;
2035
- optional ContextInfo contextInfo = 17;
2036
- optional int64 stickerSentTs = 18;
2037
- optional bool isAvatar = 19;
2038
- optional bool isAiSticker = 20;
2039
- optional bool isLottie = 21;
2040
- }
2041
-
2042
- message StickerSyncRMRMessage {
2043
- repeated string filehash = 1;
2044
- optional string rmrSource = 2;
2045
- optional int64 requestTimestamp = 3;
2046
- }
2047
-
2048
- message TemplateButtonReplyMessage {
2049
- optional string selectedId = 1;
2050
- optional string selectedDisplayText = 2;
2051
- optional ContextInfo contextInfo = 3;
2052
- optional uint32 selectedIndex = 4;
2053
- optional uint32 selectedCarouselCardIndex = 5;
2054
- }
2055
-
2056
- message TemplateMessage {
2057
- optional ContextInfo contextInfo = 3;
2058
- optional HydratedFourRowTemplate hydratedTemplate = 4;
2059
- optional string templateId = 9;
2060
- oneof format {
2061
- Message.TemplateMessage.FourRowTemplate fourRowTemplate = 1;
2062
- Message.TemplateMessage.HydratedFourRowTemplate hydratedFourRowTemplate = 2;
2063
- Message.InteractiveMessage interactiveMessageTemplate = 5;
2064
- }
2065
- message FourRowTemplate {
2066
- optional Message.HighlyStructuredMessage content = 6;
2067
- optional Message.HighlyStructuredMessage footer = 7;
2068
- repeated TemplateButton buttons = 8;
2069
- oneof title {
2070
- Message.DocumentMessage documentMessage = 1;
2071
- Message.HighlyStructuredMessage highlyStructuredMessage = 2;
2072
- Message.ImageMessage imageMessage = 3;
2073
- Message.VideoMessage videoMessage = 4;
2074
- Message.LocationMessage locationMessage = 5;
2075
- }
2076
- }
2077
-
2078
- message HydratedFourRowTemplate {
2079
- optional string hydratedContentText = 6;
2080
- optional string hydratedFooterText = 7;
2081
- repeated HydratedTemplateButton hydratedButtons = 8;
2082
- optional string templateId = 9;
2083
- optional bool maskLinkedDevices = 10;
2084
- oneof title {
2085
- Message.DocumentMessage documentMessage = 1;
2086
- string hydratedTitleText = 2;
2087
- Message.ImageMessage imageMessage = 3;
2088
- Message.VideoMessage videoMessage = 4;
2089
- Message.LocationMessage locationMessage = 5;
2090
- }
2091
- }
2092
-
2093
- }
2094
-
2095
- message VideoMessage {
2096
- optional string url = 1;
2097
- optional string mimetype = 2;
2098
- optional bytes fileSha256 = 3;
2099
- optional uint64 fileLength = 4;
2100
- optional uint32 seconds = 5;
2101
- optional bytes mediaKey = 6;
2102
- optional string caption = 7;
2103
- optional bool gifPlayback = 8;
2104
- optional uint32 height = 9;
2105
- optional uint32 width = 10;
2106
- optional bytes fileEncSha256 = 11;
2107
- repeated InteractiveAnnotation interactiveAnnotations = 12;
2108
- optional string directPath = 13;
2109
- optional int64 mediaKeyTimestamp = 14;
2110
- optional bytes jpegThumbnail = 16;
2111
- optional ContextInfo contextInfo = 17;
2112
- optional bytes streamingSidecar = 18;
2113
- optional Attribution gifAttribution = 19;
2114
- optional bool viewOnce = 20;
2115
- optional string thumbnailDirectPath = 21;
2116
- optional bytes thumbnailSha256 = 22;
2117
- optional bytes thumbnailEncSha256 = 23;
2118
- optional string staticUrl = 24;
2119
- repeated InteractiveAnnotation annotations = 25;
2120
- enum Attribution {
2121
- NONE = 0;
2122
- GIPHY = 1;
2123
- TENOR = 2;
2124
- }
2125
- }
2126
-
2127
- }
2128
-
2129
- message MessageAddOnContextInfo {
2130
- optional uint32 messageAddOnDurationInSecs = 1;
2131
- }
2132
-
2133
- message MessageContextInfo {
2134
- optional DeviceListMetadata deviceListMetadata = 1;
2135
- optional int32 deviceListMetadataVersion = 2;
2136
- optional bytes messageSecret = 3;
2137
- optional bytes paddingBytes = 4;
2138
- optional uint32 messageAddOnDurationInSecs = 5;
2139
- optional bytes botMessageSecret = 6;
2140
- optional BotMetadata botMetadata = 7;
2141
- optional int32 reportingTokenVersion = 8;
2142
- }
2143
-
2144
- message MessageKey {
2145
- optional string remoteJid = 1;
2146
- optional bool fromMe = 2;
2147
- optional string id = 3;
2148
- optional string participant = 4;
2149
- }
2150
-
2151
- message MessageSecretMessage {
2152
- optional sfixed32 version = 1;
2153
- optional bytes encIv = 2;
2154
- optional bytes encPayload = 3;
2155
- }
2156
-
2157
- message Money {
2158
- optional int64 value = 1;
2159
- optional uint32 offset = 2;
2160
- optional string currencyCode = 3;
2161
- }
2162
-
2163
- message MsgOpaqueData {
2164
- optional string body = 1;
2165
- optional string caption = 3;
2166
- optional double lng = 5;
2167
- optional bool isLive = 6;
2168
- optional double lat = 7;
2169
- optional int32 paymentAmount1000 = 8;
2170
- optional string paymentNoteMsgBody = 9;
2171
- optional string canonicalUrl = 10;
2172
- optional string matchedText = 11;
2173
- optional string title = 12;
2174
- optional string description = 13;
2175
- optional bytes futureproofBuffer = 14;
2176
- optional string clientUrl = 15;
2177
- optional string loc = 16;
2178
- optional string pollName = 17;
2179
- repeated PollOption pollOptions = 18;
2180
- optional uint32 pollSelectableOptionsCount = 20;
2181
- optional bytes messageSecret = 21;
2182
- optional string originalSelfAuthor = 51;
2183
- optional int64 senderTimestampMs = 22;
2184
- optional string pollUpdateParentKey = 23;
2185
- optional PollEncValue encPollVote = 24;
2186
- optional bool isSentCagPollCreation = 28;
2187
- optional string encReactionTargetMessageKey = 25;
2188
- optional bytes encReactionEncPayload = 26;
2189
- optional bytes encReactionEncIv = 27;
2190
- optional bytes botMessageSecret = 29;
2191
- optional string targetMessageKey = 30;
2192
- optional bytes encPayload = 31;
2193
- optional bytes encIv = 32;
2194
- message PollOption {
2195
- optional string name = 1;
2196
- }
2197
-
2198
- }
2199
-
2200
- message MsgRowOpaqueData {
2201
- optional MsgOpaqueData currentMsg = 1;
2202
- optional MsgOpaqueData quotedMsg = 2;
2203
- }
2204
-
2205
- message NoiseCertificate {
2206
- optional bytes details = 1;
2207
- optional bytes signature = 2;
2208
- message Details {
2209
- optional uint32 serial = 1;
2210
- optional string issuer = 2;
2211
- optional uint64 expires = 3;
2212
- optional string subject = 4;
2213
- optional bytes key = 5;
2214
- }
2215
-
2216
- }
2217
-
2218
- message NotificationMessageInfo {
2219
- optional MessageKey key = 1;
2220
- optional Message message = 2;
2221
- optional uint64 messageTimestamp = 3;
2222
- optional string participant = 4;
2223
- }
2224
-
2225
- message NotificationSettings {
2226
- optional string messageVibrate = 1;
2227
- optional string messagePopup = 2;
2228
- optional string messageLight = 3;
2229
- optional bool lowPriorityNotifications = 4;
2230
- optional bool reactionsMuted = 5;
2231
- optional string callVibrate = 6;
2232
- }
2233
-
2234
- message PastParticipant {
2235
- optional string userJid = 1;
2236
- optional LeaveReason leaveReason = 2;
2237
- optional uint64 leaveTs = 3;
2238
- enum LeaveReason {
2239
- LEFT = 0;
2240
- REMOVED = 1;
2241
- }
2242
- }
2243
-
2244
- message PastParticipants {
2245
- optional string groupJid = 1;
2246
- repeated PastParticipant pastParticipants = 2;
2247
- }
2248
-
2249
- message PatchDebugData {
2250
- optional bytes currentLthash = 1;
2251
- optional bytes newLthash = 2;
2252
- optional bytes patchVersion = 3;
2253
- optional bytes collectionName = 4;
2254
- optional bytes firstFourBytesFromAHashOfSnapshotMacKey = 5;
2255
- optional bytes newLthashSubtract = 6;
2256
- optional int32 numberAdd = 7;
2257
- optional int32 numberRemove = 8;
2258
- optional int32 numberOverride = 9;
2259
- optional Platform senderPlatform = 10;
2260
- optional bool isSenderPrimary = 11;
2261
- enum Platform {
2262
- ANDROID = 0;
2263
- SMBA = 1;
2264
- IPHONE = 2;
2265
- SMBI = 3;
2266
- WEB = 4;
2267
- UWP = 5;
2268
- DARWIN = 6;
2269
- }
2270
- }
2271
-
2272
- message PaymentBackground {
2273
- optional string id = 1;
2274
- optional uint64 fileLength = 2;
2275
- optional uint32 width = 3;
2276
- optional uint32 height = 4;
2277
- optional string mimetype = 5;
2278
- optional fixed32 placeholderArgb = 6;
2279
- optional fixed32 textArgb = 7;
2280
- optional fixed32 subtextArgb = 8;
2281
- optional MediaData mediaData = 9;
2282
- optional Type type = 10;
2283
- message MediaData {
2284
- optional bytes mediaKey = 1;
2285
- optional int64 mediaKeyTimestamp = 2;
2286
- optional bytes fileSha256 = 3;
2287
- optional bytes fileEncSha256 = 4;
2288
- optional string directPath = 5;
2289
- }
2290
-
2291
- enum Type {
2292
- UNKNOWN = 0;
2293
- DEFAULT = 1;
2294
- }
2295
- }
2296
-
2297
- message PaymentInfo {
2298
- optional Currency currencyDeprecated = 1;
2299
- optional uint64 amount1000 = 2;
2300
- optional string receiverJid = 3;
2301
- optional Status status = 4;
2302
- optional uint64 transactionTimestamp = 5;
2303
- optional MessageKey requestMessageKey = 6;
2304
- optional uint64 expiryTimestamp = 7;
2305
- optional bool futureproofed = 8;
2306
- optional string currency = 9;
2307
- optional TxnStatus txnStatus = 10;
2308
- optional bool useNoviFiatFormat = 11;
2309
- optional Money primaryAmount = 12;
2310
- optional Money exchangeAmount = 13;
2311
- enum Currency {
2312
- UNKNOWN_CURRENCY = 0;
2313
- INR = 1;
2314
- }
2315
- enum Status {
2316
- UNKNOWN_STATUS = 0;
2317
- PROCESSING = 1;
2318
- SENT = 2;
2319
- NEED_TO_ACCEPT = 3;
2320
- COMPLETE = 4;
2321
- COULD_NOT_COMPLETE = 5;
2322
- REFUNDED = 6;
2323
- EXPIRED = 7;
2324
- REJECTED = 8;
2325
- CANCELLED = 9;
2326
- WAITING_FOR_PAYER = 10;
2327
- WAITING = 11;
2328
- }
2329
- enum TxnStatus {
2330
- UNKNOWN = 0;
2331
- PENDING_SETUP = 1;
2332
- PENDING_RECEIVER_SETUP = 2;
2333
- INIT = 3;
2334
- SUCCESS = 4;
2335
- COMPLETED = 5;
2336
- FAILED = 6;
2337
- FAILED_RISK = 7;
2338
- FAILED_PROCESSING = 8;
2339
- FAILED_RECEIVER_PROCESSING = 9;
2340
- FAILED_DA = 10;
2341
- FAILED_DA_FINAL = 11;
2342
- REFUNDED_TXN = 12;
2343
- REFUND_FAILED = 13;
2344
- REFUND_FAILED_PROCESSING = 14;
2345
- REFUND_FAILED_DA = 15;
2346
- EXPIRED_TXN = 16;
2347
- AUTH_CANCELED = 17;
2348
- AUTH_CANCEL_FAILED_PROCESSING = 18;
2349
- AUTH_CANCEL_FAILED = 19;
2350
- COLLECT_INIT = 20;
2351
- COLLECT_SUCCESS = 21;
2352
- COLLECT_FAILED = 22;
2353
- COLLECT_FAILED_RISK = 23;
2354
- COLLECT_REJECTED = 24;
2355
- COLLECT_EXPIRED = 25;
2356
- COLLECT_CANCELED = 26;
2357
- COLLECT_CANCELLING = 27;
2358
- IN_REVIEW = 28;
2359
- REVERSAL_SUCCESS = 29;
2360
- REVERSAL_PENDING = 30;
2361
- REFUND_PENDING = 31;
2362
- }
2363
- }
2364
-
2365
- message PhoneNumberToLIDMapping {
2366
- optional string pnJid = 1;
2367
- optional string lidJid = 2;
2368
- }
2369
-
2370
- message PhotoChange {
2371
- optional bytes oldPhoto = 1;
2372
- optional bytes newPhoto = 2;
2373
- optional uint32 newPhotoId = 3;
2374
- }
2375
-
2376
- message PinInChat {
2377
- optional Type type = 1;
2378
- optional MessageKey key = 2;
2379
- optional int64 senderTimestampMs = 3;
2380
- optional int64 serverTimestampMs = 4;
2381
- optional MessageAddOnContextInfo messageAddOnContextInfo = 5;
2382
- enum Type {
2383
- UNKNOWN_TYPE = 0;
2384
- PIN_FOR_ALL = 1;
2385
- UNPIN_FOR_ALL = 2;
2386
- }
2387
- }
2388
-
2389
- message Point {
2390
- optional int32 xDeprecated = 1;
2391
- optional int32 yDeprecated = 2;
2392
- optional double x = 3;
2393
- optional double y = 4;
2394
- }
2395
-
2396
- message PollAdditionalMetadata {
2397
- optional bool pollInvalidated = 1;
2398
- }
2399
-
2400
- message PollEncValue {
2401
- optional bytes encPayload = 1;
2402
- optional bytes encIv = 2;
2403
- }
2404
-
2405
- message PollUpdate {
2406
- optional MessageKey pollUpdateMessageKey = 1;
2407
- optional Message.PollVoteMessage vote = 2;
2408
- optional int64 senderTimestampMs = 3;
2409
- optional int64 serverTimestampMs = 4;
2410
- optional bool unread = 5;
2411
- }
2412
-
2413
- message PreKeyRecordStructure {
2414
- optional uint32 id = 1;
2415
- optional bytes publicKey = 2;
2416
- optional bytes privateKey = 3;
2417
- }
2418
-
2419
- message PreKeySignalMessage {
2420
- optional uint32 registrationId = 5;
2421
- optional uint32 preKeyId = 1;
2422
- optional uint32 signedPreKeyId = 6;
2423
- optional bytes baseKey = 2;
2424
- optional bytes identityKey = 3;
2425
- optional bytes message = 4;
2426
- }
2427
-
2428
- message PremiumMessageInfo {
2429
- optional string serverCampaignId = 1;
2430
- }
2431
-
2432
- message Pushname {
2433
- optional string id = 1;
2434
- optional string pushname = 2;
2435
- }
2436
-
2437
- message QP {
2438
- enum ClauseType {
2439
- AND = 1;
2440
- OR = 2;
2441
- NOR = 3;
2442
- }
2443
- message Filter {
2444
- required string filterName = 1;
2445
- repeated QP.FilterParameters parameters = 2;
2446
- optional QP.FilterResult filterResult = 3;
2447
- required QP.FilterClientNotSupportedConfig clientNotSupportedConfig = 4;
2448
- }
2449
-
2450
- message FilterClause {
2451
- required QP.ClauseType clauseType = 1;
2452
- repeated QP.FilterClause clauses = 2;
2453
- repeated QP.Filter filters = 3;
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;
2469
- }
2470
- }
2471
-
2472
- message Reaction {
2473
- optional MessageKey key = 1;
2474
- optional string text = 2;
2475
- optional string groupingKey = 3;
2476
- optional int64 senderTimestampMs = 4;
2477
- optional bool unread = 5;
2478
- }
2479
-
2480
- message RecentEmojiWeight {
2481
- optional string emoji = 1;
2482
- optional float weight = 2;
2483
- }
2484
-
2485
- message RecordStructure {
2486
- optional SessionStructure currentSession = 1;
2487
- repeated SessionStructure previousSessions = 2;
2488
- }
2489
-
2490
- message ReportingTokenInfo {
2491
- optional bytes reportingTag = 1;
2492
- }
2493
-
2494
- message SenderKeyDistributionMessage {
2495
- optional uint32 id = 1;
2496
- optional uint32 iteration = 2;
2497
- optional bytes chainKey = 3;
2498
- optional bytes signingKey = 4;
2499
- }
2500
-
2501
- message SenderKeyMessage {
2502
- optional uint32 id = 1;
2503
- optional uint32 iteration = 2;
2504
- optional bytes ciphertext = 3;
2505
- }
2506
-
2507
- message SenderKeyRecordStructure {
2508
- repeated SenderKeyStateStructure senderKeyStates = 1;
2509
- }
2510
-
2511
- message SenderKeyStateStructure {
2512
- optional uint32 senderKeyId = 1;
2513
- optional SenderChainKey senderChainKey = 2;
2514
- optional SenderSigningKey senderSigningKey = 3;
2515
- repeated SenderMessageKey senderMessageKeys = 4;
2516
- message SenderChainKey {
2517
- optional uint32 iteration = 1;
2518
- optional bytes seed = 2;
2519
- }
2520
-
2521
- message SenderMessageKey {
2522
- optional uint32 iteration = 1;
2523
- optional bytes seed = 2;
2524
- }
2525
-
2526
- message SenderSigningKey {
2527
- optional bytes public = 1;
2528
- optional bytes private = 2;
2529
- }
2530
-
2531
- }
2532
-
2533
- message ServerErrorReceipt {
2534
- optional string stanzaId = 1;
2535
- }
2536
-
2537
- message SessionStructure {
2538
- optional uint32 sessionVersion = 1;
2539
- optional bytes localIdentityPublic = 2;
2540
- optional bytes remoteIdentityPublic = 3;
2541
- optional bytes rootKey = 4;
2542
- optional uint32 previousCounter = 5;
2543
- optional Chain senderChain = 6;
2544
- repeated Chain receiverChains = 7;
2545
- optional PendingKeyExchange pendingKeyExchange = 8;
2546
- optional PendingPreKey pendingPreKey = 9;
2547
- optional uint32 remoteRegistrationId = 10;
2548
- optional uint32 localRegistrationId = 11;
2549
- optional bool needsRefresh = 12;
2550
- optional bytes aliceBaseKey = 13;
2551
- message Chain {
2552
- optional bytes senderRatchetKey = 1;
2553
- optional bytes senderRatchetKeyPrivate = 2;
2554
- optional ChainKey chainKey = 3;
2555
- repeated MessageKey messageKeys = 4;
2556
- message ChainKey {
2557
- optional uint32 index = 1;
2558
- optional bytes key = 2;
2559
- }
2560
-
2561
- message MessageKey {
2562
- optional uint32 index = 1;
2563
- optional bytes cipherKey = 2;
2564
- optional bytes macKey = 3;
2565
- optional bytes iv = 4;
2566
- }
2567
-
2568
- }
2569
-
2570
- message PendingKeyExchange {
2571
- optional uint32 sequence = 1;
2572
- optional bytes localBaseKey = 2;
2573
- optional bytes localBaseKeyPrivate = 3;
2574
- optional bytes localRatchetKey = 4;
2575
- optional bytes localRatchetKeyPrivate = 5;
2576
- optional bytes localIdentityKey = 7;
2577
- optional bytes localIdentityKeyPrivate = 8;
2578
- }
2579
-
2580
- message PendingPreKey {
2581
- optional uint32 preKeyId = 1;
2582
- optional int32 signedPreKeyId = 3;
2583
- optional bytes baseKey = 2;
2584
- }
2585
-
2586
- }
2587
-
2588
- message SignalMessage {
2589
- optional bytes ratchetKey = 1;
2590
- optional uint32 counter = 2;
2591
- optional uint32 previousCounter = 3;
2592
- optional bytes ciphertext = 4;
2593
- }
2594
-
2595
- message SignedPreKeyRecordStructure {
2596
- optional uint32 id = 1;
2597
- optional bytes publicKey = 2;
2598
- optional bytes privateKey = 3;
2599
- optional bytes signature = 4;
2600
- optional fixed64 timestamp = 5;
2601
- }
2602
-
2603
- message StatusPSA {
2604
- required uint64 campaignId = 44;
2605
- optional uint64 campaignExpirationTimestamp = 45;
2606
- }
2607
-
2608
- message StickerMetadata {
2609
- optional string url = 1;
2610
- optional bytes fileSha256 = 2;
2611
- optional bytes fileEncSha256 = 3;
2612
- optional bytes mediaKey = 4;
2613
- optional string mimetype = 5;
2614
- optional uint32 height = 6;
2615
- optional uint32 width = 7;
2616
- optional string directPath = 8;
2617
- optional uint64 fileLength = 9;
2618
- optional float weight = 10;
2619
- optional int64 lastStickerSentTs = 11;
2620
- }
2621
-
2622
- message SyncActionData {
2623
- optional bytes index = 1;
2624
- optional SyncActionValue value = 2;
2625
- optional bytes padding = 3;
2626
- optional int32 version = 4;
2627
- }
2628
-
2629
- message SyncActionValue {
2630
- optional int64 timestamp = 1;
2631
- optional StarAction starAction = 2;
2632
- optional ContactAction contactAction = 3;
2633
- optional MuteAction muteAction = 4;
2634
- optional PinAction pinAction = 5;
2635
- optional SecurityNotificationSetting securityNotificationSetting = 6;
2636
- optional PushNameSetting pushNameSetting = 7;
2637
- optional QuickReplyAction quickReplyAction = 8;
2638
- optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11;
2639
- optional LabelEditAction labelEditAction = 14;
2640
- optional LabelAssociationAction labelAssociationAction = 15;
2641
- optional LocaleSetting localeSetting = 16;
2642
- optional ArchiveChatAction archiveChatAction = 17;
2643
- optional DeleteMessageForMeAction deleteMessageForMeAction = 18;
2644
- optional KeyExpiration keyExpiration = 19;
2645
- optional MarkChatAsReadAction markChatAsReadAction = 20;
2646
- optional ClearChatAction clearChatAction = 21;
2647
- optional DeleteChatAction deleteChatAction = 22;
2648
- optional UnarchiveChatsSetting unarchiveChatsSetting = 23;
2649
- optional PrimaryFeature primaryFeature = 24;
2650
- optional AndroidUnsupportedActions androidUnsupportedActions = 26;
2651
- optional AgentAction agentAction = 27;
2652
- optional SubscriptionAction subscriptionAction = 28;
2653
- optional UserStatusMuteAction userStatusMuteAction = 29;
2654
- optional TimeFormatAction timeFormatAction = 30;
2655
- optional NuxAction nuxAction = 31;
2656
- optional PrimaryVersionAction primaryVersionAction = 32;
2657
- optional StickerAction stickerAction = 33;
2658
- optional RemoveRecentStickerAction removeRecentStickerAction = 34;
2659
- optional ChatAssignmentAction chatAssignment = 35;
2660
- optional ChatAssignmentOpenedStatusAction chatAssignmentOpenedStatus = 36;
2661
- optional PnForLidChatAction pnForLidChatAction = 37;
2662
- optional MarketingMessageAction marketingMessageAction = 38;
2663
- optional MarketingMessageBroadcastAction marketingMessageBroadcastAction = 39;
2664
- optional ExternalWebBetaAction externalWebBetaAction = 40;
2665
- optional PrivacySettingRelayAllCalls privacySettingRelayAllCalls = 41;
2666
- optional CallLogAction callLogAction = 42;
2667
- optional StatusPrivacyAction statusPrivacy = 44;
2668
- optional BotWelcomeRequestAction botWelcomeRequestAction = 45;
2669
- optional DeleteIndividualCallLogAction deleteIndividualCallLog = 46;
2670
- optional LabelReorderingAction labelReorderingAction = 47;
2671
- optional PaymentInfoAction paymentInfoAction = 48;
2672
- optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
2673
- message AgentAction {
2674
- optional string name = 1;
2675
- optional int32 deviceID = 2;
2676
- optional bool isDeleted = 3;
2677
- }
2678
-
2679
- message AndroidUnsupportedActions {
2680
- optional bool allowed = 1;
2681
- }
2682
-
2683
- message ArchiveChatAction {
2684
- optional bool archived = 1;
2685
- optional SyncActionValue.SyncActionMessageRange messageRange = 2;
2686
- }
2687
-
2688
- message BotWelcomeRequestAction {
2689
- optional bool isSent = 1;
2690
- }
2691
-
2692
- message CallLogAction {
2693
- optional CallLogRecord callLogRecord = 1;
2694
- }
2695
-
2696
- message ChatAssignmentAction {
2697
- optional string deviceAgentID = 1;
2698
- }
2699
-
2700
- message ChatAssignmentOpenedStatusAction {
2701
- optional bool chatOpened = 1;
2702
- }
2703
-
2704
- message ClearChatAction {
2705
- optional SyncActionValue.SyncActionMessageRange messageRange = 1;
2706
- }
2707
-
2708
- message ContactAction {
2709
- optional string fullName = 1;
2710
- optional string firstName = 2;
2711
- optional string lidJid = 3;
2712
- optional bool saveOnPrimaryAddressbook = 4;
2713
- }
2714
-
2715
- message CustomPaymentMethod {
2716
- required string credentialId = 1;
2717
- required string country = 2;
2718
- required string type = 3;
2719
- repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
2720
- }
2721
-
2722
- message CustomPaymentMethodMetadata {
2723
- required string key = 1;
2724
- required string value = 2;
2725
- }
2726
-
2727
- message CustomPaymentMethodsAction {
2728
- repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
2729
- }
2730
-
2731
- message DeleteChatAction {
2732
- optional SyncActionValue.SyncActionMessageRange messageRange = 1;
2733
- }
2734
-
2735
- message DeleteIndividualCallLogAction {
2736
- optional string peerJid = 1;
2737
- optional bool isIncoming = 2;
2738
- }
2739
-
2740
- message DeleteMessageForMeAction {
2741
- optional bool deleteMedia = 1;
2742
- optional int64 messageTimestamp = 2;
2743
- }
2744
-
2745
- message ExternalWebBetaAction {
2746
- optional bool isOptIn = 1;
2747
- }
2748
-
2749
- message KeyExpiration {
2750
- optional int32 expiredKeyEpoch = 1;
2751
- }
2752
-
2753
- message LabelAssociationAction {
2754
- optional bool labeled = 1;
2755
- }
2756
-
2757
- message LabelEditAction {
2758
- optional string name = 1;
2759
- optional int32 color = 2;
2760
- optional int32 predefinedId = 3;
2761
- optional bool deleted = 4;
2762
- optional int32 orderIndex = 5;
2763
- }
2764
-
2765
- message LabelReorderingAction {
2766
- repeated int32 sortedLabelIds = 1;
2767
- }
2768
-
2769
- message LocaleSetting {
2770
- optional string locale = 1;
2771
- }
2772
-
2773
- message MarkChatAsReadAction {
2774
- optional bool read = 1;
2775
- optional SyncActionValue.SyncActionMessageRange messageRange = 2;
2776
- }
2777
-
2778
- message MarketingMessageAction {
2779
- optional string name = 1;
2780
- optional string message = 2;
2781
- optional MarketingMessagePrototypeType type = 3;
2782
- optional int64 createdAt = 4;
2783
- optional int64 lastSentAt = 5;
2784
- optional bool isDeleted = 6;
2785
- optional string mediaId = 7;
2786
- enum MarketingMessagePrototypeType {
2787
- PERSONALIZED = 0;
2788
- }
2789
- }
2790
-
2791
- message MarketingMessageBroadcastAction {
2792
- optional int32 repliedCount = 1;
2793
- }
2794
-
2795
- message MuteAction {
2796
- optional bool muted = 1;
2797
- optional int64 muteEndTimestamp = 2;
2798
- optional bool autoMuted = 3;
2799
- }
2800
-
2801
- message NuxAction {
2802
- optional bool acknowledged = 1;
2803
- }
2804
-
2805
- message PaymentInfoAction {
2806
- optional string cpi = 1;
2807
- }
2808
-
2809
- message PinAction {
2810
- optional bool pinned = 1;
2811
- }
2812
-
2813
- message PnForLidChatAction {
2814
- optional string pnJid = 1;
2815
- }
2816
-
2817
- message PrimaryFeature {
2818
- repeated string flags = 1;
2819
- }
2820
-
2821
- message PrimaryVersionAction {
2822
- optional string version = 1;
2823
- }
2824
-
2825
- message PrivacySettingRelayAllCalls {
2826
- optional bool isEnabled = 1;
2827
- }
2828
-
2829
- message PushNameSetting {
2830
- optional string name = 1;
2831
- }
2832
-
2833
- message QuickReplyAction {
2834
- optional string shortcut = 1;
2835
- optional string message = 2;
2836
- repeated string keywords = 3;
2837
- optional int32 count = 4;
2838
- optional bool deleted = 5;
2839
- }
2840
-
2841
- message RecentEmojiWeightsAction {
2842
- repeated RecentEmojiWeight weights = 1;
2843
- }
2844
-
2845
- message RemoveRecentStickerAction {
2846
- optional int64 lastStickerSentTs = 1;
2847
- }
2848
-
2849
- message SecurityNotificationSetting {
2850
- optional bool showNotification = 1;
2851
- }
2852
-
2853
- message StarAction {
2854
- optional bool starred = 1;
2855
- }
2856
-
2857
- message StatusPrivacyAction {
2858
- optional StatusDistributionMode mode = 1;
2859
- repeated string userJid = 2;
2860
- enum StatusDistributionMode {
2861
- ALLOW_LIST = 0;
2862
- DENY_LIST = 1;
2863
- CONTACTS = 2;
2864
- }
2865
- }
2866
-
2867
- message StickerAction {
2868
- optional string url = 1;
2869
- optional bytes fileEncSha256 = 2;
2870
- optional bytes mediaKey = 3;
2871
- optional string mimetype = 4;
2872
- optional uint32 height = 5;
2873
- optional uint32 width = 6;
2874
- optional string directPath = 7;
2875
- optional uint64 fileLength = 8;
2876
- optional bool isFavorite = 9;
2877
- optional uint32 deviceIdHint = 10;
2878
- }
2879
-
2880
- message SubscriptionAction {
2881
- optional bool isDeactivated = 1;
2882
- optional bool isAutoRenewing = 2;
2883
- optional int64 expirationDate = 3;
2884
- }
2885
-
2886
- message SyncActionMessage {
2887
- optional MessageKey key = 1;
2888
- optional int64 timestamp = 2;
2889
- }
2890
-
2891
- message SyncActionMessageRange {
2892
- optional int64 lastMessageTimestamp = 1;
2893
- optional int64 lastSystemMessageTimestamp = 2;
2894
- repeated SyncActionValue.SyncActionMessage messages = 3;
2895
- }
2896
-
2897
- message TimeFormatAction {
2898
- optional bool isTwentyFourHourFormatEnabled = 1;
2899
- }
2900
-
2901
- message UnarchiveChatsSetting {
2902
- optional bool unarchiveChats = 1;
2903
- }
2904
-
2905
- message UserStatusMuteAction {
2906
- optional bool muted = 1;
2907
- }
2908
-
2909
- }
2910
-
2911
- message SyncdIndex {
2912
- optional bytes blob = 1;
2913
- }
2914
-
2915
- message SyncdMutation {
2916
- optional SyncdOperation operation = 1;
2917
- optional SyncdRecord record = 2;
2918
- enum SyncdOperation {
2919
- SET = 0;
2920
- REMOVE = 1;
2921
- }
2922
- }
2923
-
2924
- message SyncdMutations {
2925
- repeated SyncdMutation mutations = 1;
2926
- }
2927
-
2928
- message SyncdPatch {
2929
- optional SyncdVersion version = 1;
2930
- repeated SyncdMutation mutations = 2;
2931
- optional ExternalBlobReference externalMutations = 3;
2932
- optional bytes snapshotMac = 4;
2933
- optional bytes patchMac = 5;
2934
- optional KeyId keyId = 6;
2935
- optional ExitCode exitCode = 7;
2936
- optional uint32 deviceIndex = 8;
2937
- optional bytes clientDebugData = 9;
2938
- }
2939
-
2940
- message SyncdRecord {
2941
- optional SyncdIndex index = 1;
2942
- optional SyncdValue value = 2;
2943
- optional KeyId keyId = 3;
2944
- }
2945
-
2946
- message SyncdSnapshot {
2947
- optional SyncdVersion version = 1;
2948
- repeated SyncdRecord records = 2;
2949
- optional bytes mac = 3;
2950
- optional KeyId keyId = 4;
2951
- }
2952
-
2953
- message SyncdValue {
2954
- optional bytes blob = 1;
2955
- }
2956
-
2957
- message SyncdVersion {
2958
- optional uint64 version = 1;
2959
- }
2960
-
2961
- message TemplateButton {
2962
- optional uint32 index = 4;
2963
- oneof button {
2964
- TemplateButton.QuickReplyButton quickReplyButton = 1;
2965
- TemplateButton.URLButton urlButton = 2;
2966
- TemplateButton.CallButton callButton = 3;
2967
- }
2968
- message CallButton {
2969
- optional Message.HighlyStructuredMessage displayText = 1;
2970
- optional Message.HighlyStructuredMessage phoneNumber = 2;
2971
- }
2972
-
2973
- message QuickReplyButton {
2974
- optional Message.HighlyStructuredMessage displayText = 1;
2975
- optional string id = 2;
2976
- }
2977
-
2978
- message URLButton {
2979
- optional Message.HighlyStructuredMessage displayText = 1;
2980
- optional Message.HighlyStructuredMessage url = 2;
2981
- }
2982
-
2983
- }
2984
-
2985
- message UserReceipt {
2986
- required string userJid = 1;
2987
- optional int64 receiptTimestamp = 2;
2988
- optional int64 readTimestamp = 3;
2989
- optional int64 playedTimestamp = 4;
2990
- repeated string pendingDeviceJid = 5;
2991
- repeated string deliveredDeviceJid = 6;
2992
- }
2993
-
2994
- message VerifiedNameCertificate {
2995
- optional bytes details = 1;
2996
- optional bytes signature = 2;
2997
- optional bytes serverSignature = 3;
2998
- message Details {
2999
- optional uint64 serial = 1;
3000
- optional string issuer = 2;
3001
- optional string verifiedName = 4;
3002
- repeated LocalizedName localizedNames = 8;
3003
- optional uint64 issueTime = 10;
3004
- }
3005
-
3006
- }
3007
-
3008
- message WallpaperSettings {
3009
- optional string filename = 1;
3010
- optional uint32 opacity = 2;
3011
- }
3012
-
3013
- message WebFeatures {
3014
- optional Flag labelsDisplay = 1;
3015
- optional Flag voipIndividualOutgoing = 2;
3016
- optional Flag groupsV3 = 3;
3017
- optional Flag groupsV3Create = 4;
3018
- optional Flag changeNumberV2 = 5;
3019
- optional Flag queryStatusV3Thumbnail = 6;
3020
- optional Flag liveLocations = 7;
3021
- optional Flag queryVname = 8;
3022
- optional Flag voipIndividualIncoming = 9;
3023
- optional Flag quickRepliesQuery = 10;
3024
- optional Flag payments = 11;
3025
- optional Flag stickerPackQuery = 12;
3026
- optional Flag liveLocationsFinal = 13;
3027
- optional Flag labelsEdit = 14;
3028
- optional Flag mediaUpload = 15;
3029
- optional Flag mediaUploadRichQuickReplies = 18;
3030
- optional Flag vnameV2 = 19;
3031
- optional Flag videoPlaybackUrl = 20;
3032
- optional Flag statusRanking = 21;
3033
- optional Flag voipIndividualVideo = 22;
3034
- optional Flag thirdPartyStickers = 23;
3035
- optional Flag frequentlyForwardedSetting = 24;
3036
- optional Flag groupsV4JoinPermission = 25;
3037
- optional Flag recentStickers = 26;
3038
- optional Flag catalog = 27;
3039
- optional Flag starredStickers = 28;
3040
- optional Flag voipGroupCall = 29;
3041
- optional Flag templateMessage = 30;
3042
- optional Flag templateMessageInteractivity = 31;
3043
- optional Flag ephemeralMessages = 32;
3044
- optional Flag e2ENotificationSync = 33;
3045
- optional Flag recentStickersV2 = 34;
3046
- optional Flag recentStickersV3 = 36;
3047
- optional Flag userNotice = 37;
3048
- optional Flag support = 39;
3049
- optional Flag groupUiiCleanup = 40;
3050
- optional Flag groupDogfoodingInternalOnly = 41;
3051
- optional Flag settingsSync = 42;
3052
- optional Flag archiveV2 = 43;
3053
- optional Flag ephemeralAllowGroupMembers = 44;
3054
- optional Flag ephemeral24HDuration = 45;
3055
- optional Flag mdForceUpgrade = 46;
3056
- optional Flag disappearingMode = 47;
3057
- optional Flag externalMdOptInAvailable = 48;
3058
- optional Flag noDeleteMessageTimeLimit = 49;
3059
- enum Flag {
3060
- NOT_STARTED = 0;
3061
- FORCE_UPGRADE = 1;
3062
- DEVELOPMENT = 2;
3063
- PRODUCTION = 3;
3064
- }
3065
- }
3066
-
3067
- message WebMessageInfo {
3068
- required MessageKey key = 1;
3069
- optional Message message = 2;
3070
- optional uint64 messageTimestamp = 3;
3071
- optional Status status = 4;
3072
- optional string participant = 5;
3073
- optional uint64 messageC2STimestamp = 6;
3074
- optional bool ignore = 16;
3075
- optional bool starred = 17;
3076
- optional bool broadcast = 18;
3077
- optional string pushName = 19;
3078
- optional bytes mediaCiphertextSha256 = 20;
3079
- optional bool multicast = 21;
3080
- optional bool urlText = 22;
3081
- optional bool urlNumber = 23;
3082
- optional StubType messageStubType = 24;
3083
- optional bool clearMedia = 25;
3084
- repeated string messageStubParameters = 26;
3085
- optional uint32 duration = 27;
3086
- repeated string labels = 28;
3087
- optional PaymentInfo paymentInfo = 29;
3088
- optional Message.LiveLocationMessage finalLiveLocation = 30;
3089
- optional PaymentInfo quotedPaymentInfo = 31;
3090
- optional uint64 ephemeralStartTimestamp = 32;
3091
- optional uint32 ephemeralDuration = 33;
3092
- optional bool ephemeralOffToOn = 34;
3093
- optional bool ephemeralOutOfSync = 35;
3094
- optional BizPrivacyStatus bizPrivacyStatus = 36;
3095
- optional string verifiedBizName = 37;
3096
- optional MediaData mediaData = 38;
3097
- optional PhotoChange photoChange = 39;
3098
- repeated UserReceipt userReceipt = 40;
3099
- repeated Reaction reactions = 41;
3100
- optional MediaData quotedStickerData = 42;
3101
- optional bytes futureproofData = 43;
3102
- optional StatusPSA statusPsa = 44;
3103
- repeated PollUpdate pollUpdates = 45;
3104
- optional PollAdditionalMetadata pollAdditionalMetadata = 46;
3105
- optional string agentId = 47;
3106
- optional bool statusAlreadyViewed = 48;
3107
- optional bytes messageSecret = 49;
3108
- optional KeepInChat keepInChat = 50;
3109
- optional string originalSelfAuthorUserJidString = 51;
3110
- optional uint64 revokeMessageTimestamp = 52;
3111
- optional PinInChat pinInChat = 54;
3112
- optional PremiumMessageInfo premiumMessageInfo = 55;
3113
- optional bool is1PBizBotMessage = 56;
3114
- optional bool isGroupHistoryMessage = 57;
3115
- optional string botMessageInvokerJid = 58;
3116
- optional CommentMetadata commentMetadata = 59;
3117
- repeated EventResponse eventResponses = 61;
3118
- optional ReportingTokenInfo reportingTokenInfo = 62;
3119
- optional uint64 newsletterServerId = 63;
3120
- enum BizPrivacyStatus {
3121
- E2EE = 0;
3122
- FB = 2;
3123
- BSP = 1;
3124
- BSP_AND_FB = 3;
3125
- }
3126
- enum Status {
3127
- ERROR = 0;
3128
- PENDING = 1;
3129
- SERVER_ACK = 2;
3130
- DELIVERY_ACK = 3;
3131
- READ = 4;
3132
- PLAYED = 5;
3133
- }
3134
- enum StubType {
3135
- UNKNOWN = 0;
3136
- REVOKE = 1;
3137
- CIPHERTEXT = 2;
3138
- FUTUREPROOF = 3;
3139
- NON_VERIFIED_TRANSITION = 4;
3140
- UNVERIFIED_TRANSITION = 5;
3141
- VERIFIED_TRANSITION = 6;
3142
- VERIFIED_LOW_UNKNOWN = 7;
3143
- VERIFIED_HIGH = 8;
3144
- VERIFIED_INITIAL_UNKNOWN = 9;
3145
- VERIFIED_INITIAL_LOW = 10;
3146
- VERIFIED_INITIAL_HIGH = 11;
3147
- VERIFIED_TRANSITION_ANY_TO_NONE = 12;
3148
- VERIFIED_TRANSITION_ANY_TO_HIGH = 13;
3149
- VERIFIED_TRANSITION_HIGH_TO_LOW = 14;
3150
- VERIFIED_TRANSITION_HIGH_TO_UNKNOWN = 15;
3151
- VERIFIED_TRANSITION_UNKNOWN_TO_LOW = 16;
3152
- VERIFIED_TRANSITION_LOW_TO_UNKNOWN = 17;
3153
- VERIFIED_TRANSITION_NONE_TO_LOW = 18;
3154
- VERIFIED_TRANSITION_NONE_TO_UNKNOWN = 19;
3155
- GROUP_CREATE = 20;
3156
- GROUP_CHANGE_SUBJECT = 21;
3157
- GROUP_CHANGE_ICON = 22;
3158
- GROUP_CHANGE_INVITE_LINK = 23;
3159
- GROUP_CHANGE_DESCRIPTION = 24;
3160
- GROUP_CHANGE_RESTRICT = 25;
3161
- GROUP_CHANGE_ANNOUNCE = 26;
3162
- GROUP_PARTICIPANT_ADD = 27;
3163
- GROUP_PARTICIPANT_REMOVE = 28;
3164
- GROUP_PARTICIPANT_PROMOTE = 29;
3165
- GROUP_PARTICIPANT_DEMOTE = 30;
3166
- GROUP_PARTICIPANT_INVITE = 31;
3167
- GROUP_PARTICIPANT_LEAVE = 32;
3168
- GROUP_PARTICIPANT_CHANGE_NUMBER = 33;
3169
- BROADCAST_CREATE = 34;
3170
- BROADCAST_ADD = 35;
3171
- BROADCAST_REMOVE = 36;
3172
- GENERIC_NOTIFICATION = 37;
3173
- E2E_IDENTITY_CHANGED = 38;
3174
- E2E_ENCRYPTED = 39;
3175
- CALL_MISSED_VOICE = 40;
3176
- CALL_MISSED_VIDEO = 41;
3177
- INDIVIDUAL_CHANGE_NUMBER = 42;
3178
- GROUP_DELETE = 43;
3179
- GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE = 44;
3180
- CALL_MISSED_GROUP_VOICE = 45;
3181
- CALL_MISSED_GROUP_VIDEO = 46;
3182
- PAYMENT_CIPHERTEXT = 47;
3183
- PAYMENT_FUTUREPROOF = 48;
3184
- PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED = 49;
3185
- PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED = 50;
3186
- PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED = 51;
3187
- PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP = 52;
3188
- PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP = 53;
3189
- PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER = 54;
3190
- PAYMENT_ACTION_SEND_PAYMENT_REMINDER = 55;
3191
- PAYMENT_ACTION_SEND_PAYMENT_INVITATION = 56;
3192
- PAYMENT_ACTION_REQUEST_DECLINED = 57;
3193
- PAYMENT_ACTION_REQUEST_EXPIRED = 58;
3194
- PAYMENT_ACTION_REQUEST_CANCELLED = 59;
3195
- BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM = 60;
3196
- BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP = 61;
3197
- BIZ_INTRO_TOP = 62;
3198
- BIZ_INTRO_BOTTOM = 63;
3199
- BIZ_NAME_CHANGE = 64;
3200
- BIZ_MOVE_TO_CONSUMER_APP = 65;
3201
- BIZ_TWO_TIER_MIGRATION_TOP = 66;
3202
- BIZ_TWO_TIER_MIGRATION_BOTTOM = 67;
3203
- OVERSIZED = 68;
3204
- GROUP_CHANGE_NO_FREQUENTLY_FORWARDED = 69;
3205
- GROUP_V4_ADD_INVITE_SENT = 70;
3206
- GROUP_PARTICIPANT_ADD_REQUEST_JOIN = 71;
3207
- CHANGE_EPHEMERAL_SETTING = 72;
3208
- E2E_DEVICE_CHANGED = 73;
3209
- VIEWED_ONCE = 74;
3210
- E2E_ENCRYPTED_NOW = 75;
3211
- BLUE_MSG_BSP_FB_TO_BSP_PREMISE = 76;
3212
- BLUE_MSG_BSP_FB_TO_SELF_FB = 77;
3213
- BLUE_MSG_BSP_FB_TO_SELF_PREMISE = 78;
3214
- BLUE_MSG_BSP_FB_UNVERIFIED = 79;
3215
- BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 80;
3216
- BLUE_MSG_BSP_FB_VERIFIED = 81;
3217
- BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 82;
3218
- BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE = 83;
3219
- BLUE_MSG_BSP_PREMISE_UNVERIFIED = 84;
3220
- BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 85;
3221
- BLUE_MSG_BSP_PREMISE_VERIFIED = 86;
3222
- BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 87;
3223
- BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED = 88;
3224
- BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED = 89;
3225
- BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED = 90;
3226
- BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED = 91;
3227
- BLUE_MSG_SELF_FB_TO_BSP_PREMISE = 92;
3228
- BLUE_MSG_SELF_FB_TO_SELF_PREMISE = 93;
3229
- BLUE_MSG_SELF_FB_UNVERIFIED = 94;
3230
- BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 95;
3231
- BLUE_MSG_SELF_FB_VERIFIED = 96;
3232
- BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 97;
3233
- BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE = 98;
3234
- BLUE_MSG_SELF_PREMISE_UNVERIFIED = 99;
3235
- BLUE_MSG_SELF_PREMISE_VERIFIED = 100;
3236
- BLUE_MSG_TO_BSP_FB = 101;
3237
- BLUE_MSG_TO_CONSUMER = 102;
3238
- BLUE_MSG_TO_SELF_FB = 103;
3239
- BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED = 104;
3240
- BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 105;
3241
- BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED = 106;
3242
- BLUE_MSG_UNVERIFIED_TO_VERIFIED = 107;
3243
- BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED = 108;
3244
- BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 109;
3245
- BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED = 110;
3246
- BLUE_MSG_VERIFIED_TO_UNVERIFIED = 111;
3247
- BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 112;
3248
- BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED = 113;
3249
- BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 114;
3250
- BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED = 115;
3251
- BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 116;
3252
- BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 117;
3253
- E2E_IDENTITY_UNAVAILABLE = 118;
3254
- GROUP_CREATING = 119;
3255
- GROUP_CREATE_FAILED = 120;
3256
- GROUP_BOUNCED = 121;
3257
- BLOCK_CONTACT = 122;
3258
- EPHEMERAL_SETTING_NOT_APPLIED = 123;
3259
- SYNC_FAILED = 124;
3260
- SYNCING = 125;
3261
- BIZ_PRIVACY_MODE_INIT_FB = 126;
3262
- BIZ_PRIVACY_MODE_INIT_BSP = 127;
3263
- BIZ_PRIVACY_MODE_TO_FB = 128;
3264
- BIZ_PRIVACY_MODE_TO_BSP = 129;
3265
- DISAPPEARING_MODE = 130;
3266
- E2E_DEVICE_FETCH_FAILED = 131;
3267
- ADMIN_REVOKE = 132;
3268
- GROUP_INVITE_LINK_GROWTH_LOCKED = 133;
3269
- COMMUNITY_LINK_PARENT_GROUP = 134;
3270
- COMMUNITY_LINK_SIBLING_GROUP = 135;
3271
- COMMUNITY_LINK_SUB_GROUP = 136;
3272
- COMMUNITY_UNLINK_PARENT_GROUP = 137;
3273
- COMMUNITY_UNLINK_SIBLING_GROUP = 138;
3274
- COMMUNITY_UNLINK_SUB_GROUP = 139;
3275
- GROUP_PARTICIPANT_ACCEPT = 140;
3276
- GROUP_PARTICIPANT_LINKED_GROUP_JOIN = 141;
3277
- COMMUNITY_CREATE = 142;
3278
- EPHEMERAL_KEEP_IN_CHAT = 143;
3279
- GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST = 144;
3280
- GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE = 145;
3281
- INTEGRITY_UNLINK_PARENT_GROUP = 146;
3282
- COMMUNITY_PARTICIPANT_PROMOTE = 147;
3283
- COMMUNITY_PARTICIPANT_DEMOTE = 148;
3284
- COMMUNITY_PARENT_GROUP_DELETED = 149;
3285
- COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL = 150;
3286
- GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP = 151;
3287
- MASKED_THREAD_CREATED = 152;
3288
- MASKED_THREAD_UNMASKED = 153;
3289
- BIZ_CHAT_ASSIGNMENT = 154;
3290
- CHAT_PSA = 155;
3291
- CHAT_POLL_CREATION_MESSAGE = 156;
3292
- CAG_MASKED_THREAD_CREATED = 157;
3293
- COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED = 158;
3294
- CAG_INVITE_AUTO_ADD = 159;
3295
- BIZ_CHAT_ASSIGNMENT_UNASSIGN = 160;
3296
- CAG_INVITE_AUTO_JOINED = 161;
3297
- SCHEDULED_CALL_START_MESSAGE = 162;
3298
- COMMUNITY_INVITE_RICH = 163;
3299
- COMMUNITY_INVITE_AUTO_ADD_RICH = 164;
3300
- SUB_GROUP_INVITE_RICH = 165;
3301
- SUB_GROUP_PARTICIPANT_ADD_RICH = 166;
3302
- COMMUNITY_LINK_PARENT_GROUP_RICH = 167;
3303
- COMMUNITY_PARTICIPANT_ADD_RICH = 168;
3304
- SILENCED_UNKNOWN_CALLER_AUDIO = 169;
3305
- SILENCED_UNKNOWN_CALLER_VIDEO = 170;
3306
- GROUP_MEMBER_ADD_MODE = 171;
3307
- GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD = 172;
3308
- COMMUNITY_CHANGE_DESCRIPTION = 173;
3309
- SENDER_INVITE = 174;
3310
- RECEIVER_INVITE = 175;
3311
- COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS = 176;
3312
- PINNED_MESSAGE_IN_CHAT = 177;
3313
- PAYMENT_INVITE_SETUP_INVITER = 178;
3314
- PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY = 179;
3315
- PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE = 180;
3316
- LINKED_GROUP_CALL_START = 181;
3317
- REPORT_TO_ADMIN_ENABLED_STATUS = 182;
3318
- EMPTY_SUBGROUP_CREATE = 183;
3319
- SCHEDULED_CALL_CANCEL = 184;
3320
- SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH = 185;
3321
- GROUP_CHANGE_RECENT_HISTORY_SHARING = 186;
3322
- PAID_MESSAGE_SERVER_CAMPAIGN_ID = 187;
3323
- GENERAL_CHAT_CREATE = 188;
3324
- GENERAL_CHAT_ADD = 189;
3325
- GENERAL_CHAT_AUTO_ADD_DISABLED = 190;
3326
- SUGGESTED_SUBGROUP_ANNOUNCE = 191;
3327
- BIZ_BOT_1P_MESSAGING_ENABLED = 192;
3328
- CHANGE_USERNAME = 193;
3329
- BIZ_COEX_PRIVACY_INIT_SELF = 194;
3330
- BIZ_COEX_PRIVACY_TRANSITION_SELF = 195;
3331
- SUPPORT_AI_EDUCATION = 196;
3332
- BIZ_BOT_3P_MESSAGING_ENABLED = 197;
3333
- REMINDER_SETUP_MESSAGE = 198;
3334
- REMINDER_SENT_MESSAGE = 199;
3335
- REMINDER_CANCEL_MESSAGE = 200;
3336
- }
3337
- }
3338
-
3339
- message WebNotificationsInfo {
3340
- optional uint64 timestamp = 2;
3341
- optional uint32 unreadChats = 3;
3342
- optional uint32 notifyMessageCount = 4;
3343
- repeated WebMessageInfo notifyMessages = 5;
3344
- }