@@ -7,7 +7,8 @@ import "waCompanionReg/WAWebProtobufsCompanionReg.proto";
77import "waMmsRetry/WAMmsRetry.proto" ;
88import "waCommon/WACommon.proto" ;
99
10- enum PollMediaType {
10+ enum PollContentType {
11+ UNKNOWN_POLL_CONTENT_TYPE = 0 ;
1112 TEXT = 1 ;
1213 IMAGE = 2 ;
1314}
@@ -52,7 +53,7 @@ enum BotSessionSource {
5253}
5354
5455enum KeepType {
55- UNKNOWN = 0 ;
56+ UNKNOWN_KEEP_TYPE = 0 ;
5657 KEEP_FOR_ALL = 1 ;
5758 UNDO_KEEP_FOR_ALL = 2 ;
5859}
@@ -211,7 +212,7 @@ message PollCreationMessage {
211212 repeated Option options = 3 ;
212213 optional uint32 selectableOptionsCount = 4 ;
213214 optional ContextInfo contextInfo = 5 ;
214- optional PollMediaType pollMediaType = 6 ;
215+ optional PollContentType pollContentType = 6 ;
215216 optional PollType pollType = 7 ;
216217 optional Option correctAnswer = 8 ;
217218}
@@ -402,6 +403,7 @@ message InteractiveMessage {
402403 optional Body body = 2 ;
403404 optional Footer footer = 3 ;
404405 optional ContextInfo contextInfo = 15 ;
406+ optional UrlTrackingMap urlTrackingMap = 16 ;
405407}
406408
407409message ListResponseMessage {
@@ -1062,6 +1064,7 @@ message ContextInfo {
10621064 optional bytes ctwaPayload = 55 ;
10631065 optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56 ;
10641066 optional StatusAttributionType statusAttributionType = 57 ;
1067+ optional UrlTrackingMap urlTrackingMap = 58 ;
10651068}
10661069
10671070message BotPluginMetadata {
@@ -1092,6 +1095,101 @@ message BotPluginMetadata {
10921095 optional string faviconCDNURL = 13 ;
10931096}
10941097
1098+ message AIRichResponseMessage {
1099+ enum AIRichResponseSubMessageType {
1100+ AI_RICH_RESPONSE_UNKNOWN = 0 ;
1101+ AI_RICH_RESPONSE_GRID_IMAGE = 1 ;
1102+ AI_RICH_RESPONSE_TEXT = 2 ;
1103+ AI_RICH_RESPONSE_INLINE_IMAGE = 3 ;
1104+ AI_RICH_RESPONSE_TABLE = 4 ;
1105+ AI_RICH_RESPONSE_CODE = 5 ;
1106+ AI_RICH_RESPONSE_DYNAMIC = 6 ;
1107+ }
1108+
1109+ enum AIRichResponseMessageType {
1110+ AI_RICH_RESPONSE_TYPE_UNKNOWN = 0 ;
1111+ AI_RICH_RESPONSE_TYPE_STANDARD = 1 ;
1112+ AI_RICH_RESPONSE_TYPE_ARTIFACTS = 2 ;
1113+ }
1114+
1115+ message AIRichResponseDynamicMetadata {
1116+ enum AIRichResponseDynamicMetadataType {
1117+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0 ;
1118+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1 ;
1119+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2 ;
1120+ }
1121+
1122+ optional AIRichResponseDynamicMetadataType type = 1 ;
1123+ optional uint64 version = 2 ;
1124+ optional string URL = 3 ;
1125+ optional uint32 loopCount = 4 ;
1126+ }
1127+
1128+ message AIRichResponseCodeMetadata {
1129+ enum AIRichResponseCodeHighlightType {
1130+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0 ;
1131+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1 ;
1132+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2 ;
1133+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3 ;
1134+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4 ;
1135+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5 ;
1136+ }
1137+
1138+ message AIRichResponseCodeBlock {
1139+ optional AIRichResponseCodeHighlightType highlightType = 1 ;
1140+ optional string codeContent = 2 ;
1141+ }
1142+
1143+ optional string codeLanguage = 1 ;
1144+ repeated AIRichResponseCodeBlock codeBlocks = 2 ;
1145+ }
1146+
1147+ message AIRichResponseInlineImageMetadata {
1148+ enum AIRichResponseImageAlignment {
1149+ AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0 ;
1150+ AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1 ;
1151+ AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2 ;
1152+ }
1153+
1154+ optional AIRichResponseImageURL imageURL = 1 ;
1155+ optional string imageText = 2 ;
1156+ optional AIRichResponseImageAlignment alignment = 3 ;
1157+ optional string tapLinkURL = 4 ;
1158+ }
1159+
1160+ message AIRichResponseSubMessage {
1161+ optional AIRichResponseSubMessageType messageType = 1 ;
1162+ optional AIRichResponseGridImageMetadata gridImageMetadata = 2 ;
1163+ optional string messageText = 3 ;
1164+ optional AIRichResponseInlineImageMetadata imageMetadata = 4 ;
1165+ optional AIRichResponseCodeMetadata codeMetadata = 5 ;
1166+ optional AIRichResponseTableMetadata tableMetadata = 6 ;
1167+ optional AIRichResponseDynamicMetadata dynamicMetadata = 7 ;
1168+ }
1169+
1170+ message AIRichResponseTableMetadata {
1171+ message AIRichResponseTableRow {
1172+ repeated string items = 1 ;
1173+ optional bool isHeading = 2 ;
1174+ }
1175+
1176+ repeated AIRichResponseTableRow rows = 1 ;
1177+ }
1178+
1179+ message AIRichResponseGridImageMetadata {
1180+ optional AIRichResponseImageURL gridImageURL = 1 ;
1181+ repeated AIRichResponseImageURL imageURLs = 2 ;
1182+ }
1183+
1184+ message AIRichResponseImageURL {
1185+ optional string imagePreviewURL = 1 ;
1186+ optional string imageHighResURL = 2 ;
1187+ }
1188+
1189+ optional AIRichResponseMessageType messageType = 1 ;
1190+ repeated AIRichResponseSubMessage submessages = 2 ;
1191+ }
1192+
10951193message BotMediaMetadata {
10961194 enum OrientationType {
10971195 CENTER = 1 ;
@@ -1157,6 +1255,8 @@ message BotCapabilityMetadata {
11571255 RICH_RESPONSE_THREAD_SURFING = 5 ;
11581256 RICH_RESPONSE_TABLE = 6 ;
11591257 RICH_RESPONSE_CODE = 7 ;
1258+ RICH_RESPONSE_STRUCTURED_RESPONSE = 8 ;
1259+ RICH_RESPONSE_INLINE_IMAGE = 9 ;
11601260 WA_IG_1P_PLUGIN_RANKING_CONTROL = 10 ;
11611261 WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11 ;
11621262 WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12 ;
@@ -1403,6 +1503,8 @@ message Message {
14031503 optional FutureProofMessage pollCreationMessageV4 = 93 ;
14041504 optional FutureProofMessage pollCreationMessageV5 = 94 ;
14051505 optional FutureProofMessage statusAddYours = 95 ;
1506+ optional FutureProofMessage groupStatusMessage = 96 ;
1507+ optional AIRichResponseMessage richResponseMessage = 97 ;
14061508}
14071509
14081510message AlbumMessage {
@@ -2052,3 +2154,14 @@ message MediaNotifyMessage {
20522154message LIDMigrationMappingSyncMessage {
20532155 optional bytes encodedMappingPayload = 1 ;
20542156}
2157+
2158+ message UrlTrackingMap {
2159+ message UrlTrackingMapElement {
2160+ optional string originalURL = 1 ;
2161+ optional string unconsentedUsersURL = 2 ;
2162+ optional string consentedUsersURL = 3 ;
2163+ optional uint32 cardIndex = 4 ;
2164+ }
2165+
2166+ repeated UrlTrackingMapElement urlTrackingMapElements = 1 ;
2167+ }
0 commit comments