slidge-whatsapp 0.3.0b0__cp312-cp312-manylinux_2_36_aarch64.whl → 0.3.1__cp312-cp312-manylinux_2_36_aarch64.whl

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.

Potentially problematic release.


This version of slidge-whatsapp might be problematic. Click here for more details.

Files changed (132) hide show
  1. slidge_whatsapp/contact.py +2 -0
  2. slidge_whatsapp/event.go +72 -22
  3. slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +195 -195
  4. slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
  5. slidge_whatsapp/generated/build.py +148 -148
  6. slidge_whatsapp/generated/whatsapp.c +1542 -1542
  7. slidge_whatsapp/generated/whatsapp.go +1210 -1210
  8. slidge_whatsapp/generated/whatsapp.py +1355 -1355
  9. slidge_whatsapp/generated/whatsapp_go.h +195 -195
  10. slidge_whatsapp/go.mod +5 -5
  11. slidge_whatsapp/go.sum +14 -14
  12. slidge_whatsapp/session.go +4 -4
  13. slidge_whatsapp/vendor/github.com/ebitengine/purego/README.md +21 -5
  14. slidge_whatsapp/vendor/github.com/ebitengine/purego/abi_loong64.h +60 -0
  15. slidge_whatsapp/vendor/github.com/ebitengine/purego/cgo.go +1 -1
  16. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlerror.go +1 -1
  17. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +1 -1
  18. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_netbsd.go +15 -0
  19. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_nocgo_netbsd.go +9 -0
  20. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_stubs.s +1 -1
  21. slidge_whatsapp/vendor/github.com/ebitengine/purego/func.go +113 -60
  22. slidge_whatsapp/vendor/github.com/ebitengine/purego/gen.go +6 -0
  23. slidge_whatsapp/vendor/github.com/ebitengine/purego/go_runtime.go +1 -1
  24. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/dlfcn_cgo_unix.go +2 -2
  25. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/syscall_cgo_unix.go +2 -2
  26. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/abi_loong64.h +60 -0
  27. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/asm_loong64.s +40 -0
  28. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/callbacks.go +1 -1
  29. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/doc.go +1 -1
  30. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +1 -1
  31. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_linux_loong64.go +92 -0
  32. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_netbsd.go +106 -0
  33. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_setenv.go +1 -1
  34. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_util.go +1 -1
  35. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/iscgo.go +1 -1
  36. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo.go +1 -1
  37. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_darwin.go +4 -0
  38. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_freebsd.go +4 -0
  39. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_linux.go +4 -0
  40. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_netbsd.go +26 -0
  41. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/netbsd.go +23 -0
  42. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/setenv.go +1 -1
  43. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +11 -1
  44. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_darwin.go +1 -0
  45. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_freebsd.go +1 -0
  46. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_linux.go +1 -0
  47. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_netbsd.go +30 -0
  48. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_loong64.s +71 -0
  49. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_stubs.s +5 -1
  50. slidge_whatsapp/vendor/github.com/ebitengine/purego/nocgo.go +1 -1
  51. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_amd64.go +8 -4
  52. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_arm64.go +16 -6
  53. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_loong64.go +190 -0
  54. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_other.go +6 -2
  55. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_amd64.s +1 -1
  56. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_arm64.s +1 -1
  57. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_loong64.s +96 -0
  58. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_unix_arm64.s +1 -1
  59. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_unix_loong64.s +75 -0
  60. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall.go +6 -3
  61. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_cgo_linux.go +3 -3
  62. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_sysv.go +13 -10
  63. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_windows.go +1 -1
  64. slidge_whatsapp/vendor/github.com/ebitengine/purego/zcallback_amd64.s +2002 -2002
  65. slidge_whatsapp/vendor/github.com/ebitengine/purego/zcallback_arm64.s +4002 -4002
  66. slidge_whatsapp/vendor/github.com/ebitengine/purego/zcallback_loong64.s +4014 -0
  67. slidge_whatsapp/vendor/go.mau.fi/util/dbutil/log.go +1 -0
  68. slidge_whatsapp/vendor/go.mau.fi/util/dbutil/module.go +118 -0
  69. slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgradetable.go +0 -34
  70. slidge_whatsapp/vendor/go.mau.fi/util/exbytes/string.go +20 -0
  71. slidge_whatsapp/vendor/go.mau.fi/util/exbytes/writer.go +78 -0
  72. slidge_whatsapp/vendor/go.mau.fi/util/exslices/cast.go +42 -0
  73. slidge_whatsapp/vendor/go.mau.fi/util/exslices/chunk.go +28 -0
  74. slidge_whatsapp/vendor/go.mau.fi/util/exslices/deduplicate.go +67 -0
  75. slidge_whatsapp/vendor/go.mau.fi/util/exslices/diff.go +63 -0
  76. slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +15 -1
  77. slidge_whatsapp/vendor/go.mau.fi/util/random/string.go +47 -7
  78. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -0
  79. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +34 -0
  80. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -0
  81. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +3 -0
  82. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +1 -2
  83. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +6 -0
  84. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +1 -0
  85. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +63 -42
  86. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +14 -10
  87. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +45 -18
  88. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +23 -0
  89. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +5 -1
  90. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +3 -7
  91. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAICommon/WAAICommon.pb.go +7747 -0
  92. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/{waBotMetadata/WABotMetadata.proto → waAICommon/WAAICommon.proto} +269 -9
  93. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +128 -14
  94. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +10 -0
  95. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +3236 -4732
  96. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +125 -273
  97. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +11 -2
  98. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +1 -0
  99. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +220 -81
  100. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +13 -0
  101. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +705 -449
  102. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +23 -0
  103. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +78 -24
  104. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +6 -0
  105. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +516 -267
  106. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +22 -0
  107. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +2 -0
  108. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/request.go +4 -0
  109. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +2 -3
  110. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +110 -28
  111. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
  112. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +12 -0
  113. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +82 -4
  114. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +112 -55
  115. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +8 -7
  116. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/11-redacted-phone-contacts.sql +2 -0
  117. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +20 -0
  118. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +6 -5
  119. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +7 -1
  120. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +3 -0
  121. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +31 -2
  122. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc.go +35 -17
  123. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go +14 -0
  124. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go +20 -0
  125. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
  126. slidge_whatsapp/vendor/modules.txt +8 -6
  127. {slidge_whatsapp-0.3.0b0.dist-info → slidge_whatsapp-0.3.1.dist-info}/METADATA +4 -3
  128. {slidge_whatsapp-0.3.0b0.dist-info → slidge_whatsapp-0.3.1.dist-info}/RECORD +131 -107
  129. {slidge_whatsapp-0.3.0b0.dist-info → slidge_whatsapp-0.3.1.dist-info}/WHEEL +1 -1
  130. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +0 -5156
  131. {slidge_whatsapp-0.3.0b0.dist-info → slidge_whatsapp-0.3.1.dist-info}/entry_points.txt +0 -0
  132. {slidge_whatsapp-0.3.0b0.dist-info → slidge_whatsapp-0.3.1.dist-info/licenses}/LICENSE +0 -0
