Skip to content

Commit 901ff04

Browse files
committed
update proto
1 parent 293e808 commit 901ff04

File tree

8 files changed

+867
-859
lines changed

8 files changed

+867
-859
lines changed

goneonize/defproto/Neonize.pb.go

+713-832
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

goneonize/defproto/waCompanionReg/WAWebProtobufsCompanionReg.proto

+1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ message EncryptedPairingRequest {
9696

9797
message ClientPairingProps {
9898
optional bool isChatDbLidMigrated = 1;
99+
optional bool isSyncdPureLidSession = 2;
99100
}

goneonize/defproto/waE2E/WAWebProtobufsE2E.proto

+116-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import "waCompanionReg/WAWebProtobufsCompanionReg.proto";
77
import "waMmsRetry/WAMmsRetry.proto";
88
import "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

5455
enum 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

407409
message 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

10671070
message 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+
10951193
message 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

14081510
message AlbumMessage {
@@ -2052,3 +2154,14 @@ message MediaNotifyMessage {
20522154
message 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+
}

goneonize/defproto/waHistorySync/WAWebProtobufsHistorySync.proto

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ message Conversation {
108108
optional bool locked = 46;
109109
optional PrivacySystemMessage systemMessageToInsert = 47;
110110
optional bool capiCreatedGroup = 48;
111+
optional string accountLid = 49;
111112
}
112113

113114
message GroupParticipant {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
syntax = "proto2";
2+
package WAWebProtobufLidMigrationSyncPayload;
3+
option go_package = "go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload";
4+
5+
message LIDMigrationMapping {
6+
required uint64 pn = 1;
7+
required uint64 assignedLid = 2;
8+
optional uint64 latestLid = 3;
9+
}
10+
11+
message LIDMigrationMappingSyncPayload {
12+
repeated LIDMigrationMapping pnToLidMappings = 1;
13+
}

goneonize/go.mod

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
module github.com/krypton-byte/neonize
22

3-
go 1.22.0
4-
5-
toolchain go1.22.1
3+
go 1.23.4
64

75
require (
86
github.com/mattn/go-sqlite3 v1.14.24
9-
go.mau.fi/whatsmeow v0.0.0-20241121132808-ae900cb6bee4
10-
google.golang.org/protobuf v1.35.2
7+
go.mau.fi/whatsmeow v0.0.0-20250104105216-918c879fcd19
8+
google.golang.org/protobuf v1.36.2
119
)
1210

1311
require (
@@ -18,8 +16,8 @@ require (
1816
github.com/mattn/go-isatty v0.0.20 // indirect
1917
github.com/rs/zerolog v1.33.0 // indirect
2018
go.mau.fi/libsignal v0.1.1 // indirect
21-
go.mau.fi/util v0.8.2 // indirect
22-
golang.org/x/crypto v0.29.0 // indirect
23-
golang.org/x/net v0.31.0 // indirect
24-
golang.org/x/sys v0.27.0 // indirect
19+
go.mau.fi/util v0.8.3 // indirect
20+
golang.org/x/crypto v0.32.0 // indirect
21+
golang.org/x/net v0.34.0 // indirect
22+
golang.org/x/sys v0.29.0 // indirect
2523
)

goneonize/go.sum

+14-14
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
2424
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
2525
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
2626
github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
27-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
28-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
27+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
28+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2929
go.mau.fi/libsignal v0.1.1 h1:m/0PGBh4QKP/I1MQ44ti4C0fMbLMuHb95cmDw01FIpI=
3030
go.mau.fi/libsignal v0.1.1/go.mod h1:QLs89F/OA3ThdSL2Wz2p+o+fi8uuQUz0e1BRa6ExdBw=
31-
go.mau.fi/util v0.8.2 h1:zWbVHwdRKwI6U9AusmZ8bwgcLosikwbb4GGqLrNr1YE=
32-
go.mau.fi/util v0.8.2/go.mod h1:BHHC9R2WLMJd1bwTZfTcFxUgRFmUgUmiWcT4RbzUgiA=
33-
go.mau.fi/whatsmeow v0.0.0-20241121132808-ae900cb6bee4 h1:fb3X+Us6dDmXWZJt7H9o9P+pSiEq9Fut1jLqurVPpVc=
34-
go.mau.fi/whatsmeow v0.0.0-20241121132808-ae900cb6bee4/go.mod h1:iB+F/NVNOnyumU2p/TKTSSdBhH05GHFG36diYuFp9VQ=
35-
golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ=
36-
golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg=
37-
golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo=
38-
golang.org/x/net v0.31.0/go.mod h1:P4fl1q7dY2hnZFxEk4pPSkDHF+QqjitcnDjUQyMM+pM=
31+
go.mau.fi/util v0.8.3 h1:sulhXtfquMrQjsOP67x9CzWVBYUwhYeoo8hNQIpCWZ4=
32+
go.mau.fi/util v0.8.3/go.mod h1:c00Db8xog70JeIsEvhdHooylTkTkakgnAOsZ04hplQY=
33+
go.mau.fi/whatsmeow v0.0.0-20250104105216-918c879fcd19 h1:uVS+Zct5fF8rSXV9lfs87zoXdge0JXTzVGNkjmZ61UU=
34+
go.mau.fi/whatsmeow v0.0.0-20250104105216-918c879fcd19/go.mod h1:TLzm2XkwgufONEmiVAsFny+9uBqyEZnUoPrQAfMyuSU=
35+
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
36+
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
37+
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
38+
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
3939
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4040
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4141
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
42-
golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=
43-
golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
42+
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
43+
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
4444
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
4545
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
46-
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
47-
google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
46+
google.golang.org/protobuf v1.36.2 h1:R8FeyR1/eLmkutZOM5CWghmo5itiG9z0ktFlTVLuTmU=
47+
google.golang.org/protobuf v1.36.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
4848
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
4949
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

goneonize/utils/decoder.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package utils
22

33
import (
4+
"C"
45
"time"
56

6-
"github.com/krypton-byte/neonize/defproto"
7+
defproto "github.com/krypton-byte/neonize/defproto"
78
"go.mau.fi/whatsmeow"
89
"go.mau.fi/whatsmeow/appstate"
910
waVname "go.mau.fi/whatsmeow/proto/waVnameCert"

0 commit comments

Comments
 (0)