dcodeindra-baileyspro 2.3.9
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.
- package/LICENSE +21 -0
- package/README.md +2534 -0
- package/WAProto/Adv/Adv.d.ts +518 -0
- package/WAProto/Adv/Adv.js +1734 -0
- package/WAProto/Adv/Adv.proto +36 -0
- package/WAProto/BotMetadata/BotMetadata.d.ts +5745 -0
- package/WAProto/BotMetadata/BotMetadata.js +16291 -0
- package/WAProto/BotMetadata/BotMetadata.proto +463 -0
- package/WAProto/Cert/Cert.d.ts +497 -0
- package/WAProto/Cert/Cert.js +1503 -0
- package/WAProto/Cert/Cert.proto +28 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
- package/WAProto/CompanionReg/CompanionReg.d.ts +1055 -0
- package/WAProto/CompanionReg/CompanionReg.js +3532 -0
- package/WAProto/CompanionReg/CompanionReg.proto +89 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
- package/WAProto/E2E/E2E.d.ts +28417 -0
- package/WAProto/E2E/E2E.js +98438 -0
- package/WAProto/E2E/E2E.proto +2289 -0
- package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
- package/WAProto/Ephemeral/Ephemeral.js +269 -0
- package/WAProto/Ephemeral/Ephemeral.proto +6 -0
- package/WAProto/HistorySync/HistorySync.d.ts +40728 -0
- package/WAProto/HistorySync/HistorySync.js +142980 -0
- package/WAProto/HistorySync/HistorySync.proto +207 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +29294 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +101732 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
- package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
- package/WAProto/MmsRetry/MmsRetry.js +586 -0
- package/WAProto/MmsRetry/MmsRetry.proto +17 -0
- package/WAProto/Protocol/Protocol.d.ts +218 -0
- package/WAProto/Protocol/Protocol.js +701 -0
- package/WAProto/Protocol/Protocol.proto +20 -0
- package/WAProto/Reporting/Reporting.d.ts +301 -0
- package/WAProto/Reporting/Reporting.js +989 -0
- package/WAProto/Reporting/Reporting.proto +19 -0
- package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
- package/WAProto/ServerSync/ServerSync.js +3176 -0
- package/WAProto/ServerSync/ServerSync.proto +59 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +636 -0
- package/WAProto/StatusAttributions/StatusAttributions.js +2037 -0
- package/WAProto/StatusAttributions/StatusAttributions.proto +61 -0
- package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
- package/WAProto/SyncAction/SyncAction.js +22271 -0
- package/WAProto/SyncAction/SyncAction.proto +423 -0
- package/WAProto/UserPassword/UserPassword.d.ts +298 -0
- package/WAProto/UserPassword/UserPassword.js +898 -0
- package/WAProto/UserPassword/UserPassword.proto +27 -0
- package/WAProto/VnameCert/VnameCert.d.ts +658 -0
- package/WAProto/VnameCert/VnameCert.js +2225 -0
- package/WAProto/VnameCert/VnameCert.proto +60 -0
- package/WAProto/Wa6/Wa6.d.ts +1613 -0
- package/WAProto/Wa6/Wa6.js +6299 -0
- package/WAProto/Wa6/Wa6.proto +229 -0
- package/WAProto/Web/Web.d.ts +31718 -0
- package/WAProto/Web/Web.js +113402 -0
- package/WAProto/Web/Web.proto +545 -0
- package/WAProto/index.d.ts +49 -0
- package/WAProto/index.js +28 -0
- package/WASignalGroup/GroupProtocol.js +1771 -0
- package/WASignalGroup/ciphertext_message.js +10 -0
- package/WASignalGroup/group_cipher.js +103 -0
- package/WASignalGroup/group_session_builder.js +39 -0
- package/WASignalGroup/index.js +5 -0
- package/WASignalGroup/keyhelper.js +17 -0
- package/WASignalGroup/protobufs.js +2 -0
- package/WASignalGroup/queue_job.js +64 -0
- package/WASignalGroup/sender_chain_key.js +38 -0
- package/WASignalGroup/sender_key_distribution_message.js +68 -0
- package/WASignalGroup/sender_key_message.js +79 -0
- package/WASignalGroup/sender_key_name.js +59 -0
- package/WASignalGroup/sender_key_record.js +47 -0
- package/WASignalGroup/sender_key_state.js +110 -0
- package/WASignalGroup/sender_message_key.js +30 -0
- package/check-node-version.js +10 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.d.ts +51 -0
- package/lib/Defaults/index.js +108 -0
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
- package/lib/Signal/Group/ciphertext-message.js +19 -0
- package/lib/Signal/Group/group-session-builder.d.ts +17 -0
- package/lib/Signal/Group/group-session-builder.js +72 -0
- package/lib/Signal/Group/group_cipher.d.ts +19 -0
- package/lib/Signal/Group/group_cipher.js +99 -0
- package/lib/Signal/Group/index.d.ts +11 -0
- package/lib/Signal/Group/index.js +61 -0
- package/lib/Signal/Group/keyhelper.d.ts +16 -0
- package/lib/Signal/Group/keyhelper.js +66 -0
- package/lib/Signal/Group/queue-job.d.ts +1 -0
- package/lib/Signal/Group/queue-job.js +64 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
- package/lib/Signal/Group/sender-chain-key.js +39 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +71 -0
- package/lib/Signal/Group/sender-key-message.d.ts +19 -0
- package/lib/Signal/Group/sender-key-message.js +73 -0
- package/lib/Signal/Group/sender-key-name.d.ts +19 -0
- package/lib/Signal/Group/sender-key-name.js +59 -0
- package/lib/Signal/Group/sender-key-record.d.ts +32 -0
- package/lib/Signal/Group/sender-key-record.js +53 -0
- package/lib/Signal/Group/sender-key-record.ts +77 -0
- package/lib/Signal/Group/sender-key-state.d.ts +44 -0
- package/lib/Signal/Group/sender-key-state.js +104 -0
- package/lib/Signal/Group/sender-message-key.d.ts +11 -0
- package/lib/Signal/Group/sender-message-key.js +33 -0
- package/lib/Signal/libsignal.d.ts +3 -0
- package/lib/Signal/libsignal.js +153 -0
- package/lib/Socket/Client/index.d.ts +2 -0
- package/lib/Socket/Client/index.js +18 -0
- package/lib/Socket/Client/types.d.ts +15 -0
- package/lib/Socket/Client/types.js +14 -0
- package/lib/Socket/Client/websocket.d.ts +12 -0
- package/lib/Socket/Client/websocket.js +57 -0
- package/lib/Socket/business.d.ts +181 -0
- package/lib/Socket/business.js +259 -0
- package/lib/Socket/chats.d.ts +95 -0
- package/lib/Socket/chats.js +906 -0
- package/lib/Socket/community.d.ts +131 -0
- package/lib/Socket/community.js +369 -0
- package/lib/Socket/groups.d.ts +122 -0
- package/lib/Socket/groups.js +360 -0
- package/lib/Socket/index.d.ts +183 -0
- package/lib/Socket/index.js +10 -0
- package/lib/Socket/messages-recv.d.ts +170 -0
- package/lib/Socket/messages-recv.js +1074 -0
- package/lib/Socket/messages-send.d.ts +161 -0
- package/lib/Socket/messages-send.js +982 -0
- package/lib/Socket/newsletter.d.ts +140 -0
- package/lib/Socket/newsletter.js +242 -0
- package/lib/Socket/socket.d.ts +43 -0
- package/lib/Socket/socket.js +749 -0
- package/lib/Socket/usync.d.ts +36 -0
- package/lib/Socket/usync.js +71 -0
- package/lib/Store/index.d.ts +4 -0
- package/lib/Store/index.js +20 -0
- package/lib/Store/make-cache-manager-store.d.ts +13 -0
- package/lib/Store/make-cache-manager-store.js +77 -0
- package/lib/Store/make-in-memory-store.d.ts +117 -0
- package/lib/Store/make-in-memory-store.js +420 -0
- package/lib/Store/make-ordered-dictionary.d.ts +12 -0
- package/lib/Store/make-ordered-dictionary.js +83 -0
- package/lib/Store/object-repository.d.ts +10 -0
- package/lib/Store/object-repository.js +28 -0
- package/lib/Types/Auth.d.ts +103 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Call.d.ts +13 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.d.ts +115 -0
- package/lib/Types/Chat.js +6 -0
- package/lib/Types/Contact.d.ts +35 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Events.d.ts +208 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/GroupMetadata.d.ts +81 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/Label.d.ts +46 -0
- package/lib/Types/Label.js +28 -0
- package/lib/Types/LabelAssociation.d.ts +29 -0
- package/lib/Types/LabelAssociation.js +10 -0
- package/lib/Types/Message.d.ts +480 -0
- package/lib/Types/Message.js +9 -0
- package/lib/Types/MexUpdates.d.ts +9 -0
- package/lib/Types/MexUpdates.js +18 -0
- package/lib/Types/Newsletter.d.ts +92 -0
- package/lib/Types/Newsletter.js +33 -0
- package/lib/Types/Product.d.ts +78 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.d.ts +57 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.d.ts +116 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.d.ts +27 -0
- package/lib/Types/State.js +2 -0
- package/lib/Types/USync.d.ts +25 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.d.ts +70 -0
- package/lib/Types/index.js +42 -0
- package/lib/Utils/auth-utils.d.ts +18 -0
- package/lib/Utils/auth-utils.js +198 -0
- package/lib/Utils/baileys-event-stream.d.ts +16 -0
- package/lib/Utils/baileys-event-stream.js +64 -0
- package/lib/Utils/business.d.ts +22 -0
- package/lib/Utils/business.js +243 -0
- package/lib/Utils/chat-utils.d.ts +72 -0
- package/lib/Utils/chat-utils.js +762 -0
- package/lib/Utils/crypto.d.ts +40 -0
- package/lib/Utils/crypto.js +150 -0
- package/lib/Utils/decode-wa-message.d.ts +252 -0
- package/lib/Utils/decode-wa-message.js +232 -0
- package/lib/Utils/event-buffer.d.ts +35 -0
- package/lib/Utils/event-buffer.js +539 -0
- package/lib/Utils/generics.d.ts +96 -0
- package/lib/Utils/generics.js +553 -0
- package/lib/Utils/history.d.ts +29 -0
- package/lib/Utils/history.js +109 -0
- package/lib/Utils/index.d.ts +19 -0
- package/lib/Utils/index.js +35 -0
- package/lib/Utils/link-preview.d.ts +21 -0
- package/lib/Utils/link-preview.js +112 -0
- package/lib/Utils/logger.d.ts +11 -0
- package/lib/Utils/logger.js +7 -0
- package/lib/Utils/lt-hash.d.ts +12 -0
- package/lib/Utils/lt-hash.js +53 -0
- package/lib/Utils/make-mutex.d.ts +7 -0
- package/lib/Utils/make-mutex.js +45 -0
- package/lib/Utils/messages-media.d.ts +104 -0
- package/lib/Utils/messages-media.js +751 -0
- package/lib/Utils/messages.d.ts +80 -0
- package/lib/Utils/messages.js +1741 -0
- package/lib/Utils/noise-handler.d.ts +19 -0
- package/lib/Utils/noise-handler.js +150 -0
- package/lib/Utils/process-message.d.ts +41 -0
- package/lib/Utils/process-message.js +391 -0
- package/lib/Utils/signal.d.ts +33 -0
- package/lib/Utils/signal.js +154 -0
- package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
- package/lib/Utils/use-mongo-file-auth-state.js +75 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
- package/lib/Utils/use-multi-file-auth-state.js +123 -0
- package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
- package/lib/Utils/use-single-file-auth-state.js +75 -0
- package/lib/Utils/validate-connection.d.ts +10 -0
- package/lib/Utils/validate-connection.js +174 -0
- package/lib/WABinary/constants.d.ts +27 -0
- package/lib/WABinary/constants.js +45 -0
- package/lib/WABinary/decode.d.ts +6 -0
- package/lib/WABinary/decode.js +255 -0
- package/lib/WABinary/encode.d.ts +2 -0
- package/lib/WABinary/encode.js +243 -0
- package/lib/WABinary/generic-utils.d.ts +16 -0
- package/lib/WABinary/generic-utils.js +125 -0
- package/lib/WABinary/index.d.ts +5 -0
- package/lib/WABinary/index.js +21 -0
- package/lib/WABinary/jid-utils.d.ts +34 -0
- package/lib/WABinary/jid-utils.js +73 -0
- package/lib/WABinary/types.d.ts +18 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.d.ts +16 -0
- package/lib/WAM/BinaryInfo.js +14 -0
- package/lib/WAM/constants.d.ts +39 -0
- package/lib/WAM/constants.js +15362 -0
- package/lib/WAM/encode.d.ts +2 -0
- package/lib/WAM/encode.js +156 -0
- package/lib/WAM/index.d.ts +3 -0
- package/lib/WAM/index.js +19 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
- package/lib/WAUSync/Protocols/index.d.ts +6 -0
- package/lib/WAUSync/Protocols/index.js +22 -0
- package/lib/WAUSync/USyncQuery.d.ts +28 -0
- package/lib/WAUSync/USyncQuery.js +88 -0
- package/lib/WAUSync/USyncUser.d.ts +12 -0
- package/lib/WAUSync/USyncUser.js +27 -0
- package/lib/WAUSync/index.d.ts +3 -0
- package/lib/WAUSync/index.js +19 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +45 -0
- package/package.json +63 -0
|
@@ -0,0 +1,2289 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package E2E;
|
|
3
|
+
import "../Protocol/Protocol.proto";
|
|
4
|
+
import "../Adv/Adv.proto";
|
|
5
|
+
import "../StatusAttributions/StatusAttributions.proto";
|
|
6
|
+
import "../CompanionReg/CompanionReg.proto";
|
|
7
|
+
import "../MmsRetry/MmsRetry.proto";
|
|
8
|
+
message MemberLabel {
|
|
9
|
+
optional string label = 1;
|
|
10
|
+
optional int64 labelTimestamp = 2;
|
|
11
|
+
}
|
|
12
|
+
message AIQueryFanout {
|
|
13
|
+
optional Protocol.MessageKey messageKey = 1;
|
|
14
|
+
optional Message message = 2;
|
|
15
|
+
optional int64 timestamp = 3;
|
|
16
|
+
}
|
|
17
|
+
message UrlTrackingMap {
|
|
18
|
+
repeated UrlTrackingMapElement urlTrackingMapElements = 1;
|
|
19
|
+
message UrlTrackingMapElement {
|
|
20
|
+
optional string originalUrl = 1;
|
|
21
|
+
optional string unconsentedUsersUrl = 2;
|
|
22
|
+
optional string consentedUsersUrl = 3;
|
|
23
|
+
optional uint32 cardIndex = 4;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
message ProcessedVideo {
|
|
27
|
+
optional string directPath = 1;
|
|
28
|
+
optional bytes fileSha256 = 2;
|
|
29
|
+
optional uint32 height = 3;
|
|
30
|
+
optional uint32 width = 4;
|
|
31
|
+
optional uint64 fileLength = 5;
|
|
32
|
+
optional uint32 bitrate = 6;
|
|
33
|
+
optional VideoQuality quality = 7;
|
|
34
|
+
repeated string capabilities = 8;
|
|
35
|
+
enum VideoQuality {
|
|
36
|
+
UNDEFINED = 0;
|
|
37
|
+
LOW = 1;
|
|
38
|
+
MID = 2;
|
|
39
|
+
HIGH = 3;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
message LIDMigrationMappingSyncMessage {
|
|
43
|
+
optional bytes encodedMappingPayload = 1;
|
|
44
|
+
}
|
|
45
|
+
message MediaNotifyMessage {
|
|
46
|
+
optional string expressPathUrl = 1;
|
|
47
|
+
optional bytes fileEncSha256 = 2;
|
|
48
|
+
optional uint64 fileLength = 3;
|
|
49
|
+
}
|
|
50
|
+
message MessageSecretMessage {
|
|
51
|
+
optional sfixed32 version = 1;
|
|
52
|
+
optional bytes encIv = 2;
|
|
53
|
+
optional bytes encPayload = 3;
|
|
54
|
+
}
|
|
55
|
+
message GroupMention {
|
|
56
|
+
optional string groupJid = 1;
|
|
57
|
+
optional string groupSubject = 2;
|
|
58
|
+
}
|
|
59
|
+
message ActionLink {
|
|
60
|
+
optional string url = 1;
|
|
61
|
+
optional string buttonTitle = 2;
|
|
62
|
+
}
|
|
63
|
+
message DisappearingMode {
|
|
64
|
+
optional Initiator initiator = 1;
|
|
65
|
+
optional Trigger trigger = 2;
|
|
66
|
+
optional string initiatorDeviceJid = 3;
|
|
67
|
+
optional bool initiatedByMe = 4;
|
|
68
|
+
enum Initiator {
|
|
69
|
+
CHANGED_IN_CHAT = 0;
|
|
70
|
+
INITIATED_BY_ME = 1;
|
|
71
|
+
INITIATED_BY_OTHER = 2;
|
|
72
|
+
BIZ_UPGRADE_FB_HOSTING = 3;
|
|
73
|
+
}
|
|
74
|
+
enum Trigger {
|
|
75
|
+
UNKNOWN = 0;
|
|
76
|
+
CHAT_SETTING = 1;
|
|
77
|
+
ACCOUNT_SETTING = 2;
|
|
78
|
+
BULK_CHANGE = 3;
|
|
79
|
+
BIZ_SUPPORTS_FB_HOSTING = 4;
|
|
80
|
+
UNKNOWN_GROUPS = 5;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
message PaymentBackground {
|
|
84
|
+
optional string id = 1;
|
|
85
|
+
optional uint64 fileLength = 2;
|
|
86
|
+
optional uint32 width = 3;
|
|
87
|
+
optional uint32 height = 4;
|
|
88
|
+
optional string mimetype = 5;
|
|
89
|
+
optional fixed32 placeholderArgb = 6;
|
|
90
|
+
optional fixed32 textArgb = 7;
|
|
91
|
+
optional fixed32 subtextArgb = 8;
|
|
92
|
+
optional MediaData mediaData = 9;
|
|
93
|
+
optional Type type = 10;
|
|
94
|
+
message MediaData {
|
|
95
|
+
optional bytes mediaKey = 1;
|
|
96
|
+
optional int64 mediaKeyTimestamp = 2;
|
|
97
|
+
optional bytes fileSha256 = 3;
|
|
98
|
+
optional bytes fileEncSha256 = 4;
|
|
99
|
+
optional string directPath = 5;
|
|
100
|
+
}
|
|
101
|
+
enum Type {
|
|
102
|
+
UNKNOWN = 0;
|
|
103
|
+
DEFAULT = 1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
message Money {
|
|
107
|
+
optional int64 value = 1;
|
|
108
|
+
optional uint32 offset = 2;
|
|
109
|
+
optional string currencyCode = 3;
|
|
110
|
+
}
|
|
111
|
+
message HydratedTemplateButton {
|
|
112
|
+
optional uint32 index = 4;
|
|
113
|
+
oneof hydratedButton {
|
|
114
|
+
HydratedTemplateButton.HydratedQuickReplyButton quickReplyButton = 1;
|
|
115
|
+
HydratedTemplateButton.HydratedURLButton urlButton = 2;
|
|
116
|
+
HydratedTemplateButton.HydratedCallButton callButton = 3;
|
|
117
|
+
}
|
|
118
|
+
message HydratedCallButton {
|
|
119
|
+
optional string displayText = 1;
|
|
120
|
+
optional string phoneNumber = 2;
|
|
121
|
+
}
|
|
122
|
+
message HydratedQuickReplyButton {
|
|
123
|
+
optional string displayText = 1;
|
|
124
|
+
optional string id = 2;
|
|
125
|
+
}
|
|
126
|
+
message HydratedURLButton {
|
|
127
|
+
optional string displayText = 1;
|
|
128
|
+
optional string url = 2;
|
|
129
|
+
optional string consentedUsersUrl = 3;
|
|
130
|
+
optional WebviewPresentationType webviewPresentation = 4;
|
|
131
|
+
enum WebviewPresentationType {
|
|
132
|
+
FULL = 1;
|
|
133
|
+
TALL = 2;
|
|
134
|
+
COMPACT = 3;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
message TemplateButton {
|
|
139
|
+
optional uint32 index = 4;
|
|
140
|
+
oneof button {
|
|
141
|
+
TemplateButton.QuickReplyButton quickReplyButton = 1;
|
|
142
|
+
TemplateButton.URLButton urlButton = 2;
|
|
143
|
+
TemplateButton.CallButton callButton = 3;
|
|
144
|
+
}
|
|
145
|
+
message CallButton {
|
|
146
|
+
optional Message.HighlyStructuredMessage displayText = 1;
|
|
147
|
+
optional Message.HighlyStructuredMessage phoneNumber = 2;
|
|
148
|
+
}
|
|
149
|
+
message QuickReplyButton {
|
|
150
|
+
optional Message.HighlyStructuredMessage displayText = 1;
|
|
151
|
+
optional string id = 2;
|
|
152
|
+
}
|
|
153
|
+
message URLButton {
|
|
154
|
+
optional Message.HighlyStructuredMessage displayText = 1;
|
|
155
|
+
optional Message.HighlyStructuredMessage url = 2;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
message Location {
|
|
159
|
+
optional double degreesLatitude = 1;
|
|
160
|
+
optional double degreesLongitude = 2;
|
|
161
|
+
optional string name = 3;
|
|
162
|
+
}
|
|
163
|
+
message Point {
|
|
164
|
+
optional int32 xDeprecated = 1;
|
|
165
|
+
optional int32 yDeprecated = 2;
|
|
166
|
+
optional double x = 3;
|
|
167
|
+
optional double y = 4;
|
|
168
|
+
}
|
|
169
|
+
message InteractiveAnnotation {
|
|
170
|
+
repeated Point polygonVertices = 1;
|
|
171
|
+
optional bool shouldSkipConfirmation = 4;
|
|
172
|
+
optional EmbeddedContent embeddedContent = 5;
|
|
173
|
+
optional StatusLinkType statusLinkType = 8;
|
|
174
|
+
oneof action {
|
|
175
|
+
Location location = 2;
|
|
176
|
+
ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
|
|
177
|
+
bool embeddedAction = 6;
|
|
178
|
+
TapLinkAction tapAction = 7;
|
|
179
|
+
}
|
|
180
|
+
enum StatusLinkType {
|
|
181
|
+
RASTERIZED_LINK_PREVIEW = 1;
|
|
182
|
+
RASTERIZED_LINK_TRUNCATED = 2;
|
|
183
|
+
RASTERIZED_LINK_FULL_URL = 3;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
message TapLinkAction {
|
|
187
|
+
optional string title = 1;
|
|
188
|
+
optional string tapUrl = 2;
|
|
189
|
+
}
|
|
190
|
+
message EmbeddedContent {
|
|
191
|
+
oneof content {
|
|
192
|
+
EmbeddedMessage embeddedMessage = 1;
|
|
193
|
+
EmbeddedMusic embeddedMusic = 2;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
message EmbeddedMusic {
|
|
197
|
+
optional string musicContentMediaId = 1;
|
|
198
|
+
optional string songId = 2;
|
|
199
|
+
optional string author = 3;
|
|
200
|
+
optional string title = 4;
|
|
201
|
+
optional string artworkDirectPath = 5;
|
|
202
|
+
optional bytes artworkSha256 = 6;
|
|
203
|
+
optional bytes artworkEncSha256 = 7;
|
|
204
|
+
optional bytes artworkMediaKey = 11;
|
|
205
|
+
optional string artistAttribution = 8;
|
|
206
|
+
optional bytes countryBlocklist = 9;
|
|
207
|
+
optional bool isExplicit = 10;
|
|
208
|
+
}
|
|
209
|
+
message EmbeddedMessage {
|
|
210
|
+
optional string stanzaId = 1;
|
|
211
|
+
optional Message message = 2;
|
|
212
|
+
}
|
|
213
|
+
message DeviceListMetadata {
|
|
214
|
+
optional bytes senderKeyHash = 1;
|
|
215
|
+
optional uint64 senderTimestamp = 2;
|
|
216
|
+
repeated uint32 senderKeyIndexes = 3 [packed=true];
|
|
217
|
+
optional Adv.ADVEncryptionType senderAccountType = 4;
|
|
218
|
+
optional Adv.ADVEncryptionType receiverAccountType = 5;
|
|
219
|
+
optional bytes recipientKeyHash = 8;
|
|
220
|
+
optional uint64 recipientTimestamp = 9;
|
|
221
|
+
repeated uint32 recipientKeyIndexes = 10 [packed=true];
|
|
222
|
+
}
|
|
223
|
+
message MessageContextInfo {
|
|
224
|
+
optional DeviceListMetadata deviceListMetadata = 1;
|
|
225
|
+
optional int32 deviceListMetadataVersion = 2;
|
|
226
|
+
optional bytes messageSecret = 3;
|
|
227
|
+
optional bytes paddingBytes = 4;
|
|
228
|
+
optional uint32 messageAddOnDurationInSecs = 5;
|
|
229
|
+
optional bytes botMessageSecret = 6;
|
|
230
|
+
optional BotMetadata botMetadata = 7;
|
|
231
|
+
optional int32 reportingTokenVersion = 8;
|
|
232
|
+
optional MessageAddonExpiryType messageAddOnExpiryType = 9;
|
|
233
|
+
optional MessageAssociation messageAssociation = 10;
|
|
234
|
+
optional bool capiCreatedGroup = 11;
|
|
235
|
+
optional string supportPayload = 12;
|
|
236
|
+
optional Protocol.LimitSharing limitSharing = 13;
|
|
237
|
+
optional Protocol.LimitSharing limitSharingV2 = 14;
|
|
238
|
+
repeated ThreadID threadId = 15;
|
|
239
|
+
enum MessageAddonExpiryType {
|
|
240
|
+
STATIC = 1;
|
|
241
|
+
DEPENDENT_ON_PARENT = 2;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
message ThreadID {
|
|
245
|
+
optional ThreadType threadType = 1;
|
|
246
|
+
optional Protocol.MessageKey threadKey = 2;
|
|
247
|
+
enum ThreadType {
|
|
248
|
+
UNKNOWN = 0;
|
|
249
|
+
VIEW_REPLIES = 1;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
message MessageAssociation {
|
|
253
|
+
optional AssociationType associationType = 1;
|
|
254
|
+
optional Protocol.MessageKey parentMessageKey = 2;
|
|
255
|
+
optional int32 messageIndex = 3;
|
|
256
|
+
enum AssociationType {
|
|
257
|
+
UNKNOWN = 0;
|
|
258
|
+
MEDIA_ALBUM = 1;
|
|
259
|
+
BOT_PLUGIN = 2;
|
|
260
|
+
EVENT_COVER_IMAGE = 3;
|
|
261
|
+
STATUS_POLL = 4;
|
|
262
|
+
HD_VIDEO_DUAL_UPLOAD = 5;
|
|
263
|
+
STATUS_EXTERNAL_RESHARE = 6;
|
|
264
|
+
MEDIA_POLL = 7;
|
|
265
|
+
STATUS_ADD_YOURS = 8;
|
|
266
|
+
STATUS_NOTIFICATION = 9;
|
|
267
|
+
HD_IMAGE_DUAL_UPLOAD = 10;
|
|
268
|
+
STICKER_ANNOTATION = 11;
|
|
269
|
+
MOTION_PHOTO = 12;
|
|
270
|
+
STATUS_LINK_ACTION = 13;
|
|
271
|
+
VIEW_ALL_REPLIES = 14;
|
|
272
|
+
STATUS_ADD_YOURS_AI_IMAGINE = 15;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
message BotMetadata {
|
|
276
|
+
optional BotAvatarMetadata avatarMetadata = 1;
|
|
277
|
+
optional string personaId = 2;
|
|
278
|
+
optional BotPluginMetadata pluginMetadata = 3;
|
|
279
|
+
optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
|
|
280
|
+
optional string invokerJid = 5;
|
|
281
|
+
optional BotSessionMetadata sessionMetadata = 6;
|
|
282
|
+
optional BotMemuMetadata memuMetadata = 7;
|
|
283
|
+
optional string timezone = 8;
|
|
284
|
+
optional BotReminderMetadata reminderMetadata = 9;
|
|
285
|
+
optional BotModelMetadata modelMetadata = 10;
|
|
286
|
+
optional string messageDisclaimerText = 11;
|
|
287
|
+
optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
|
|
288
|
+
optional BotCapabilityMetadata capabilityMetadata = 13;
|
|
289
|
+
optional BotImagineMetadata imagineMetadata = 14;
|
|
290
|
+
optional BotMemoryMetadata memoryMetadata = 15;
|
|
291
|
+
optional BotRenderingMetadata renderingMetadata = 16;
|
|
292
|
+
optional BotMetricsMetadata botMetricsMetadata = 17;
|
|
293
|
+
optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
|
|
294
|
+
optional BotSourcesMetadata richResponseSourcesMetadata = 19;
|
|
295
|
+
optional bytes aiConversationContext = 20;
|
|
296
|
+
optional BotPromotionMessageMetadata botPromotionMessageMetadata = 21;
|
|
297
|
+
optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
|
|
298
|
+
optional BotQuotaMetadata botQuotaMetadata = 23;
|
|
299
|
+
optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
|
|
300
|
+
optional string conversationStarterPromptId = 25;
|
|
301
|
+
optional string botResponseId = 26;
|
|
302
|
+
optional BotSignatureVerificationMetadata verificationMetadata = 27;
|
|
303
|
+
}
|
|
304
|
+
message BotSourcesMetadata {
|
|
305
|
+
repeated BotSourceItem sources = 1;
|
|
306
|
+
message BotSourceItem {
|
|
307
|
+
optional SourceProvider provider = 1;
|
|
308
|
+
optional string thumbnailCdnUrl = 2;
|
|
309
|
+
optional string sourceProviderUrl = 3;
|
|
310
|
+
optional string sourceQuery = 4;
|
|
311
|
+
optional string faviconCdnUrl = 5;
|
|
312
|
+
optional uint32 citationNumber = 6;
|
|
313
|
+
enum SourceProvider {
|
|
314
|
+
UNKNOWN = 0;
|
|
315
|
+
BING = 1;
|
|
316
|
+
GOOGLE = 2;
|
|
317
|
+
SUPPORT = 3;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
message BotAgeCollectionMetadata {
|
|
322
|
+
optional bool ageCollectionEligible = 1;
|
|
323
|
+
optional bool shouldTriggerAgeCollectionOnClient = 2;
|
|
324
|
+
}
|
|
325
|
+
message BotImagineMetadata {
|
|
326
|
+
optional ImagineType imagineType = 1;
|
|
327
|
+
enum ImagineType {
|
|
328
|
+
UNKNOWN = 0;
|
|
329
|
+
IMAGINE = 1;
|
|
330
|
+
MEMU = 2;
|
|
331
|
+
FLASH = 3;
|
|
332
|
+
EDIT = 4;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
message BotQuotaMetadata {
|
|
336
|
+
repeated BotFeatureQuotaMetadata botFeatureQuotaMetadata = 1;
|
|
337
|
+
message BotFeatureQuotaMetadata {
|
|
338
|
+
optional BotFeatureType featureType = 1;
|
|
339
|
+
optional uint32 remainingQuota = 2;
|
|
340
|
+
optional uint64 expirationTimestamp = 3;
|
|
341
|
+
enum BotFeatureType {
|
|
342
|
+
UNKNOWN_FEATURE = 0;
|
|
343
|
+
REASONING_FEATURE = 1;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
message BotModeSelectionMetadata {
|
|
348
|
+
repeated BotUserSelectionMode mode = 1;
|
|
349
|
+
enum BotUserSelectionMode {
|
|
350
|
+
UNKNOWN_MODE = 0;
|
|
351
|
+
REASONING_MODE = 1;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
message BotCapabilityMetadata {
|
|
355
|
+
repeated BotCapabilityType capabilities = 1;
|
|
356
|
+
enum BotCapabilityType {
|
|
357
|
+
UNKNOWN = 0;
|
|
358
|
+
PROGRESS_INDICATOR = 1;
|
|
359
|
+
RICH_RESPONSE_HEADING = 2;
|
|
360
|
+
RICH_RESPONSE_NESTED_LIST = 3;
|
|
361
|
+
AI_MEMORY = 4;
|
|
362
|
+
RICH_RESPONSE_THREAD_SURFING = 5;
|
|
363
|
+
RICH_RESPONSE_TABLE = 6;
|
|
364
|
+
RICH_RESPONSE_CODE = 7;
|
|
365
|
+
RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
|
|
366
|
+
RICH_RESPONSE_INLINE_IMAGE = 9;
|
|
367
|
+
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
|
368
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
|
369
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
|
370
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
|
|
371
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
|
|
372
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
|
|
373
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
|
|
374
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
|
|
375
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
|
|
376
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
|
|
377
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
|
|
378
|
+
RICH_RESPONSE_SUB_HEADING = 21;
|
|
379
|
+
RICH_RESPONSE_GRID_IMAGE = 22;
|
|
380
|
+
AI_STUDIO_UGC_MEMORY = 23;
|
|
381
|
+
RICH_RESPONSE_LATEX = 24;
|
|
382
|
+
RICH_RESPONSE_MAPS = 25;
|
|
383
|
+
RICH_RESPONSE_INLINE_REELS = 26;
|
|
384
|
+
AGENTIC_PLANNING = 27;
|
|
385
|
+
ACCOUNT_LINKING = 28;
|
|
386
|
+
STREAMING_DISAGGREGATION = 29;
|
|
387
|
+
RICH_RESPONSE_GRID_IMAGE_3P = 30;
|
|
388
|
+
RICH_RESPONSE_LATEX_INLINE = 31;
|
|
389
|
+
QUERY_PLAN = 32;
|
|
390
|
+
PROACTIVE_MESSAGE = 33;
|
|
391
|
+
RICH_RESPONSE_UNIFIED_RESPONSE = 34;
|
|
392
|
+
PROMOTION_MESSAGE = 35;
|
|
393
|
+
SIMPLIFIED_PROFILE_PAGE = 36;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
message BotProgressIndicatorMetadata {
|
|
397
|
+
optional string progressDescription = 1;
|
|
398
|
+
repeated BotPlanningStepMetadata stepsMetadata = 2;
|
|
399
|
+
message BotPlanningStepMetadata {
|
|
400
|
+
optional string statusTitle = 1;
|
|
401
|
+
optional string statusBody = 2;
|
|
402
|
+
repeated BotPlanningSearchSourcesMetadata sourcesMetadata = 3;
|
|
403
|
+
optional PlanningStepStatus status = 4;
|
|
404
|
+
optional bool isReasoning = 5;
|
|
405
|
+
optional bool isEnhancedSearch = 6;
|
|
406
|
+
repeated BotPlanningStepSectionMetadata sections = 7;
|
|
407
|
+
message BotPlanningSearchSourceMetadata {
|
|
408
|
+
optional string title = 1;
|
|
409
|
+
optional BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;
|
|
410
|
+
optional string sourceUrl = 3;
|
|
411
|
+
optional string favIconUrl = 4;
|
|
412
|
+
}
|
|
413
|
+
message BotPlanningSearchSourcesMetadata {
|
|
414
|
+
optional string sourceTitle = 1;
|
|
415
|
+
optional BotPlanningSearchSourceProvider provider = 2;
|
|
416
|
+
optional string sourceUrl = 3;
|
|
417
|
+
enum BotPlanningSearchSourceProvider {
|
|
418
|
+
UNKNOWN = 0;
|
|
419
|
+
OTHER = 1;
|
|
420
|
+
GOOGLE = 2;
|
|
421
|
+
BING = 3;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
message BotPlanningStepSectionMetadata {
|
|
425
|
+
optional string sectionTitle = 1;
|
|
426
|
+
optional string sectionBody = 2;
|
|
427
|
+
repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
|
|
428
|
+
}
|
|
429
|
+
enum BotSearchSourceProvider {
|
|
430
|
+
UNKNOWN_PROVIDER = 0;
|
|
431
|
+
OTHER = 1;
|
|
432
|
+
GOOGLE = 2;
|
|
433
|
+
BING = 3;
|
|
434
|
+
}
|
|
435
|
+
enum PlanningStepStatus {
|
|
436
|
+
UNKNOWN = 0;
|
|
437
|
+
PLANNED = 1;
|
|
438
|
+
EXECUTING = 2;
|
|
439
|
+
FINISHED = 3;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
message BotModelMetadata {
|
|
444
|
+
optional ModelType modelType = 1;
|
|
445
|
+
optional PremiumModelStatus premiumModelStatus = 2;
|
|
446
|
+
enum ModelType {
|
|
447
|
+
UNKNOWN_TYPE = 0;
|
|
448
|
+
LLAMA_PROD = 1;
|
|
449
|
+
LLAMA_PROD_PREMIUM = 2;
|
|
450
|
+
}
|
|
451
|
+
enum PremiumModelStatus {
|
|
452
|
+
UNKNOWN_STATUS = 0;
|
|
453
|
+
AVAILABLE = 1;
|
|
454
|
+
QUOTA_EXCEED_LIMIT = 2;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
message BotReminderMetadata {
|
|
458
|
+
optional Protocol.MessageKey requestMessageKey = 1;
|
|
459
|
+
optional ReminderAction action = 2;
|
|
460
|
+
optional string name = 3;
|
|
461
|
+
optional uint64 nextTriggerTimestamp = 4;
|
|
462
|
+
optional ReminderFrequency frequency = 5;
|
|
463
|
+
enum ReminderAction {
|
|
464
|
+
NOTIFY = 1;
|
|
465
|
+
CREATE = 2;
|
|
466
|
+
DELETE = 3;
|
|
467
|
+
UPDATE = 4;
|
|
468
|
+
}
|
|
469
|
+
enum ReminderFrequency {
|
|
470
|
+
ONCE = 1;
|
|
471
|
+
DAILY = 2;
|
|
472
|
+
WEEKLY = 3;
|
|
473
|
+
BIWEEKLY = 4;
|
|
474
|
+
MONTHLY = 5;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
message BotMemuMetadata {
|
|
478
|
+
repeated BotMediaMetadata faceImages = 1;
|
|
479
|
+
}
|
|
480
|
+
message BotMediaMetadata {
|
|
481
|
+
optional string fileSha256 = 1;
|
|
482
|
+
optional string mediaKey = 2;
|
|
483
|
+
optional string fileEncSha256 = 3;
|
|
484
|
+
optional string directPath = 4;
|
|
485
|
+
optional int64 mediaKeyTimestamp = 5;
|
|
486
|
+
optional string mimetype = 6;
|
|
487
|
+
optional OrientationType orientationType = 7;
|
|
488
|
+
enum OrientationType {
|
|
489
|
+
CENTER = 1;
|
|
490
|
+
LEFT = 2;
|
|
491
|
+
RIGHT = 3;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
message BotSessionMetadata {
|
|
495
|
+
optional string sessionId = 1;
|
|
496
|
+
optional BotSessionSource sessionSource = 2;
|
|
497
|
+
}
|
|
498
|
+
message BotMetricsMetadata {
|
|
499
|
+
optional string destinationId = 1;
|
|
500
|
+
optional BotMetricsEntryPoint destinationEntryPoint = 2;
|
|
501
|
+
optional BotMetricsThreadEntryPoint threadOrigin = 3;
|
|
502
|
+
}
|
|
503
|
+
message BotRenderingMetadata {
|
|
504
|
+
repeated Keyword keywords = 1;
|
|
505
|
+
message Keyword {
|
|
506
|
+
optional string value = 1;
|
|
507
|
+
repeated string associatedPrompts = 2;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
message BotPromotionMessageMetadata {
|
|
511
|
+
optional BotPromotionType promotionType = 1;
|
|
512
|
+
optional string buttonTitle = 2;
|
|
513
|
+
enum BotPromotionType {
|
|
514
|
+
UNKNOWN_TYPE = 0;
|
|
515
|
+
C50 = 1;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
message AIRichResponseMessage {
|
|
519
|
+
optional AIRichResponseMessageType messageType = 1;
|
|
520
|
+
repeated AIRichResponseSubMessage submessages = 2;
|
|
521
|
+
optional AIRichResponseUnifiedResponse unifiedResponse = 3;
|
|
522
|
+
optional ContextInfo contextInfo = 4;
|
|
523
|
+
message AIRichResponseCodeMetadata {
|
|
524
|
+
optional string codeLanguage = 1;
|
|
525
|
+
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
|
526
|
+
message AIRichResponseCodeBlock {
|
|
527
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
|
528
|
+
optional string codeContent = 2;
|
|
529
|
+
}
|
|
530
|
+
enum AIRichResponseCodeHighlightType {
|
|
531
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
|
532
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
|
533
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
|
534
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
|
535
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
|
536
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
message AIRichResponseContentItemsMetadata {
|
|
540
|
+
repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
|
|
541
|
+
optional ContentType contentType = 2;
|
|
542
|
+
message AIRichResponseContentItemMetadata {
|
|
543
|
+
oneof aIRichResponseContentItem {
|
|
544
|
+
AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
message AIRichResponseReelItem {
|
|
548
|
+
optional string title = 1;
|
|
549
|
+
optional string profileIconUrl = 2;
|
|
550
|
+
optional string thumbnailUrl = 3;
|
|
551
|
+
optional string videoUrl = 4;
|
|
552
|
+
}
|
|
553
|
+
enum ContentType {
|
|
554
|
+
DEFAULT = 0;
|
|
555
|
+
CAROUSEL = 1;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
message AIRichResponseDynamicMetadata {
|
|
559
|
+
optional AIRichResponseDynamicMetadataType type = 1;
|
|
560
|
+
optional uint64 version = 2;
|
|
561
|
+
optional string url = 3;
|
|
562
|
+
optional uint32 loopCount = 4;
|
|
563
|
+
enum AIRichResponseDynamicMetadataType {
|
|
564
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
|
565
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
|
566
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
message AIRichResponseGridImageMetadata {
|
|
570
|
+
optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
|
|
571
|
+
repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
|
|
572
|
+
}
|
|
573
|
+
message AIRichResponseImageURL {
|
|
574
|
+
optional string imagePreviewUrl = 1;
|
|
575
|
+
optional string imageHighResUrl = 2;
|
|
576
|
+
optional string sourceUrl = 3;
|
|
577
|
+
}
|
|
578
|
+
message AIRichResponseInlineImageMetadata {
|
|
579
|
+
optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
|
|
580
|
+
optional string imageText = 2;
|
|
581
|
+
optional AIRichResponseImageAlignment alignment = 3;
|
|
582
|
+
optional string tapLinkUrl = 4;
|
|
583
|
+
enum AIRichResponseImageAlignment {
|
|
584
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
|
585
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
|
586
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
message AIRichResponseLatexMetadata {
|
|
590
|
+
optional string text = 1;
|
|
591
|
+
repeated AIRichResponseLatexExpression expressions = 2;
|
|
592
|
+
message AIRichResponseLatexExpression {
|
|
593
|
+
optional string latexExpression = 1;
|
|
594
|
+
optional string url = 2;
|
|
595
|
+
optional double width = 3;
|
|
596
|
+
optional double height = 4;
|
|
597
|
+
optional double fontHeight = 5;
|
|
598
|
+
optional double imageTopPadding = 6;
|
|
599
|
+
optional double imageLeadingPadding = 7;
|
|
600
|
+
optional double imageBottomPadding = 8;
|
|
601
|
+
optional double imageTrailingPadding = 9;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
message AIRichResponseMapMetadata {
|
|
605
|
+
optional double centerLatitude = 1;
|
|
606
|
+
optional double centerLongitude = 2;
|
|
607
|
+
optional double latitudeDelta = 3;
|
|
608
|
+
optional double longitudeDelta = 4;
|
|
609
|
+
repeated AIRichResponseMapAnnotation annotations = 5;
|
|
610
|
+
optional bool showInfoList = 6;
|
|
611
|
+
message AIRichResponseMapAnnotation {
|
|
612
|
+
optional uint32 annotationNumber = 1;
|
|
613
|
+
optional double latitude = 2;
|
|
614
|
+
optional double longitude = 3;
|
|
615
|
+
optional string title = 4;
|
|
616
|
+
optional string body = 5;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
enum AIRichResponseMessageType {
|
|
620
|
+
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
|
621
|
+
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
|
622
|
+
}
|
|
623
|
+
message AIRichResponseSubMessage {
|
|
624
|
+
optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
|
|
625
|
+
optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
|
626
|
+
optional string messageText = 3;
|
|
627
|
+
optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
|
|
628
|
+
optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
|
|
629
|
+
optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
|
|
630
|
+
optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
|
631
|
+
optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
|
|
632
|
+
optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
|
|
633
|
+
optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
|
|
634
|
+
}
|
|
635
|
+
enum AIRichResponseSubMessageType {
|
|
636
|
+
AI_RICH_RESPONSE_UNKNOWN = 0;
|
|
637
|
+
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
|
638
|
+
AI_RICH_RESPONSE_TEXT = 2;
|
|
639
|
+
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
|
640
|
+
AI_RICH_RESPONSE_TABLE = 4;
|
|
641
|
+
AI_RICH_RESPONSE_CODE = 5;
|
|
642
|
+
AI_RICH_RESPONSE_DYNAMIC = 6;
|
|
643
|
+
AI_RICH_RESPONSE_MAP = 7;
|
|
644
|
+
AI_RICH_RESPONSE_LATEX = 8;
|
|
645
|
+
AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
|
|
646
|
+
}
|
|
647
|
+
message AIRichResponseTableMetadata {
|
|
648
|
+
repeated AIRichResponseTableRow rows = 1;
|
|
649
|
+
optional string title = 2;
|
|
650
|
+
message AIRichResponseTableRow {
|
|
651
|
+
repeated string items = 1;
|
|
652
|
+
optional bool isHeading = 2;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
message AIRichResponseUnifiedResponse {
|
|
656
|
+
optional bytes data = 1;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
message BotSignatureVerificationUseCaseProof {
|
|
660
|
+
optional int32 version = 1;
|
|
661
|
+
optional BotSignatureUseCase useCase = 2;
|
|
662
|
+
optional bytes signature = 3;
|
|
663
|
+
optional bytes certificateChain = 4;
|
|
664
|
+
enum BotSignatureUseCase {
|
|
665
|
+
WA_BOT_MSG = 0;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
message BotSignatureVerificationMetadata {
|
|
669
|
+
repeated BotSignatureVerificationUseCaseProof proofs = 1;
|
|
670
|
+
}
|
|
671
|
+
message BotMemoryFact {
|
|
672
|
+
optional string fact = 1;
|
|
673
|
+
optional string factId = 2;
|
|
674
|
+
}
|
|
675
|
+
message BotMemoryMetadata {
|
|
676
|
+
repeated BotMemoryFact addedFacts = 1;
|
|
677
|
+
repeated BotMemoryFact removedFacts = 2;
|
|
678
|
+
optional string disclaimer = 3;
|
|
679
|
+
}
|
|
680
|
+
message BotLinkedAccount {
|
|
681
|
+
optional BotLinkedAccountType type = 1;
|
|
682
|
+
enum BotLinkedAccountType {
|
|
683
|
+
BOT_LINKED_ACCOUNT_TYPE_1P = 0;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
message BotLinkedAccountsMetadata {
|
|
687
|
+
repeated BotLinkedAccount accounts = 1;
|
|
688
|
+
optional bytes acAuthTokens = 2;
|
|
689
|
+
optional int32 acErrorCode = 3;
|
|
690
|
+
}
|
|
691
|
+
message BotPromptSuggestion {
|
|
692
|
+
optional string prompt = 1;
|
|
693
|
+
optional string promptId = 2;
|
|
694
|
+
}
|
|
695
|
+
message BotPromptSuggestions {
|
|
696
|
+
repeated BotPromptSuggestion suggestions = 1;
|
|
697
|
+
}
|
|
698
|
+
message BotSuggestedPromptMetadata {
|
|
699
|
+
repeated string suggestedPrompts = 1;
|
|
700
|
+
optional uint32 selectedPromptIndex = 2;
|
|
701
|
+
optional BotPromptSuggestions promptSuggestions = 3;
|
|
702
|
+
optional string selectedPromptId = 4;
|
|
703
|
+
}
|
|
704
|
+
message BotPluginMetadata {
|
|
705
|
+
optional SearchProvider provider = 1;
|
|
706
|
+
optional PluginType pluginType = 2;
|
|
707
|
+
optional string thumbnailCdnUrl = 3;
|
|
708
|
+
optional string profilePhotoCdnUrl = 4;
|
|
709
|
+
optional string searchProviderUrl = 5;
|
|
710
|
+
optional uint32 referenceIndex = 6;
|
|
711
|
+
optional uint32 expectedLinksCount = 7;
|
|
712
|
+
optional string searchQuery = 9;
|
|
713
|
+
optional Protocol.MessageKey parentPluginMessageKey = 10;
|
|
714
|
+
optional PluginType deprecatedField = 11;
|
|
715
|
+
optional PluginType parentPluginType = 12;
|
|
716
|
+
optional string faviconCdnUrl = 13;
|
|
717
|
+
enum PluginType {
|
|
718
|
+
UNKNOWN_PLUGIN = 0;
|
|
719
|
+
REELS = 1;
|
|
720
|
+
SEARCH = 2;
|
|
721
|
+
}
|
|
722
|
+
enum SearchProvider {
|
|
723
|
+
UNKNOWN = 0;
|
|
724
|
+
BING = 1;
|
|
725
|
+
GOOGLE = 2;
|
|
726
|
+
SUPPORT = 3;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
message BotAvatarMetadata {
|
|
730
|
+
optional uint32 sentiment = 1;
|
|
731
|
+
optional string behaviorGraph = 2;
|
|
732
|
+
optional uint32 action = 3;
|
|
733
|
+
optional uint32 intensity = 4;
|
|
734
|
+
optional uint32 wordCount = 5;
|
|
735
|
+
}
|
|
736
|
+
message ContextInfo {
|
|
737
|
+
optional string stanzaId = 1;
|
|
738
|
+
optional string participant = 2;
|
|
739
|
+
optional Message quotedMessage = 3;
|
|
740
|
+
optional string remoteJid = 4;
|
|
741
|
+
repeated string mentionedJid = 15;
|
|
742
|
+
optional string conversionSource = 18;
|
|
743
|
+
optional bytes conversionData = 19;
|
|
744
|
+
optional uint32 conversionDelaySeconds = 20;
|
|
745
|
+
optional uint32 forwardingScore = 21;
|
|
746
|
+
optional bool isForwarded = 22;
|
|
747
|
+
optional AdReplyInfo quotedAd = 23;
|
|
748
|
+
optional Protocol.MessageKey placeholderKey = 24;
|
|
749
|
+
optional uint32 expiration = 25;
|
|
750
|
+
optional int64 ephemeralSettingTimestamp = 26;
|
|
751
|
+
optional bytes ephemeralSharedSecret = 27;
|
|
752
|
+
optional ExternalAdReplyInfo externalAdReply = 28;
|
|
753
|
+
optional string entryPointConversionSource = 29;
|
|
754
|
+
optional string entryPointConversionApp = 30;
|
|
755
|
+
optional uint32 entryPointConversionDelaySeconds = 31;
|
|
756
|
+
optional DisappearingMode disappearingMode = 32;
|
|
757
|
+
optional ActionLink actionLink = 33;
|
|
758
|
+
optional string groupSubject = 34;
|
|
759
|
+
optional string parentGroupJid = 35;
|
|
760
|
+
optional string trustBannerType = 37;
|
|
761
|
+
optional uint32 trustBannerAction = 38;
|
|
762
|
+
optional bool isSampled = 39;
|
|
763
|
+
repeated GroupMention groupMentions = 40;
|
|
764
|
+
optional UTMInfo utm = 41;
|
|
765
|
+
optional ForwardedNewsletterMessageInfo forwardedNewsletterMessageInfo = 43;
|
|
766
|
+
optional BusinessMessageForwardInfo businessMessageForwardInfo = 44;
|
|
767
|
+
optional string smbClientCampaignId = 45;
|
|
768
|
+
optional string smbServerCampaignId = 46;
|
|
769
|
+
optional DataSharingContext dataSharingContext = 47;
|
|
770
|
+
optional bool alwaysShowAdAttribution = 48;
|
|
771
|
+
optional FeatureEligibilities featureEligibilities = 49;
|
|
772
|
+
optional string entryPointConversionExternalSource = 50;
|
|
773
|
+
optional string entryPointConversionExternalMedium = 51;
|
|
774
|
+
optional string ctwaSignals = 54;
|
|
775
|
+
optional bytes ctwaPayload = 55;
|
|
776
|
+
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
|
777
|
+
optional StatusAttributionType statusAttributionType = 57;
|
|
778
|
+
optional UrlTrackingMap urlTrackingMap = 58;
|
|
779
|
+
optional PairedMediaType pairedMediaType = 59;
|
|
780
|
+
optional uint32 rankingVersion = 60;
|
|
781
|
+
optional MemberLabel memberLabel = 62;
|
|
782
|
+
optional bool isQuestion = 63;
|
|
783
|
+
optional StatusSourceType statusSourceType = 64;
|
|
784
|
+
repeated StatusAttributions.StatusAttribution statusAttributions = 65;
|
|
785
|
+
message AdReplyInfo {
|
|
786
|
+
optional string advertiserName = 1;
|
|
787
|
+
optional MediaType mediaType = 2;
|
|
788
|
+
optional bytes jpegThumbnail = 16;
|
|
789
|
+
optional string caption = 17;
|
|
790
|
+
enum MediaType {
|
|
791
|
+
NONE = 0;
|
|
792
|
+
IMAGE = 1;
|
|
793
|
+
VIDEO = 2;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
message BusinessMessageForwardInfo {
|
|
797
|
+
optional string businessOwnerJid = 1;
|
|
798
|
+
}
|
|
799
|
+
message DataSharingContext {
|
|
800
|
+
optional bool showMmDisclosure = 1;
|
|
801
|
+
optional string encryptedSignalTokenConsented = 2;
|
|
802
|
+
repeated Parameters parameters = 3;
|
|
803
|
+
message Parameters {
|
|
804
|
+
optional string key = 1;
|
|
805
|
+
optional string stringData = 2;
|
|
806
|
+
optional int64 intData = 3;
|
|
807
|
+
optional float floatData = 4;
|
|
808
|
+
optional ContextInfo.DataSharingContext.Parameters contents = 5;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
message ExternalAdReplyInfo {
|
|
812
|
+
optional string title = 1;
|
|
813
|
+
optional string body = 2;
|
|
814
|
+
optional MediaType mediaType = 3;
|
|
815
|
+
optional string thumbnailUrl = 4;
|
|
816
|
+
optional string mediaUrl = 5;
|
|
817
|
+
optional bytes thumbnail = 6;
|
|
818
|
+
optional string sourceType = 7;
|
|
819
|
+
optional string sourceId = 8;
|
|
820
|
+
optional string sourceUrl = 9;
|
|
821
|
+
optional bool containsAutoReply = 10;
|
|
822
|
+
optional bool renderLargerThumbnail = 11;
|
|
823
|
+
optional bool showAdAttribution = 12;
|
|
824
|
+
optional string ctwaClid = 13;
|
|
825
|
+
optional string ref = 14;
|
|
826
|
+
optional bool clickToWhatsappCall = 15;
|
|
827
|
+
optional bool adContextPreviewDismissed = 16;
|
|
828
|
+
optional string sourceApp = 17;
|
|
829
|
+
optional bool automatedGreetingMessageShown = 18;
|
|
830
|
+
optional string greetingMessageBody = 19;
|
|
831
|
+
optional string ctaPayload = 20;
|
|
832
|
+
optional bool disableNudge = 21;
|
|
833
|
+
optional string originalImageUrl = 22;
|
|
834
|
+
optional string automatedGreetingMessageCtaType = 23;
|
|
835
|
+
optional bool wtwaAdFormat = 24;
|
|
836
|
+
optional AdType adType = 25;
|
|
837
|
+
enum AdType {
|
|
838
|
+
CTWA = 0;
|
|
839
|
+
CAWC = 1;
|
|
840
|
+
}
|
|
841
|
+
enum MediaType {
|
|
842
|
+
NONE = 0;
|
|
843
|
+
IMAGE = 1;
|
|
844
|
+
VIDEO = 2;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
message FeatureEligibilities {
|
|
848
|
+
optional bool cannotBeReactedTo = 1;
|
|
849
|
+
optional bool cannotBeRanked = 2;
|
|
850
|
+
optional bool canRequestFeedback = 3;
|
|
851
|
+
optional bool canBeReshared = 4;
|
|
852
|
+
}
|
|
853
|
+
message ForwardedAIBotMessageInfo {
|
|
854
|
+
optional string botName = 1;
|
|
855
|
+
optional string botJid = 2;
|
|
856
|
+
optional string creatorName = 3;
|
|
857
|
+
}
|
|
858
|
+
message ForwardedNewsletterMessageInfo {
|
|
859
|
+
optional string newsletterJid = 1;
|
|
860
|
+
optional int32 serverMessageId = 2;
|
|
861
|
+
optional string newsletterName = 3;
|
|
862
|
+
optional ContentType contentType = 4;
|
|
863
|
+
optional string accessibilityText = 5;
|
|
864
|
+
enum ContentType {
|
|
865
|
+
UPDATE = 1;
|
|
866
|
+
UPDATE_CARD = 2;
|
|
867
|
+
LINK_CARD = 3;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
enum PairedMediaType {
|
|
871
|
+
NOT_PAIRED_MEDIA = 0;
|
|
872
|
+
SD_VIDEO_PARENT = 1;
|
|
873
|
+
HD_VIDEO_CHILD = 2;
|
|
874
|
+
SD_IMAGE_PARENT = 3;
|
|
875
|
+
HD_IMAGE_CHILD = 4;
|
|
876
|
+
MOTION_PHOTO_PARENT = 5;
|
|
877
|
+
MOTION_PHOTO_CHILD = 6;
|
|
878
|
+
}
|
|
879
|
+
enum StatusAttributionType {
|
|
880
|
+
NONE = 0;
|
|
881
|
+
RESHARED_FROM_MENTION = 1;
|
|
882
|
+
RESHARED_FROM_POST = 2;
|
|
883
|
+
}
|
|
884
|
+
enum StatusSourceType {
|
|
885
|
+
IMAGE = 0;
|
|
886
|
+
VIDEO = 1;
|
|
887
|
+
GIF = 2;
|
|
888
|
+
AUDIO = 3;
|
|
889
|
+
TEXT = 4;
|
|
890
|
+
MUSIC_STANDALONE = 5;
|
|
891
|
+
}
|
|
892
|
+
message UTMInfo {
|
|
893
|
+
optional string utmSource = 1;
|
|
894
|
+
optional string utmCampaign = 2;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
message Message {
|
|
898
|
+
optional string conversation = 1;
|
|
899
|
+
optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
|
|
900
|
+
optional ImageMessage imageMessage = 3;
|
|
901
|
+
optional ContactMessage contactMessage = 4;
|
|
902
|
+
optional LocationMessage locationMessage = 5;
|
|
903
|
+
optional ExtendedTextMessage extendedTextMessage = 6;
|
|
904
|
+
optional DocumentMessage documentMessage = 7;
|
|
905
|
+
optional AudioMessage audioMessage = 8;
|
|
906
|
+
optional VideoMessage videoMessage = 9;
|
|
907
|
+
optional Call call = 10;
|
|
908
|
+
optional Chat chat = 11;
|
|
909
|
+
optional ProtocolMessage protocolMessage = 12;
|
|
910
|
+
optional ContactsArrayMessage contactsArrayMessage = 13;
|
|
911
|
+
optional HighlyStructuredMessage highlyStructuredMessage = 14;
|
|
912
|
+
optional SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15;
|
|
913
|
+
optional SendPaymentMessage sendPaymentMessage = 16;
|
|
914
|
+
optional LiveLocationMessage liveLocationMessage = 18;
|
|
915
|
+
optional RequestPaymentMessage requestPaymentMessage = 22;
|
|
916
|
+
optional DeclinePaymentRequestMessage declinePaymentRequestMessage = 23;
|
|
917
|
+
optional CancelPaymentRequestMessage cancelPaymentRequestMessage = 24;
|
|
918
|
+
optional TemplateMessage templateMessage = 25;
|
|
919
|
+
optional StickerMessage stickerMessage = 26;
|
|
920
|
+
optional GroupInviteMessage groupInviteMessage = 28;
|
|
921
|
+
optional TemplateButtonReplyMessage templateButtonReplyMessage = 29;
|
|
922
|
+
optional ProductMessage productMessage = 30;
|
|
923
|
+
optional DeviceSentMessage deviceSentMessage = 31;
|
|
924
|
+
optional MessageContextInfo messageContextInfo = 35;
|
|
925
|
+
optional ListMessage listMessage = 36;
|
|
926
|
+
optional FutureProofMessage viewOnceMessage = 37;
|
|
927
|
+
optional OrderMessage orderMessage = 38;
|
|
928
|
+
optional ListResponseMessage listResponseMessage = 39;
|
|
929
|
+
optional FutureProofMessage ephemeralMessage = 40;
|
|
930
|
+
optional InvoiceMessage invoiceMessage = 41;
|
|
931
|
+
optional ButtonsMessage buttonsMessage = 42;
|
|
932
|
+
optional ButtonsResponseMessage buttonsResponseMessage = 43;
|
|
933
|
+
optional PaymentInviteMessage paymentInviteMessage = 44;
|
|
934
|
+
optional InteractiveMessage interactiveMessage = 45;
|
|
935
|
+
optional ReactionMessage reactionMessage = 46;
|
|
936
|
+
optional StickerSyncRMRMessage stickerSyncRmrMessage = 47;
|
|
937
|
+
optional InteractiveResponseMessage interactiveResponseMessage = 48;
|
|
938
|
+
optional PollCreationMessage pollCreationMessage = 49;
|
|
939
|
+
optional PollUpdateMessage pollUpdateMessage = 50;
|
|
940
|
+
optional KeepInChatMessage keepInChatMessage = 51;
|
|
941
|
+
optional FutureProofMessage documentWithCaptionMessage = 53;
|
|
942
|
+
optional RequestPhoneNumberMessage requestPhoneNumberMessage = 54;
|
|
943
|
+
optional FutureProofMessage viewOnceMessageV2 = 55;
|
|
944
|
+
optional EncReactionMessage encReactionMessage = 56;
|
|
945
|
+
optional FutureProofMessage editedMessage = 58;
|
|
946
|
+
optional FutureProofMessage viewOnceMessageV2Extension = 59;
|
|
947
|
+
optional PollCreationMessage pollCreationMessageV2 = 60;
|
|
948
|
+
optional ScheduledCallCreationMessage scheduledCallCreationMessage = 61;
|
|
949
|
+
optional FutureProofMessage groupMentionedMessage = 62;
|
|
950
|
+
optional PinInChatMessage pinInChatMessage = 63;
|
|
951
|
+
optional PollCreationMessage pollCreationMessageV3 = 64;
|
|
952
|
+
optional ScheduledCallEditMessage scheduledCallEditMessage = 65;
|
|
953
|
+
optional VideoMessage ptvMessage = 66;
|
|
954
|
+
optional FutureProofMessage botInvokeMessage = 67;
|
|
955
|
+
optional CallLogMessage callLogMesssage = 69;
|
|
956
|
+
optional MessageHistoryBundle messageHistoryBundle = 70;
|
|
957
|
+
optional EncCommentMessage encCommentMessage = 71;
|
|
958
|
+
optional BCallMessage bcallMessage = 72;
|
|
959
|
+
optional FutureProofMessage lottieStickerMessage = 74;
|
|
960
|
+
optional EventMessage eventMessage = 75;
|
|
961
|
+
optional EncEventResponseMessage encEventResponseMessage = 76;
|
|
962
|
+
optional CommentMessage commentMessage = 77;
|
|
963
|
+
optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
|
|
964
|
+
optional PlaceholderMessage placeholderMessage = 80;
|
|
965
|
+
optional SecretEncryptedMessage secretEncryptedMessage = 82;
|
|
966
|
+
optional AlbumMessage albumMessage = 83;
|
|
967
|
+
optional FutureProofMessage eventCoverImage = 85;
|
|
968
|
+
optional StickerPackMessage stickerPackMessage = 86;
|
|
969
|
+
optional FutureProofMessage statusMentionMessage = 87;
|
|
970
|
+
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
|
|
971
|
+
optional FutureProofMessage pollCreationOptionImageMessage = 90;
|
|
972
|
+
optional FutureProofMessage associatedChildMessage = 91;
|
|
973
|
+
optional FutureProofMessage groupStatusMentionMessage = 92;
|
|
974
|
+
optional FutureProofMessage pollCreationMessageV4 = 93;
|
|
975
|
+
optional FutureProofMessage pollCreationMessageV5 = 94;
|
|
976
|
+
optional FutureProofMessage statusAddYours = 95;
|
|
977
|
+
optional FutureProofMessage groupStatusMessage = 96;
|
|
978
|
+
optional AIRichResponseMessage richResponseMessage = 97;
|
|
979
|
+
optional StatusNotificationMessage statusNotificationMessage = 98;
|
|
980
|
+
optional FutureProofMessage limitSharingMessage = 99;
|
|
981
|
+
optional FutureProofMessage botTaskMessage = 100;
|
|
982
|
+
optional FutureProofMessage questionMessage = 101;
|
|
983
|
+
optional MessageHistoryNotice messageHistoryNotice = 102;
|
|
984
|
+
optional FutureProofMessage groupStatusMessageV2 = 103;
|
|
985
|
+
optional FutureProofMessage botForwardedMessage = 104;
|
|
986
|
+
message AlbumMessage {
|
|
987
|
+
optional uint32 expectedImageCount = 2;
|
|
988
|
+
optional uint32 expectedVideoCount = 3;
|
|
989
|
+
optional ContextInfo contextInfo = 17;
|
|
990
|
+
}
|
|
991
|
+
message AppStateFatalExceptionNotification {
|
|
992
|
+
repeated string collectionNames = 1;
|
|
993
|
+
optional int64 timestamp = 2;
|
|
994
|
+
}
|
|
995
|
+
message AppStateSyncKey {
|
|
996
|
+
optional Message.AppStateSyncKeyId keyId = 1;
|
|
997
|
+
optional Message.AppStateSyncKeyData keyData = 2;
|
|
998
|
+
}
|
|
999
|
+
message AppStateSyncKeyData {
|
|
1000
|
+
optional bytes keyData = 1;
|
|
1001
|
+
optional Message.AppStateSyncKeyFingerprint fingerprint = 2;
|
|
1002
|
+
optional int64 timestamp = 3;
|
|
1003
|
+
}
|
|
1004
|
+
message AppStateSyncKeyFingerprint {
|
|
1005
|
+
optional uint32 rawId = 1;
|
|
1006
|
+
optional uint32 currentIndex = 2;
|
|
1007
|
+
repeated uint32 deviceIndexes = 3 [packed=true];
|
|
1008
|
+
}
|
|
1009
|
+
message AppStateSyncKeyId {
|
|
1010
|
+
optional bytes keyId = 1;
|
|
1011
|
+
}
|
|
1012
|
+
message AppStateSyncKeyRequest {
|
|
1013
|
+
repeated Message.AppStateSyncKeyId keyIds = 1;
|
|
1014
|
+
}
|
|
1015
|
+
message AppStateSyncKeyShare {
|
|
1016
|
+
repeated Message.AppStateSyncKey keys = 1;
|
|
1017
|
+
}
|
|
1018
|
+
message AudioMessage {
|
|
1019
|
+
optional string url = 1;
|
|
1020
|
+
optional string mimetype = 2;
|
|
1021
|
+
optional bytes fileSha256 = 3;
|
|
1022
|
+
optional uint64 fileLength = 4;
|
|
1023
|
+
optional uint32 seconds = 5;
|
|
1024
|
+
optional bool ptt = 6;
|
|
1025
|
+
optional bytes mediaKey = 7;
|
|
1026
|
+
optional bytes fileEncSha256 = 8;
|
|
1027
|
+
optional string directPath = 9;
|
|
1028
|
+
optional int64 mediaKeyTimestamp = 10;
|
|
1029
|
+
optional ContextInfo contextInfo = 17;
|
|
1030
|
+
optional bytes streamingSidecar = 18;
|
|
1031
|
+
optional bytes waveform = 19;
|
|
1032
|
+
optional fixed32 backgroundArgb = 20;
|
|
1033
|
+
optional bool viewOnce = 21;
|
|
1034
|
+
optional string accessibilityLabel = 22;
|
|
1035
|
+
}
|
|
1036
|
+
message BCallMessage {
|
|
1037
|
+
optional string sessionId = 1;
|
|
1038
|
+
optional MediaType mediaType = 2;
|
|
1039
|
+
optional bytes masterKey = 3;
|
|
1040
|
+
optional string caption = 4;
|
|
1041
|
+
enum MediaType {
|
|
1042
|
+
UNKNOWN = 0;
|
|
1043
|
+
AUDIO = 1;
|
|
1044
|
+
VIDEO = 2;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
message BotFeedbackMessage {
|
|
1048
|
+
optional Protocol.MessageKey messageKey = 1;
|
|
1049
|
+
optional BotFeedbackKind kind = 2;
|
|
1050
|
+
optional string text = 3;
|
|
1051
|
+
optional uint64 kindNegative = 4;
|
|
1052
|
+
optional uint64 kindPositive = 5;
|
|
1053
|
+
optional ReportKind kindReport = 6;
|
|
1054
|
+
enum BotFeedbackKind {
|
|
1055
|
+
BOT_FEEDBACK_POSITIVE = 0;
|
|
1056
|
+
BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
|
|
1057
|
+
BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
|
|
1058
|
+
BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
|
|
1059
|
+
BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
|
|
1060
|
+
BOT_FEEDBACK_NEGATIVE_SAFE = 5;
|
|
1061
|
+
BOT_FEEDBACK_NEGATIVE_OTHER = 6;
|
|
1062
|
+
BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
|
|
1063
|
+
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
|
|
1064
|
+
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
|
|
1065
|
+
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
|
|
1066
|
+
BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
|
|
1067
|
+
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
|
|
1068
|
+
BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
|
|
1069
|
+
BOT_FEEDBACK_NEGATIVE = 14;
|
|
1070
|
+
}
|
|
1071
|
+
enum BotFeedbackKindMultipleNegative {
|
|
1072
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
|
|
1073
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
|
|
1074
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
|
|
1075
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
|
|
1076
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
|
|
1077
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
|
|
1078
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
|
|
1079
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
|
|
1080
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
|
|
1081
|
+
}
|
|
1082
|
+
enum BotFeedbackKindMultiplePositive {
|
|
1083
|
+
BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
|
|
1084
|
+
}
|
|
1085
|
+
enum ReportKind {
|
|
1086
|
+
NONE = 0;
|
|
1087
|
+
GENERIC = 1;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
message ButtonsMessage {
|
|
1091
|
+
optional string contentText = 6;
|
|
1092
|
+
optional string footerText = 7;
|
|
1093
|
+
optional ContextInfo contextInfo = 8;
|
|
1094
|
+
repeated Button buttons = 9;
|
|
1095
|
+
optional HeaderType headerType = 10;
|
|
1096
|
+
oneof header {
|
|
1097
|
+
string text = 1;
|
|
1098
|
+
Message.DocumentMessage documentMessage = 2;
|
|
1099
|
+
Message.ImageMessage imageMessage = 3;
|
|
1100
|
+
Message.VideoMessage videoMessage = 4;
|
|
1101
|
+
Message.LocationMessage locationMessage = 5;
|
|
1102
|
+
}
|
|
1103
|
+
message Button {
|
|
1104
|
+
optional string buttonId = 1;
|
|
1105
|
+
optional ButtonText buttonText = 2;
|
|
1106
|
+
optional Type type = 3;
|
|
1107
|
+
optional NativeFlowInfo nativeFlowInfo = 4;
|
|
1108
|
+
message ButtonText {
|
|
1109
|
+
optional string displayText = 1;
|
|
1110
|
+
}
|
|
1111
|
+
message NativeFlowInfo {
|
|
1112
|
+
optional string name = 1;
|
|
1113
|
+
optional string paramsJson = 2;
|
|
1114
|
+
}
|
|
1115
|
+
enum Type {
|
|
1116
|
+
UNKNOWN = 0;
|
|
1117
|
+
RESPONSE = 1;
|
|
1118
|
+
NATIVE_FLOW = 2;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
enum HeaderType {
|
|
1122
|
+
UNKNOWN = 0;
|
|
1123
|
+
EMPTY = 1;
|
|
1124
|
+
TEXT = 2;
|
|
1125
|
+
DOCUMENT = 3;
|
|
1126
|
+
IMAGE = 4;
|
|
1127
|
+
VIDEO = 5;
|
|
1128
|
+
LOCATION = 6;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
message ButtonsResponseMessage {
|
|
1132
|
+
optional string selectedButtonId = 1;
|
|
1133
|
+
optional ContextInfo contextInfo = 3;
|
|
1134
|
+
optional Type type = 4;
|
|
1135
|
+
oneof response {
|
|
1136
|
+
string selectedDisplayText = 2;
|
|
1137
|
+
}
|
|
1138
|
+
enum Type {
|
|
1139
|
+
UNKNOWN = 0;
|
|
1140
|
+
DISPLAY_TEXT = 1;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
message Call {
|
|
1144
|
+
optional bytes callKey = 1;
|
|
1145
|
+
optional string conversionSource = 2;
|
|
1146
|
+
optional bytes conversionData = 3;
|
|
1147
|
+
optional uint32 conversionDelaySeconds = 4;
|
|
1148
|
+
optional string ctwaSignals = 5;
|
|
1149
|
+
optional bytes ctwaPayload = 6;
|
|
1150
|
+
optional ContextInfo contextInfo = 7;
|
|
1151
|
+
}
|
|
1152
|
+
message CallLogMessage {
|
|
1153
|
+
optional bool isVideo = 1;
|
|
1154
|
+
optional CallOutcome callOutcome = 2;
|
|
1155
|
+
optional int64 durationSecs = 3;
|
|
1156
|
+
optional CallType callType = 4;
|
|
1157
|
+
repeated CallParticipant participants = 5;
|
|
1158
|
+
enum CallOutcome {
|
|
1159
|
+
CONNECTED = 0;
|
|
1160
|
+
MISSED = 1;
|
|
1161
|
+
FAILED = 2;
|
|
1162
|
+
REJECTED = 3;
|
|
1163
|
+
ACCEPTED_ELSEWHERE = 4;
|
|
1164
|
+
ONGOING = 5;
|
|
1165
|
+
SILENCED_BY_DND = 6;
|
|
1166
|
+
SILENCED_UNKNOWN_CALLER = 7;
|
|
1167
|
+
}
|
|
1168
|
+
message CallParticipant {
|
|
1169
|
+
optional string jid = 1;
|
|
1170
|
+
optional Message.CallLogMessage.CallOutcome callOutcome = 2;
|
|
1171
|
+
}
|
|
1172
|
+
enum CallType {
|
|
1173
|
+
REGULAR = 0;
|
|
1174
|
+
SCHEDULED_CALL = 1;
|
|
1175
|
+
VOICE_CHAT = 2;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
message CancelPaymentRequestMessage {
|
|
1179
|
+
optional Protocol.MessageKey key = 1;
|
|
1180
|
+
}
|
|
1181
|
+
message Chat {
|
|
1182
|
+
optional string displayName = 1;
|
|
1183
|
+
optional string id = 2;
|
|
1184
|
+
}
|
|
1185
|
+
message CloudAPIThreadControlNotification {
|
|
1186
|
+
optional CloudAPIThreadControl status = 1;
|
|
1187
|
+
optional int64 senderNotificationTimestampMs = 2;
|
|
1188
|
+
optional string consumerLid = 3;
|
|
1189
|
+
optional string consumerPhoneNumber = 4;
|
|
1190
|
+
optional CloudAPIThreadControlNotificationContent notificationContent = 5;
|
|
1191
|
+
enum CloudAPIThreadControl {
|
|
1192
|
+
UNKNOWN = 0;
|
|
1193
|
+
CONTROL_PASSED = 1;
|
|
1194
|
+
CONTROL_TAKEN = 2;
|
|
1195
|
+
}
|
|
1196
|
+
message CloudAPIThreadControlNotificationContent {
|
|
1197
|
+
optional string handoffNotificationText = 1;
|
|
1198
|
+
optional string extraJson = 2;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
message CommentMessage {
|
|
1202
|
+
optional Message message = 1;
|
|
1203
|
+
optional Protocol.MessageKey targetMessageKey = 2;
|
|
1204
|
+
}
|
|
1205
|
+
message ContactMessage {
|
|
1206
|
+
optional string displayName = 1;
|
|
1207
|
+
optional string vcard = 16;
|
|
1208
|
+
optional ContextInfo contextInfo = 17;
|
|
1209
|
+
}
|
|
1210
|
+
message ContactsArrayMessage {
|
|
1211
|
+
optional string displayName = 1;
|
|
1212
|
+
repeated Message.ContactMessage contacts = 2;
|
|
1213
|
+
optional ContextInfo contextInfo = 17;
|
|
1214
|
+
}
|
|
1215
|
+
message DeclinePaymentRequestMessage {
|
|
1216
|
+
optional Protocol.MessageKey key = 1;
|
|
1217
|
+
}
|
|
1218
|
+
message DeviceSentMessage {
|
|
1219
|
+
optional string destinationJid = 1;
|
|
1220
|
+
optional Message message = 2;
|
|
1221
|
+
optional string phash = 3;
|
|
1222
|
+
}
|
|
1223
|
+
message DocumentMessage {
|
|
1224
|
+
optional string url = 1;
|
|
1225
|
+
optional string mimetype = 2;
|
|
1226
|
+
optional string title = 3;
|
|
1227
|
+
optional bytes fileSha256 = 4;
|
|
1228
|
+
optional uint64 fileLength = 5;
|
|
1229
|
+
optional uint32 pageCount = 6;
|
|
1230
|
+
optional bytes mediaKey = 7;
|
|
1231
|
+
optional string fileName = 8;
|
|
1232
|
+
optional bytes fileEncSha256 = 9;
|
|
1233
|
+
optional string directPath = 10;
|
|
1234
|
+
optional int64 mediaKeyTimestamp = 11;
|
|
1235
|
+
optional bool contactVcard = 12;
|
|
1236
|
+
optional string thumbnailDirectPath = 13;
|
|
1237
|
+
optional bytes thumbnailSha256 = 14;
|
|
1238
|
+
optional bytes thumbnailEncSha256 = 15;
|
|
1239
|
+
optional bytes jpegThumbnail = 16;
|
|
1240
|
+
optional ContextInfo contextInfo = 17;
|
|
1241
|
+
optional uint32 thumbnailHeight = 18;
|
|
1242
|
+
optional uint32 thumbnailWidth = 19;
|
|
1243
|
+
optional string caption = 20;
|
|
1244
|
+
optional string accessibilityLabel = 21;
|
|
1245
|
+
}
|
|
1246
|
+
message EncCommentMessage {
|
|
1247
|
+
optional Protocol.MessageKey targetMessageKey = 1;
|
|
1248
|
+
optional bytes encPayload = 2;
|
|
1249
|
+
optional bytes encIv = 3;
|
|
1250
|
+
}
|
|
1251
|
+
message EncEventResponseMessage {
|
|
1252
|
+
optional Protocol.MessageKey eventCreationMessageKey = 1;
|
|
1253
|
+
optional bytes encPayload = 2;
|
|
1254
|
+
optional bytes encIv = 3;
|
|
1255
|
+
}
|
|
1256
|
+
message EncReactionMessage {
|
|
1257
|
+
optional Protocol.MessageKey targetMessageKey = 1;
|
|
1258
|
+
optional bytes encPayload = 2;
|
|
1259
|
+
optional bytes encIv = 3;
|
|
1260
|
+
}
|
|
1261
|
+
message EventMessage {
|
|
1262
|
+
optional ContextInfo contextInfo = 1;
|
|
1263
|
+
optional bool isCanceled = 2;
|
|
1264
|
+
optional string name = 3;
|
|
1265
|
+
optional string description = 4;
|
|
1266
|
+
optional Message.LocationMessage location = 5;
|
|
1267
|
+
optional string joinLink = 6;
|
|
1268
|
+
optional int64 startTime = 7;
|
|
1269
|
+
optional int64 endTime = 8;
|
|
1270
|
+
optional bool extraGuestsAllowed = 9;
|
|
1271
|
+
optional bool isScheduleCall = 10;
|
|
1272
|
+
}
|
|
1273
|
+
message EventResponseMessage {
|
|
1274
|
+
optional EventResponseType response = 1;
|
|
1275
|
+
optional int64 timestampMs = 2;
|
|
1276
|
+
optional int32 extraGuestCount = 3;
|
|
1277
|
+
enum EventResponseType {
|
|
1278
|
+
UNKNOWN = 0;
|
|
1279
|
+
GOING = 1;
|
|
1280
|
+
NOT_GOING = 2;
|
|
1281
|
+
MAYBE = 3;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
message ExtendedTextMessage {
|
|
1285
|
+
optional string text = 1;
|
|
1286
|
+
optional string matchedText = 2;
|
|
1287
|
+
optional string description = 5;
|
|
1288
|
+
optional string title = 6;
|
|
1289
|
+
optional fixed32 textArgb = 7;
|
|
1290
|
+
optional fixed32 backgroundArgb = 8;
|
|
1291
|
+
optional FontType font = 9;
|
|
1292
|
+
optional PreviewType previewType = 10;
|
|
1293
|
+
optional bytes jpegThumbnail = 16;
|
|
1294
|
+
optional ContextInfo contextInfo = 17;
|
|
1295
|
+
optional bool doNotPlayInline = 18;
|
|
1296
|
+
optional string thumbnailDirectPath = 19;
|
|
1297
|
+
optional bytes thumbnailSha256 = 20;
|
|
1298
|
+
optional bytes thumbnailEncSha256 = 21;
|
|
1299
|
+
optional bytes mediaKey = 22;
|
|
1300
|
+
optional int64 mediaKeyTimestamp = 23;
|
|
1301
|
+
optional uint32 thumbnailHeight = 24;
|
|
1302
|
+
optional uint32 thumbnailWidth = 25;
|
|
1303
|
+
optional InviteLinkGroupType inviteLinkGroupType = 26;
|
|
1304
|
+
optional string inviteLinkParentGroupSubjectV2 = 27;
|
|
1305
|
+
optional bytes inviteLinkParentGroupThumbnailV2 = 28;
|
|
1306
|
+
optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
|
|
1307
|
+
optional bool viewOnce = 30;
|
|
1308
|
+
optional uint32 videoHeight = 31;
|
|
1309
|
+
optional uint32 videoWidth = 32;
|
|
1310
|
+
optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
|
|
1311
|
+
optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
|
|
1312
|
+
optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
|
|
1313
|
+
enum FontType {
|
|
1314
|
+
SYSTEM = 0;
|
|
1315
|
+
SYSTEM_TEXT = 1;
|
|
1316
|
+
FB_SCRIPT = 2;
|
|
1317
|
+
SYSTEM_BOLD = 6;
|
|
1318
|
+
MORNINGBREEZE_REGULAR = 7;
|
|
1319
|
+
CALISTOGA_REGULAR = 8;
|
|
1320
|
+
EXO2_EXTRABOLD = 9;
|
|
1321
|
+
COURIERPRIME_BOLD = 10;
|
|
1322
|
+
}
|
|
1323
|
+
enum InviteLinkGroupType {
|
|
1324
|
+
DEFAULT = 0;
|
|
1325
|
+
PARENT = 1;
|
|
1326
|
+
SUB = 2;
|
|
1327
|
+
DEFAULT_SUB = 3;
|
|
1328
|
+
}
|
|
1329
|
+
enum PreviewType {
|
|
1330
|
+
NONE = 0;
|
|
1331
|
+
VIDEO = 1;
|
|
1332
|
+
PLACEHOLDER = 4;
|
|
1333
|
+
IMAGE = 5;
|
|
1334
|
+
PAYMENT_LINKS = 6;
|
|
1335
|
+
PROFILE = 7;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
message FullHistorySyncOnDemandRequestMetadata {
|
|
1339
|
+
optional string requestId = 1;
|
|
1340
|
+
}
|
|
1341
|
+
message FutureProofMessage {
|
|
1342
|
+
optional Message message = 1;
|
|
1343
|
+
}
|
|
1344
|
+
message GroupInviteMessage {
|
|
1345
|
+
optional string groupJid = 1;
|
|
1346
|
+
optional string inviteCode = 2;
|
|
1347
|
+
optional int64 inviteExpiration = 3;
|
|
1348
|
+
optional string groupName = 4;
|
|
1349
|
+
optional bytes jpegThumbnail = 5;
|
|
1350
|
+
optional string caption = 6;
|
|
1351
|
+
optional ContextInfo contextInfo = 7;
|
|
1352
|
+
optional GroupType groupType = 8;
|
|
1353
|
+
enum GroupType {
|
|
1354
|
+
DEFAULT = 0;
|
|
1355
|
+
PARENT = 1;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
message HighlyStructuredMessage {
|
|
1359
|
+
optional string namespace = 1;
|
|
1360
|
+
optional string elementName = 2;
|
|
1361
|
+
repeated string params = 3;
|
|
1362
|
+
optional string fallbackLg = 4;
|
|
1363
|
+
optional string fallbackLc = 5;
|
|
1364
|
+
repeated HSMLocalizableParameter localizableParams = 6;
|
|
1365
|
+
optional string deterministicLg = 7;
|
|
1366
|
+
optional string deterministicLc = 8;
|
|
1367
|
+
optional Message.TemplateMessage hydratedHsm = 9;
|
|
1368
|
+
message HSMLocalizableParameter {
|
|
1369
|
+
optional string default = 1;
|
|
1370
|
+
oneof paramOneof {
|
|
1371
|
+
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMCurrency currency = 2;
|
|
1372
|
+
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime dateTime = 3;
|
|
1373
|
+
}
|
|
1374
|
+
message HSMCurrency {
|
|
1375
|
+
optional string currencyCode = 1;
|
|
1376
|
+
optional int64 amount1000 = 2;
|
|
1377
|
+
}
|
|
1378
|
+
message HSMDateTime {
|
|
1379
|
+
oneof datetimeOneof {
|
|
1380
|
+
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeComponent component = 1;
|
|
1381
|
+
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeUnixEpoch unixEpoch = 2;
|
|
1382
|
+
}
|
|
1383
|
+
message HSMDateTimeComponent {
|
|
1384
|
+
optional DayOfWeekType dayOfWeek = 1;
|
|
1385
|
+
optional uint32 year = 2;
|
|
1386
|
+
optional uint32 month = 3;
|
|
1387
|
+
optional uint32 dayOfMonth = 4;
|
|
1388
|
+
optional uint32 hour = 5;
|
|
1389
|
+
optional uint32 minute = 6;
|
|
1390
|
+
optional CalendarType calendar = 7;
|
|
1391
|
+
enum CalendarType {
|
|
1392
|
+
GREGORIAN = 1;
|
|
1393
|
+
SOLAR_HIJRI = 2;
|
|
1394
|
+
}
|
|
1395
|
+
enum DayOfWeekType {
|
|
1396
|
+
MONDAY = 1;
|
|
1397
|
+
TUESDAY = 2;
|
|
1398
|
+
WEDNESDAY = 3;
|
|
1399
|
+
THURSDAY = 4;
|
|
1400
|
+
FRIDAY = 5;
|
|
1401
|
+
SATURDAY = 6;
|
|
1402
|
+
SUNDAY = 7;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
message HSMDateTimeUnixEpoch {
|
|
1406
|
+
optional int64 timestamp = 1;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
message HistorySyncNotification {
|
|
1412
|
+
optional bytes fileSha256 = 1;
|
|
1413
|
+
optional uint64 fileLength = 2;
|
|
1414
|
+
optional bytes mediaKey = 3;
|
|
1415
|
+
optional bytes fileEncSha256 = 4;
|
|
1416
|
+
optional string directPath = 5;
|
|
1417
|
+
optional HistorySyncType syncType = 6;
|
|
1418
|
+
optional uint32 chunkOrder = 7;
|
|
1419
|
+
optional string originalMessageId = 8;
|
|
1420
|
+
optional uint32 progress = 9;
|
|
1421
|
+
optional int64 oldestMsgInChunkTimestampSec = 10;
|
|
1422
|
+
optional bytes initialHistBootstrapInlinePayload = 11;
|
|
1423
|
+
optional string peerDataRequestSessionId = 12;
|
|
1424
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
|
|
1425
|
+
optional string encHandle = 14;
|
|
1426
|
+
enum HistorySyncType {
|
|
1427
|
+
INITIAL_BOOTSTRAP = 0;
|
|
1428
|
+
INITIAL_STATUS_V3 = 1;
|
|
1429
|
+
FULL = 2;
|
|
1430
|
+
RECENT = 3;
|
|
1431
|
+
PUSH_NAME = 4;
|
|
1432
|
+
NON_BLOCKING_DATA = 5;
|
|
1433
|
+
ON_DEMAND = 6;
|
|
1434
|
+
NO_HISTORY = 7;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
message ImageMessage {
|
|
1438
|
+
optional string url = 1;
|
|
1439
|
+
optional string mimetype = 2;
|
|
1440
|
+
optional string caption = 3;
|
|
1441
|
+
optional bytes fileSha256 = 4;
|
|
1442
|
+
optional uint64 fileLength = 5;
|
|
1443
|
+
optional uint32 height = 6;
|
|
1444
|
+
optional uint32 width = 7;
|
|
1445
|
+
optional bytes mediaKey = 8;
|
|
1446
|
+
optional bytes fileEncSha256 = 9;
|
|
1447
|
+
repeated InteractiveAnnotation interactiveAnnotations = 10;
|
|
1448
|
+
optional string directPath = 11;
|
|
1449
|
+
optional int64 mediaKeyTimestamp = 12;
|
|
1450
|
+
optional bytes jpegThumbnail = 16;
|
|
1451
|
+
optional ContextInfo contextInfo = 17;
|
|
1452
|
+
optional bytes firstScanSidecar = 18;
|
|
1453
|
+
optional uint32 firstScanLength = 19;
|
|
1454
|
+
optional uint32 experimentGroupId = 20;
|
|
1455
|
+
optional bytes scansSidecar = 21;
|
|
1456
|
+
repeated uint32 scanLengths = 22;
|
|
1457
|
+
optional bytes midQualityFileSha256 = 23;
|
|
1458
|
+
optional bytes midQualityFileEncSha256 = 24;
|
|
1459
|
+
optional bool viewOnce = 25;
|
|
1460
|
+
optional string thumbnailDirectPath = 26;
|
|
1461
|
+
optional bytes thumbnailSha256 = 27;
|
|
1462
|
+
optional bytes thumbnailEncSha256 = 28;
|
|
1463
|
+
optional string staticUrl = 29;
|
|
1464
|
+
repeated InteractiveAnnotation annotations = 30;
|
|
1465
|
+
optional ImageSourceType imageSourceType = 31;
|
|
1466
|
+
optional string accessibilityLabel = 32;
|
|
1467
|
+
enum ImageSourceType {
|
|
1468
|
+
USER_IMAGE = 0;
|
|
1469
|
+
AI_GENERATED = 1;
|
|
1470
|
+
AI_MODIFIED = 2;
|
|
1471
|
+
RASTERIZED_TEXT_STATUS = 3;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
message InitialSecurityNotificationSettingSync {
|
|
1475
|
+
optional bool securityNotificationEnabled = 1;
|
|
1476
|
+
}
|
|
1477
|
+
message InteractiveMessage {
|
|
1478
|
+
optional Header header = 1;
|
|
1479
|
+
optional Body body = 2;
|
|
1480
|
+
optional Footer footer = 3;
|
|
1481
|
+
optional ContextInfo contextInfo = 15;
|
|
1482
|
+
optional UrlTrackingMap urlTrackingMap = 16;
|
|
1483
|
+
oneof interactiveMessage {
|
|
1484
|
+
Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
|
|
1485
|
+
Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
|
|
1486
|
+
Message.InteractiveMessage.NativeFlowMessage nativeFlowMessage = 6;
|
|
1487
|
+
Message.InteractiveMessage.CarouselMessage carouselMessage = 7;
|
|
1488
|
+
}
|
|
1489
|
+
message Body {
|
|
1490
|
+
optional string text = 1;
|
|
1491
|
+
}
|
|
1492
|
+
message CarouselMessage {
|
|
1493
|
+
repeated Message.InteractiveMessage cards = 1;
|
|
1494
|
+
optional int32 messageVersion = 2;
|
|
1495
|
+
}
|
|
1496
|
+
message CollectionMessage {
|
|
1497
|
+
optional string bizJid = 1;
|
|
1498
|
+
optional string id = 2;
|
|
1499
|
+
optional int32 messageVersion = 3;
|
|
1500
|
+
}
|
|
1501
|
+
message Footer {
|
|
1502
|
+
optional string text = 1;
|
|
1503
|
+
}
|
|
1504
|
+
message Header {
|
|
1505
|
+
optional string title = 1;
|
|
1506
|
+
optional string subtitle = 2;
|
|
1507
|
+
optional bool hasMediaAttachment = 5;
|
|
1508
|
+
oneof media {
|
|
1509
|
+
Message.DocumentMessage documentMessage = 3;
|
|
1510
|
+
Message.ImageMessage imageMessage = 4;
|
|
1511
|
+
bytes jpegThumbnail = 6;
|
|
1512
|
+
Message.VideoMessage videoMessage = 7;
|
|
1513
|
+
Message.LocationMessage locationMessage = 8;
|
|
1514
|
+
Message.ProductMessage productMessage = 9;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
message NativeFlowMessage {
|
|
1518
|
+
repeated NativeFlowButton buttons = 1;
|
|
1519
|
+
optional string messageParamsJson = 2;
|
|
1520
|
+
optional int32 messageVersion = 3;
|
|
1521
|
+
message NativeFlowButton {
|
|
1522
|
+
optional string name = 1;
|
|
1523
|
+
optional string buttonParamsJson = 2;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
message ShopMessage {
|
|
1527
|
+
optional string id = 1;
|
|
1528
|
+
optional Surface surface = 2;
|
|
1529
|
+
optional int32 messageVersion = 3;
|
|
1530
|
+
enum Surface {
|
|
1531
|
+
UNKNOWN_SURFACE = 0;
|
|
1532
|
+
FB = 1;
|
|
1533
|
+
IG = 2;
|
|
1534
|
+
WA = 3;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
message InteractiveResponseMessage {
|
|
1539
|
+
optional Body body = 1;
|
|
1540
|
+
optional ContextInfo contextInfo = 15;
|
|
1541
|
+
oneof interactiveResponseMessage {
|
|
1542
|
+
Message.InteractiveResponseMessage.NativeFlowResponseMessage nativeFlowResponseMessage = 2;
|
|
1543
|
+
}
|
|
1544
|
+
message Body {
|
|
1545
|
+
optional string text = 1;
|
|
1546
|
+
optional Format format = 2;
|
|
1547
|
+
enum Format {
|
|
1548
|
+
DEFAULT = 0;
|
|
1549
|
+
EXTENSIONS_1 = 1;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
message NativeFlowResponseMessage {
|
|
1553
|
+
optional string name = 1;
|
|
1554
|
+
optional string paramsJson = 2;
|
|
1555
|
+
optional int32 version = 3;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
message InvoiceMessage {
|
|
1559
|
+
optional string note = 1;
|
|
1560
|
+
optional string token = 2;
|
|
1561
|
+
optional AttachmentType attachmentType = 3;
|
|
1562
|
+
optional string attachmentMimetype = 4;
|
|
1563
|
+
optional bytes attachmentMediaKey = 5;
|
|
1564
|
+
optional int64 attachmentMediaKeyTimestamp = 6;
|
|
1565
|
+
optional bytes attachmentFileSha256 = 7;
|
|
1566
|
+
optional bytes attachmentFileEncSha256 = 8;
|
|
1567
|
+
optional string attachmentDirectPath = 9;
|
|
1568
|
+
optional bytes attachmentJpegThumbnail = 10;
|
|
1569
|
+
enum AttachmentType {
|
|
1570
|
+
IMAGE = 0;
|
|
1571
|
+
PDF = 1;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
message KeepInChatMessage {
|
|
1575
|
+
optional Protocol.MessageKey key = 1;
|
|
1576
|
+
optional KeepType keepType = 2;
|
|
1577
|
+
optional int64 timestampMs = 3;
|
|
1578
|
+
}
|
|
1579
|
+
message LinkPreviewMetadata {
|
|
1580
|
+
optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
|
|
1581
|
+
optional Message.URLMetadata urlMetadata = 2;
|
|
1582
|
+
optional uint32 fbExperimentId = 3;
|
|
1583
|
+
optional uint32 linkMediaDuration = 4;
|
|
1584
|
+
optional SocialMediaPostType socialMediaPostType = 5;
|
|
1585
|
+
enum SocialMediaPostType {
|
|
1586
|
+
NONE = 0;
|
|
1587
|
+
REEL = 1;
|
|
1588
|
+
LIVE_VIDEO = 2;
|
|
1589
|
+
LONG_VIDEO = 3;
|
|
1590
|
+
SINGLE_IMAGE = 4;
|
|
1591
|
+
CAROUSEL = 5;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
message ListMessage {
|
|
1595
|
+
optional string title = 1;
|
|
1596
|
+
optional string description = 2;
|
|
1597
|
+
optional string buttonText = 3;
|
|
1598
|
+
optional ListType listType = 4;
|
|
1599
|
+
repeated Section sections = 5;
|
|
1600
|
+
optional ProductListInfo productListInfo = 6;
|
|
1601
|
+
optional string footerText = 7;
|
|
1602
|
+
optional ContextInfo contextInfo = 8;
|
|
1603
|
+
enum ListType {
|
|
1604
|
+
UNKNOWN = 0;
|
|
1605
|
+
SINGLE_SELECT = 1;
|
|
1606
|
+
PRODUCT_LIST = 2;
|
|
1607
|
+
}
|
|
1608
|
+
message Product {
|
|
1609
|
+
optional string productId = 1;
|
|
1610
|
+
}
|
|
1611
|
+
message ProductListHeaderImage {
|
|
1612
|
+
optional string productId = 1;
|
|
1613
|
+
optional bytes jpegThumbnail = 2;
|
|
1614
|
+
}
|
|
1615
|
+
message ProductListInfo {
|
|
1616
|
+
repeated Message.ListMessage.ProductSection productSections = 1;
|
|
1617
|
+
optional Message.ListMessage.ProductListHeaderImage headerImage = 2;
|
|
1618
|
+
optional string businessOwnerJid = 3;
|
|
1619
|
+
}
|
|
1620
|
+
message ProductSection {
|
|
1621
|
+
optional string title = 1;
|
|
1622
|
+
repeated Message.ListMessage.Product products = 2;
|
|
1623
|
+
}
|
|
1624
|
+
message Row {
|
|
1625
|
+
optional string title = 1;
|
|
1626
|
+
optional string description = 2;
|
|
1627
|
+
optional string rowId = 3;
|
|
1628
|
+
}
|
|
1629
|
+
message Section {
|
|
1630
|
+
optional string title = 1;
|
|
1631
|
+
repeated Message.ListMessage.Row rows = 2;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
message ListResponseMessage {
|
|
1635
|
+
optional string title = 1;
|
|
1636
|
+
optional ListType listType = 2;
|
|
1637
|
+
optional SingleSelectReply singleSelectReply = 3;
|
|
1638
|
+
optional ContextInfo contextInfo = 4;
|
|
1639
|
+
optional string description = 5;
|
|
1640
|
+
enum ListType {
|
|
1641
|
+
UNKNOWN = 0;
|
|
1642
|
+
SINGLE_SELECT = 1;
|
|
1643
|
+
}
|
|
1644
|
+
message SingleSelectReply {
|
|
1645
|
+
optional string selectedRowId = 1;
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
message LiveLocationMessage {
|
|
1649
|
+
optional double degreesLatitude = 1;
|
|
1650
|
+
optional double degreesLongitude = 2;
|
|
1651
|
+
optional uint32 accuracyInMeters = 3;
|
|
1652
|
+
optional float speedInMps = 4;
|
|
1653
|
+
optional uint32 degreesClockwiseFromMagneticNorth = 5;
|
|
1654
|
+
optional string caption = 6;
|
|
1655
|
+
optional int64 sequenceNumber = 7;
|
|
1656
|
+
optional uint32 timeOffset = 8;
|
|
1657
|
+
optional bytes jpegThumbnail = 16;
|
|
1658
|
+
optional ContextInfo contextInfo = 17;
|
|
1659
|
+
}
|
|
1660
|
+
message LocationMessage {
|
|
1661
|
+
optional double degreesLatitude = 1;
|
|
1662
|
+
optional double degreesLongitude = 2;
|
|
1663
|
+
optional string name = 3;
|
|
1664
|
+
optional string address = 4;
|
|
1665
|
+
optional string url = 5;
|
|
1666
|
+
optional bool isLive = 6;
|
|
1667
|
+
optional uint32 accuracyInMeters = 7;
|
|
1668
|
+
optional float speedInMps = 8;
|
|
1669
|
+
optional uint32 degreesClockwiseFromMagneticNorth = 9;
|
|
1670
|
+
optional string comment = 11;
|
|
1671
|
+
optional bytes jpegThumbnail = 16;
|
|
1672
|
+
optional ContextInfo contextInfo = 17;
|
|
1673
|
+
}
|
|
1674
|
+
message MMSThumbnailMetadata {
|
|
1675
|
+
optional string thumbnailDirectPath = 1;
|
|
1676
|
+
optional bytes thumbnailSha256 = 2;
|
|
1677
|
+
optional bytes thumbnailEncSha256 = 3;
|
|
1678
|
+
optional bytes mediaKey = 4;
|
|
1679
|
+
optional int64 mediaKeyTimestamp = 5;
|
|
1680
|
+
optional uint32 thumbnailHeight = 6;
|
|
1681
|
+
optional uint32 thumbnailWidth = 7;
|
|
1682
|
+
}
|
|
1683
|
+
message MessageHistoryBundle {
|
|
1684
|
+
optional string mimetype = 1;
|
|
1685
|
+
optional bytes fileSha256 = 2;
|
|
1686
|
+
optional bytes mediaKey = 3;
|
|
1687
|
+
optional bytes fileEncSha256 = 4;
|
|
1688
|
+
optional string directPath = 5;
|
|
1689
|
+
optional int64 mediaKeyTimestamp = 6;
|
|
1690
|
+
optional ContextInfo contextInfo = 7;
|
|
1691
|
+
optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
|
|
1692
|
+
}
|
|
1693
|
+
message MessageHistoryMetadata {
|
|
1694
|
+
repeated string historyReceivers = 1;
|
|
1695
|
+
optional int64 firstMessageTimestamp = 2;
|
|
1696
|
+
optional int64 messageCount = 3;
|
|
1697
|
+
}
|
|
1698
|
+
message MessageHistoryNotice {
|
|
1699
|
+
optional ContextInfo contextInfo = 1;
|
|
1700
|
+
optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
|
|
1701
|
+
}
|
|
1702
|
+
message NewsletterAdminInviteMessage {
|
|
1703
|
+
optional string newsletterJid = 1;
|
|
1704
|
+
optional string newsletterName = 2;
|
|
1705
|
+
optional bytes jpegThumbnail = 3;
|
|
1706
|
+
optional string caption = 4;
|
|
1707
|
+
optional int64 inviteExpiration = 5;
|
|
1708
|
+
optional ContextInfo contextInfo = 6;
|
|
1709
|
+
}
|
|
1710
|
+
message OrderMessage {
|
|
1711
|
+
optional string orderId = 1;
|
|
1712
|
+
optional bytes thumbnail = 2;
|
|
1713
|
+
optional int32 itemCount = 3;
|
|
1714
|
+
optional OrderStatus status = 4;
|
|
1715
|
+
optional OrderSurface surface = 5;
|
|
1716
|
+
optional string message = 6;
|
|
1717
|
+
optional string orderTitle = 7;
|
|
1718
|
+
optional string sellerJid = 8;
|
|
1719
|
+
optional string token = 9;
|
|
1720
|
+
optional int64 totalAmount1000 = 10;
|
|
1721
|
+
optional string totalCurrencyCode = 11;
|
|
1722
|
+
optional ContextInfo contextInfo = 17;
|
|
1723
|
+
optional int32 messageVersion = 12;
|
|
1724
|
+
optional Protocol.MessageKey orderRequestMessageId = 13;
|
|
1725
|
+
optional string catalogType = 15;
|
|
1726
|
+
enum OrderStatus {
|
|
1727
|
+
INQUIRY = 1;
|
|
1728
|
+
ACCEPTED = 2;
|
|
1729
|
+
DECLINED = 3;
|
|
1730
|
+
}
|
|
1731
|
+
enum OrderSurface {
|
|
1732
|
+
CATALOG = 1;
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
message PaymentInviteMessage {
|
|
1736
|
+
optional ServiceType serviceType = 1;
|
|
1737
|
+
optional int64 expiryTimestamp = 2;
|
|
1738
|
+
enum ServiceType {
|
|
1739
|
+
UNKNOWN = 0;
|
|
1740
|
+
FBPAY = 1;
|
|
1741
|
+
NOVI = 2;
|
|
1742
|
+
UPI = 3;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
message PaymentLinkMetadata {
|
|
1746
|
+
optional PaymentLinkButton button = 1;
|
|
1747
|
+
optional PaymentLinkHeader header = 2;
|
|
1748
|
+
optional PaymentLinkProvider provider = 3;
|
|
1749
|
+
message PaymentLinkButton {
|
|
1750
|
+
optional string displayText = 1;
|
|
1751
|
+
}
|
|
1752
|
+
message PaymentLinkHeader {
|
|
1753
|
+
optional PaymentLinkHeaderType headerType = 1;
|
|
1754
|
+
enum PaymentLinkHeaderType {
|
|
1755
|
+
LINK_PREVIEW = 0;
|
|
1756
|
+
ORDER = 1;
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
message PaymentLinkProvider {
|
|
1760
|
+
optional string paramsJson = 1;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
message PeerDataOperationRequestMessage {
|
|
1764
|
+
optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
|
|
1765
|
+
repeated RequestStickerReupload requestStickerReupload = 2;
|
|
1766
|
+
repeated RequestUrlPreview requestUrlPreview = 3;
|
|
1767
|
+
optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
|
|
1768
|
+
repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
|
|
1769
|
+
optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
|
|
1770
|
+
optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
|
|
1771
|
+
message FullHistorySyncOnDemandRequest {
|
|
1772
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
|
1773
|
+
optional CompanionReg.DeviceProps.HistorySyncConfig historySyncConfig = 2;
|
|
1774
|
+
}
|
|
1775
|
+
message HistorySyncOnDemandRequest {
|
|
1776
|
+
optional string chatJid = 1;
|
|
1777
|
+
optional string oldestMsgId = 2;
|
|
1778
|
+
optional bool oldestMsgFromMe = 3;
|
|
1779
|
+
optional int32 onDemandMsgCount = 4;
|
|
1780
|
+
optional int64 oldestMsgTimestampMs = 5;
|
|
1781
|
+
optional string accountLid = 6;
|
|
1782
|
+
}
|
|
1783
|
+
message PlaceholderMessageResendRequest {
|
|
1784
|
+
optional Protocol.MessageKey messageKey = 1;
|
|
1785
|
+
}
|
|
1786
|
+
message RequestStickerReupload {
|
|
1787
|
+
optional string fileSha256 = 1;
|
|
1788
|
+
}
|
|
1789
|
+
message RequestUrlPreview {
|
|
1790
|
+
optional string url = 1;
|
|
1791
|
+
optional bool includeHqThumbnail = 2;
|
|
1792
|
+
}
|
|
1793
|
+
message SyncDCollectionFatalRecoveryRequest {
|
|
1794
|
+
optional string collectionName = 1;
|
|
1795
|
+
optional int64 timestamp = 2;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
message PeerDataOperationRequestResponseMessage {
|
|
1799
|
+
optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
|
|
1800
|
+
optional string stanzaId = 2;
|
|
1801
|
+
repeated PeerDataOperationResult peerDataOperationResult = 3;
|
|
1802
|
+
message PeerDataOperationResult {
|
|
1803
|
+
optional MmsRetry.MediaRetryNotification.ResultType mediaUploadResult = 1;
|
|
1804
|
+
optional Message.StickerMessage stickerMessage = 2;
|
|
1805
|
+
optional LinkPreviewResponse linkPreviewResponse = 3;
|
|
1806
|
+
optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
|
|
1807
|
+
optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
|
|
1808
|
+
optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
|
|
1809
|
+
optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
|
|
1810
|
+
optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
|
|
1811
|
+
optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
|
|
1812
|
+
message CompanionCanonicalUserNonceFetchResponse {
|
|
1813
|
+
optional string nonce = 1;
|
|
1814
|
+
}
|
|
1815
|
+
message CompanionMetaNonceFetchResponse {
|
|
1816
|
+
optional string nonce = 1;
|
|
1817
|
+
}
|
|
1818
|
+
message FullHistorySyncOnDemandRequestResponse {
|
|
1819
|
+
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
|
1820
|
+
optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
|
|
1821
|
+
}
|
|
1822
|
+
enum FullHistorySyncOnDemandResponseCode {
|
|
1823
|
+
REQUEST_SUCCESS = 0;
|
|
1824
|
+
REQUEST_TIME_EXPIRED = 1;
|
|
1825
|
+
DECLINED_SHARING_HISTORY = 2;
|
|
1826
|
+
GENERIC_ERROR = 3;
|
|
1827
|
+
ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
|
|
1828
|
+
ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
|
|
1829
|
+
ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
|
|
1830
|
+
}
|
|
1831
|
+
message LinkPreviewResponse {
|
|
1832
|
+
optional string url = 1;
|
|
1833
|
+
optional string title = 2;
|
|
1834
|
+
optional string description = 3;
|
|
1835
|
+
optional bytes thumbData = 4;
|
|
1836
|
+
optional string matchText = 6;
|
|
1837
|
+
optional string previewType = 7;
|
|
1838
|
+
optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
|
|
1839
|
+
message LinkPreviewHighQualityThumbnail {
|
|
1840
|
+
optional string directPath = 1;
|
|
1841
|
+
optional string thumbHash = 2;
|
|
1842
|
+
optional string encThumbHash = 3;
|
|
1843
|
+
optional bytes mediaKey = 4;
|
|
1844
|
+
optional int64 mediaKeyTimestampMs = 5;
|
|
1845
|
+
optional int32 thumbWidth = 6;
|
|
1846
|
+
optional int32 thumbHeight = 7;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
message PlaceholderMessageResendResponse {
|
|
1850
|
+
optional bytes webMessageInfoBytes = 1;
|
|
1851
|
+
}
|
|
1852
|
+
message SyncDSnapshotFatalRecoveryResponse {
|
|
1853
|
+
optional bytes collectionSnapshot = 1;
|
|
1854
|
+
optional bool isCompressed = 2;
|
|
1855
|
+
}
|
|
1856
|
+
message WaffleNonceFetchResponse {
|
|
1857
|
+
optional string nonce = 1;
|
|
1858
|
+
optional string waEntFbid = 2;
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
enum PeerDataOperationRequestType {
|
|
1863
|
+
UPLOAD_STICKER = 0;
|
|
1864
|
+
SEND_RECENT_STICKER_BOOTSTRAP = 1;
|
|
1865
|
+
GENERATE_LINK_PREVIEW = 2;
|
|
1866
|
+
HISTORY_SYNC_ON_DEMAND = 3;
|
|
1867
|
+
PLACEHOLDER_MESSAGE_RESEND = 4;
|
|
1868
|
+
WAFFLE_LINKING_NONCE_FETCH = 5;
|
|
1869
|
+
FULL_HISTORY_SYNC_ON_DEMAND = 6;
|
|
1870
|
+
COMPANION_META_NONCE_FETCH = 7;
|
|
1871
|
+
COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
|
|
1872
|
+
COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
|
|
1873
|
+
}
|
|
1874
|
+
message PinInChatMessage {
|
|
1875
|
+
optional Protocol.MessageKey key = 1;
|
|
1876
|
+
optional Type type = 2;
|
|
1877
|
+
optional int64 senderTimestampMs = 3;
|
|
1878
|
+
enum Type {
|
|
1879
|
+
UNKNOWN_TYPE = 0;
|
|
1880
|
+
PIN_FOR_ALL = 1;
|
|
1881
|
+
UNPIN_FOR_ALL = 2;
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
message PlaceholderMessage {
|
|
1885
|
+
optional PlaceholderType type = 1;
|
|
1886
|
+
enum PlaceholderType {
|
|
1887
|
+
MASK_LINKED_DEVICES = 0;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
enum PollContentType {
|
|
1891
|
+
UNKNOWN = 0;
|
|
1892
|
+
TEXT = 1;
|
|
1893
|
+
IMAGE = 2;
|
|
1894
|
+
}
|
|
1895
|
+
message PollCreationMessage {
|
|
1896
|
+
optional bytes encKey = 1;
|
|
1897
|
+
optional string name = 2;
|
|
1898
|
+
repeated Option options = 3;
|
|
1899
|
+
optional uint32 selectableOptionsCount = 4;
|
|
1900
|
+
optional ContextInfo contextInfo = 5;
|
|
1901
|
+
optional Message.PollContentType pollContentType = 6;
|
|
1902
|
+
optional PollType pollType = 7;
|
|
1903
|
+
optional Option correctAnswer = 8;
|
|
1904
|
+
message Option {
|
|
1905
|
+
optional string optionName = 1;
|
|
1906
|
+
optional string optionHash = 2;
|
|
1907
|
+
}
|
|
1908
|
+
enum PollType {
|
|
1909
|
+
POLL = 0;
|
|
1910
|
+
QUIZ = 1;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
message PollEncValue {
|
|
1914
|
+
optional bytes encPayload = 1;
|
|
1915
|
+
optional bytes encIv = 2;
|
|
1916
|
+
}
|
|
1917
|
+
message PollResultSnapshotMessage {
|
|
1918
|
+
optional string name = 1;
|
|
1919
|
+
repeated PollVote pollVotes = 2;
|
|
1920
|
+
optional ContextInfo contextInfo = 3;
|
|
1921
|
+
message PollVote {
|
|
1922
|
+
optional string optionName = 1;
|
|
1923
|
+
optional int64 optionVoteCount = 2;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
message PollUpdateMessage {
|
|
1927
|
+
optional Protocol.MessageKey pollCreationMessageKey = 1;
|
|
1928
|
+
optional Message.PollEncValue vote = 2;
|
|
1929
|
+
optional Message.PollUpdateMessageMetadata metadata = 3;
|
|
1930
|
+
optional int64 senderTimestampMs = 4;
|
|
1931
|
+
}
|
|
1932
|
+
message PollUpdateMessageMetadata {
|
|
1933
|
+
}
|
|
1934
|
+
message PollVoteMessage {
|
|
1935
|
+
repeated bytes selectedOptions = 1;
|
|
1936
|
+
}
|
|
1937
|
+
message ProductMessage {
|
|
1938
|
+
optional ProductSnapshot product = 1;
|
|
1939
|
+
optional string businessOwnerJid = 2;
|
|
1940
|
+
optional CatalogSnapshot catalog = 4;
|
|
1941
|
+
optional string body = 5;
|
|
1942
|
+
optional string footer = 6;
|
|
1943
|
+
optional ContextInfo contextInfo = 17;
|
|
1944
|
+
message CatalogSnapshot {
|
|
1945
|
+
optional Message.ImageMessage catalogImage = 1;
|
|
1946
|
+
optional string title = 2;
|
|
1947
|
+
optional string description = 3;
|
|
1948
|
+
}
|
|
1949
|
+
message ProductSnapshot {
|
|
1950
|
+
optional Message.ImageMessage productImage = 1;
|
|
1951
|
+
optional string productId = 2;
|
|
1952
|
+
optional string title = 3;
|
|
1953
|
+
optional string description = 4;
|
|
1954
|
+
optional string currencyCode = 5;
|
|
1955
|
+
optional int64 priceAmount1000 = 6;
|
|
1956
|
+
optional string retailerId = 7;
|
|
1957
|
+
optional string url = 8;
|
|
1958
|
+
optional uint32 productImageCount = 9;
|
|
1959
|
+
optional string firstImageId = 11;
|
|
1960
|
+
optional int64 salePriceAmount1000 = 12;
|
|
1961
|
+
optional string signedUrl = 13;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
message ProtocolMessage {
|
|
1965
|
+
optional Protocol.MessageKey key = 1;
|
|
1966
|
+
optional Type type = 2;
|
|
1967
|
+
optional uint32 ephemeralExpiration = 4;
|
|
1968
|
+
optional int64 ephemeralSettingTimestamp = 5;
|
|
1969
|
+
optional Message.HistorySyncNotification historySyncNotification = 6;
|
|
1970
|
+
optional Message.AppStateSyncKeyShare appStateSyncKeyShare = 7;
|
|
1971
|
+
optional Message.AppStateSyncKeyRequest appStateSyncKeyRequest = 8;
|
|
1972
|
+
optional Message.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9;
|
|
1973
|
+
optional Message.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10;
|
|
1974
|
+
optional DisappearingMode disappearingMode = 11;
|
|
1975
|
+
optional Message editedMessage = 14;
|
|
1976
|
+
optional int64 timestampMs = 15;
|
|
1977
|
+
optional Message.PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16;
|
|
1978
|
+
optional Message.PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17;
|
|
1979
|
+
optional Message.BotFeedbackMessage botFeedbackMessage = 18;
|
|
1980
|
+
optional string invokerJid = 19;
|
|
1981
|
+
optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
|
|
1982
|
+
optional MediaNotifyMessage mediaNotifyMessage = 21;
|
|
1983
|
+
optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
|
|
1984
|
+
optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
|
|
1985
|
+
optional Protocol.LimitSharing limitSharing = 24;
|
|
1986
|
+
optional bytes aiPsiMetadata = 25;
|
|
1987
|
+
optional AIQueryFanout aiQueryFanout = 26;
|
|
1988
|
+
optional MemberLabel memberLabel = 27;
|
|
1989
|
+
enum Type {
|
|
1990
|
+
REVOKE = 0;
|
|
1991
|
+
EPHEMERAL_SETTING = 3;
|
|
1992
|
+
EPHEMERAL_SYNC_RESPONSE = 4;
|
|
1993
|
+
HISTORY_SYNC_NOTIFICATION = 5;
|
|
1994
|
+
APP_STATE_SYNC_KEY_SHARE = 6;
|
|
1995
|
+
APP_STATE_SYNC_KEY_REQUEST = 7;
|
|
1996
|
+
MSG_FANOUT_BACKFILL_REQUEST = 8;
|
|
1997
|
+
INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9;
|
|
1998
|
+
APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10;
|
|
1999
|
+
SHARE_PHONE_NUMBER = 11;
|
|
2000
|
+
MESSAGE_EDIT = 14;
|
|
2001
|
+
PEER_DATA_OPERATION_REQUEST_MESSAGE = 16;
|
|
2002
|
+
PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE = 17;
|
|
2003
|
+
REQUEST_WELCOME_MESSAGE = 18;
|
|
2004
|
+
BOT_FEEDBACK_MESSAGE = 19;
|
|
2005
|
+
MEDIA_NOTIFY_MESSAGE = 20;
|
|
2006
|
+
CLOUD_API_THREAD_CONTROL_NOTIFICATION = 21;
|
|
2007
|
+
LID_MIGRATION_MAPPING_SYNC = 22;
|
|
2008
|
+
REMINDER_MESSAGE = 23;
|
|
2009
|
+
BOT_MEMU_ONBOARDING_MESSAGE = 24;
|
|
2010
|
+
STATUS_MENTION_MESSAGE = 25;
|
|
2011
|
+
STOP_GENERATION_MESSAGE = 26;
|
|
2012
|
+
LIMIT_SHARING = 27;
|
|
2013
|
+
AI_PSI_METADATA = 28;
|
|
2014
|
+
AI_QUERY_FANOUT = 29;
|
|
2015
|
+
GROUP_MEMBER_LABEL_CHANGE = 30;
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
message ReactionMessage {
|
|
2019
|
+
optional Protocol.MessageKey key = 1;
|
|
2020
|
+
optional string text = 2;
|
|
2021
|
+
optional string groupingKey = 3;
|
|
2022
|
+
optional int64 senderTimestampMs = 4;
|
|
2023
|
+
}
|
|
2024
|
+
message RequestPaymentMessage {
|
|
2025
|
+
optional Message noteMessage = 4;
|
|
2026
|
+
optional string currencyCodeIso4217 = 1;
|
|
2027
|
+
optional uint64 amount1000 = 2;
|
|
2028
|
+
optional string requestFrom = 3;
|
|
2029
|
+
optional int64 expiryTimestamp = 5;
|
|
2030
|
+
optional Money amount = 6;
|
|
2031
|
+
optional PaymentBackground background = 7;
|
|
2032
|
+
}
|
|
2033
|
+
message RequestPhoneNumberMessage {
|
|
2034
|
+
optional ContextInfo contextInfo = 1;
|
|
2035
|
+
}
|
|
2036
|
+
message RequestWelcomeMessageMetadata {
|
|
2037
|
+
optional LocalChatState localChatState = 1;
|
|
2038
|
+
enum LocalChatState {
|
|
2039
|
+
EMPTY = 0;
|
|
2040
|
+
NON_EMPTY = 1;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
message ScheduledCallCreationMessage {
|
|
2044
|
+
optional int64 scheduledTimestampMs = 1;
|
|
2045
|
+
optional CallType callType = 2;
|
|
2046
|
+
optional string title = 3;
|
|
2047
|
+
enum CallType {
|
|
2048
|
+
UNKNOWN = 0;
|
|
2049
|
+
VOICE = 1;
|
|
2050
|
+
VIDEO = 2;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
message ScheduledCallEditMessage {
|
|
2054
|
+
optional Protocol.MessageKey key = 1;
|
|
2055
|
+
optional EditType editType = 2;
|
|
2056
|
+
enum EditType {
|
|
2057
|
+
UNKNOWN = 0;
|
|
2058
|
+
CANCEL = 1;
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
message SecretEncryptedMessage {
|
|
2062
|
+
optional Protocol.MessageKey targetMessageKey = 1;
|
|
2063
|
+
optional bytes encPayload = 2;
|
|
2064
|
+
optional bytes encIv = 3;
|
|
2065
|
+
optional SecretEncType secretEncType = 4;
|
|
2066
|
+
enum SecretEncType {
|
|
2067
|
+
UNKNOWN = 0;
|
|
2068
|
+
EVENT_EDIT = 1;
|
|
2069
|
+
MESSAGE_EDIT = 2;
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
message SendPaymentMessage {
|
|
2073
|
+
optional Message noteMessage = 2;
|
|
2074
|
+
optional Protocol.MessageKey requestMessageKey = 3;
|
|
2075
|
+
optional PaymentBackground background = 4;
|
|
2076
|
+
}
|
|
2077
|
+
message SenderKeyDistributionMessage {
|
|
2078
|
+
optional string groupId = 1;
|
|
2079
|
+
optional bytes axolotlSenderKeyDistributionMessage = 2;
|
|
2080
|
+
}
|
|
2081
|
+
message StatusNotificationMessage {
|
|
2082
|
+
optional Protocol.MessageKey responseMessageKey = 1;
|
|
2083
|
+
optional Protocol.MessageKey originalMessageKey = 2;
|
|
2084
|
+
optional StatusNotificationType type = 3;
|
|
2085
|
+
enum StatusNotificationType {
|
|
2086
|
+
UNKNOWN = 0;
|
|
2087
|
+
STATUS_ADD_YOURS = 1;
|
|
2088
|
+
STATUS_RESHARE = 2;
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
message StickerMessage {
|
|
2092
|
+
optional string url = 1;
|
|
2093
|
+
optional bytes fileSha256 = 2;
|
|
2094
|
+
optional bytes fileEncSha256 = 3;
|
|
2095
|
+
optional bytes mediaKey = 4;
|
|
2096
|
+
optional string mimetype = 5;
|
|
2097
|
+
optional uint32 height = 6;
|
|
2098
|
+
optional uint32 width = 7;
|
|
2099
|
+
optional string directPath = 8;
|
|
2100
|
+
optional uint64 fileLength = 9;
|
|
2101
|
+
optional int64 mediaKeyTimestamp = 10;
|
|
2102
|
+
optional uint32 firstFrameLength = 11;
|
|
2103
|
+
optional bytes firstFrameSidecar = 12;
|
|
2104
|
+
optional bool isAnimated = 13;
|
|
2105
|
+
optional bytes pngThumbnail = 16;
|
|
2106
|
+
optional ContextInfo contextInfo = 17;
|
|
2107
|
+
optional int64 stickerSentTs = 18;
|
|
2108
|
+
optional bool isAvatar = 19;
|
|
2109
|
+
optional bool isAiSticker = 20;
|
|
2110
|
+
optional bool isLottie = 21;
|
|
2111
|
+
optional string accessibilityLabel = 22;
|
|
2112
|
+
}
|
|
2113
|
+
message StickerPackMessage {
|
|
2114
|
+
optional string stickerPackId = 1;
|
|
2115
|
+
optional string name = 2;
|
|
2116
|
+
optional string publisher = 3;
|
|
2117
|
+
repeated Sticker stickers = 4;
|
|
2118
|
+
optional uint64 fileLength = 5;
|
|
2119
|
+
optional bytes fileSha256 = 6;
|
|
2120
|
+
optional bytes fileEncSha256 = 7;
|
|
2121
|
+
optional bytes mediaKey = 8;
|
|
2122
|
+
optional string directPath = 9;
|
|
2123
|
+
optional string caption = 10;
|
|
2124
|
+
optional ContextInfo contextInfo = 11;
|
|
2125
|
+
optional string packDescription = 12;
|
|
2126
|
+
optional int64 mediaKeyTimestamp = 13;
|
|
2127
|
+
optional string trayIconFileName = 14;
|
|
2128
|
+
optional string thumbnailDirectPath = 15;
|
|
2129
|
+
optional bytes thumbnailSha256 = 16;
|
|
2130
|
+
optional bytes thumbnailEncSha256 = 17;
|
|
2131
|
+
optional uint32 thumbnailHeight = 18;
|
|
2132
|
+
optional uint32 thumbnailWidth = 19;
|
|
2133
|
+
optional string imageDataHash = 20;
|
|
2134
|
+
optional uint64 stickerPackSize = 21;
|
|
2135
|
+
optional StickerPackOrigin stickerPackOrigin = 22;
|
|
2136
|
+
message Sticker {
|
|
2137
|
+
optional string fileName = 1;
|
|
2138
|
+
optional bool isAnimated = 2;
|
|
2139
|
+
repeated string emojis = 3;
|
|
2140
|
+
optional string accessibilityLabel = 4;
|
|
2141
|
+
optional bool isLottie = 5;
|
|
2142
|
+
optional string mimetype = 6;
|
|
2143
|
+
}
|
|
2144
|
+
enum StickerPackOrigin {
|
|
2145
|
+
FIRST_PARTY = 0;
|
|
2146
|
+
THIRD_PARTY = 1;
|
|
2147
|
+
USER_CREATED = 2;
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
message StickerSyncRMRMessage {
|
|
2151
|
+
repeated string filehash = 1;
|
|
2152
|
+
optional string rmrSource = 2;
|
|
2153
|
+
optional int64 requestTimestamp = 3;
|
|
2154
|
+
}
|
|
2155
|
+
message TemplateButtonReplyMessage {
|
|
2156
|
+
optional string selectedId = 1;
|
|
2157
|
+
optional string selectedDisplayText = 2;
|
|
2158
|
+
optional ContextInfo contextInfo = 3;
|
|
2159
|
+
optional uint32 selectedIndex = 4;
|
|
2160
|
+
optional uint32 selectedCarouselCardIndex = 5;
|
|
2161
|
+
}
|
|
2162
|
+
message TemplateMessage {
|
|
2163
|
+
optional ContextInfo contextInfo = 3;
|
|
2164
|
+
optional HydratedFourRowTemplate hydratedTemplate = 4;
|
|
2165
|
+
optional string templateId = 9;
|
|
2166
|
+
oneof format {
|
|
2167
|
+
Message.TemplateMessage.FourRowTemplate fourRowTemplate = 1;
|
|
2168
|
+
Message.TemplateMessage.HydratedFourRowTemplate hydratedFourRowTemplate = 2;
|
|
2169
|
+
Message.InteractiveMessage interactiveMessageTemplate = 5;
|
|
2170
|
+
}
|
|
2171
|
+
message FourRowTemplate {
|
|
2172
|
+
optional Message.HighlyStructuredMessage content = 6;
|
|
2173
|
+
optional Message.HighlyStructuredMessage footer = 7;
|
|
2174
|
+
repeated TemplateButton buttons = 8;
|
|
2175
|
+
oneof title {
|
|
2176
|
+
Message.DocumentMessage documentMessage = 1;
|
|
2177
|
+
Message.HighlyStructuredMessage highlyStructuredMessage = 2;
|
|
2178
|
+
Message.ImageMessage imageMessage = 3;
|
|
2179
|
+
Message.VideoMessage videoMessage = 4;
|
|
2180
|
+
Message.LocationMessage locationMessage = 5;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
message HydratedFourRowTemplate {
|
|
2184
|
+
optional string hydratedContentText = 6;
|
|
2185
|
+
optional string hydratedFooterText = 7;
|
|
2186
|
+
repeated HydratedTemplateButton hydratedButtons = 8;
|
|
2187
|
+
optional string templateId = 9;
|
|
2188
|
+
optional bool maskLinkedDevices = 10;
|
|
2189
|
+
oneof title {
|
|
2190
|
+
Message.DocumentMessage documentMessage = 1;
|
|
2191
|
+
string hydratedTitleText = 2;
|
|
2192
|
+
Message.ImageMessage imageMessage = 3;
|
|
2193
|
+
Message.VideoMessage videoMessage = 4;
|
|
2194
|
+
Message.LocationMessage locationMessage = 5;
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
message URLMetadata {
|
|
2199
|
+
optional uint32 fbExperimentId = 1;
|
|
2200
|
+
}
|
|
2201
|
+
message VideoMessage {
|
|
2202
|
+
optional string url = 1;
|
|
2203
|
+
optional string mimetype = 2;
|
|
2204
|
+
optional bytes fileSha256 = 3;
|
|
2205
|
+
optional uint64 fileLength = 4;
|
|
2206
|
+
optional uint32 seconds = 5;
|
|
2207
|
+
optional bytes mediaKey = 6;
|
|
2208
|
+
optional string caption = 7;
|
|
2209
|
+
optional bool gifPlayback = 8;
|
|
2210
|
+
optional uint32 height = 9;
|
|
2211
|
+
optional uint32 width = 10;
|
|
2212
|
+
optional bytes fileEncSha256 = 11;
|
|
2213
|
+
repeated InteractiveAnnotation interactiveAnnotations = 12;
|
|
2214
|
+
optional string directPath = 13;
|
|
2215
|
+
optional int64 mediaKeyTimestamp = 14;
|
|
2216
|
+
optional bytes jpegThumbnail = 16;
|
|
2217
|
+
optional ContextInfo contextInfo = 17;
|
|
2218
|
+
optional bytes streamingSidecar = 18;
|
|
2219
|
+
optional Attribution gifAttribution = 19;
|
|
2220
|
+
optional bool viewOnce = 20;
|
|
2221
|
+
optional string thumbnailDirectPath = 21;
|
|
2222
|
+
optional bytes thumbnailSha256 = 22;
|
|
2223
|
+
optional bytes thumbnailEncSha256 = 23;
|
|
2224
|
+
optional string staticUrl = 24;
|
|
2225
|
+
repeated InteractiveAnnotation annotations = 25;
|
|
2226
|
+
optional string accessibilityLabel = 26;
|
|
2227
|
+
repeated ProcessedVideo processedVideos = 27;
|
|
2228
|
+
optional uint32 externalShareFullVideoDurationInSeconds = 28;
|
|
2229
|
+
optional uint64 motionPhotoPresentationOffsetMs = 29;
|
|
2230
|
+
optional string metadataUrl = 30;
|
|
2231
|
+
optional VideoSourceType videoSourceType = 31;
|
|
2232
|
+
enum Attribution {
|
|
2233
|
+
NONE = 0;
|
|
2234
|
+
GIPHY = 1;
|
|
2235
|
+
TENOR = 2;
|
|
2236
|
+
}
|
|
2237
|
+
enum VideoSourceType {
|
|
2238
|
+
USER_VIDEO = 0;
|
|
2239
|
+
AI_GENERATED = 1;
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
enum KeepType {
|
|
2244
|
+
UNKNOWN = 0;
|
|
2245
|
+
KEEP_FOR_ALL = 1;
|
|
2246
|
+
UNDO_KEEP_FOR_ALL = 2;
|
|
2247
|
+
}
|
|
2248
|
+
enum BotSessionSource {
|
|
2249
|
+
NONE = 0;
|
|
2250
|
+
NULL_STATE = 1;
|
|
2251
|
+
TYPEAHEAD = 2;
|
|
2252
|
+
USER_INPUT = 3;
|
|
2253
|
+
EMU_FLASH = 4;
|
|
2254
|
+
EMU_FLASH_FOLLOWUP = 5;
|
|
2255
|
+
VOICE = 6;
|
|
2256
|
+
}
|
|
2257
|
+
enum BotMetricsThreadEntryPoint {
|
|
2258
|
+
AI_TAB_THREAD = 1;
|
|
2259
|
+
AI_HOME_THREAD = 2;
|
|
2260
|
+
AI_DEEPLINK_IMMERSIVE_THREAD = 3;
|
|
2261
|
+
AI_DEEPLINK_THREAD = 4;
|
|
2262
|
+
}
|
|
2263
|
+
enum BotMetricsEntryPoint {
|
|
2264
|
+
FAVICON = 1;
|
|
2265
|
+
CHATLIST = 2;
|
|
2266
|
+
AISEARCH_NULL_STATE_PAPER_PLANE = 3;
|
|
2267
|
+
AISEARCH_NULL_STATE_SUGGESTION = 4;
|
|
2268
|
+
AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
|
|
2269
|
+
AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
|
|
2270
|
+
AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
|
|
2271
|
+
AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
|
|
2272
|
+
AIVOICE_SEARCH_BAR = 9;
|
|
2273
|
+
AIVOICE_FAVICON = 10;
|
|
2274
|
+
AISTUDIO = 11;
|
|
2275
|
+
DEEPLINK = 12;
|
|
2276
|
+
NOTIFICATION = 13;
|
|
2277
|
+
PROFILE_MESSAGE_BUTTON = 14;
|
|
2278
|
+
FORWARD = 15;
|
|
2279
|
+
APP_SHORTCUT = 16;
|
|
2280
|
+
FF_FAMILY = 17;
|
|
2281
|
+
AI_TAB = 18;
|
|
2282
|
+
AI_HOME = 19;
|
|
2283
|
+
AI_DEEPLINK_IMMERSIVE = 20;
|
|
2284
|
+
AI_DEEPLINK = 21;
|
|
2285
|
+
META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
|
|
2286
|
+
UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
|
|
2287
|
+
NEW_CHAT_AI_STUDIO = 24;
|
|
2288
|
+
AIVOICE_FAVICON_CALL_HISTORY = 25;
|
|
2289
|
+
}
|