Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion goneonize/defproto/.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
596219a914a9725af6ae17e63d225c38bb176593
61ea05aeb741ce0fe4d217f00cc8c16b33e19021
2,168 changes: 763 additions & 1,405 deletions goneonize/defproto/Neonize.pb.go

Large diffs are not rendered by default.

182 changes: 108 additions & 74 deletions goneonize/defproto/waE2E/WAWebProtobufsE2E.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import "waMmsRetry/WAMmsRetry.proto";
import "waCommon/WACommon.proto";
import "waStatusAttributions/WAStatusAttributions.proto";

enum PollType {
POLL = 0;
QUIZ = 1;
}

enum PollContentType {
UNKNOWN_POLL_CONTENT_TYPE = 0;
TEXT = 1;
Expand All @@ -27,6 +32,7 @@ enum PeerDataOperationRequestType {
COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
HISTORY_SYNC_CHUNK_RETRY = 10;
GALAXY_FLOW_ACTION = 11;
}

enum HistorySyncType {
Expand Down Expand Up @@ -203,27 +209,6 @@ message StatusStickerInteractionMessage {
optional StatusStickerType type = 3;
}

message PollCreationMessage {
enum PollType {
POLL = 0;
QUIZ = 1;
}

message Option {
optional string optionName = 1;
optional string optionHash = 2;
}

optional bytes encKey = 1;
optional string name = 2;
repeated Option options = 3;
optional uint32 selectableOptionsCount = 4;
optional ContextInfo contextInfo = 5;
optional PollContentType pollContentType = 6;
optional PollType pollType = 7;
optional Option correctAnswer = 8;
}

message ButtonsResponseMessage {
enum Type {
UNKNOWN = 0;
Expand Down Expand Up @@ -705,6 +690,67 @@ message PeerDataOperationRequestResponseMessage {
repeated PeerDataOperationResult peerDataOperationResult = 3;
}

message PeerDataOperationRequestMessage {
message GalaxyFlowAction {
enum GalaxyFlowActionType {
NOTIFY_LAUNCH = 1;
}

optional GalaxyFlowActionType type = 1;
optional string flowID = 2;
optional string stanzaID = 3;
}

message HistorySyncChunkRetryRequest {
optional HistorySyncType syncType = 1;
optional uint32 chunkOrder = 2;
optional string chunkNotificationID = 3;
optional bool regenerateChunk = 4;
}

message SyncDCollectionFatalRecoveryRequest {
optional string collectionName = 1;
optional int64 timestamp = 2;
}

message PlaceholderMessageResendRequest {
optional WACommon.MessageKey messageKey = 1;
}

message FullHistorySyncOnDemandRequest {
optional FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
optional WACompanionReg.DeviceProps.HistorySyncConfig historySyncConfig = 2;
}

message HistorySyncOnDemandRequest {
optional string chatJID = 1;
optional string oldestMsgID = 2;
optional bool oldestMsgFromMe = 3;
optional int32 onDemandMsgCount = 4;
optional int64 oldestMsgTimestampMS = 5;
optional string accountLid = 6;
}

message RequestUrlPreview {
optional string URL = 1;
optional bool includeHqThumbnail = 2;
}

message RequestStickerReupload {
optional string fileSHA256 = 1;
}

optional PeerDataOperationRequestType peerDataOperationRequestType = 1;
repeated RequestStickerReupload requestStickerReupload = 2;
repeated RequestUrlPreview requestURLPreview = 3;
optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
optional GalaxyFlowAction galaxyFlowAction = 9;
}

message RequestWelcomeMessageMetadata {
enum LocalChatState {
EMPTY = 0;
Expand Down Expand Up @@ -895,6 +941,7 @@ message ExtendedTextMessage {
repeated VideoEndCard endCardTiles = 36;
optional string videoContentURL = 37;
optional EmbeddedMusic musicMetadata = 38;
optional PaymentExtendedMetadata paymentExtendedMetadata = 39;
}

message LinkPreviewMetadata {
Expand All @@ -913,6 +960,9 @@ message LinkPreviewMetadata {
optional uint32 linkMediaDuration = 4;
optional SocialMediaPostType socialMediaPostType = 5;
optional bool linkInlineVideoMuted = 6;
optional string videoContentURL = 7;
optional EmbeddedMusic musicMetadata = 8;
optional string videoContentCaption = 9;
}

message PaymentLinkMetadata {
Expand Down Expand Up @@ -1492,7 +1542,6 @@ message Message {
optional FutureProofMessage associatedChildMessage = 91;
optional FutureProofMessage groupStatusMentionMessage = 92;
optional FutureProofMessage pollCreationMessageV4 = 93;
optional FutureProofMessage pollCreationMessageV5 = 94;
optional FutureProofMessage statusAddYours = 95;
optional FutureProofMessage groupStatusMessage = 96;
optional AIRichResponseMessage richResponseMessage = 97;
Expand All @@ -1506,9 +1555,12 @@ message Message {
optional StatusQuestionAnswerMessage statusQuestionAnswerMessage = 105;
optional FutureProofMessage questionReplyMessage = 106;
optional QuestionResponseMessage questionResponseMessage = 107;
optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessage = 108;
optional StatusQuotedMessage statusQuotedMessage = 109;
optional StatusStickerInteractionMessage statusStickerInteractionMessage = 110;
optional PollCreationMessage pollCreationMessageV5 = 111;
optional PollResultSnapshotMessage pollResultSnapshotMessageV2 = 112;
optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
optional RequestContactInfoMessage requestContactInfoMessage = 114;
}

message AlbumMessage {
Expand Down Expand Up @@ -1600,6 +1652,7 @@ message PollResultSnapshotMessage {
optional string name = 1;
repeated PollVote pollVotes = 2;
optional ContextInfo contextInfo = 3;
optional PollType pollType = 4;
}

message PollVoteMessage {
Expand All @@ -1621,6 +1674,22 @@ message PollUpdateMessage {
optional int64 senderTimestampMS = 4;
}

message PollCreationMessage {
message Option {
optional string optionName = 1;
optional string optionHash = 2;
}

optional bytes encKey = 1;
optional string name = 2;
repeated Option options = 3;
optional uint32 selectableOptionsCount = 4;
optional ContextInfo contextInfo = 5;
optional PollContentType pollContentType = 6;
optional PollType pollType = 7;
optional Option correctAnswer = 8;
}

message StickerSyncRMRMessage {
repeated string filehash = 1;
optional string rmrSource = 2;
Expand All @@ -1644,6 +1713,12 @@ message DeviceSentMessage {
optional string phash = 3;
}

message RequestContactInfoMessage {
optional string text = 1;
optional string ctaButtonText = 2;
optional ContextInfo contextInfo = 3;
}

message RequestPhoneNumberMessage {
optional ContextInfo contextInfo = 1;
}
Expand Down Expand Up @@ -1817,56 +1892,6 @@ message InitialSecurityNotificationSettingSync {
optional bool securityNotificationEnabled = 1;
}

message PeerDataOperationRequestMessage {
message HistorySyncChunkRetryRequest {
optional HistorySyncType syncType = 1;
optional uint32 chunkOrder = 2;
optional string chunkNotificationID = 3;
optional bool regenerateChunk = 4;
}

message SyncDCollectionFatalRecoveryRequest {
optional string collectionName = 1;
optional int64 timestamp = 2;
}

message PlaceholderMessageResendRequest {
optional WACommon.MessageKey messageKey = 1;
}

message FullHistorySyncOnDemandRequest {
optional FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
optional WACompanionReg.DeviceProps.HistorySyncConfig historySyncConfig = 2;
}

message HistorySyncOnDemandRequest {
optional string chatJID = 1;
optional string oldestMsgID = 2;
optional bool oldestMsgFromMe = 3;
optional int32 onDemandMsgCount = 4;
optional int64 oldestMsgTimestampMS = 5;
optional string accountLid = 6;
}

message RequestUrlPreview {
optional string URL = 1;
optional bool includeHqThumbnail = 2;
}

message RequestStickerReupload {
optional string fileSHA256 = 1;
}

optional PeerDataOperationRequestType peerDataOperationRequestType = 1;
repeated RequestStickerReupload requestStickerReupload = 2;
repeated RequestUrlPreview requestURLPreview = 3;
optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
}

message FullHistorySyncOnDemandRequestMetadata {
optional string requestID = 1;
}
Expand Down Expand Up @@ -1988,6 +2013,12 @@ message URLMetadata {
optional uint32 fbExperimentID = 1;
}

message PaymentExtendedMetadata {
optional uint32 type = 1;
optional string platform = 2;
optional string messageParamsJSON = 3;
}

message MMSThumbnailMetadata {
optional string thumbnailDirectPath = 1;
optional bytes thumbnailSHA256 = 2;
Expand Down Expand Up @@ -2056,10 +2087,13 @@ message EmbeddedMusic {
optional string artworkDirectPath = 5;
optional bytes artworkSHA256 = 6;
optional bytes artworkEncSHA256 = 7;
optional bytes artworkMediaKey = 11;
optional string artistAttribution = 8;
optional bytes countryBlocklist = 9;
optional bool isExplicit = 10;
optional bytes artworkMediaKey = 11;
optional int64 musicSongStartTimeInMS = 12;
optional int64 derivedContentStartTimeInMS = 13;
optional int64 overlapDurationInMS = 14;
}

message EmbeddedContent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ message StatusAttribution {
GROUP_STATUS = 5;
RL_ATTRIBUTION = 6;
AI_CREATED = 7;
LAYOUTS = 8;
}

message AiCreatedAttribution {
Expand Down
1 change: 1 addition & 0 deletions goneonize/defproto/waSyncAction/WASyncAction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ message PatchDebugData {
WEAROS = 8;
WASG = 9;
WEARM = 10;
CAPI = 11;
}

optional bytes currentLthash = 1;
Expand Down
8 changes: 5 additions & 3 deletions goneonize/defproto/waWeb/WAWebProtobufsWeb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,10 @@ message MessageAddOn {

message GroupHistoryBundleInfo {
enum ProcessState {
NOT_DOWNLOADED = 0;
DOWNLOADED = 1;
DOWNLOAD_FAILED = 2;
NOT_INJECTED = 0;
INJECTED = 1;
INJECTED_PARTIAL = 2;
INJECTION_FAILED = 3;
}

optional WAWebProtobufsE2E.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
Expand Down Expand Up @@ -600,4 +601,5 @@ message Citation {

message GroupHistoryIndividualMessageInfo {
optional WACommon.MessageKey bundleMessageKey = 1;
optional bool editedAfterReceivedAsHistory = 2;
}
12 changes: 6 additions & 6 deletions goneonize/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.24.5
require (
github.com/lib/pq v1.10.9
github.com/mattn/go-sqlite3 v1.14.32
go.mau.fi/whatsmeow v0.0.0-20251005115322-65f6143fa407
go.mau.fi/whatsmeow v0.0.0-20251014132254-6048f61ae25b
google.golang.org/protobuf v1.36.10
)

Expand All @@ -24,9 +24,9 @@ require (
github.com/vektah/gqlparser/v2 v2.5.30 // indirect
go.mau.fi/libsignal v0.2.1-0.20251004173110-6e0a3f2435ed // indirect
go.mau.fi/util v0.9.2-0.20251005111801-c13b66219cee // indirect
golang.org/x/crypto v0.42.0 // indirect
golang.org/x/exp v0.0.0-20251002181428-27f1f14c8bb9 // indirect
golang.org/x/net v0.44.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.29.0 // indirect
golang.org/x/crypto v0.43.0 // indirect
golang.org/x/exp v0.0.0-20251009144603-d2f985daa21b // indirect
golang.org/x/net v0.46.0 // indirect
golang.org/x/sys v0.37.0 // indirect
golang.org/x/text v0.30.0 // indirect
)
24 changes: 12 additions & 12 deletions goneonize/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ go.mau.fi/libsignal v0.2.1-0.20251004173110-6e0a3f2435ed h1:f44xyYgZBCEic3OiKY4e
go.mau.fi/libsignal v0.2.1-0.20251004173110-6e0a3f2435ed/go.mod h1:iVvjrHyfQqWajOUaMEsIfo3IqgVMrhWcPiiEzk7NgoU=
go.mau.fi/util v0.9.2-0.20251005111801-c13b66219cee h1:wk1XGP/E1UH3YBqXbb9dajWdO7e9cizgx5+NYkEXT2g=
go.mau.fi/util v0.9.2-0.20251005111801-c13b66219cee/go.mod h1:M0bM9SyaOWJniaHs9hxEzz91r5ql6gYq6o1q5O1SsjQ=
go.mau.fi/whatsmeow v0.0.0-20251005115322-65f6143fa407 h1:opB+tGIoxtAybUeXFJ3iCknYA0djy8dWmZ4KqSbyT+c=
go.mau.fi/whatsmeow v0.0.0-20251005115322-65f6143fa407/go.mod h1:CSdGU471Ss7bWunGomSe9RObY0MRxQDvxFH8i5Ndfk4=
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
golang.org/x/exp v0.0.0-20251002181428-27f1f14c8bb9 h1:TQwNpfvNkxAVlItJf6Cr5JTsVZoC/Sj7K3OZv2Pc14A=
golang.org/x/exp v0.0.0-20251002181428-27f1f14c8bb9/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk=
golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I=
golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY=
go.mau.fi/whatsmeow v0.0.0-20251014132254-6048f61ae25b h1:T0+Fhr2eaIOPW2M3xJW4qGzYLLa63aCsAnBFd/2GLhU=
go.mau.fi/whatsmeow v0.0.0-20251014132254-6048f61ae25b/go.mod h1:CSdGU471Ss7bWunGomSe9RObY0MRxQDvxFH8i5Ndfk4=
golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04=
golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0=
golang.org/x/exp v0.0.0-20251009144603-d2f985daa21b h1:18qgiDvlvH7kk8Ioa8Ov+K6xCi0GMvmGfGW0sgd/SYA=
golang.org/x/exp v0.0.0-20251009144603-d2f985daa21b/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70=
golang.org/x/net v0.46.0 h1:giFlY12I07fugqwPuWJi68oOnpfqFnJIJzaIIm2JVV4=
golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk=
golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4=
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k=
golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM=
google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE=
google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
950 changes: 479 additions & 471 deletions neonize/proto/waE2E/WAWebProtobufsE2E_pb2.py

Large diffs are not rendered by default.

Loading