WAWebProtobufSyncAction.proto 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  1. syntax = "proto2";
  2. package WAWebProtobufSyncAction;
  3. option go_package = "go.mau.fi/whatsmeow/proto/waSyncAction";
  4. import "waChatLockSettings/WAWebProtobufsChatLockSettings.proto";
  5. import "waDeviceCapabilities/WAWebProtobufsDeviceCapabilities.proto";
  6. import "waCommon/WACommon.proto";
  7. enum CollectionName {
  8. COLLECTION_NAME_UNKNOWN = 0;
  9. REGULAR = 1;
  10. REGULAR_LOW = 2;
  11. REGULAR_HIGH = 3;
  12. CRITICAL_BLOCK = 4;
  13. CRITICAL_UNBLOCK_LOW = 5;
  14. }
  15. enum MutationProps {
  16. STAR_ACTION = 2;
  17. CONTACT_ACTION = 3;
  18. MUTE_ACTION = 4;
  19. PIN_ACTION = 5;
  20. SECURITY_NOTIFICATION_SETTING = 6;
  21. PUSH_NAME_SETTING = 7;
  22. QUICK_REPLY_ACTION = 8;
  23. RECENT_EMOJI_WEIGHTS_ACTION = 11;
  24. LABEL_MESSAGE_ACTION = 13;
  25. LABEL_EDIT_ACTION = 14;
  26. LABEL_ASSOCIATION_ACTION = 15;
  27. LOCALE_SETTING = 16;
  28. ARCHIVE_CHAT_ACTION = 17;
  29. DELETE_MESSAGE_FOR_ME_ACTION = 18;
  30. KEY_EXPIRATION = 19;
  31. MARK_CHAT_AS_READ_ACTION = 20;
  32. CLEAR_CHAT_ACTION = 21;
  33. DELETE_CHAT_ACTION = 22;
  34. UNARCHIVE_CHATS_SETTING = 23;
  35. PRIMARY_FEATURE = 24;
  36. ANDROID_UNSUPPORTED_ACTIONS = 26;
  37. AGENT_ACTION = 27;
  38. SUBSCRIPTION_ACTION = 28;
  39. USER_STATUS_MUTE_ACTION = 29;
  40. TIME_FORMAT_ACTION = 30;
  41. NUX_ACTION = 31;
  42. PRIMARY_VERSION_ACTION = 32;
  43. STICKER_ACTION = 33;
  44. REMOVE_RECENT_STICKER_ACTION = 34;
  45. CHAT_ASSIGNMENT = 35;
  46. CHAT_ASSIGNMENT_OPENED_STATUS = 36;
  47. PN_FOR_LID_CHAT_ACTION = 37;
  48. MARKETING_MESSAGE_ACTION = 38;
  49. MARKETING_MESSAGE_BROADCAST_ACTION = 39;
  50. EXTERNAL_WEB_BETA_ACTION = 40;
  51. PRIVACY_SETTING_RELAY_ALL_CALLS = 41;
  52. CALL_LOG_ACTION = 42;
  53. UGC_BOT = 43;
  54. STATUS_PRIVACY = 44;
  55. BOT_WELCOME_REQUEST_ACTION = 45;
  56. DELETE_INDIVIDUAL_CALL_LOG = 46;
  57. LABEL_REORDERING_ACTION = 47;
  58. PAYMENT_INFO_ACTION = 48;
  59. CUSTOM_PAYMENT_METHODS_ACTION = 49;
  60. LOCK_CHAT_ACTION = 50;
  61. CHAT_LOCK_SETTINGS = 51;
  62. WAMO_USER_IDENTIFIER_ACTION = 52;
  63. PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION = 53;
  64. DEVICE_CAPABILITIES = 54;
  65. NOTE_EDIT_ACTION = 55;
  66. FAVORITES_ACTION = 56;
  67. MERCHANT_PAYMENT_PARTNER_ACTION = 57;
  68. WAFFLE_ACCOUNT_LINK_STATE_ACTION = 58;
  69. USERNAME_CHAT_START_MODE = 59;
  70. NOTIFICATION_ACTIVITY_SETTING_ACTION = 60;
  71. LID_CONTACT_ACTION = 61;
  72. CTWA_PER_CUSTOMER_DATA_SHARING_ACTION = 62;
  73. PAYMENT_TOS_ACTION = 63;
  74. PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION = 64;
  75. BUSINESS_BROADCAST_ASSOCIATION_ACTION = 65;
  76. DETECTED_OUTCOMES_STATUS_ACTION = 66;
  77. MAIBA_AI_FEATURES_CONTROL_ACTION = 68;
  78. BUSINESS_BROADCAST_LIST_ACTION = 69;
  79. MUSIC_USER_ID_ACTION = 70;
  80. STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION = 71;
  81. AVATAR_UPDATED_ACTION = 72;
  82. GALAXY_FLOW_ACTION = 73;
  83. PRIVATE_PROCESSING_SETTING_ACTION = 74;
  84. NEWSLETTER_SAVED_INTERESTS_ACTION = 75;
  85. AI_THREAD_RENAME_ACTION = 76;
  86. INTERACTIVE_MESSAGE_ACTION = 77;
  87. SETTINGS_SYNC_ACTION = 78;
  88. SHARE_OWN_PN = 10001;
  89. BUSINESS_BROADCAST_ACTION = 10002;
  90. AI_THREAD_DELETE_ACTION = 10003;
  91. }
  92. message CallLogRecord {
  93. enum CallType {
  94. REGULAR = 0;
  95. SCHEDULED_CALL = 1;
  96. VOICE_CHAT = 2;
  97. }
  98. enum SilenceReason {
  99. NONE = 0;
  100. SCHEDULED = 1;
  101. PRIVACY = 2;
  102. LIGHTWEIGHT = 3;
  103. }
  104. enum CallResult {
  105. CONNECTED = 0;
  106. REJECTED = 1;
  107. CANCELLED = 2;
  108. ACCEPTEDELSEWHERE = 3;
  109. MISSED = 4;
  110. INVALID = 5;
  111. UNAVAILABLE = 6;
  112. UPCOMING = 7;
  113. FAILED = 8;
  114. ABANDONED = 9;
  115. ONGOING = 10;
  116. }
  117. message ParticipantInfo {
  118. optional string userJID = 1;
  119. optional CallResult callResult = 2;
  120. }
  121. optional CallResult callResult = 1;
  122. optional bool isDndMode = 2;
  123. optional SilenceReason silenceReason = 3;
  124. optional int64 duration = 4;
  125. optional int64 startTime = 5;
  126. optional bool isIncoming = 6;
  127. optional bool isVideo = 7;
  128. optional bool isCallLink = 8;
  129. optional string callLinkToken = 9;
  130. optional string scheduledCallID = 10;
  131. optional string callID = 11;
  132. optional string callCreatorJID = 12;
  133. optional string groupJID = 13;
  134. repeated ParticipantInfo participants = 14;
  135. optional CallType callType = 15;
  136. }
  137. message SettingsSyncAction {
  138. enum DisplayMode {
  139. DISPLAY_MODE_UNKNOWN = 0;
  140. ALWAYS = 1;
  141. NEVER = 2;
  142. ONLY_WHEN_APP_IS_OPEN = 3;
  143. }
  144. enum SettingKey {
  145. SETTING_KEY_UNKNOWN = 0;
  146. START_AT_LOGIN = 1;
  147. MINIMIZE_TO_TRAY = 2;
  148. LANGUAGE = 3;
  149. REPLACE_TEXT_WITH_EMOJI = 4;
  150. BANNER_NOTIFICATION_DISPLAY_MODE = 5;
  151. UNREAD_COUNTER_BADGE_DISPLAY_MODE = 6;
  152. IS_MESSAGES_NOTIFICATION_ENABLED = 7;
  153. IS_CALLS_NOTIFICATION_ENABLED = 8;
  154. IS_REACTIONS_NOTIFICATION_ENABLED = 9;
  155. IS_STATUS_REACTIONS_NOTIFICATION_ENABLED = 10;
  156. IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED = 11;
  157. DEFAULT_NOTIFICATION_TONE_ID = 12;
  158. GROUP_DEFAULT_NOTIFICATION_TONE_ID = 13;
  159. APP_THEME = 14;
  160. WALLPAPER_ID = 15;
  161. IS_DOODLE_WALLPAPER_ENABLED = 16;
  162. FONT_SIZE = 17;
  163. IS_PHOTOS_AUTODOWNLOAD_ENABLED = 18;
  164. IS_AUDIOS_AUTODOWNLOAD_ENABLED = 19;
  165. IS_VIDEOS_AUTODOWNLOAD_ENABLED = 20;
  166. IS_DOCUMENTS_AUTODOWNLOAD_ENABLED = 21;
  167. DISABLE_LINK_PREVIEWS = 22;
  168. NOTIFICATION_TONE_ID = 23;
  169. }
  170. enum SettingPlatform {
  171. PLATFORM_UNKNOWN = 0;
  172. WEB = 1;
  173. HYBRID = 2;
  174. WINDOWS = 3;
  175. MAC = 4;
  176. }
  177. optional bool startAtLogin = 1;
  178. optional bool minimizeToTray = 2;
  179. optional string language = 3;
  180. optional bool replaceTextWithEmoji = 4;
  181. optional DisplayMode bannerNotificationDisplayMode = 5;
  182. optional DisplayMode unreadCounterBadgeDisplayMode = 6;
  183. optional bool isMessagesNotificationEnabled = 7;
  184. optional bool isCallsNotificationEnabled = 8;
  185. optional bool isReactionsNotificationEnabled = 9;
  186. optional bool isStatusReactionsNotificationEnabled = 10;
  187. optional bool isTextPreviewForNotificationEnabled = 11;
  188. optional int32 defaultNotificationToneID = 12;
  189. optional int32 groupDefaultNotificationToneID = 13;
  190. optional int32 appTheme = 14;
  191. optional int32 wallpaperID = 15;
  192. optional bool isDoodleWallpaperEnabled = 16;
  193. optional int32 fontSize = 17;
  194. optional bool isPhotosAutodownloadEnabled = 18;
  195. optional bool isAudiosAutodownloadEnabled = 19;
  196. optional bool isVideosAutodownloadEnabled = 20;
  197. optional bool isDocumentsAutodownloadEnabled = 21;
  198. optional bool disableLinkPreviews = 22;
  199. optional int32 notificationToneID = 23;
  200. }
  201. message InteractiveMessageAction {
  202. enum InteractiveMessageActionMode {
  203. DISABLE_CTA = 1;
  204. }
  205. required InteractiveMessageActionMode type = 1;
  206. }
  207. message PrivateProcessingSettingAction {
  208. enum PrivateProcessingStatus {
  209. UNDEFINED = 0;
  210. ENABLED = 1;
  211. DISABLED = 2;
  212. }
  213. optional PrivateProcessingStatus privateProcessingStatus = 1;
  214. }
  215. message AvatarUpdatedAction {
  216. enum AvatarEventType {
  217. UPDATED = 0;
  218. CREATED = 1;
  219. DELETED = 2;
  220. }
  221. optional AvatarEventType eventType = 1;
  222. repeated StickerAction recentAvatarStickers = 2;
  223. }
  224. message MaibaAIFeaturesControlAction {
  225. enum MaibaAIFeatureStatus {
  226. ENABLED = 0;
  227. ENABLED_HAS_LEARNING = 1;
  228. DISABLED = 2;
  229. }
  230. optional MaibaAIFeatureStatus aiFeatureStatus = 1;
  231. }
  232. message PaymentTosAction {
  233. enum PaymentNotice {
  234. BR_PAY_PRIVACY_POLICY = 0;
  235. }
  236. required PaymentNotice paymentNotice = 1;
  237. required bool accepted = 2;
  238. }
  239. message NotificationActivitySettingAction {
  240. enum NotificationActivitySetting {
  241. DEFAULT_ALL_MESSAGES = 0;
  242. ALL_MESSAGES = 1;
  243. HIGHLIGHTS = 2;
  244. DEFAULT_HIGHLIGHTS = 3;
  245. }
  246. optional NotificationActivitySetting notificationActivitySetting = 1;
  247. }
  248. message WaffleAccountLinkStateAction {
  249. enum AccountLinkState {
  250. ACTIVE = 0;
  251. PAUSED = 1;
  252. UNLINKED = 2;
  253. }
  254. optional AccountLinkState linkState = 2;
  255. }
  256. message MerchantPaymentPartnerAction {
  257. enum Status {
  258. ACTIVE = 0;
  259. INACTIVE = 1;
  260. }
  261. required Status status = 1;
  262. required string country = 2;
  263. optional string gatewayName = 3;
  264. optional string credentialID = 4;
  265. }
  266. message NoteEditAction {
  267. enum NoteType {
  268. UNSTRUCTURED = 1;
  269. STRUCTURED = 2;
  270. }
  271. optional NoteType type = 1;
  272. optional string chatJID = 2;
  273. optional int64 createdAt = 3;
  274. optional bool deleted = 4;
  275. optional string unstructuredContent = 5;
  276. }
  277. message StatusPrivacyAction {
  278. enum StatusDistributionMode {
  279. ALLOW_LIST = 0;
  280. DENY_LIST = 1;
  281. CONTACTS = 2;
  282. CLOSE_FRIENDS = 3;
  283. }
  284. optional StatusDistributionMode mode = 1;
  285. repeated string userJID = 2;
  286. }
  287. message MarketingMessageAction {
  288. enum MarketingMessagePrototypeType {
  289. PERSONALIZED = 0;
  290. }
  291. optional string name = 1;
  292. optional string message = 2;
  293. optional MarketingMessagePrototypeType type = 3;
  294. optional int64 createdAt = 4;
  295. optional int64 lastSentAt = 5;
  296. optional bool isDeleted = 6;
  297. optional string mediaID = 7;
  298. }
  299. message UsernameChatStartModeAction {
  300. enum ChatStartMode {
  301. LID = 1;
  302. PN = 2;
  303. }
  304. optional ChatStartMode chatStartMode = 1;
  305. }
  306. message LabelEditAction {
  307. enum ListType {
  308. NONE = 0;
  309. UNREAD = 1;
  310. GROUPS = 2;
  311. FAVORITES = 3;
  312. PREDEFINED = 4;
  313. CUSTOM = 5;
  314. COMMUNITY = 6;
  315. SERVER_ASSIGNED = 7;
  316. DRAFTED = 8;
  317. AI_HANDOFF = 9;
  318. }
  319. optional string name = 1;
  320. optional int32 color = 2;
  321. optional int32 predefinedID = 3;
  322. optional bool deleted = 4;
  323. optional int32 orderIndex = 5;
  324. optional bool isActive = 6;
  325. optional ListType type = 7;
  326. optional bool isImmutable = 8;
  327. optional int64 muteEndTimeMS = 9;
  328. }
  329. message PatchDebugData {
  330. enum Platform {
  331. ANDROID = 0;
  332. SMBA = 1;
  333. IPHONE = 2;
  334. SMBI = 3;
  335. WEB = 4;
  336. UWP = 5;
  337. DARWIN = 6;
  338. IPAD = 7;
  339. WEAROS = 8;
  340. WASG = 9;
  341. WEARM = 10;
  342. CAPI = 11;
  343. }
  344. optional bytes currentLthash = 1;
  345. optional bytes newLthash = 2;
  346. optional bytes patchVersion = 3;
  347. optional bytes collectionName = 4;
  348. optional bytes firstFourBytesFromAHashOfSnapshotMACKey = 5;
  349. optional bytes newLthashSubtract = 6;
  350. optional int32 numberAdd = 7;
  351. optional int32 numberRemove = 8;
  352. optional int32 numberOverride = 9;
  353. optional Platform senderPlatform = 10;
  354. optional bool isSenderPrimary = 11;
  355. }
  356. /*
  357. enum MutationName {
  358. STAR_ACTION = star;
  359. CONTACT_ACTION = contact;
  360. MUTE_ACTION = mute;
  361. PIN_ACTION = pin_v1;
  362. SECURITY_NOTIFICATION_SETTING = setting_securityNotification;
  363. PUSH_NAME_SETTING = setting_pushName;
  364. QUICK_REPLY_ACTION = quick_reply;
  365. RECENT_EMOJI_WEIGHTS_ACTION = recent_emoji_weights_action;
  366. LABEL_MESSAGE_ACTION = label_message;
  367. LABEL_EDIT_ACTION = label_edit;
  368. LABEL_ASSOCIATION_ACTION = label_jid;
  369. LOCALE_SETTING = setting_locale;
  370. ARCHIVE_CHAT_ACTION = archive;
  371. DELETE_MESSAGE_FOR_ME_ACTION = deleteMessageForMe;
  372. KEY_EXPIRATION = sentinel;
  373. MARK_CHAT_AS_READ_ACTION = markChatAsRead;
  374. CLEAR_CHAT_ACTION = clearChat;
  375. DELETE_CHAT_ACTION = deleteChat;
  376. UNARCHIVE_CHATS_SETTING = setting_unarchiveChats;
  377. PRIMARY_FEATURE = primary_feature;
  378. ANDROID_UNSUPPORTED_ACTIONS = android_unsupported_actions;
  379. AGENT_ACTION = deviceAgent;
  380. SUBSCRIPTION_ACTION = subscription;
  381. USER_STATUS_MUTE_ACTION = userStatusMute;
  382. TIME_FORMAT_ACTION = time_format;
  383. NUX_ACTION = nux;
  384. PRIMARY_VERSION_ACTION = primary_version;
  385. STICKER_ACTION = favoriteSticker;
  386. REMOVE_RECENT_STICKER_ACTION = removeRecentSticker;
  387. CHAT_ASSIGNMENT = agentChatAssignment;
  388. CHAT_ASSIGNMENT_OPENED_STATUS = agentChatAssignmentOpenedStatus;
  389. PN_FOR_LID_CHAT_ACTION = pnForLidChat;
  390. MARKETING_MESSAGE_ACTION = marketingMessage;
  391. MARKETING_MESSAGE_BROADCAST_ACTION = marketingMessageBroadcast;
  392. EXTERNAL_WEB_BETA_ACTION = external_web_beta;
  393. PRIVACY_SETTING_RELAY_ALL_CALLS = setting_relayAllCalls;
  394. CALL_LOG_ACTION = call_log;
  395. UGC_BOT = ugc_bot;
  396. STATUS_PRIVACY = status_privacy;
  397. BOT_WELCOME_REQUEST_ACTION = bot_welcome_request;
  398. DELETE_INDIVIDUAL_CALL_LOG = delete_individual_call_log;
  399. LABEL_REORDERING_ACTION = label_reordering;
  400. PAYMENT_INFO_ACTION = payment_info;
  401. CUSTOM_PAYMENT_METHODS_ACTION = custom_payment_methods;
  402. LOCK_CHAT_ACTION = lock;
  403. CHAT_LOCK_SETTINGS = setting_chatLock;
  404. WAMO_USER_IDENTIFIER_ACTION = generated_wui;
  405. PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION = setting_disableLinkPreviews;
  406. DEVICE_CAPABILITIES = device_capabilities;
  407. NOTE_EDIT_ACTION = note_edit;
  408. FAVORITES_ACTION = favorites;
  409. MERCHANT_PAYMENT_PARTNER_ACTION = merchant_payment_partner;
  410. WAFFLE_ACCOUNT_LINK_STATE_ACTION = waffle_account_link_state;
  411. USERNAME_CHAT_START_MODE = usernameChatStartMode;
  412. NOTIFICATION_ACTIVITY_SETTING_ACTION = notificationActivitySetting;
  413. LID_CONTACT_ACTION = lid_contact;
  414. CTWA_PER_CUSTOMER_DATA_SHARING_ACTION = ctwaPerCustomerDataSharing;
  415. PAYMENT_TOS_ACTION = payment_tos;
  416. PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION = setting_channels_personalised_recommendation_optout;
  417. BUSINESS_BROADCAST_ASSOCIATION_ACTION = broadcast_jid;
  418. DETECTED_OUTCOMES_STATUS_ACTION = detected_outcomes_status_action;
  419. MAIBA_AI_FEATURES_CONTROL_ACTION = maiba_ai_features_control;
  420. BUSINESS_BROADCAST_LIST_ACTION = business_broadcast_list;
  421. MUSIC_USER_ID_ACTION = music_user_id;
  422. STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION = status_post_opt_in_notification_preferences_action;
  423. AVATAR_UPDATED_ACTION = avatar_updated_action;
  424. GALAXY_FLOW_ACTION = galaxy_flow_action;
  425. PRIVATE_PROCESSING_SETTING_ACTION = private_processing_setting;
  426. NEWSLETTER_SAVED_INTERESTS_ACTION = newsletter_saved_interests;
  427. AI_THREAD_RENAME_ACTION = ai_thread_rename;
  428. INTERACTIVE_MESSAGE_ACTION = interactive_message_action;
  429. SETTINGS_SYNC_ACTION = settings_sync;
  430. SHARE_OWN_PN = shareOwnPn;
  431. BUSINESS_BROADCAST_ACTION = broadcast;
  432. AI_THREAD_DELETE_ACTION = ai_thread_delete;
  433. }
  434. */
  435. /*
  436. enum CollectionName {
  437. }
  438. */
  439. /*
  440. enum CollectionNameStr {
  441. REGULAR = regular;
  442. REGULAR_LOW = regular_low;
  443. REGULAR_HIGH = regular_high;
  444. CRITICAL_BLOCK = critical_block;
  445. CRITICAL_UNBLOCK_LOW = critical_unblock_low;
  446. }
  447. */
  448. message RecentEmojiWeight {
  449. optional string emoji = 1;
  450. optional float weight = 2;
  451. }
  452. message SyncActionValue {
  453. optional int64 timestamp = 1;
  454. optional StarAction starAction = 2;
  455. optional ContactAction contactAction = 3;
  456. optional MuteAction muteAction = 4;
  457. optional PinAction pinAction = 5;
  458. optional PushNameSetting pushNameSetting = 7;
  459. optional QuickReplyAction quickReplyAction = 8;
  460. optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11;
  461. optional LabelEditAction labelEditAction = 14;
  462. optional LabelAssociationAction labelAssociationAction = 15;
  463. optional LocaleSetting localeSetting = 16;
  464. optional ArchiveChatAction archiveChatAction = 17;
  465. optional DeleteMessageForMeAction deleteMessageForMeAction = 18;
  466. optional KeyExpiration keyExpiration = 19;
  467. optional MarkChatAsReadAction markChatAsReadAction = 20;
  468. optional ClearChatAction clearChatAction = 21;
  469. optional DeleteChatAction deleteChatAction = 22;
  470. optional UnarchiveChatsSetting unarchiveChatsSetting = 23;
  471. optional PrimaryFeature primaryFeature = 24;
  472. optional AndroidUnsupportedActions androidUnsupportedActions = 26;
  473. optional AgentAction agentAction = 27;
  474. optional SubscriptionAction subscriptionAction = 28;
  475. optional UserStatusMuteAction userStatusMuteAction = 29;
  476. optional TimeFormatAction timeFormatAction = 30;
  477. optional NuxAction nuxAction = 31;
  478. optional PrimaryVersionAction primaryVersionAction = 32;
  479. optional StickerAction stickerAction = 33;
  480. optional RemoveRecentStickerAction removeRecentStickerAction = 34;
  481. optional ChatAssignmentAction chatAssignment = 35;
  482. optional ChatAssignmentOpenedStatusAction chatAssignmentOpenedStatus = 36;
  483. optional PnForLidChatAction pnForLidChatAction = 37;
  484. optional MarketingMessageAction marketingMessageAction = 38;
  485. optional MarketingMessageBroadcastAction marketingMessageBroadcastAction = 39;
  486. optional ExternalWebBetaAction externalWebBetaAction = 40;
  487. optional PrivacySettingRelayAllCalls privacySettingRelayAllCalls = 41;
  488. optional CallLogAction callLogAction = 42;
  489. optional UGCBot ugcBot = 43;
  490. optional StatusPrivacyAction statusPrivacy = 44;
  491. optional BotWelcomeRequestAction botWelcomeRequestAction = 45;
  492. optional DeleteIndividualCallLogAction deleteIndividualCallLog = 46;
  493. optional LabelReorderingAction labelReorderingAction = 47;
  494. optional PaymentInfoAction paymentInfoAction = 48;
  495. optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
  496. optional LockChatAction lockChatAction = 50;
  497. optional WAWebProtobufsChatLockSettings.ChatLockSettings chatLockSettings = 51;
  498. optional WamoUserIdentifierAction wamoUserIdentifierAction = 52;
  499. optional PrivacySettingDisableLinkPreviewsAction privacySettingDisableLinkPreviewsAction = 53;
  500. optional WAWebProtobufsDeviceCapabilities.DeviceCapabilities deviceCapabilities = 54;
  501. optional NoteEditAction noteEditAction = 55;
  502. optional FavoritesAction favoritesAction = 56;
  503. optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
  504. optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
  505. optional UsernameChatStartModeAction usernameChatStartMode = 59;
  506. optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
  507. optional LidContactAction lidContactAction = 61;
  508. optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
  509. optional PaymentTosAction paymentTosAction = 63;
  510. optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
  511. optional DetectedOutcomesStatusAction detectedOutcomesStatusAction = 66;
  512. optional MaibaAIFeaturesControlAction maibaAiFeaturesControlAction = 68;
  513. optional BusinessBroadcastListAction businessBroadcastListAction = 69;
  514. optional MusicUserIdAction musicUserIDAction = 70;
  515. optional StatusPostOptInNotificationPreferencesAction statusPostOptInNotificationPreferencesAction = 71;
  516. optional AvatarUpdatedAction avatarUpdatedAction = 72;
  517. optional PrivateProcessingSettingAction privateProcessingSettingAction = 74;
  518. optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
  519. optional AiThreadRenameAction aiThreadRenameAction = 76;
  520. optional InteractiveMessageAction interactiveMessageAction = 77;
  521. optional SettingsSyncAction settingsSyncAction = 78;
  522. }
  523. message AiThreadRenameAction {
  524. optional string newTitle = 1;
  525. }
  526. message StatusPostOptInNotificationPreferencesAction {
  527. optional bool enabled = 1;
  528. }
  529. message BroadcastListParticipant {
  530. required string lidJID = 1;
  531. optional string pnJID = 2;
  532. }
  533. message BusinessBroadcastListAction {
  534. optional bool deleted = 1;
  535. repeated BroadcastListParticipant participants = 2;
  536. optional string listName = 3;
  537. }
  538. message BusinessBroadcastAssociationAction {
  539. optional bool deleted = 1;
  540. }
  541. message CtwaPerCustomerDataSharingAction {
  542. optional bool isCtwaPerCustomerDataSharingEnabled = 1;
  543. }
  544. message LidContactAction {
  545. optional string fullName = 1;
  546. optional string firstName = 2;
  547. optional string username = 3;
  548. }
  549. message FavoritesAction {
  550. message Favorite {
  551. optional string ID = 1;
  552. }
  553. repeated Favorite favorites = 1;
  554. }
  555. message PrivacySettingChannelsPersonalisedRecommendationAction {
  556. optional bool isUserOptedOut = 1;
  557. }
  558. message PrivacySettingDisableLinkPreviewsAction {
  559. optional bool isPreviewsDisabled = 1;
  560. }
  561. message WamoUserIdentifierAction {
  562. optional string identifier = 1;
  563. }
  564. message LockChatAction {
  565. optional bool locked = 1;
  566. }
  567. message CustomPaymentMethodsAction {
  568. repeated CustomPaymentMethod customPaymentMethods = 1;
  569. }
  570. message CustomPaymentMethod {
  571. required string credentialID = 1;
  572. required string country = 2;
  573. required string type = 3;
  574. repeated CustomPaymentMethodMetadata metadata = 4;
  575. }
  576. message CustomPaymentMethodMetadata {
  577. required string key = 1;
  578. required string value = 2;
  579. }
  580. message PaymentInfoAction {
  581. optional string cpi = 1;
  582. }
  583. message LabelReorderingAction {
  584. repeated int32 sortedLabelIDs = 1;
  585. }
  586. message DeleteIndividualCallLogAction {
  587. optional string peerJID = 1;
  588. optional bool isIncoming = 2;
  589. }
  590. message BotWelcomeRequestAction {
  591. optional bool isSent = 1;
  592. }
  593. message NewsletterSavedInterestsAction {
  594. optional string newsletterSavedInterests = 1;
  595. }
  596. message MusicUserIdAction {
  597. optional string musicUserID = 1;
  598. // TODO switch to proto3 and enable this
  599. //optional map<string, string> music_user_id_map = 2;
  600. }
  601. message UGCBot {
  602. optional bytes definition = 1;
  603. }
  604. message CallLogAction {
  605. optional CallLogRecord callLogRecord = 1;
  606. }
  607. message PrivacySettingRelayAllCalls {
  608. optional bool isEnabled = 1;
  609. }
  610. message DetectedOutcomesStatusAction {
  611. optional bool isEnabled = 1;
  612. }
  613. message ExternalWebBetaAction {
  614. optional bool isOptIn = 1;
  615. }
  616. message MarketingMessageBroadcastAction {
  617. optional int32 repliedCount = 1;
  618. }
  619. message PnForLidChatAction {
  620. optional string pnJID = 1;
  621. }
  622. message ChatAssignmentOpenedStatusAction {
  623. optional bool chatOpened = 1;
  624. }
  625. message ChatAssignmentAction {
  626. optional string deviceAgentID = 1;
  627. }
  628. message StickerAction {
  629. optional string URL = 1;
  630. optional bytes fileEncSHA256 = 2;
  631. optional bytes mediaKey = 3;
  632. optional string mimetype = 4;
  633. optional uint32 height = 5;
  634. optional uint32 width = 6;
  635. optional string directPath = 7;
  636. optional uint64 fileLength = 8;
  637. optional bool isFavorite = 9;
  638. optional uint32 deviceIDHint = 10;
  639. optional bool isLottie = 11;
  640. optional string imageHash = 12;
  641. optional bool isAvatarSticker = 13;
  642. }
  643. message RemoveRecentStickerAction {
  644. optional int64 lastStickerSentTS = 1;
  645. }
  646. message PrimaryVersionAction {
  647. optional string version = 1;
  648. }
  649. message NuxAction {
  650. optional bool acknowledged = 1;
  651. }
  652. message TimeFormatAction {
  653. optional bool isTwentyFourHourFormatEnabled = 1;
  654. }
  655. message UserStatusMuteAction {
  656. optional bool muted = 1;
  657. }
  658. message SubscriptionAction {
  659. optional bool isDeactivated = 1;
  660. optional bool isAutoRenewing = 2;
  661. optional int64 expirationDate = 3;
  662. }
  663. message AgentAction {
  664. optional string name = 1;
  665. optional int32 deviceID = 2;
  666. optional bool isDeleted = 3;
  667. }
  668. message AndroidUnsupportedActions {
  669. optional bool allowed = 1;
  670. }
  671. message PrimaryFeature {
  672. repeated string flags = 1;
  673. }
  674. message KeyExpiration {
  675. optional int32 expiredKeyEpoch = 1;
  676. }
  677. message SyncActionMessage {
  678. optional WACommon.MessageKey key = 1;
  679. optional int64 timestamp = 2;
  680. }
  681. message SyncActionMessageRange {
  682. optional int64 lastMessageTimestamp = 1;
  683. optional int64 lastSystemMessageTimestamp = 2;
  684. repeated SyncActionMessage messages = 3;
  685. }
  686. message UnarchiveChatsSetting {
  687. optional bool unarchiveChats = 1;
  688. }
  689. message DeleteChatAction {
  690. optional SyncActionMessageRange messageRange = 1;
  691. }
  692. message ClearChatAction {
  693. optional SyncActionMessageRange messageRange = 1;
  694. }
  695. message MarkChatAsReadAction {
  696. optional bool read = 1;
  697. optional SyncActionMessageRange messageRange = 2;
  698. }
  699. message DeleteMessageForMeAction {
  700. optional bool deleteMedia = 1;
  701. optional int64 messageTimestamp = 2;
  702. }
  703. message ArchiveChatAction {
  704. optional bool archived = 1;
  705. optional SyncActionMessageRange messageRange = 2;
  706. }
  707. message RecentEmojiWeightsAction {
  708. repeated RecentEmojiWeight weights = 1;
  709. }
  710. message LabelAssociationAction {
  711. optional bool labeled = 1;
  712. }
  713. message QuickReplyAction {
  714. optional string shortcut = 1;
  715. optional string message = 2;
  716. repeated string keywords = 3;
  717. optional int32 count = 4;
  718. optional bool deleted = 5;
  719. }
  720. message LocaleSetting {
  721. optional string locale = 1;
  722. }
  723. message PushNameSetting {
  724. optional string name = 1;
  725. }
  726. message PinAction {
  727. optional bool pinned = 1;
  728. }
  729. message MuteAction {
  730. optional bool muted = 1;
  731. optional int64 muteEndTimestamp = 2;
  732. optional bool autoMuted = 3;
  733. }
  734. message ContactAction {
  735. optional string fullName = 1;
  736. optional string firstName = 2;
  737. optional string lidJID = 3;
  738. optional bool saveOnPrimaryAddressbook = 4;
  739. optional string pnJID = 5;
  740. optional string username = 6;
  741. }
  742. message StarAction {
  743. optional bool starred = 1;
  744. }
  745. message SyncActionData {
  746. optional bytes index = 1;
  747. optional SyncActionValue value = 2;
  748. optional bytes padding = 3;
  749. optional int32 version = 4;
  750. }