@@ -1,10 +1,11 @@
1
1
  syntax = "proto2";
2
- package WABotMetadata;
3
- option go_package = "go.mau.fi/whatsmeow/proto/waBotMetadata";
2
+ package WAAICommon;
3
+ option go_package = "go.mau.fi/whatsmeow/proto/waAICommon";
4
4
 
5
5
  import "waCommon/WACommon.proto";
6
6
 
7
7
  enum BotMetricsEntryPoint {
8
+ UNDEFINED_ENTRY_POINT = 0;
8
9
  FAVICON = 1;
9
10
  CHATLIST = 2;
10
11
  AISEARCH_NULL_STATE_PAPER_PLANE = 3;
@@ -36,6 +37,11 @@ enum BotMetricsEntryPoint {
36
37
  INVOKE_META_AI_1ON1 = 29;
37
38
  INVOKE_META_AI_GROUP = 30;
38
39
  META_AI_FORWARD = 31;
40
+ NEW_CHAT_AI_CONTACT = 32;
41
+ MESSAGE_QUICK_ACTION_1_ON_1_CHAT = 33;
42
+ MESSAGE_QUICK_ACTION_GROUP_CHAT = 34;
43
+ ATTACHMENT_TRAY_1_ON_1_CHAT = 35;
44
+ ATTACHMENT_TRAY_GROUP_CHAT = 36;
39
45
  }
40
46
 
41
47
  enum BotMetricsThreadEntryPoint {
@@ -56,6 +62,24 @@ enum BotSessionSource {
56
62
  VOICE = 6;
57
63
  }
58
64
 
65
+ enum AIRichResponseMessageType {
66
+ AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
67
+ AI_RICH_RESPONSE_TYPE_STANDARD = 1;
68
+ }
69
+
70
+ enum AIRichResponseSubMessageType {
71
+ AI_RICH_RESPONSE_UNKNOWN = 0;
72
+ AI_RICH_RESPONSE_GRID_IMAGE = 1;
73
+ AI_RICH_RESPONSE_TEXT = 2;
74
+ AI_RICH_RESPONSE_INLINE_IMAGE = 3;
75
+ AI_RICH_RESPONSE_TABLE = 4;
76
+ AI_RICH_RESPONSE_CODE = 5;
77
+ AI_RICH_RESPONSE_DYNAMIC = 6;
78
+ AI_RICH_RESPONSE_MAP = 7;
79
+ AI_RICH_RESPONSE_LATEX = 8;
80
+ AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
81
+ }
82
+
59
83
  message BotPluginMetadata {
60
84
  enum PluginType {
61
85
  UNKNOWN_PLUGIN = 0;
@@ -94,13 +118,14 @@ message BotLinkedAccount {
94
118
 
95
119
  message BotSignatureVerificationUseCaseProof {
96
120
  enum BotSignatureUseCase {
97
- WA_BOT_MSG = 0;
121
+ UNSPECIFIED = 0;
122
+ WA_BOT_MSG = 1;
98
123
  }
99
124
 
100
125
  optional int32 version = 1;
101
126
  optional BotSignatureUseCase useCase = 2;
102
127
  optional bytes signature = 3;
103
- optional bytes certificateChain = 4;
128
+ repeated bytes certificateChain = 4;
104
129
  }
105
130
 
106
131
  message BotPromotionMessageMetadata {
@@ -268,6 +293,11 @@ message BotCapabilityMetadata {
268
293
  RICH_RESPONSE_SIDE_BY_SIDE_SURVEY = 38;
269
294
  RICH_RESPONSE_UNIFIED_TEXT_COMPONENT = 39;
270
295
  AI_SHARED_MEMORY = 40;
296
+ RICH_RESPONSE_UNIFIED_SOURCES = 41;
297
+ RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42;
298
+ RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
299
+ RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
300
+ RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
271
301
  }
272
302
 
273
303
  repeated BotCapabilityType capabilities = 1;
@@ -309,6 +339,17 @@ message BotImagineMetadata {
309
339
  optional ImagineType imagineType = 1;
310
340
  }
311
341
 
342
+ message BotAgeCollectionMetadata {
343
+ enum AgeCollectionType {
344
+ O18_BINARY = 0;
345
+ WAFFLE = 1;
346
+ }
347
+
348
+ optional bool ageCollectionEligible = 1;
349
+ optional bool shouldTriggerAgeCollectionOnClient = 2;
350
+ optional AgeCollectionType ageCollectionType = 3;
351
+ }
352
+
312
353
  message BotSourcesMetadata {
313
354
  message BotSourceItem {
314
355
  enum SourceProvider {
@@ -358,6 +399,139 @@ message AIThreadInfo {
358
399
  optional AIThreadClientInfo clientInfo = 2;
359
400
  }
360
401
 
402
+ message BotFeedbackMessage {
403
+ enum ReportKind {
404
+ NONE = 0;
405
+ GENERIC = 1;
406
+ }
407
+
408
+ enum BotFeedbackKindMultiplePositive {
409
+ BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
410
+ }
411
+
412
+ enum BotFeedbackKindMultipleNegative {
413
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
414
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
415
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
416
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
417
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
418
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
419
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
420
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
421
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
422
+ }
423
+
424
+ enum BotFeedbackKind {
425
+ BOT_FEEDBACK_POSITIVE = 0;
426
+ BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
427
+ BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
428
+ BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
429
+ BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
430
+ BOT_FEEDBACK_NEGATIVE_SAFE = 5;
431
+ BOT_FEEDBACK_NEGATIVE_OTHER = 6;
432
+ BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
433
+ BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
434
+ BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
435
+ BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
436
+ BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
437
+ BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
438
+ BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
439
+ BOT_FEEDBACK_NEGATIVE = 14;
440
+ }
441
+
442
+ message SideBySideSurveyMetadata {
443
+ message SideBySideSurveyAnalyticsData {
444
+ optional string tessaEvent = 1;
445
+ optional string tessaSessionFbid = 2;
446
+ }
447
+
448
+ optional string selectedRequestID = 1;
449
+ optional uint32 surveyID = 2;
450
+ optional string simonSessionFbid = 3;
451
+ optional string responseOtid = 4;
452
+ optional string responseTimestampMSString = 5;
453
+ optional bool isSelectedResponsePrimary = 6;
454
+ optional string messageIDToEdit = 7;
455
+ optional SideBySideSurveyAnalyticsData analyticsData = 8;
456
+ }
457
+
458
+ optional WACommon.MessageKey messageKey = 1;
459
+ optional BotFeedbackKind kind = 2;
460
+ optional string text = 3;
461
+ optional uint64 kindNegative = 4;
462
+ optional uint64 kindPositive = 5;
463
+ optional ReportKind kindReport = 6;
464
+ optional SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;
465
+ }
466
+
467
+ message AIRichResponseInlineImageMetadata {
468
+ enum AIRichResponseImageAlignment {
469
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
470
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
471
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
472
+ }
473
+
474
+ optional AIRichResponseImageURL imageURL = 1;
475
+ optional string imageText = 2;
476
+ optional AIRichResponseImageAlignment alignment = 3;
477
+ optional string tapLinkURL = 4;
478
+ }
479
+
480
+ message AIRichResponseCodeMetadata {
481
+ enum AIRichResponseCodeHighlightType {
482
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
483
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
484
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
485
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
486
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
487
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
488
+ }
489
+
490
+ message AIRichResponseCodeBlock {
491
+ optional AIRichResponseCodeHighlightType highlightType = 1;
492
+ optional string codeContent = 2;
493
+ }
494
+
495
+ optional string codeLanguage = 1;
496
+ repeated AIRichResponseCodeBlock codeBlocks = 2;
497
+ }
498
+
499
+ message AIRichResponseDynamicMetadata {
500
+ enum AIRichResponseDynamicMetadataType {
501
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
502
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
503
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
504
+ }
505
+
506
+ optional AIRichResponseDynamicMetadataType type = 1;
507
+ optional uint64 version = 2;
508
+ optional string URL = 3;
509
+ optional uint32 loopCount = 4;
510
+ }
511
+
512
+ message AIRichResponseContentItemsMetadata {
513
+ enum ContentType {
514
+ DEFAULT = 0;
515
+ CAROUSEL = 1;
516
+ }
517
+
518
+ message AIRichResponseContentItemMetadata {
519
+ oneof aIRichResponseContentItem {
520
+ AIRichResponseReelItem reelItem = 1;
521
+ }
522
+ }
523
+
524
+ message AIRichResponseReelItem {
525
+ optional string title = 1;
526
+ optional string profileIconURL = 2;
527
+ optional string thumbnailURL = 3;
528
+ optional string videoURL = 4;
529
+ }
530
+
531
+ repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
532
+ optional ContentType contentType = 2;
533
+ }
534
+
361
535
  message BotAvatarMetadata {
362
536
  optional uint32 sentiment = 1;
363
537
  optional string behaviorGraph = 2;
@@ -427,11 +601,6 @@ message BotMemuMetadata {
427
601
  repeated BotMediaMetadata faceImages = 1;
428
602
  }
429
603
 
430
- message BotAgeCollectionMetadata {
431
- optional bool ageCollectionEligible = 1;
432
- optional bool shouldTriggerAgeCollectionOnClient = 2;
433
- }
434
-
435
604
  message InThreadSurveyMetadata {
436
605
  message InThreadSurveyPrivacyStatementPart {
437
606
  optional string text = 1;
@@ -474,11 +643,18 @@ message BotMessageOriginMetadata {
474
643
  }
475
644
 
476
645
  message BotUnifiedResponseMutation {
646
+ message MediaDetailsMetadata {
647
+ optional string ID = 1;
648
+ optional BotMediaMetadata highResMedia = 2;
649
+ optional BotMediaMetadata previewMedia = 3;
650
+ }
651
+
477
652
  message SideBySideMetadata {
478
653
  optional string primaryResponseID = 1;
479
654
  }
480
655
 
481
656
  optional SideBySideMetadata sbsMetadata = 1;
657
+ repeated MediaDetailsMetadata mediaDetailsMetadataList = 2;
482
658
  }
483
659
 
484
660
  message BotMetadata {
@@ -513,4 +689,88 @@ message BotMetadata {
513
689
  optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
514
690
  optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
515
691
  optional AIThreadInfo botThreadInfo = 31;
692
+ optional bytes internalMetadata = 999;
693
+ }
694
+
695
+ message ForwardedAIBotMessageInfo {
696
+ optional string botName = 1;
697
+ optional string botJID = 2;
698
+ optional string creatorName = 3;
699
+ }
700
+
701
+ message BotMessageSharingInfo {
702
+ optional BotMetricsEntryPoint botEntryPointOrigin = 1;
703
+ optional uint32 forwardScore = 2;
704
+ }
705
+
706
+ message AIRichResponseImageURL {
707
+ optional string imagePreviewURL = 1;
708
+ optional string imageHighResURL = 2;
709
+ optional string sourceURL = 3;
710
+ }
711
+
712
+ message AIRichResponseGridImageMetadata {
713
+ optional AIRichResponseImageURL gridImageURL = 1;
714
+ repeated AIRichResponseImageURL imageURLs = 2;
715
+ }
716
+
717
+ message AIRichResponseTableMetadata {
718
+ message AIRichResponseTableRow {
719
+ repeated string items = 1;
720
+ optional bool isHeading = 2;
721
+ }
722
+
723
+ repeated AIRichResponseTableRow rows = 1;
724
+ optional string title = 2;
725
+ }
726
+
727
+ message AIRichResponseUnifiedResponse {
728
+ optional bytes data = 1;
729
+ }
730
+
731
+ message AIRichResponseLatexMetadata {
732
+ message AIRichResponseLatexExpression {
733
+ optional string latexExpression = 1;
734
+ optional string URL = 2;
735
+ optional double width = 3;
736
+ optional double height = 4;
737
+ optional double fontHeight = 5;
738
+ optional double imageTopPadding = 6;
739
+ optional double imageLeadingPadding = 7;
740
+ optional double imageBottomPadding = 8;
741
+ optional double imageTrailingPadding = 9;
742
+ }
743
+
744
+ optional string text = 1;
745
+ repeated AIRichResponseLatexExpression expressions = 2;
746
+ }
747
+
748
+ message AIRichResponseMapMetadata {
749
+ message AIRichResponseMapAnnotation {
750
+ optional uint32 annotationNumber = 1;
751
+ optional double latitude = 2;
752
+ optional double longitude = 3;
753
+ optional string title = 4;
754
+ optional string body = 5;
755
+ }
756
+
757
+ optional double centerLatitude = 1;
758
+ optional double centerLongitude = 2;
759
+ optional double latitudeDelta = 3;
760
+ optional double longitudeDelta = 4;
761
+ repeated AIRichResponseMapAnnotation annotations = 5;
762
+ optional bool showInfoList = 6;
763
+ }
764
+
765
+ message AIRichResponseSubMessage {
766
+ optional AIRichResponseSubMessageType messageType = 1;
767
+ optional AIRichResponseGridImageMetadata gridImageMetadata = 2;
768
+ optional string messageText = 3;
769
+ optional AIRichResponseInlineImageMetadata imageMetadata = 4;
770
+ optional AIRichResponseCodeMetadata codeMetadata = 5;
771
+ optional AIRichResponseTableMetadata tableMetadata = 6;
772
+ optional AIRichResponseDynamicMetadata dynamicMetadata = 7;
773
+ optional AIRichResponseLatexMetadata latexMetadata = 8;
774
+ optional AIRichResponseMapMetadata mapMetadata = 9;
775
+ optional AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
516
776
  }
@@ -85,6 +85,8 @@ type DeviceCapabilities struct {
85
85
  state protoimpl.MessageState `protogen:"open.v1"`
86
86
  ChatLockSupportLevel *DeviceCapabilities_ChatLockSupportLevel `protobuf:"varint,1,opt,name=chatLockSupportLevel,enum=WAProtobufsDeviceCapabilities.DeviceCapabilities_ChatLockSupportLevel" json:"chatLockSupportLevel,omitempty"`
87
87
  LidMigration *DeviceCapabilities_LIDMigration `protobuf:"bytes,2,opt,name=lidMigration" json:"lidMigration,omitempty"`
88
+ BusinessBroadcast *DeviceCapabilities_BusinessBroadcast `protobuf:"bytes,3,opt,name=businessBroadcast" json:"businessBroadcast,omitempty"`
89
+ UserHasAvatar *DeviceCapabilities_UserHasAvatar `protobuf:"bytes,4,opt,name=userHasAvatar" json:"userHasAvatar,omitempty"`
88
90
  unknownFields protoimpl.UnknownFields
89
91
  sizeCache protoimpl.SizeCache
90
92
  }
@@ -133,6 +135,108 @@ func (x *DeviceCapabilities) GetLidMigration() *DeviceCapabilities_LIDMigration
133
135
  return nil
134
136
  }
135
137
 
138
+ func (x *DeviceCapabilities) GetBusinessBroadcast() *DeviceCapabilities_BusinessBroadcast {
139
+ if x != nil {
140
+ return x.BusinessBroadcast
141
+ }
142
+ return nil
143
+ }
144
+
145
+ func (x *DeviceCapabilities) GetUserHasAvatar() *DeviceCapabilities_UserHasAvatar {
146
+ if x != nil {
147
+ return x.UserHasAvatar
148
+ }
149
+ return nil
150
+ }
151
+
152
+ type DeviceCapabilities_UserHasAvatar struct {
153
+ state protoimpl.MessageState `protogen:"open.v1"`
154
+ UserHasAvatar *bool `protobuf:"varint,1,opt,name=userHasAvatar" json:"userHasAvatar,omitempty"`
155
+ unknownFields protoimpl.UnknownFields
156
+ sizeCache protoimpl.SizeCache
157
+ }
158
+
159
+ func (x *DeviceCapabilities_UserHasAvatar) Reset() {
160
+ *x = DeviceCapabilities_UserHasAvatar{}
161
+ mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[1]
162
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
163
+ ms.StoreMessageInfo(mi)
164
+ }
165
+
166
+ func (x *DeviceCapabilities_UserHasAvatar) String() string {
167
+ return protoimpl.X.MessageStringOf(x)
168
+ }
169
+
170
+ func (*DeviceCapabilities_UserHasAvatar) ProtoMessage() {}
171
+
172
+ func (x *DeviceCapabilities_UserHasAvatar) ProtoReflect() protoreflect.Message {
173
+ mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[1]
174
+ if x != nil {
175
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
176
+ if ms.LoadMessageInfo() == nil {
177
+ ms.StoreMessageInfo(mi)
178
+ }
179
+ return ms
180
+ }
181
+ return mi.MessageOf(x)
182
+ }
183
+
184
+ // Deprecated: Use DeviceCapabilities_UserHasAvatar.ProtoReflect.Descriptor instead.
185
+ func (*DeviceCapabilities_UserHasAvatar) Descriptor() ([]byte, []int) {
186
+ return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP(), []int{0, 0}
187
+ }
188
+
189
+ func (x *DeviceCapabilities_UserHasAvatar) GetUserHasAvatar() bool {
190
+ if x != nil && x.UserHasAvatar != nil {
191
+ return *x.UserHasAvatar
192
+ }
193
+ return false
194
+ }
195
+
196
+ type DeviceCapabilities_BusinessBroadcast struct {
197
+ state protoimpl.MessageState `protogen:"open.v1"`
198
+ ImportListEnabled *bool `protobuf:"varint,1,opt,name=importListEnabled" json:"importListEnabled,omitempty"`
199
+ unknownFields protoimpl.UnknownFields
200
+ sizeCache protoimpl.SizeCache
201
+ }
202
+
203
+ func (x *DeviceCapabilities_BusinessBroadcast) Reset() {
204
+ *x = DeviceCapabilities_BusinessBroadcast{}
205
+ mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[2]
206
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207
+ ms.StoreMessageInfo(mi)
208
+ }
209
+
210
+ func (x *DeviceCapabilities_BusinessBroadcast) String() string {
211
+ return protoimpl.X.MessageStringOf(x)
212
+ }
213
+
214
+ func (*DeviceCapabilities_BusinessBroadcast) ProtoMessage() {}
215
+
216
+ func (x *DeviceCapabilities_BusinessBroadcast) ProtoReflect() protoreflect.Message {
217
+ mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[2]
218
+ if x != nil {
219
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
220
+ if ms.LoadMessageInfo() == nil {
221
+ ms.StoreMessageInfo(mi)
222
+ }
223
+ return ms
224
+ }
225
+ return mi.MessageOf(x)
226
+ }
227
+
228
+ // Deprecated: Use DeviceCapabilities_BusinessBroadcast.ProtoReflect.Descriptor instead.
229
+ func (*DeviceCapabilities_BusinessBroadcast) Descriptor() ([]byte, []int) {
230
+ return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP(), []int{0, 1}
231
+ }
232
+
233
+ func (x *DeviceCapabilities_BusinessBroadcast) GetImportListEnabled() bool {
234
+ if x != nil && x.ImportListEnabled != nil {
235
+ return *x.ImportListEnabled
236
+ }
237
+ return false
238
+ }
239
+
136
240
  type DeviceCapabilities_LIDMigration struct {
137
241
  state protoimpl.MessageState `protogen:"open.v1"`
138
242
  ChatDbMigrationTimestamp *uint64 `protobuf:"varint,1,opt,name=chatDbMigrationTimestamp" json:"chatDbMigrationTimestamp,omitempty"`
@@ -142,7 +246,7 @@ type DeviceCapabilities_LIDMigration struct {
142
246
 
143
247
  func (x *DeviceCapabilities_LIDMigration) Reset() {
144
248
  *x = DeviceCapabilities_LIDMigration{}
145
- mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[1]
249
+ mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[3]
146
250
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
147
251
  ms.StoreMessageInfo(mi)
148
252
  }
@@ -154,7 +258,7 @@ func (x *DeviceCapabilities_LIDMigration) String() string {
154
258
  func (*DeviceCapabilities_LIDMigration) ProtoMessage() {}
155
259
 
156
260
  func (x *DeviceCapabilities_LIDMigration) ProtoReflect() protoreflect.Message {
157
- mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[1]
261
+ mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[3]
158
262
  if x != nil {
159
263
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160
264
  if ms.LoadMessageInfo() == nil {
@@ -167,7 +271,7 @@ func (x *DeviceCapabilities_LIDMigration) ProtoReflect() protoreflect.Message {
167
271
 
168
272
  // Deprecated: Use DeviceCapabilities_LIDMigration.ProtoReflect.Descriptor instead.
169
273
  func (*DeviceCapabilities_LIDMigration) Descriptor() ([]byte, []int) {
170
- return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP(), []int{0, 0}
274
+ return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP(), []int{0, 2}
171
275
  }
172
276
 
173
277
  func (x *DeviceCapabilities_LIDMigration) GetChatDbMigrationTimestamp() uint64 {
@@ -181,10 +285,16 @@ var File_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto protoreflect.F
181
285
 
182
286
  const file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDesc = "" +
183
287
  "\n" +
184
- "8waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto\x12\x1dWAProtobufsDeviceCapabilities\"\xf9\x02\n" +
288
+ "8waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto\x12\x1dWAProtobufsDeviceCapabilities\"\xcd\x05\n" +
185
289
  "\x12DeviceCapabilities\x12z\n" +
186
290
  "\x14chatLockSupportLevel\x18\x01 \x01(\x0e2F.WAProtobufsDeviceCapabilities.DeviceCapabilities.ChatLockSupportLevelR\x14chatLockSupportLevel\x12b\n" +
187
- "\flidMigration\x18\x02 \x01(\v2>.WAProtobufsDeviceCapabilities.DeviceCapabilities.LIDMigrationR\flidMigration\x1aJ\n" +
291
+ "\flidMigration\x18\x02 \x01(\v2>.WAProtobufsDeviceCapabilities.DeviceCapabilities.LIDMigrationR\flidMigration\x12q\n" +
292
+ "\x11businessBroadcast\x18\x03 \x01(\v2C.WAProtobufsDeviceCapabilities.DeviceCapabilities.BusinessBroadcastR\x11businessBroadcast\x12e\n" +
293
+ "\ruserHasAvatar\x18\x04 \x01(\v2?.WAProtobufsDeviceCapabilities.DeviceCapabilities.UserHasAvatarR\ruserHasAvatar\x1a5\n" +
294
+ "\rUserHasAvatar\x12$\n" +
295
+ "\ruserHasAvatar\x18\x01 \x01(\bR\ruserHasAvatar\x1aA\n" +
296
+ "\x11BusinessBroadcast\x12,\n" +
297
+ "\x11importListEnabled\x18\x01 \x01(\bR\x11importListEnabled\x1aJ\n" +
188
298
  "\fLIDMigration\x12:\n" +
189
299
  "\x18chatDbMigrationTimestamp\x18\x01 \x01(\x04R\x18chatDbMigrationTimestamp\"7\n" +
190
300
  "\x14ChatLockSupportLevel\x12\b\n" +
@@ -205,20 +315,24 @@ func file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP()
205
315
  }
206
316
 
207
317
  var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
208
- var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
318
+ var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
209
319
  var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_goTypes = []any{
210
320
  (DeviceCapabilities_ChatLockSupportLevel)(0), // 0: WAProtobufsDeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel
211
321
  (*DeviceCapabilities)(nil), // 1: WAProtobufsDeviceCapabilities.DeviceCapabilities
212
- (*DeviceCapabilities_LIDMigration)(nil), // 2: WAProtobufsDeviceCapabilities.DeviceCapabilities.LIDMigration
322
+ (*DeviceCapabilities_UserHasAvatar)(nil), // 2: WAProtobufsDeviceCapabilities.DeviceCapabilities.UserHasAvatar
323
+ (*DeviceCapabilities_BusinessBroadcast)(nil), // 3: WAProtobufsDeviceCapabilities.DeviceCapabilities.BusinessBroadcast
324
+ (*DeviceCapabilities_LIDMigration)(nil), // 4: WAProtobufsDeviceCapabilities.DeviceCapabilities.LIDMigration
213
325
  }
214
326
  var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_depIdxs = []int32{
215
327
  0, // 0: WAProtobufsDeviceCapabilities.DeviceCapabilities.chatLockSupportLevel:type_name -> WAProtobufsDeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel
216
- 2, // 1: WAProtobufsDeviceCapabilities.DeviceCapabilities.lidMigration:type_name -> WAProtobufsDeviceCapabilities.DeviceCapabilities.LIDMigration
217
- 2, // [2:2] is the sub-list for method output_type
218
- 2, // [2:2] is the sub-list for method input_type
219
- 2, // [2:2] is the sub-list for extension type_name
220
- 2, // [2:2] is the sub-list for extension extendee
221
- 0, // [0:2] is the sub-list for field type_name
328
+ 4, // 1: WAProtobufsDeviceCapabilities.DeviceCapabilities.lidMigration:type_name -> WAProtobufsDeviceCapabilities.DeviceCapabilities.LIDMigration
329
+ 3, // 2: WAProtobufsDeviceCapabilities.DeviceCapabilities.businessBroadcast:type_name -> WAProtobufsDeviceCapabilities.DeviceCapabilities.BusinessBroadcast
330
+ 2, // 3: WAProtobufsDeviceCapabilities.DeviceCapabilities.userHasAvatar:type_name -> WAProtobufsDeviceCapabilities.DeviceCapabilities.UserHasAvatar
331
+ 4, // [4:4] is the sub-list for method output_type
332
+ 4, // [4:4] is the sub-list for method input_type
333
+ 4, // [4:4] is the sub-list for extension type_name
334
+ 4, // [4:4] is the sub-list for extension extendee
335
+ 0, // [0:4] is the sub-list for field type_name
222
336
  }
223
337
 
224
338
  func init() { file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_init() }
@@ -232,7 +346,7 @@ func file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_init() {
232
346
  GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
233
347
  RawDescriptor: unsafe.Slice(unsafe.StringData(file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDesc), len(file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDesc)),
234
348
  NumEnums: 1,
235
- NumMessages: 2,
349
+ NumMessages: 4,
236
350
  NumExtensions: 0,
237
351
  NumServices: 0,
238
352
  },
@@ -9,10 +9,20 @@ message DeviceCapabilities {
9
9
  FULL = 2;
10
10
  }
11
11
 
12
+ message UserHasAvatar {
13
+ optional bool userHasAvatar = 1;
14
+ }
15
+
16
+ message BusinessBroadcast {
17
+ optional bool importListEnabled = 1;
18
+ }
19
+
12
20
  message LIDMigration {
13
21
  optional uint64 chatDbMigrationTimestamp = 1;
14
22
  }
15
23
 
16
24
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
17
25
  optional LIDMigration lidMigration = 2;
26
+ optional BusinessBroadcast businessBroadcast = 3;
27
+ optional UserHasAvatar userHasAvatar = 4;
18
28
  }