8669fa981b
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com>
6208 lines
198 KiB
Protocol Buffer
6208 lines
198 KiB
Protocol Buffer
syntax = "proto3";
|
|
package proto;
|
|
|
|
/// WhatsApp Version: 2.3000.1039067946
|
|
|
|
message ADVDeviceIdentity {
|
|
optional uint32 rawId = 1;
|
|
optional uint64 timestamp = 2;
|
|
optional uint32 keyIndex = 3;
|
|
optional ADVEncryptionType accountType = 4;
|
|
optional ADVEncryptionType deviceType = 5;
|
|
}
|
|
|
|
enum ADVEncryptionType {
|
|
E2EE = 0;
|
|
HOSTED = 1;
|
|
NON_E2EE = 2;
|
|
}
|
|
message ADVKeyIndexList {
|
|
optional uint32 rawId = 1;
|
|
optional uint64 timestamp = 2;
|
|
optional uint32 currentIndex = 3;
|
|
repeated uint32 validIndexes = 4 [packed=true];
|
|
optional ADVEncryptionType accountType = 5;
|
|
}
|
|
|
|
message ADVSignedDeviceIdentity {
|
|
optional bytes details = 1;
|
|
optional bytes accountSignatureKey = 2;
|
|
optional bytes accountSignature = 3;
|
|
optional bytes deviceSignature = 4;
|
|
}
|
|
|
|
message ADVSignedDeviceIdentityHMAC {
|
|
optional bytes details = 1;
|
|
optional bytes hmac = 2;
|
|
optional ADVEncryptionType accountType = 3;
|
|
}
|
|
|
|
message ADVSignedKeyIndexList {
|
|
optional bytes details = 1;
|
|
optional bytes accountSignature = 2;
|
|
optional bytes accountSignatureKey = 3;
|
|
}
|
|
|
|
message AIHomeState {
|
|
optional int64 lastFetchTime = 1;
|
|
repeated AIHomeOption capabilityOptions = 2;
|
|
repeated AIHomeOption conversationOptions = 3;
|
|
message AIHomeOption {
|
|
optional AIHomeActionType type = 1;
|
|
optional string title = 2;
|
|
optional string promptText = 3;
|
|
optional string sessionId = 4;
|
|
optional string imageWdsIdentifier = 5;
|
|
optional string imageTintColor = 6;
|
|
optional string imageBackgroundColor = 7;
|
|
optional string cardTypeId = 8;
|
|
enum AIHomeActionType {
|
|
PROMPT = 0;
|
|
CREATE_IMAGE = 1;
|
|
ANIMATE_PHOTO = 2;
|
|
ANALYZE_FILE = 3;
|
|
COLLABORATE = 4;
|
|
OPEN_GREETING_CARD = 5;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message AIMediaCollectionMessage {
|
|
optional string collectionId = 1;
|
|
optional uint32 expectedMediaCount = 2;
|
|
optional bool hasGlobalCaption = 3;
|
|
}
|
|
|
|
message AIMediaCollectionMetadata {
|
|
optional string collectionId = 1;
|
|
optional uint32 uploadOrderIndex = 2;
|
|
}
|
|
|
|
message AIQueryFanout {
|
|
optional MessageKey messageKey = 1;
|
|
optional Message message = 2;
|
|
optional int64 timestamp = 3;
|
|
}
|
|
|
|
message AIRegenerateMetadata {
|
|
optional MessageKey messageKey = 1;
|
|
optional int64 responseTimestampMs = 2;
|
|
}
|
|
|
|
message AIRichResponseCodeMetadata {
|
|
optional string codeLanguage = 1;
|
|
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
|
message AIRichResponseCodeBlock {
|
|
optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
|
optional string codeContent = 2;
|
|
}
|
|
|
|
enum AIRichResponseCodeHighlightType {
|
|
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
|
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
|
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
|
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
|
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
|
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
|
}
|
|
}
|
|
|
|
message AIRichResponseContentItemsMetadata {
|
|
repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
|
|
optional ContentType contentType = 2;
|
|
message AIRichResponseContentItemMetadata {
|
|
oneof aIRichResponseContentItem {
|
|
AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
|
|
}
|
|
}
|
|
|
|
message AIRichResponseReelItem {
|
|
optional string title = 1;
|
|
optional string profileIconUrl = 2;
|
|
optional string thumbnailUrl = 3;
|
|
optional string videoUrl = 4;
|
|
}
|
|
|
|
enum ContentType {
|
|
DEFAULT = 0;
|
|
CAROUSEL = 1;
|
|
}
|
|
}
|
|
|
|
message AIRichResponseDynamicMetadata {
|
|
optional AIRichResponseDynamicMetadataType type = 1;
|
|
optional uint64 version = 2;
|
|
optional string url = 3;
|
|
optional uint32 loopCount = 4;
|
|
enum AIRichResponseDynamicMetadataType {
|
|
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
|
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
|
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
|
}
|
|
}
|
|
|
|
message AIRichResponseGridImageMetadata {
|
|
optional AIRichResponseImageURL gridImageUrl = 1;
|
|
repeated AIRichResponseImageURL imageUrls = 2;
|
|
}
|
|
|
|
message AIRichResponseImageURL {
|
|
optional string imagePreviewUrl = 1;
|
|
optional string imageHighResUrl = 2;
|
|
optional string sourceUrl = 3;
|
|
}
|
|
|
|
message AIRichResponseInlineImageMetadata {
|
|
optional AIRichResponseImageURL imageUrl = 1;
|
|
optional string imageText = 2;
|
|
optional AIRichResponseImageAlignment alignment = 3;
|
|
optional string tapLinkUrl = 4;
|
|
enum AIRichResponseImageAlignment {
|
|
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
|
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
|
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
|
}
|
|
}
|
|
|
|
message AIRichResponseLatexMetadata {
|
|
optional string text = 1;
|
|
repeated AIRichResponseLatexExpression expressions = 2;
|
|
message AIRichResponseLatexExpression {
|
|
optional string latexExpression = 1;
|
|
optional string url = 2;
|
|
optional double width = 3;
|
|
optional double height = 4;
|
|
optional double fontHeight = 5;
|
|
optional double imageTopPadding = 6;
|
|
optional double imageLeadingPadding = 7;
|
|
optional double imageBottomPadding = 8;
|
|
optional double imageTrailingPadding = 9;
|
|
}
|
|
|
|
}
|
|
|
|
message AIRichResponseMapMetadata {
|
|
optional double centerLatitude = 1;
|
|
optional double centerLongitude = 2;
|
|
optional double latitudeDelta = 3;
|
|
optional double longitudeDelta = 4;
|
|
repeated AIRichResponseMapAnnotation annotations = 5;
|
|
optional bool showInfoList = 6;
|
|
message AIRichResponseMapAnnotation {
|
|
optional uint32 annotationNumber = 1;
|
|
optional double latitude = 2;
|
|
optional double longitude = 3;
|
|
optional string title = 4;
|
|
optional string body = 5;
|
|
}
|
|
|
|
}
|
|
|
|
message AIRichResponseMessage {
|
|
optional AIRichResponseMessageType messageType = 1;
|
|
repeated AIRichResponseSubMessage submessages = 2;
|
|
optional AIRichResponseUnifiedResponse unifiedResponse = 3;
|
|
optional ContextInfo contextInfo = 4;
|
|
}
|
|
|
|
enum AIRichResponseMessageType {
|
|
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
|
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
|
}
|
|
message AIRichResponseSubMessage {
|
|
optional AIRichResponseSubMessageType messageType = 1;
|
|
optional AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
|
optional string messageText = 3;
|
|
optional AIRichResponseInlineImageMetadata imageMetadata = 4;
|
|
optional AIRichResponseCodeMetadata codeMetadata = 5;
|
|
optional AIRichResponseTableMetadata tableMetadata = 6;
|
|
optional AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
|
optional AIRichResponseLatexMetadata latexMetadata = 8;
|
|
optional AIRichResponseMapMetadata mapMetadata = 9;
|
|
optional AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
|
|
}
|
|
|
|
enum AIRichResponseSubMessageType {
|
|
AI_RICH_RESPONSE_UNKNOWN = 0;
|
|
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
|
AI_RICH_RESPONSE_TEXT = 2;
|
|
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
|
AI_RICH_RESPONSE_TABLE = 4;
|
|
AI_RICH_RESPONSE_CODE = 5;
|
|
AI_RICH_RESPONSE_DYNAMIC = 6;
|
|
AI_RICH_RESPONSE_MAP = 7;
|
|
AI_RICH_RESPONSE_LATEX = 8;
|
|
AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
|
|
}
|
|
message AIRichResponseTableMetadata {
|
|
repeated AIRichResponseTableRow rows = 1;
|
|
optional string title = 2;
|
|
message AIRichResponseTableRow {
|
|
repeated string items = 1;
|
|
optional bool isHeading = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message AIRichResponseUnifiedResponse {
|
|
optional bytes data = 1;
|
|
}
|
|
|
|
enum AISubscriptionRequestType {
|
|
UNSPECIFIED = 0;
|
|
THINK_HARD = 1;
|
|
IMAGE_GEN = 2;
|
|
VIDEO_GEN = 3;
|
|
}
|
|
message AISubscriptionUpsellMetadata {
|
|
optional AISubscriptionRequestType requestType = 1;
|
|
}
|
|
|
|
message AIThreadInfo {
|
|
optional AIThreadServerInfo serverInfo = 1;
|
|
optional AIThreadClientInfo clientInfo = 2;
|
|
message AIThreadClientInfo {
|
|
optional AIThreadType type = 1;
|
|
optional string sourceChatJid = 2;
|
|
enum AIThreadType {
|
|
UNKNOWN = 0;
|
|
DEFAULT = 1;
|
|
INCOGNITO = 2;
|
|
SIDE_CHAT = 3;
|
|
}
|
|
}
|
|
|
|
message AIThreadServerInfo {
|
|
optional string title = 1;
|
|
}
|
|
|
|
}
|
|
|
|
message Account {
|
|
optional string lid = 1;
|
|
optional string username = 2;
|
|
optional string countryCode = 3;
|
|
optional bool isUsernameDeleted = 4;
|
|
}
|
|
|
|
message ActionLink {
|
|
optional string url = 1;
|
|
optional string buttonTitle = 2;
|
|
}
|
|
|
|
message AutoDownloadSettings {
|
|
optional bool downloadImages = 1;
|
|
optional bool downloadAudio = 2;
|
|
optional bool downloadVideo = 3;
|
|
optional bool downloadDocuments = 4;
|
|
}
|
|
|
|
message AvatarUserSettings {
|
|
optional string fbid = 1;
|
|
optional string password = 2;
|
|
}
|
|
|
|
message BizAccountLinkInfo {
|
|
optional uint64 whatsappBizAcctFbid = 1;
|
|
optional string whatsappAcctNumber = 2;
|
|
optional uint64 issueTime = 3;
|
|
optional HostStorageType hostStorage = 4;
|
|
optional AccountType accountType = 5;
|
|
enum AccountType {
|
|
ENTERPRISE = 0;
|
|
}
|
|
enum HostStorageType {
|
|
ON_PREMISE = 0;
|
|
FACEBOOK = 1;
|
|
}
|
|
}
|
|
|
|
message BizAccountPayload {
|
|
optional VerifiedNameCertificate vnameCert = 1;
|
|
optional bytes bizAcctLinkInfo = 2;
|
|
}
|
|
|
|
message BizIdentityInfo {
|
|
optional VerifiedLevelValue vlevel = 1;
|
|
optional VerifiedNameCertificate vnameCert = 2;
|
|
optional bool signed = 3;
|
|
optional bool revoked = 4;
|
|
optional HostStorageType hostStorage = 5;
|
|
optional ActualActorsType actualActors = 6;
|
|
optional uint64 privacyModeTs = 7;
|
|
optional uint64 featureControls = 8;
|
|
enum ActualActorsType {
|
|
SELF = 0;
|
|
BSP = 1;
|
|
}
|
|
enum HostStorageType {
|
|
ON_PREMISE = 0;
|
|
FACEBOOK = 1;
|
|
}
|
|
enum VerifiedLevelValue {
|
|
UNKNOWN = 0;
|
|
LOW = 1;
|
|
HIGH = 2;
|
|
}
|
|
}
|
|
|
|
message BotAgeCollectionMetadata {
|
|
optional bool ageCollectionEligible = 1;
|
|
optional bool shouldTriggerAgeCollectionOnClient = 2;
|
|
optional AgeCollectionType ageCollectionType = 3;
|
|
enum AgeCollectionType {
|
|
O18_BINARY = 0;
|
|
WAFFLE = 1;
|
|
}
|
|
}
|
|
|
|
message BotAgentDeepLinkMetadata {
|
|
optional string token = 1;
|
|
}
|
|
|
|
message BotAgentMetadata {
|
|
optional BotAgentDeepLinkMetadata deepLinkMetadata = 1;
|
|
}
|
|
|
|
message BotCapabilityMetadata {
|
|
repeated BotCapabilityType capabilities = 1;
|
|
enum BotCapabilityType {
|
|
UNKNOWN = 0;
|
|
PROGRESS_INDICATOR = 1;
|
|
RICH_RESPONSE_HEADING = 2;
|
|
RICH_RESPONSE_NESTED_LIST = 3;
|
|
AI_MEMORY = 4;
|
|
RICH_RESPONSE_THREAD_SURFING = 5;
|
|
RICH_RESPONSE_TABLE = 6;
|
|
RICH_RESPONSE_CODE = 7;
|
|
RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
|
|
RICH_RESPONSE_INLINE_IMAGE = 9;
|
|
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
|
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
|
|
RICH_RESPONSE_SUB_HEADING = 21;
|
|
RICH_RESPONSE_GRID_IMAGE = 22;
|
|
AI_STUDIO_UGC_MEMORY = 23;
|
|
RICH_RESPONSE_LATEX = 24;
|
|
RICH_RESPONSE_MAPS = 25;
|
|
RICH_RESPONSE_INLINE_REELS = 26;
|
|
AGENTIC_PLANNING = 27;
|
|
ACCOUNT_LINKING = 28;
|
|
STREAMING_DISAGGREGATION = 29;
|
|
RICH_RESPONSE_GRID_IMAGE_3P = 30;
|
|
RICH_RESPONSE_LATEX_INLINE = 31;
|
|
QUERY_PLAN = 32;
|
|
PROACTIVE_MESSAGE = 33;
|
|
RICH_RESPONSE_UNIFIED_RESPONSE = 34;
|
|
PROMOTION_MESSAGE = 35;
|
|
SIMPLIFIED_PROFILE_PAGE = 36;
|
|
RICH_RESPONSE_SOURCES_IN_MESSAGE = 37;
|
|
RICH_RESPONSE_SIDE_BY_SIDE_SURVEY = 38;
|
|
RICH_RESPONSE_UNIFIED_TEXT_COMPONENT = 39;
|
|
AI_SHARED_MEMORY = 40;
|
|
RICH_RESPONSE_UNIFIED_SOURCES = 41;
|
|
RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42;
|
|
RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
|
|
RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
|
|
RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
|
|
RICH_RESPONSE_IN_APP_SURVEY = 46;
|
|
AI_RESPONSE_MODEL_BRANDING = 47;
|
|
SESSION_TRANSPARENCY_SYSTEM_MESSAGE = 48;
|
|
RICH_RESPONSE_UR_REASONING = 49;
|
|
RICH_RESPONSE_UR_ZEITGEIST_CITATIONS = 50;
|
|
RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL = 51;
|
|
AI_IMAGINE_LOADING_INDICATOR = 52;
|
|
RICH_RESPONSE_UR_IMAGINE = 53;
|
|
AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR = 54;
|
|
RICH_RESPONSE_UR_BLOKS_ENABLED = 55;
|
|
RICH_RESPONSE_INLINE_LINKS_ENABLED = 56;
|
|
RICH_RESPONSE_UR_IMAGINE_VIDEO = 57;
|
|
JSON_PATCH_STREAMING = 58;
|
|
AI_TAB_FORCE_CLIPPY = 59;
|
|
UNIFIED_RESPONSE_EMBEDDED_SCREENS = 60;
|
|
AI_SUBSCRIPTION_ENABLED = 61;
|
|
}
|
|
}
|
|
|
|
message BotCommandMetadata {
|
|
optional string commandName = 1;
|
|
optional string commandDescription = 2;
|
|
optional string commandPrompt = 3;
|
|
}
|
|
|
|
message BotDocumentMessageMetadata {
|
|
optional DocumentPluginType pluginType = 1;
|
|
enum DocumentPluginType {
|
|
TEXT_EXTRACTION = 0;
|
|
OCR_AND_IMAGES = 1;
|
|
}
|
|
}
|
|
|
|
message BotFeedbackMessage {
|
|
optional MessageKey messageKey = 1;
|
|
optional BotFeedbackKind kind = 2;
|
|
optional string text = 3;
|
|
optional uint64 kindNegative = 4;
|
|
optional uint64 kindPositive = 5;
|
|
optional ReportKind kindReport = 6;
|
|
optional SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;
|
|
enum BotFeedbackKind {
|
|
BOT_FEEDBACK_POSITIVE = 0;
|
|
BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
|
|
BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
|
|
BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
|
|
BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
|
|
BOT_FEEDBACK_NEGATIVE_SAFE = 5;
|
|
BOT_FEEDBACK_NEGATIVE_OTHER = 6;
|
|
BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
|
|
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
|
|
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
|
|
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
|
|
BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
|
|
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
|
|
BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
|
|
BOT_FEEDBACK_NEGATIVE = 14;
|
|
}
|
|
enum BotFeedbackKindMultipleNegative {
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
|
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
|
|
}
|
|
enum BotFeedbackKindMultiplePositive {
|
|
BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
|
|
}
|
|
enum ReportKind {
|
|
NONE = 0;
|
|
GENERIC = 1;
|
|
}
|
|
message SideBySideSurveyMetadata {
|
|
optional string selectedRequestId = 1;
|
|
optional uint32 surveyId = 2;
|
|
optional string simonSessionFbid = 3;
|
|
optional string responseOtid = 4;
|
|
optional string responseTimestampMsString = 5;
|
|
optional bool isSelectedResponsePrimary = 6;
|
|
optional string messageIdToEdit = 7;
|
|
optional SideBySideSurveyAnalyticsData analyticsData = 8;
|
|
optional SidebySideSurveyMetaAiAnalyticsData metaAiAnalyticsData = 9;
|
|
message SideBySideSurveyAnalyticsData {
|
|
optional string tessaEvent = 1;
|
|
optional string tessaSessionFbid = 2;
|
|
optional string simonSessionFbid = 3;
|
|
}
|
|
|
|
message SidebySideSurveyMetaAiAnalyticsData {
|
|
optional uint32 surveyId = 1;
|
|
optional string primaryResponseId = 2;
|
|
optional string testArmName = 3;
|
|
optional string timestampMsString = 4;
|
|
optional SideBySideSurveyCTAImpressionEventData ctaImpressionEvent = 5;
|
|
optional SideBySideSurveyCTAClickEventData ctaClickEvent = 6;
|
|
optional SideBySideSurveyCardImpressionEventData cardImpressionEvent = 7;
|
|
optional SideBySideSurveyResponseEventData responseEvent = 8;
|
|
optional SideBySideSurveyAbandonEventData abandonEvent = 9;
|
|
message SideBySideSurveyAbandonEventData {
|
|
optional string abandonDwellTimeMsString = 1;
|
|
}
|
|
|
|
message SideBySideSurveyCTAClickEventData {
|
|
optional bool isSurveyExpired = 1;
|
|
optional string clickDwellTimeMsString = 2;
|
|
}
|
|
|
|
message SideBySideSurveyCTAImpressionEventData {
|
|
optional bool isSurveyExpired = 1;
|
|
}
|
|
|
|
message SideBySideSurveyCardImpressionEventData {
|
|
}
|
|
|
|
message SideBySideSurveyResponseEventData {
|
|
optional string responseDwellTimeMsString = 1;
|
|
optional string selectedResponseId = 2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
message BotGroupMetadata {
|
|
repeated BotGroupParticipantMetadata participantsMetadata = 1;
|
|
}
|
|
|
|
message BotGroupParticipantMetadata {
|
|
optional string botFbid = 1;
|
|
}
|
|
|
|
message BotImagineMetadata {
|
|
optional ImagineType imagineType = 1;
|
|
optional string shortPrompt = 2;
|
|
enum ImagineType {
|
|
UNKNOWN = 0;
|
|
IMAGINE = 1;
|
|
MEMU = 2;
|
|
FLASH = 3;
|
|
EDIT = 4;
|
|
}
|
|
}
|
|
|
|
message BotInfrastructureDiagnostics {
|
|
optional BotBackend botBackend = 1;
|
|
repeated string toolsUsed = 2;
|
|
optional bool isThinking = 3;
|
|
enum BotBackend {
|
|
AAPI = 0;
|
|
CLIPPY = 1;
|
|
}
|
|
}
|
|
|
|
message BotLinkedAccount {
|
|
optional BotLinkedAccountType type = 1;
|
|
enum BotLinkedAccountType {
|
|
BOT_LINKED_ACCOUNT_TYPE_1P = 0;
|
|
}
|
|
}
|
|
|
|
message BotLinkedAccountsMetadata {
|
|
repeated BotLinkedAccount accounts = 1;
|
|
optional bytes acAuthTokens = 2;
|
|
optional int32 acErrorCode = 3;
|
|
}
|
|
|
|
message BotMediaMetadata {
|
|
optional string fileSha256 = 1;
|
|
optional string mediaKey = 2;
|
|
optional string fileEncSha256 = 3;
|
|
optional string directPath = 4;
|
|
optional int64 mediaKeyTimestamp = 5;
|
|
optional string mimetype = 6;
|
|
optional OrientationType orientationType = 7;
|
|
enum OrientationType {
|
|
CENTER = 1;
|
|
LEFT = 2;
|
|
RIGHT = 3;
|
|
}
|
|
}
|
|
|
|
message BotMemoryFact {
|
|
optional string fact = 1;
|
|
optional string factId = 2;
|
|
}
|
|
|
|
message BotMemoryMetadata {
|
|
repeated BotMemoryFact addedFacts = 1;
|
|
repeated BotMemoryFact removedFacts = 2;
|
|
optional string disclaimer = 3;
|
|
}
|
|
|
|
message BotMemuMetadata {
|
|
repeated BotMediaMetadata faceImages = 1;
|
|
}
|
|
|
|
message BotMessageOrigin {
|
|
optional BotMessageOriginType type = 1;
|
|
enum BotMessageOriginType {
|
|
BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0;
|
|
}
|
|
}
|
|
|
|
message BotMessageOriginMetadata {
|
|
repeated BotMessageOrigin origins = 1;
|
|
}
|
|
|
|
message BotMessageSharingInfo {
|
|
optional BotMetricsEntryPoint botEntryPointOrigin = 1;
|
|
optional uint32 forwardScore = 2;
|
|
}
|
|
|
|
message BotMetadata {
|
|
optional string personaId = 2;
|
|
optional BotPluginMetadata pluginMetadata = 3;
|
|
optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
|
|
optional string invokerJid = 5;
|
|
optional BotSessionMetadata sessionMetadata = 6;
|
|
optional BotMemuMetadata memuMetadata = 7;
|
|
optional string timezone = 8;
|
|
optional BotReminderMetadata reminderMetadata = 9;
|
|
optional BotModelMetadata modelMetadata = 10;
|
|
optional string messageDisclaimerText = 11;
|
|
optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
|
|
optional BotCapabilityMetadata capabilityMetadata = 13;
|
|
optional BotImagineMetadata imagineMetadata = 14;
|
|
optional BotMemoryMetadata memoryMetadata = 15;
|
|
optional BotRenderingMetadata renderingMetadata = 16;
|
|
optional BotMetricsMetadata botMetricsMetadata = 17;
|
|
optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
|
|
optional BotSourcesMetadata richResponseSourcesMetadata = 19;
|
|
optional bytes aiConversationContext = 20;
|
|
optional BotPromotionMessageMetadata botPromotionMessageMetadata = 21;
|
|
optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
|
|
optional BotQuotaMetadata botQuotaMetadata = 23;
|
|
optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
|
|
optional string conversationStarterPromptId = 25;
|
|
optional string botResponseId = 26;
|
|
optional BotSignatureVerificationMetadata verificationMetadata = 27;
|
|
optional BotUnifiedResponseMutation unifiedResponseMutation = 28;
|
|
optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
|
|
optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
|
|
optional AIThreadInfo botThreadInfo = 31;
|
|
optional AIRegenerateMetadata regenerateMetadata = 32;
|
|
optional SessionTransparencyMetadata sessionTransparencyMetadata = 33;
|
|
optional BotDocumentMessageMetadata botDocumentMessageMetadata = 34;
|
|
optional BotGroupMetadata botGroupMetadata = 35;
|
|
optional BotRenderingConfigMetadata botRenderingConfigMetadata = 36;
|
|
optional BotInfrastructureDiagnostics botInfrastructureDiagnostics = 37;
|
|
optional AIMediaCollectionMetadata aiMediaCollectionMetadata = 38;
|
|
optional BotCommandMetadata commandMetadata = 39;
|
|
optional BotResolvedToolCallMetadata resolvedToolCallMetadata = 40;
|
|
optional AISubscriptionUpsellMetadata subscriptionUpsellMetadata = 41;
|
|
optional bytes internalMetadata = 999;
|
|
}
|
|
|
|
enum BotMetricsEntryPoint {
|
|
UNDEFINED_ENTRY_POINT = 0;
|
|
FAVICON = 1;
|
|
CHATLIST = 2;
|
|
AISEARCH_NULL_STATE_PAPER_PLANE = 3;
|
|
AISEARCH_NULL_STATE_SUGGESTION = 4;
|
|
AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
|
|
AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
|
|
AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
|
|
AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
|
|
AIVOICE_SEARCH_BAR = 9;
|
|
AIVOICE_FAVICON = 10;
|
|
AISTUDIO = 11;
|
|
DEEPLINK = 12;
|
|
NOTIFICATION = 13;
|
|
PROFILE_MESSAGE_BUTTON = 14;
|
|
FORWARD = 15;
|
|
APP_SHORTCUT = 16;
|
|
FF_FAMILY = 17;
|
|
AI_TAB = 18;
|
|
AI_HOME = 19;
|
|
AI_DEEPLINK_IMMERSIVE = 20;
|
|
AI_DEEPLINK = 21;
|
|
META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
|
|
UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
|
|
NEW_CHAT_AI_STUDIO = 24;
|
|
AIVOICE_FAVICON_CALL_HISTORY = 25;
|
|
ASK_META_AI_CONTEXT_MENU = 26;
|
|
ASK_META_AI_CONTEXT_MENU_1ON1 = 27;
|
|
ASK_META_AI_CONTEXT_MENU_GROUP = 28;
|
|
INVOKE_META_AI_1ON1 = 29;
|
|
INVOKE_META_AI_GROUP = 30;
|
|
META_AI_FORWARD = 31;
|
|
NEW_CHAT_AI_CONTACT = 32;
|
|
MESSAGE_QUICK_ACTION_1_ON_1_CHAT = 33;
|
|
MESSAGE_QUICK_ACTION_GROUP_CHAT = 34;
|
|
ATTACHMENT_TRAY_1_ON_1_CHAT = 35;
|
|
ATTACHMENT_TRAY_GROUP_CHAT = 36;
|
|
ASK_META_AI_MEDIA_VIEWER_1ON1 = 37;
|
|
ASK_META_AI_MEDIA_VIEWER_GROUP = 38;
|
|
MEDIA_PICKER_1_ON_1_CHAT = 39;
|
|
MEDIA_PICKER_GROUP_CHAT = 40;
|
|
ASK_META_AI_NO_SEARCH_RESULTS = 41;
|
|
META_AI_SETTINGS = 45;
|
|
WEB_INTRO_PANEL = 46;
|
|
WEB_NAVIGATION_BAR = 47;
|
|
GROUP_MEMBER = 54;
|
|
CHATLIST_SEARCH = 55;
|
|
NEW_CHAT_LIST = 56;
|
|
}
|
|
message BotMetricsMetadata {
|
|
optional string destinationId = 1;
|
|
optional BotMetricsEntryPoint destinationEntryPoint = 2;
|
|
optional BotMetricsThreadEntryPoint threadOrigin = 3;
|
|
}
|
|
|
|
enum BotMetricsThreadEntryPoint {
|
|
AI_TAB_THREAD = 1;
|
|
AI_HOME_THREAD = 2;
|
|
AI_DEEPLINK_IMMERSIVE_THREAD = 3;
|
|
AI_DEEPLINK_THREAD = 4;
|
|
ASK_META_AI_CONTEXT_MENU_THREAD = 5;
|
|
}
|
|
message BotModeSelectionMetadata {
|
|
repeated BotUserSelectionMode mode = 1;
|
|
repeated uint32 overrideMode = 2;
|
|
enum BotUserSelectionMode {
|
|
DEFAULT_MODE = 0;
|
|
THINK_HARD_MODE = 1;
|
|
}
|
|
}
|
|
|
|
message BotModelMetadata {
|
|
optional ModelType modelType = 1;
|
|
optional PremiumModelStatus premiumModelStatus = 2;
|
|
optional string modelNameOverride = 3;
|
|
enum ModelType {
|
|
UNKNOWN_TYPE = 0;
|
|
LLAMA_PROD = 1;
|
|
LLAMA_PROD_PREMIUM = 2;
|
|
}
|
|
enum PremiumModelStatus {
|
|
UNKNOWN_STATUS = 0;
|
|
AVAILABLE = 1;
|
|
QUOTA_EXCEED_LIMIT = 2;
|
|
}
|
|
}
|
|
|
|
message BotPluginMetadata {
|
|
optional SearchProvider provider = 1;
|
|
optional PluginType pluginType = 2;
|
|
optional string thumbnailCdnUrl = 3;
|
|
optional string profilePhotoCdnUrl = 4;
|
|
optional string searchProviderUrl = 5;
|
|
optional uint32 referenceIndex = 6;
|
|
optional uint32 expectedLinksCount = 7;
|
|
optional string searchQuery = 9;
|
|
optional MessageKey parentPluginMessageKey = 10;
|
|
optional PluginType deprecatedField = 11;
|
|
optional PluginType parentPluginType = 12;
|
|
optional string faviconCdnUrl = 13;
|
|
enum PluginType {
|
|
UNKNOWN_PLUGIN = 0;
|
|
REELS = 1;
|
|
SEARCH = 2;
|
|
}
|
|
enum SearchProvider {
|
|
UNKNOWN = 0;
|
|
BING = 1;
|
|
GOOGLE = 2;
|
|
SUPPORT = 3;
|
|
}
|
|
}
|
|
|
|
message BotProgressIndicatorMetadata {
|
|
optional string progressDescription = 1;
|
|
repeated BotPlanningStepMetadata stepsMetadata = 2;
|
|
optional int64 estimatedCompletionTime = 3;
|
|
message BotPlanningStepMetadata {
|
|
optional string statusTitle = 1;
|
|
optional string statusBody = 2;
|
|
repeated BotPlanningSearchSourcesMetadata sourcesMetadata = 3;
|
|
optional PlanningStepStatus status = 4;
|
|
optional bool isReasoning = 5;
|
|
optional bool isEnhancedSearch = 6;
|
|
repeated BotPlanningStepSectionMetadata sections = 7;
|
|
message BotPlanningSearchSourceMetadata {
|
|
optional string title = 1;
|
|
optional BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;
|
|
optional string sourceUrl = 3;
|
|
optional string favIconUrl = 4;
|
|
}
|
|
|
|
message BotPlanningSearchSourcesMetadata {
|
|
optional string sourceTitle = 1;
|
|
optional BotPlanningSearchSourceProvider provider = 2;
|
|
optional string sourceUrl = 3;
|
|
enum BotPlanningSearchSourceProvider {
|
|
UNKNOWN = 0;
|
|
OTHER = 1;
|
|
GOOGLE = 2;
|
|
BING = 3;
|
|
}
|
|
}
|
|
|
|
message BotPlanningStepSectionMetadata {
|
|
optional string sectionTitle = 1;
|
|
optional string sectionBody = 2;
|
|
repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
|
|
}
|
|
|
|
enum BotSearchSourceProvider {
|
|
UNKNOWN_PROVIDER = 0;
|
|
OTHER = 1;
|
|
GOOGLE = 2;
|
|
BING = 3;
|
|
}
|
|
enum PlanningStepStatus {
|
|
UNKNOWN = 0;
|
|
PLANNED = 1;
|
|
EXECUTING = 2;
|
|
FINISHED = 3;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message BotPromotionMessageMetadata {
|
|
optional BotPromotionType promotionType = 1;
|
|
optional string buttonTitle = 2;
|
|
enum BotPromotionType {
|
|
UNKNOWN_TYPE = 0;
|
|
C50 = 1;
|
|
SURVEY_PLATFORM = 2;
|
|
}
|
|
}
|
|
|
|
message BotPromptSuggestion {
|
|
optional string prompt = 1;
|
|
optional string promptId = 2;
|
|
}
|
|
|
|
message BotPromptSuggestions {
|
|
repeated BotPromptSuggestion suggestions = 1;
|
|
}
|
|
|
|
message BotQuotaMetadata {
|
|
repeated BotFeatureQuotaMetadata botFeatureQuotaMetadata = 1;
|
|
message BotFeatureQuotaMetadata {
|
|
optional BotFeatureType featureType = 1;
|
|
optional uint32 remainingQuota = 2;
|
|
optional uint64 expirationTimestamp = 3;
|
|
enum BotFeatureType {
|
|
UNKNOWN_FEATURE = 0;
|
|
REASONING_FEATURE = 1;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message BotReminderMetadata {
|
|
optional MessageKey requestMessageKey = 1;
|
|
optional ReminderAction action = 2;
|
|
optional string name = 3;
|
|
optional uint64 nextTriggerTimestamp = 4;
|
|
optional ReminderFrequency frequency = 5;
|
|
enum ReminderAction {
|
|
NOTIFY = 1;
|
|
CREATE = 2;
|
|
DELETE = 3;
|
|
UPDATE = 4;
|
|
}
|
|
enum ReminderFrequency {
|
|
ONCE = 1;
|
|
DAILY = 2;
|
|
WEEKLY = 3;
|
|
BIWEEKLY = 4;
|
|
MONTHLY = 5;
|
|
}
|
|
}
|
|
|
|
message BotRenderingConfigMetadata {
|
|
optional string bloksVersioningId = 1;
|
|
optional double pixelDensity = 2;
|
|
}
|
|
|
|
message BotRenderingMetadata {
|
|
repeated Keyword keywords = 1;
|
|
message Keyword {
|
|
optional string value = 1;
|
|
repeated string associatedPrompts = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message BotResolvedToolCallMetadata {
|
|
optional string toolCallId = 1;
|
|
optional string resolutionDataSerialized = 2;
|
|
}
|
|
|
|
message BotSessionMetadata {
|
|
optional string sessionId = 1;
|
|
optional BotSessionSource sessionSource = 2;
|
|
}
|
|
|
|
enum BotSessionSource {
|
|
NONE = 0;
|
|
NULL_STATE = 1;
|
|
TYPEAHEAD = 2;
|
|
USER_INPUT = 3;
|
|
EMU_FLASH = 4;
|
|
EMU_FLASH_FOLLOWUP = 5;
|
|
VOICE = 6;
|
|
AI_HOME_SESSION = 7;
|
|
}
|
|
message BotSignatureVerificationMetadata {
|
|
repeated BotSignatureVerificationUseCaseProof proofs = 1;
|
|
}
|
|
|
|
message BotSignatureVerificationUseCaseProof {
|
|
optional int32 version = 1;
|
|
optional BotSignatureUseCase useCase = 2;
|
|
optional bytes signature = 3;
|
|
repeated bytes certificateChain = 4;
|
|
enum BotSignatureUseCase {
|
|
UNSPECIFIED = 0;
|
|
WA_BOT_MSG = 1;
|
|
WA_TEE_BOT_MSG = 2;
|
|
}
|
|
}
|
|
|
|
message BotSourcesMetadata {
|
|
repeated BotSourceItem sources = 1;
|
|
message BotSourceItem {
|
|
optional SourceProvider provider = 1;
|
|
optional string thumbnailCdnUrl = 2;
|
|
optional string sourceProviderUrl = 3;
|
|
optional string sourceQuery = 4;
|
|
optional string faviconCdnUrl = 5;
|
|
optional uint32 citationNumber = 6;
|
|
optional string sourceTitle = 7;
|
|
enum SourceProvider {
|
|
UNKNOWN = 0;
|
|
BING = 1;
|
|
GOOGLE = 2;
|
|
SUPPORT = 3;
|
|
OTHER = 4;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message BotSuggestedPromptMetadata {
|
|
repeated string suggestedPrompts = 1;
|
|
optional uint32 selectedPromptIndex = 2;
|
|
optional BotPromptSuggestions promptSuggestions = 3;
|
|
optional string selectedPromptId = 4;
|
|
}
|
|
|
|
message BotUnifiedResponseMutation {
|
|
optional SideBySideMetadata sbsMetadata = 1;
|
|
repeated MediaDetailsMetadata mediaDetailsMetadataList = 2;
|
|
message MediaDetailsMetadata {
|
|
optional string id = 1;
|
|
optional BotMediaMetadata highResMedia = 2;
|
|
optional BotMediaMetadata previewMedia = 3;
|
|
}
|
|
|
|
message SideBySideMetadata {
|
|
optional string primaryResponseId = 1;
|
|
optional bool surveyCtaHasRendered = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message CallLogRecord {
|
|
optional CallResult callResult = 1;
|
|
optional bool isDndMode = 2;
|
|
optional SilenceReason silenceReason = 3;
|
|
optional int64 duration = 4;
|
|
optional int64 startTime = 5;
|
|
optional bool isIncoming = 6;
|
|
optional bool isVideo = 7;
|
|
optional bool isCallLink = 8;
|
|
optional string callLinkToken = 9;
|
|
optional string scheduledCallId = 10;
|
|
optional string callId = 11;
|
|
optional string callCreatorJid = 12;
|
|
optional string groupJid = 13;
|
|
repeated ParticipantInfo participants = 14;
|
|
optional CallType callType = 15;
|
|
enum CallResult {
|
|
CONNECTED = 0;
|
|
REJECTED = 1;
|
|
CANCELLED = 2;
|
|
ACCEPTEDELSEWHERE = 3;
|
|
MISSED = 4;
|
|
INVALID = 5;
|
|
UNAVAILABLE = 6;
|
|
UPCOMING = 7;
|
|
FAILED = 8;
|
|
ABANDONED = 9;
|
|
ONGOING = 10;
|
|
}
|
|
enum CallType {
|
|
REGULAR = 0;
|
|
SCHEDULED_CALL = 1;
|
|
VOICE_CHAT = 2;
|
|
}
|
|
message ParticipantInfo {
|
|
optional string userJid = 1;
|
|
optional CallLogRecord.CallResult callResult = 2;
|
|
}
|
|
|
|
enum SilenceReason {
|
|
NONE = 0;
|
|
SCHEDULED = 1;
|
|
PRIVACY = 2;
|
|
LIGHTWEIGHT = 3;
|
|
}
|
|
}
|
|
|
|
message CertChain {
|
|
optional NoiseCertificate leaf = 1;
|
|
optional NoiseCertificate intermediate = 2;
|
|
message NoiseCertificate {
|
|
optional bytes details = 1;
|
|
optional bytes signature = 2;
|
|
message Details {
|
|
optional uint32 serial = 1;
|
|
optional uint32 issuerSerial = 2;
|
|
optional bytes key = 3;
|
|
optional uint64 notBefore = 4;
|
|
optional uint64 notAfter = 5;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
message ChatLockSettings {
|
|
optional bool hideLockedChats = 1;
|
|
optional UserPassword secretCode = 2;
|
|
}
|
|
|
|
message ChatRowOpaqueData {
|
|
optional DraftMessage draftMessage = 1;
|
|
message DraftMessage {
|
|
optional string text = 1;
|
|
optional string omittedUrl = 2;
|
|
optional CtwaContextLinkData ctwaContextLinkData = 3;
|
|
optional CtwaContextData ctwaContext = 4;
|
|
optional int64 timestamp = 5;
|
|
message CtwaContextData {
|
|
optional string conversionSource = 1;
|
|
optional bytes conversionData = 2;
|
|
optional string sourceUrl = 3;
|
|
optional string sourceId = 4;
|
|
optional string sourceType = 5;
|
|
optional string title = 6;
|
|
optional string description = 7;
|
|
optional string thumbnail = 8;
|
|
optional string thumbnailUrl = 9;
|
|
optional ContextInfoExternalAdReplyInfoMediaType mediaType = 10;
|
|
optional string mediaUrl = 11;
|
|
optional bool isSuspiciousLink = 12;
|
|
enum ContextInfoExternalAdReplyInfoMediaType {
|
|
NONE = 0;
|
|
IMAGE = 1;
|
|
VIDEO = 2;
|
|
}
|
|
}
|
|
|
|
message CtwaContextLinkData {
|
|
optional string context = 1;
|
|
optional string sourceUrl = 2;
|
|
optional string icebreaker = 3;
|
|
optional string phone = 4;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
message Citation {
|
|
optional string title = 1;
|
|
optional string subtitle = 2;
|
|
optional string cmsId = 3;
|
|
optional string imageUrl = 4;
|
|
}
|
|
|
|
message ClientPairingProps {
|
|
optional bool isChatDbLidMigrated = 1;
|
|
optional bool isSyncdPureLidSession = 2;
|
|
optional bool isSyncdSnapshotRecoveryEnabled = 3;
|
|
optional bool isHsThumbnailSyncEnabled = 4;
|
|
optional bytes subscriptionSyncPayload = 5;
|
|
}
|
|
|
|
message ClientPayload {
|
|
optional uint64 username = 1;
|
|
optional bool passive = 3;
|
|
optional UserAgent userAgent = 5;
|
|
optional WebInfo webInfo = 6;
|
|
optional string pushName = 7;
|
|
optional sfixed32 sessionId = 9;
|
|
optional bool shortConnect = 10;
|
|
optional ConnectType connectType = 12;
|
|
optional ConnectReason connectReason = 13;
|
|
repeated int32 shards = 14;
|
|
optional DNSSource dnsSource = 15;
|
|
optional uint32 connectAttemptCount = 16;
|
|
optional uint32 device = 18;
|
|
optional DevicePairingRegistrationData devicePairingData = 19;
|
|
optional Product product = 20;
|
|
optional bytes fbCat = 21;
|
|
optional bytes fbUserAgent = 22;
|
|
optional bool oc = 23;
|
|
optional int32 lc = 24;
|
|
optional IOSAppExtension iosAppExtension = 30;
|
|
optional uint64 fbAppId = 31;
|
|
optional bytes fbDeviceId = 32;
|
|
optional bool pull = 33;
|
|
optional bytes paddingBytes = 34;
|
|
optional int32 yearClass = 36;
|
|
optional int32 memClass = 37;
|
|
optional InteropData interopData = 38;
|
|
optional TrafficAnonymization trafficAnonymization = 40;
|
|
optional bool lidDbMigrated = 41;
|
|
optional AccountType accountType = 42;
|
|
optional sfixed32 connectionSequenceInfo = 43;
|
|
optional bool paaLink = 44;
|
|
optional int32 preacksCount = 45;
|
|
optional int32 processingQueueSize = 46;
|
|
repeated string pairedPeripherals = 47;
|
|
optional bytes testIsolationId = 48;
|
|
enum AccountType {
|
|
DEFAULT = 0;
|
|
GUEST = 1;
|
|
}
|
|
enum ConnectReason {
|
|
PUSH = 0;
|
|
USER_ACTIVATED = 1;
|
|
SCHEDULED = 2;
|
|
ERROR_RECONNECT = 3;
|
|
NETWORK_SWITCH = 4;
|
|
PING_RECONNECT = 5;
|
|
UNKNOWN = 6;
|
|
}
|
|
enum ConnectType {
|
|
CELLULAR_UNKNOWN = 0;
|
|
WIFI_UNKNOWN = 1;
|
|
CELLULAR_EDGE = 100;
|
|
CELLULAR_IDEN = 101;
|
|
CELLULAR_UMTS = 102;
|
|
CELLULAR_EVDO = 103;
|
|
CELLULAR_GPRS = 104;
|
|
CELLULAR_HSDPA = 105;
|
|
CELLULAR_HSUPA = 106;
|
|
CELLULAR_HSPA = 107;
|
|
CELLULAR_CDMA = 108;
|
|
CELLULAR_1XRTT = 109;
|
|
CELLULAR_EHRPD = 110;
|
|
CELLULAR_LTE = 111;
|
|
CELLULAR_HSPAP = 112;
|
|
}
|
|
message DNSSource {
|
|
optional DNSResolutionMethod dnsMethod = 15;
|
|
optional bool appCached = 16;
|
|
enum DNSResolutionMethod {
|
|
SYSTEM = 0;
|
|
GOOGLE = 1;
|
|
HARDCODED = 2;
|
|
OVERRIDE = 3;
|
|
FALLBACK = 4;
|
|
MNS = 5;
|
|
MNS_SECONDARY = 6;
|
|
SOCKS_PROXY = 7;
|
|
}
|
|
}
|
|
|
|
message DevicePairingRegistrationData {
|
|
optional bytes eRegid = 1;
|
|
optional bytes eKeytype = 2;
|
|
optional bytes eIdent = 3;
|
|
optional bytes eSkeyId = 4;
|
|
optional bytes eSkeyVal = 5;
|
|
optional bytes eSkeySig = 6;
|
|
optional bytes buildHash = 7;
|
|
optional bytes deviceProps = 8;
|
|
}
|
|
|
|
enum IOSAppExtension {
|
|
SHARE_EXTENSION = 0;
|
|
SERVICE_EXTENSION = 1;
|
|
INTENTS_EXTENSION = 2;
|
|
}
|
|
message InteropData {
|
|
optional uint64 accountId = 1;
|
|
optional bytes token = 2;
|
|
optional bool enableReadReceipts = 3;
|
|
}
|
|
|
|
enum Product {
|
|
WHATSAPP = 0;
|
|
MESSENGER = 1;
|
|
INTEROP = 2;
|
|
INTEROP_MSGR = 3;
|
|
WHATSAPP_LID = 4;
|
|
}
|
|
enum TrafficAnonymization {
|
|
OFF = 0;
|
|
STANDARD = 1;
|
|
}
|
|
message UserAgent {
|
|
optional Platform platform = 1;
|
|
optional AppVersion appVersion = 2;
|
|
optional string mcc = 3;
|
|
optional string mnc = 4;
|
|
optional string osVersion = 5;
|
|
optional string manufacturer = 6;
|
|
optional string device = 7;
|
|
optional string osBuildNumber = 8;
|
|
optional string phoneId = 9;
|
|
optional ReleaseChannel releaseChannel = 10;
|
|
optional string localeLanguageIso6391 = 11;
|
|
optional string localeCountryIso31661Alpha2 = 12;
|
|
optional string deviceBoard = 13;
|
|
optional string deviceExpId = 14;
|
|
optional DeviceType deviceType = 15;
|
|
optional string deviceModelType = 16;
|
|
optional DistributionChannel distributionChannel = 17;
|
|
message AppVersion {
|
|
optional uint32 primary = 1;
|
|
optional uint32 secondary = 2;
|
|
optional uint32 tertiary = 3;
|
|
optional uint32 quaternary = 4;
|
|
optional uint32 quinary = 5;
|
|
}
|
|
|
|
enum DeviceType {
|
|
PHONE = 0;
|
|
TABLET = 1;
|
|
DESKTOP = 2;
|
|
WEARABLE = 3;
|
|
VR = 4;
|
|
}
|
|
enum DistributionChannel {
|
|
APPSTORE = 0;
|
|
WEBSITE = 1;
|
|
TESTFLIGHT = 2;
|
|
INTERNAL = 3;
|
|
}
|
|
enum Platform {
|
|
ANDROID = 0;
|
|
IOS = 1;
|
|
WINDOWS_PHONE = 2;
|
|
BLACKBERRY = 3;
|
|
BLACKBERRYX = 4;
|
|
S40 = 5;
|
|
S60 = 6;
|
|
PYTHON_CLIENT = 7;
|
|
TIZEN = 8;
|
|
ENTERPRISE = 9;
|
|
SMB_ANDROID = 10;
|
|
KAIOS = 11;
|
|
SMB_IOS = 12;
|
|
WINDOWS = 13;
|
|
WEB = 14;
|
|
PORTAL = 15;
|
|
GREEN_ANDROID = 16;
|
|
GREEN_IPHONE = 17;
|
|
BLUE_ANDROID = 18;
|
|
BLUE_IPHONE = 19;
|
|
FBLITE_ANDROID = 20;
|
|
MLITE_ANDROID = 21;
|
|
IGLITE_ANDROID = 22;
|
|
PAGE = 23;
|
|
MACOS = 24;
|
|
OCULUS_MSG = 25;
|
|
OCULUS_CALL = 26;
|
|
MILAN = 27;
|
|
CAPI = 28;
|
|
WEAROS = 29;
|
|
ARDEVICE = 30;
|
|
VRDEVICE = 31;
|
|
BLUE_WEB = 32;
|
|
IPAD = 33;
|
|
TEST = 34;
|
|
SMART_GLASSES = 35;
|
|
BLUE_VR = 36;
|
|
AR_WRIST = 37;
|
|
}
|
|
enum ReleaseChannel {
|
|
RELEASE = 0;
|
|
BETA = 1;
|
|
ALPHA = 2;
|
|
DEBUG = 3;
|
|
}
|
|
}
|
|
|
|
message WebInfo {
|
|
optional string refToken = 1;
|
|
optional string version = 2;
|
|
optional WebdPayload webdPayload = 3;
|
|
optional WebSubPlatform webSubPlatform = 4;
|
|
optional string browser = 5;
|
|
optional string browserVersion = 6;
|
|
enum WebSubPlatform {
|
|
WEB_BROWSER = 0;
|
|
APP_STORE = 1;
|
|
WIN_STORE = 2;
|
|
DARWIN = 3;
|
|
WIN32 = 4;
|
|
WIN_HYBRID = 5;
|
|
}
|
|
message WebdPayload {
|
|
optional bool usesParticipantInKey = 1;
|
|
optional bool supportsStarredMessages = 2;
|
|
optional bool supportsDocumentMessages = 3;
|
|
optional bool supportsUrlMessages = 4;
|
|
optional bool supportsMediaRetry = 5;
|
|
optional bool supportsE2EImage = 6;
|
|
optional bool supportsE2EVideo = 7;
|
|
optional bool supportsE2EAudio = 8;
|
|
optional bool supportsE2EDocument = 9;
|
|
optional string documentTypes = 10;
|
|
optional bytes features = 11;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
enum CollectionName {
|
|
COLLECTION_NAME_UNKNOWN = 0;
|
|
REGULAR = 1;
|
|
REGULAR_LOW = 2;
|
|
REGULAR_HIGH = 3;
|
|
CRITICAL_BLOCK = 4;
|
|
CRITICAL_UNBLOCK_LOW = 5;
|
|
}
|
|
message CommentMetadata {
|
|
optional MessageKey commentParentKey = 1;
|
|
optional uint32 replyCount = 2;
|
|
}
|
|
|
|
message CompanionCommitment {
|
|
optional bytes hash = 1;
|
|
}
|
|
|
|
message CompanionEphemeralIdentity {
|
|
optional bytes publicKey = 1;
|
|
optional DeviceProps.PlatformType deviceType = 2;
|
|
optional string ref = 3;
|
|
}
|
|
|
|
message Config {
|
|
map<uint32, Field> field = 1;
|
|
optional uint32 version = 2;
|
|
}
|
|
|
|
message ContextInfo {
|
|
optional string stanzaId = 1;
|
|
optional string participant = 2;
|
|
optional Message quotedMessage = 3;
|
|
optional string remoteJid = 4;
|
|
repeated string mentionedJid = 15;
|
|
optional string conversionSource = 18;
|
|
optional bytes conversionData = 19;
|
|
optional uint32 conversionDelaySeconds = 20;
|
|
optional uint32 forwardingScore = 21;
|
|
optional bool isForwarded = 22;
|
|
optional AdReplyInfo quotedAd = 23;
|
|
optional MessageKey placeholderKey = 24;
|
|
optional uint32 expiration = 25;
|
|
optional int64 ephemeralSettingTimestamp = 26;
|
|
optional bytes ephemeralSharedSecret = 27;
|
|
optional ExternalAdReplyInfo externalAdReply = 28;
|
|
optional string entryPointConversionSource = 29;
|
|
optional string entryPointConversionApp = 30;
|
|
optional uint32 entryPointConversionDelaySeconds = 31;
|
|
optional DisappearingMode disappearingMode = 32;
|
|
optional ActionLink actionLink = 33;
|
|
optional string groupSubject = 34;
|
|
optional string parentGroupJid = 35;
|
|
optional string trustBannerType = 37;
|
|
optional uint32 trustBannerAction = 38;
|
|
optional bool isSampled = 39;
|
|
repeated GroupMention groupMentions = 40;
|
|
optional UTMInfo utm = 41;
|
|
optional ForwardedNewsletterMessageInfo forwardedNewsletterMessageInfo = 43;
|
|
optional BusinessMessageForwardInfo businessMessageForwardInfo = 44;
|
|
optional string smbClientCampaignId = 45;
|
|
optional string smbServerCampaignId = 46;
|
|
optional DataSharingContext dataSharingContext = 47;
|
|
optional bool alwaysShowAdAttribution = 48;
|
|
optional FeatureEligibilities featureEligibilities = 49;
|
|
optional string entryPointConversionExternalSource = 50;
|
|
optional string entryPointConversionExternalMedium = 51;
|
|
optional string ctwaSignals = 54;
|
|
optional bytes ctwaPayload = 55;
|
|
optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56;
|
|
optional StatusAttributionType statusAttributionType = 57;
|
|
optional UrlTrackingMap urlTrackingMap = 58;
|
|
optional PairedMediaType pairedMediaType = 59;
|
|
optional uint32 rankingVersion = 60;
|
|
optional MemberLabel memberLabel = 62;
|
|
optional bool isQuestion = 63;
|
|
optional StatusSourceType statusSourceType = 64;
|
|
repeated StatusAttribution statusAttributions = 65;
|
|
optional bool isGroupStatus = 66;
|
|
optional ForwardOrigin forwardOrigin = 67;
|
|
optional QuestionReplyQuotedMessage questionReplyQuotedMessage = 68;
|
|
optional StatusAudienceMetadata statusAudienceMetadata = 69;
|
|
optional uint32 nonJidMentions = 70;
|
|
optional QuotedType quotedType = 71;
|
|
optional BotMessageSharingInfo botMessageSharingInfo = 72;
|
|
optional bool isSpoiler = 73;
|
|
optional MediaDomainInfo mediaDomainInfo = 74;
|
|
optional PartiallySelectedContent partiallySelectedContent = 75;
|
|
optional uint32 afterReadDuration = 76;
|
|
optional CrossAppSource crossAppSource = 77;
|
|
optional BusinessInteractionPills businessInteractionPills = 78;
|
|
optional string posterStatusId = 79;
|
|
message AdReplyInfo {
|
|
optional string advertiserName = 1;
|
|
optional MediaType mediaType = 2;
|
|
optional bytes jpegThumbnail = 16;
|
|
optional string caption = 17;
|
|
enum MediaType {
|
|
NONE = 0;
|
|
IMAGE = 1;
|
|
VIDEO = 2;
|
|
}
|
|
}
|
|
|
|
message BusinessInteractionPills {
|
|
optional string businessJid = 1;
|
|
repeated Pill pills = 2;
|
|
optional EntryPoint entryPoint = 3;
|
|
enum EntryPoint {
|
|
ENTRY_POINT_UNKNOWN = 0;
|
|
P2P_LINK_SHARE = 1;
|
|
CONTACT_CARD_SHARING = 2;
|
|
PHONE_NUMBER = 3;
|
|
STATUS = 4;
|
|
IN_THREAD_CONTEXT_CARD = 5;
|
|
}
|
|
message Pill {
|
|
optional ContextInfo.BusinessInteractionPills.PillType pillType = 1;
|
|
optional string actionUrl = 2;
|
|
}
|
|
|
|
enum PillType {
|
|
UNKNOWN = 0;
|
|
VIEW_BUSINESS = 1;
|
|
CHAT = 2;
|
|
CALL = 3;
|
|
CATALOG = 4;
|
|
CHANNEL = 5;
|
|
BOOK_APPOINTMENT = 6;
|
|
OFFERS = 7;
|
|
BESTSELLERS = 8;
|
|
MENU = 9;
|
|
ABOUT = 10;
|
|
}
|
|
}
|
|
|
|
message BusinessMessageForwardInfo {
|
|
optional string businessOwnerJid = 1;
|
|
}
|
|
|
|
enum CrossAppSource {
|
|
CROSS_APP_SOURCE_UNKNOWN = 0;
|
|
CROSS_APP_SOURCE_INSTAGRAM = 1;
|
|
CROSS_APP_SOURCE_FACEBOOK = 2;
|
|
}
|
|
message DataSharingContext {
|
|
optional bool showMmDisclosure = 1;
|
|
optional string encryptedSignalTokenConsented = 2;
|
|
repeated Parameters parameters = 3;
|
|
optional int32 dataSharingFlags = 4;
|
|
enum DataSharingFlags {
|
|
SHOW_MM_DISCLOSURE_ON_CLICK = 1;
|
|
SHOW_MM_DISCLOSURE_ON_READ = 2;
|
|
}
|
|
message Parameters {
|
|
optional string key = 1;
|
|
optional string stringData = 2;
|
|
optional int64 intData = 3;
|
|
optional float floatData = 4;
|
|
optional ContextInfo.DataSharingContext.Parameters contents = 5;
|
|
}
|
|
|
|
}
|
|
|
|
message ExternalAdReplyInfo {
|
|
optional string title = 1;
|
|
optional string body = 2;
|
|
optional MediaType mediaType = 3;
|
|
optional string thumbnailUrl = 4;
|
|
optional string mediaUrl = 5;
|
|
optional bytes thumbnail = 6;
|
|
optional string sourceType = 7;
|
|
optional string sourceId = 8;
|
|
optional string sourceUrl = 9;
|
|
optional bool containsAutoReply = 10;
|
|
optional bool renderLargerThumbnail = 11;
|
|
optional bool showAdAttribution = 12;
|
|
optional string ctwaClid = 13;
|
|
optional string ref = 14;
|
|
optional bool clickToWhatsappCall = 15;
|
|
optional bool adContextPreviewDismissed = 16;
|
|
optional string sourceApp = 17;
|
|
optional bool automatedGreetingMessageShown = 18;
|
|
optional string greetingMessageBody = 19;
|
|
optional string ctaPayload = 20;
|
|
optional bool disableNudge = 21;
|
|
optional string originalImageUrl = 22;
|
|
optional string automatedGreetingMessageCtaType = 23;
|
|
optional bool wtwaAdFormat = 24;
|
|
optional AdType adType = 25;
|
|
optional string wtwaWebsiteUrl = 26;
|
|
optional string adPreviewUrl = 27;
|
|
optional bool containsCtwaFlowsAutoReply = 28;
|
|
optional int32 agmThumbnailStrategy = 29;
|
|
optional int32 agmTitleStrategy = 30;
|
|
optional int32 agmSubtitleStrategy = 31;
|
|
optional int32 agmHeaderInteractionStrategy = 32;
|
|
enum AdType {
|
|
CTWA = 0;
|
|
CAWC = 1;
|
|
}
|
|
enum MediaType {
|
|
NONE = 0;
|
|
IMAGE = 1;
|
|
VIDEO = 2;
|
|
}
|
|
}
|
|
|
|
message FeatureEligibilities {
|
|
optional bool cannotBeReactedTo = 1;
|
|
optional bool cannotBeRanked = 2;
|
|
optional bool canRequestFeedback = 3;
|
|
optional bool canBeReshared = 4;
|
|
optional bool canReceiveMultiReact = 5;
|
|
}
|
|
|
|
enum ForwardOrigin {
|
|
UNKNOWN = 0;
|
|
CHAT = 1;
|
|
STATUS = 2;
|
|
CHANNELS = 3;
|
|
META_AI = 4;
|
|
UGC = 5;
|
|
}
|
|
message ForwardedNewsletterMessageInfo {
|
|
optional string newsletterJid = 1;
|
|
optional int32 serverMessageId = 2;
|
|
optional string newsletterName = 3;
|
|
optional ContentType contentType = 4;
|
|
optional string accessibilityText = 5;
|
|
optional string profileName = 6;
|
|
enum ContentType {
|
|
UPDATE = 1;
|
|
UPDATE_CARD = 2;
|
|
LINK_CARD = 3;
|
|
}
|
|
}
|
|
|
|
enum PairedMediaType {
|
|
NOT_PAIRED_MEDIA = 0;
|
|
SD_VIDEO_PARENT = 1;
|
|
HD_VIDEO_CHILD = 2;
|
|
SD_IMAGE_PARENT = 3;
|
|
HD_IMAGE_CHILD = 4;
|
|
MOTION_PHOTO_PARENT = 5;
|
|
MOTION_PHOTO_CHILD = 6;
|
|
HEVC_VIDEO_PARENT = 7;
|
|
HEVC_VIDEO_CHILD = 8;
|
|
}
|
|
message PartiallySelectedContent {
|
|
optional string text = 1;
|
|
}
|
|
|
|
message QuestionReplyQuotedMessage {
|
|
optional int32 serverQuestionId = 1;
|
|
optional Message quotedQuestion = 2;
|
|
optional Message quotedResponse = 3;
|
|
}
|
|
|
|
enum QuotedType {
|
|
EXPLICIT = 0;
|
|
AUTO = 1;
|
|
}
|
|
enum StatusAttributionType {
|
|
NONE = 0;
|
|
RESHARED_FROM_MENTION = 1;
|
|
RESHARED_FROM_POST = 2;
|
|
RESHARED_FROM_POST_MANY_TIMES = 3;
|
|
FORWARDED_FROM_STATUS = 4;
|
|
}
|
|
message StatusAudienceMetadata {
|
|
optional AudienceType audienceType = 1;
|
|
optional string listName = 2;
|
|
optional string listEmoji = 3;
|
|
enum AudienceType {
|
|
UNKNOWN = 0;
|
|
CLOSE_FRIENDS = 1;
|
|
}
|
|
}
|
|
|
|
enum StatusSourceType {
|
|
IMAGE = 0;
|
|
VIDEO = 1;
|
|
GIF = 2;
|
|
AUDIO = 3;
|
|
TEXT = 4;
|
|
MUSIC_STANDALONE = 5;
|
|
}
|
|
message UTMInfo {
|
|
optional string utmSource = 1;
|
|
optional string utmCampaign = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message Conversation {
|
|
optional string id = 1;
|
|
repeated HistorySyncMsg messages = 2;
|
|
optional string newJid = 3;
|
|
optional string oldJid = 4;
|
|
optional uint64 lastMsgTimestamp = 5;
|
|
optional uint32 unreadCount = 6;
|
|
optional bool readOnly = 7;
|
|
optional bool endOfHistoryTransfer = 8;
|
|
optional uint32 ephemeralExpiration = 9;
|
|
optional int64 ephemeralSettingTimestamp = 10;
|
|
optional EndOfHistoryTransferType endOfHistoryTransferType = 11;
|
|
optional uint64 conversationTimestamp = 12;
|
|
optional string name = 13;
|
|
optional string pHash = 14;
|
|
optional bool notSpam = 15;
|
|
optional bool archived = 16;
|
|
optional DisappearingMode disappearingMode = 17;
|
|
optional uint32 unreadMentionCount = 18;
|
|
optional bool markedAsUnread = 19;
|
|
repeated GroupParticipant participant = 20;
|
|
optional bytes tcToken = 21;
|
|
optional uint64 tcTokenTimestamp = 22;
|
|
optional bytes contactPrimaryIdentityKey = 23;
|
|
optional uint32 pinned = 24;
|
|
optional uint64 muteEndTime = 25;
|
|
optional WallpaperSettings wallpaper = 26;
|
|
optional MediaVisibility mediaVisibility = 27;
|
|
optional uint64 tcTokenSenderTimestamp = 28;
|
|
optional bool suspended = 29;
|
|
optional bool terminated = 30;
|
|
optional uint64 createdAt = 31;
|
|
optional string createdBy = 32;
|
|
optional string description = 33;
|
|
optional bool support = 34;
|
|
optional bool isParentGroup = 35;
|
|
optional string parentGroupId = 37;
|
|
optional bool isDefaultSubgroup = 36;
|
|
optional string displayName = 38;
|
|
optional string pnJid = 39;
|
|
optional bool shareOwnPn = 40;
|
|
optional bool pnhDuplicateLidThread = 41;
|
|
optional string lidJid = 42;
|
|
optional string username = 43;
|
|
optional string lidOriginType = 44;
|
|
optional uint32 commentsCount = 45;
|
|
optional bool locked = 46;
|
|
optional PrivacySystemMessage systemMessageToInsert = 47;
|
|
optional bool capiCreatedGroup = 48;
|
|
optional string accountLid = 49;
|
|
optional bool limitSharing = 50;
|
|
optional int64 limitSharingSettingTimestamp = 51;
|
|
optional LimitSharing.TriggerType limitSharingTrigger = 52;
|
|
optional bool limitSharingInitiatedByMe = 53;
|
|
optional bool maibaAiThreadEnabled = 54;
|
|
optional bool isMarketingMessageThread = 55;
|
|
optional bool isSenderNewAccount = 56;
|
|
optional uint32 afterReadDuration = 57;
|
|
optional bool isSenderSuspicious = 58;
|
|
optional GroupAppealStatus appealStatus = 59;
|
|
optional uint64 appealUpdateTime = 60;
|
|
optional string authAgentParentCompanyName = 61;
|
|
optional string authAgentObaPhoneNumber = 62;
|
|
enum EndOfHistoryTransferType {
|
|
COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
|
|
COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
|
|
COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY = 2;
|
|
COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS = 3;
|
|
}
|
|
enum GroupAppealStatus {
|
|
NO_APPEAL = 0;
|
|
APPEAL_IN_REVIEW = 1;
|
|
APPEAL_APPROVED = 2;
|
|
APPEAL_REJECTED = 3;
|
|
}
|
|
}
|
|
|
|
message DeviceCapabilities {
|
|
optional ChatLockSupportLevel chatLockSupportLevel = 1;
|
|
optional LIDMigration lidMigration = 2;
|
|
optional BusinessBroadcast businessBroadcast = 3;
|
|
optional UserHasAvatar userHasAvatar = 4;
|
|
optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
|
|
optional AiThread aiThread = 6;
|
|
message AiThread {
|
|
optional SupportLevel supportLevel = 1;
|
|
enum SupportLevel {
|
|
NONE = 0;
|
|
INFRA = 1;
|
|
FULL = 2;
|
|
}
|
|
}
|
|
|
|
message BusinessBroadcast {
|
|
optional bool importListEnabled = 1;
|
|
optional bool companionSupportEnabled = 2;
|
|
optional bool campaignSyncEnabled = 3;
|
|
optional bool insightsSyncEnabled = 4;
|
|
optional int32 recipientLimit = 5;
|
|
}
|
|
|
|
enum ChatLockSupportLevel {
|
|
NONE = 0;
|
|
MINIMAL = 1;
|
|
FULL = 2;
|
|
}
|
|
message LIDMigration {
|
|
optional uint64 chatDbMigrationTimestamp = 1;
|
|
}
|
|
|
|
enum MemberNameTagPrimarySupport {
|
|
DISABLED = 0;
|
|
RECEIVER_ENABLED = 1;
|
|
SENDER_ENABLED = 2;
|
|
}
|
|
message UserHasAvatar {
|
|
optional bool userHasAvatar = 1;
|
|
}
|
|
|
|
}
|
|
|
|
message DeviceConsistencyCodeMessage {
|
|
optional uint32 generation = 1;
|
|
optional bytes signature = 2;
|
|
}
|
|
|
|
message DeviceListMetadata {
|
|
optional bytes senderKeyHash = 1;
|
|
optional uint64 senderTimestamp = 2;
|
|
repeated uint32 senderKeyIndexes = 3 [packed=true];
|
|
optional ADVEncryptionType senderAccountType = 4;
|
|
optional ADVEncryptionType receiverAccountType = 5;
|
|
optional bytes recipientKeyHash = 8;
|
|
optional uint64 recipientTimestamp = 9;
|
|
repeated uint32 recipientKeyIndexes = 10 [packed=true];
|
|
}
|
|
|
|
message DeviceProps {
|
|
optional string os = 1;
|
|
optional AppVersion version = 2;
|
|
optional PlatformType platformType = 3;
|
|
optional bool requireFullSync = 4;
|
|
optional HistorySyncConfig historySyncConfig = 5;
|
|
message AppVersion {
|
|
optional uint32 primary = 1;
|
|
optional uint32 secondary = 2;
|
|
optional uint32 tertiary = 3;
|
|
optional uint32 quaternary = 4;
|
|
optional uint32 quinary = 5;
|
|
}
|
|
|
|
message HistorySyncConfig {
|
|
optional uint32 fullSyncDaysLimit = 1;
|
|
optional uint32 fullSyncSizeMbLimit = 2;
|
|
optional uint32 storageQuotaMb = 3;
|
|
optional bool inlineInitialPayloadInE2EeMsg = 4;
|
|
optional uint32 recentSyncDaysLimit = 5;
|
|
optional bool supportCallLogHistory = 6;
|
|
optional bool supportBotUserAgentChatHistory = 7;
|
|
optional bool supportCagReactionsAndPolls = 8;
|
|
optional bool supportBizHostedMsg = 9;
|
|
optional bool supportRecentSyncChunkMessageCountTuning = 10;
|
|
optional bool supportHostedGroupMsg = 11;
|
|
optional bool supportFbidBotChatHistory = 12;
|
|
optional bool supportAddOnHistorySyncMigration = 13;
|
|
optional bool supportMessageAssociation = 14;
|
|
optional bool supportGroupHistory = 15;
|
|
optional bool onDemandReady = 16;
|
|
optional bool supportGuestChat = 17;
|
|
optional bool completeOnDemandReady = 18;
|
|
optional uint32 thumbnailSyncDaysLimit = 19;
|
|
optional uint32 initialSyncMaxMessagesPerChat = 20;
|
|
optional bool supportManusHistory = 21;
|
|
optional bool supportHatchHistory = 22;
|
|
repeated string supportedBotChannelFbids = 23;
|
|
optional bool supportInlineContacts = 24;
|
|
}
|
|
|
|
enum PlatformType {
|
|
UNKNOWN = 0;
|
|
CHROME = 1;
|
|
FIREFOX = 2;
|
|
IE = 3;
|
|
OPERA = 4;
|
|
SAFARI = 5;
|
|
EDGE = 6;
|
|
DESKTOP = 7;
|
|
IPAD = 8;
|
|
ANDROID_TABLET = 9;
|
|
OHANA = 10;
|
|
ALOHA = 11;
|
|
CATALINA = 12;
|
|
TCL_TV = 13;
|
|
IOS_PHONE = 14;
|
|
IOS_CATALYST = 15;
|
|
ANDROID_PHONE = 16;
|
|
ANDROID_AMBIGUOUS = 17;
|
|
WEAR_OS = 18;
|
|
AR_WRIST = 19;
|
|
AR_DEVICE = 20;
|
|
UWP = 21;
|
|
VR = 22;
|
|
CLOUD_API = 23;
|
|
SMARTGLASSES = 24;
|
|
}
|
|
}
|
|
|
|
message DisappearingMode {
|
|
optional Initiator initiator = 1;
|
|
optional Trigger trigger = 2;
|
|
optional string initiatorDeviceJid = 3;
|
|
optional bool initiatedByMe = 4;
|
|
enum Initiator {
|
|
CHANGED_IN_CHAT = 0;
|
|
INITIATED_BY_ME = 1;
|
|
INITIATED_BY_OTHER = 2;
|
|
BIZ_UPGRADE_FB_HOSTING = 3;
|
|
}
|
|
enum Trigger {
|
|
UNKNOWN = 0;
|
|
CHAT_SETTING = 1;
|
|
ACCOUNT_SETTING = 2;
|
|
BULK_CHANGE = 3;
|
|
BIZ_SUPPORTS_FB_HOSTING = 4;
|
|
UNKNOWN_GROUPS = 5;
|
|
}
|
|
}
|
|
|
|
message EmbeddedContent {
|
|
oneof content {
|
|
EmbeddedMessage embeddedMessage = 1;
|
|
EmbeddedMusic embeddedMusic = 2;
|
|
}
|
|
}
|
|
|
|
message EmbeddedMessage {
|
|
optional string stanzaId = 1;
|
|
optional Message message = 2;
|
|
}
|
|
|
|
message EmbeddedMusic {
|
|
optional string musicContentMediaId = 1;
|
|
optional string songId = 2;
|
|
optional string author = 3;
|
|
optional string title = 4;
|
|
optional string artworkDirectPath = 5;
|
|
optional bytes artworkSha256 = 6;
|
|
optional bytes artworkEncSha256 = 7;
|
|
optional string artistAttribution = 8;
|
|
optional bytes countryBlocklist = 9;
|
|
optional bool isExplicit = 10;
|
|
optional bytes artworkMediaKey = 11;
|
|
optional int64 musicSongStartTimeInMs = 12;
|
|
optional int64 derivedContentStartTimeInMs = 13;
|
|
optional int64 overlapDurationInMs = 14;
|
|
}
|
|
|
|
message EncryptedPairingRequest {
|
|
optional bytes encryptedPayload = 1;
|
|
optional bytes iv = 2;
|
|
}
|
|
|
|
message EphemeralSetting {
|
|
optional sfixed32 duration = 1;
|
|
optional sfixed64 timestamp = 2;
|
|
}
|
|
|
|
message EventAdditionalMetadata {
|
|
optional bool isStale = 1;
|
|
}
|
|
|
|
message EventResponse {
|
|
optional MessageKey eventResponseMessageKey = 1;
|
|
optional int64 timestampMs = 2;
|
|
optional Message.EventResponseMessage eventResponseMessage = 3;
|
|
optional bool unread = 4;
|
|
}
|
|
|
|
message ExitCode {
|
|
optional uint64 code = 1;
|
|
optional string text = 2;
|
|
}
|
|
|
|
message ExternalBlobReference {
|
|
optional bytes mediaKey = 1;
|
|
optional string directPath = 2;
|
|
optional string handle = 3;
|
|
optional uint64 fileSizeBytes = 4;
|
|
optional bytes fileSha256 = 5;
|
|
optional bytes fileEncSha256 = 6;
|
|
}
|
|
|
|
message Field {
|
|
optional uint32 minVersion = 1;
|
|
optional uint32 maxVersion = 2;
|
|
optional uint32 notReportableMinVersion = 3;
|
|
optional bool isMessage = 4;
|
|
map<uint32, Field> subfield = 5;
|
|
}
|
|
|
|
message ForwardedAIBotMessageInfo {
|
|
optional string botName = 1;
|
|
optional string botJid = 2;
|
|
optional string creatorName = 3;
|
|
}
|
|
|
|
message GlobalSettings {
|
|
optional WallpaperSettings lightThemeWallpaper = 1;
|
|
optional MediaVisibility mediaVisibility = 2;
|
|
optional WallpaperSettings darkThemeWallpaper = 3;
|
|
optional AutoDownloadSettings autoDownloadWiFi = 4;
|
|
optional AutoDownloadSettings autoDownloadCellular = 5;
|
|
optional AutoDownloadSettings autoDownloadRoaming = 6;
|
|
optional bool showIndividualNotificationsPreview = 7;
|
|
optional bool showGroupNotificationsPreview = 8;
|
|
optional int32 disappearingModeDuration = 9;
|
|
optional int64 disappearingModeTimestamp = 10;
|
|
optional AvatarUserSettings avatarUserSettings = 11;
|
|
optional int32 fontSize = 12;
|
|
optional bool securityNotifications = 13;
|
|
optional bool autoUnarchiveChats = 14;
|
|
optional int32 videoQualityMode = 15;
|
|
optional int32 photoQualityMode = 16;
|
|
optional NotificationSettings individualNotificationSettings = 17;
|
|
optional NotificationSettings groupNotificationSettings = 18;
|
|
optional ChatLockSettings chatLockSettings = 19;
|
|
optional int64 chatDbLidMigrationTimestamp = 20;
|
|
}
|
|
|
|
message GroupHistoryBundleInfo {
|
|
optional Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
|
|
optional ProcessState processState = 2;
|
|
enum ProcessState {
|
|
NOT_INJECTED = 0;
|
|
INJECTED = 1;
|
|
INJECTED_PARTIAL = 2;
|
|
INJECTION_FAILED = 3;
|
|
INJECTION_FAILED_NO_RETRY = 4;
|
|
}
|
|
}
|
|
|
|
message GroupHistoryIndividualMessageInfo {
|
|
optional MessageKey bundleMessageKey = 1;
|
|
optional bool editedAfterReceivedAsHistory = 2;
|
|
}
|
|
|
|
message GroupMention {
|
|
optional string groupJid = 1;
|
|
optional string groupSubject = 2;
|
|
}
|
|
|
|
message GroupParticipant {
|
|
optional string userJid = 1;
|
|
optional Rank rank = 2;
|
|
optional MemberLabel memberLabel = 3;
|
|
enum Rank {
|
|
REGULAR = 0;
|
|
ADMIN = 1;
|
|
SUPERADMIN = 2;
|
|
}
|
|
}
|
|
|
|
message GroupRootKeyShare {
|
|
repeated GroupRootKeyShareEntry keys = 1;
|
|
}
|
|
|
|
message GroupRootKeyShareEntry {
|
|
optional bytes groupRootKey = 1;
|
|
optional string keyId = 2;
|
|
optional int64 expiryTimestampMs = 3;
|
|
}
|
|
|
|
message HandshakeMessage {
|
|
optional ClientHello clientHello = 2;
|
|
optional ServerHello serverHello = 3;
|
|
optional ClientFinish clientFinish = 4;
|
|
message ClientFinish {
|
|
optional bytes static = 1;
|
|
optional bytes payload = 2;
|
|
optional bytes extendedCiphertext = 3;
|
|
optional bytes paddedBytes = 4;
|
|
optional bool simulateXxkemFs = 5;
|
|
}
|
|
|
|
message ClientHello {
|
|
optional bytes ephemeral = 1;
|
|
optional bytes static = 2;
|
|
optional bytes payload = 3;
|
|
optional bool useExtended = 4;
|
|
optional bytes extendedCiphertext = 5;
|
|
optional bytes paddedBytes = 6;
|
|
optional bool sendServerHelloPaddedBytes = 7;
|
|
optional bool simulateXxkemFs = 8;
|
|
optional HandshakeMessage.HandshakePqMode pqMode = 9;
|
|
optional bytes extendedEphemeral = 10;
|
|
}
|
|
|
|
enum HandshakePqMode {
|
|
HANDSHAKE_PQ_MODE_UNKNOWN = 0;
|
|
XXKEM = 1;
|
|
XXKEM_FS = 2;
|
|
WA_CLASSICAL = 3;
|
|
WA_PQ = 4;
|
|
IKKEM = 5;
|
|
IKKEM_FS = 6;
|
|
XXKEM_2 = 7;
|
|
IKKEM_2 = 8;
|
|
}
|
|
message ServerHello {
|
|
optional bytes ephemeral = 1;
|
|
optional bytes static = 2;
|
|
optional bytes payload = 3;
|
|
optional bytes extendedStatic = 4;
|
|
optional bytes paddingBytes = 5;
|
|
optional bytes extendedCiphertext = 6;
|
|
}
|
|
|
|
}
|
|
|
|
message HistorySync {
|
|
optional HistorySyncType syncType = 1;
|
|
repeated Conversation conversations = 2;
|
|
repeated WebMessageInfo statusV3Messages = 3;
|
|
optional uint32 chunkOrder = 5;
|
|
optional uint32 progress = 6;
|
|
repeated Pushname pushnames = 7;
|
|
optional GlobalSettings globalSettings = 8;
|
|
optional bytes threadIdUserSecret = 9;
|
|
optional uint32 threadDsTimeframeOffset = 10;
|
|
repeated StickerMetadata recentStickers = 11;
|
|
repeated PastParticipants pastParticipants = 12;
|
|
repeated CallLogRecord callLogRecords = 13;
|
|
optional BotAIWaitListState aiWaitListState = 14;
|
|
repeated PhoneNumberToLIDMapping phoneNumberToLidMappings = 15;
|
|
optional string companionMetaNonce = 16;
|
|
optional bytes shareableChatIdentifierEncryptionKey = 17;
|
|
repeated Account accounts = 18;
|
|
optional bytes nctSalt = 19;
|
|
repeated InlineContact inlineContacts = 20;
|
|
optional bool inlineContactsProvided = 21;
|
|
enum BotAIWaitListState {
|
|
IN_WAITLIST = 0;
|
|
AI_AVAILABLE = 1;
|
|
}
|
|
enum HistorySyncType {
|
|
INITIAL_BOOTSTRAP = 0;
|
|
INITIAL_STATUS_V3 = 1;
|
|
FULL = 2;
|
|
RECENT = 3;
|
|
PUSH_NAME = 4;
|
|
NON_BLOCKING_DATA = 5;
|
|
ON_DEMAND = 6;
|
|
}
|
|
}
|
|
|
|
message HistorySyncMsg {
|
|
optional WebMessageInfo message = 1;
|
|
optional uint64 msgOrderId = 2;
|
|
}
|
|
|
|
message HydratedTemplateButton {
|
|
optional uint32 index = 4;
|
|
oneof hydratedButton {
|
|
HydratedTemplateButton.HydratedQuickReplyButton quickReplyButton = 1;
|
|
HydratedTemplateButton.HydratedURLButton urlButton = 2;
|
|
HydratedTemplateButton.HydratedCallButton callButton = 3;
|
|
}
|
|
message HydratedCallButton {
|
|
optional string displayText = 1;
|
|
optional string phoneNumber = 2;
|
|
}
|
|
|
|
message HydratedQuickReplyButton {
|
|
optional string displayText = 1;
|
|
optional string id = 2;
|
|
}
|
|
|
|
message HydratedURLButton {
|
|
optional string displayText = 1;
|
|
optional string url = 2;
|
|
optional string consentedUsersUrl = 3;
|
|
optional WebviewPresentationType webviewPresentation = 4;
|
|
enum WebviewPresentationType {
|
|
FULL = 1;
|
|
TALL = 2;
|
|
COMPACT = 3;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message IdentityKeyPairStructure {
|
|
optional bytes publicKey = 1;
|
|
optional bytes privateKey = 2;
|
|
}
|
|
|
|
message InThreadSurveyMetadata {
|
|
optional string tessaSessionId = 1;
|
|
optional string simonSessionId = 2;
|
|
optional string simonSurveyId = 3;
|
|
optional string tessaRootId = 4;
|
|
optional string requestId = 5;
|
|
optional string tessaEvent = 6;
|
|
optional string invitationHeaderText = 7;
|
|
optional string invitationBodyText = 8;
|
|
optional string invitationCtaText = 9;
|
|
optional string invitationCtaUrl = 10;
|
|
optional string surveyTitle = 11;
|
|
repeated InThreadSurveyQuestion questions = 12;
|
|
optional string surveyContinueButtonText = 13;
|
|
optional string surveySubmitButtonText = 14;
|
|
optional string privacyStatementFull = 15;
|
|
repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
|
|
optional string feedbackToastText = 17;
|
|
optional int32 startQuestionIndex = 18;
|
|
message InThreadSurveyOption {
|
|
optional string stringValue = 1;
|
|
optional uint32 numericValue = 2;
|
|
optional string textTranslated = 3;
|
|
}
|
|
|
|
message InThreadSurveyPrivacyStatementPart {
|
|
optional string text = 1;
|
|
optional string url = 2;
|
|
}
|
|
|
|
message InThreadSurveyQuestion {
|
|
optional string questionText = 1;
|
|
optional string questionId = 2;
|
|
repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
|
|
}
|
|
|
|
}
|
|
|
|
message InlineContact {
|
|
optional string pnJid = 1;
|
|
optional string lidJid = 2;
|
|
optional string fullName = 3;
|
|
optional string firstName = 4;
|
|
optional string username = 5;
|
|
}
|
|
|
|
message InteractiveAnnotation {
|
|
repeated Point polygonVertices = 1;
|
|
optional bool shouldSkipConfirmation = 4;
|
|
optional EmbeddedContent embeddedContent = 5;
|
|
optional StatusLinkType statusLinkType = 8;
|
|
oneof action {
|
|
Location location = 2;
|
|
ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
|
|
bool embeddedAction = 6;
|
|
TapLinkAction tapAction = 7;
|
|
}
|
|
enum StatusLinkType {
|
|
RASTERIZED_LINK_PREVIEW = 1;
|
|
RASTERIZED_LINK_TRUNCATED = 2;
|
|
RASTERIZED_LINK_FULL_URL = 3;
|
|
}
|
|
}
|
|
|
|
message InteractiveMessageAdditionalMetadata {
|
|
optional bool isGalaxyFlowCompleted = 1;
|
|
}
|
|
|
|
message KeepInChat {
|
|
optional KeepType keepType = 1;
|
|
optional int64 serverTimestamp = 2;
|
|
optional MessageKey key = 3;
|
|
optional string deviceJid = 4;
|
|
optional int64 clientTimestampMs = 5;
|
|
optional int64 serverTimestampMs = 6;
|
|
}
|
|
|
|
enum KeepType {
|
|
UNKNOWN = 0;
|
|
KEEP_FOR_ALL = 1;
|
|
UNDO_KEEP_FOR_ALL = 2;
|
|
}
|
|
message KeyExchangeMessage {
|
|
optional uint32 id = 1;
|
|
optional bytes baseKey = 2;
|
|
optional bytes ratchetKey = 3;
|
|
optional bytes identityKey = 4;
|
|
optional bytes baseKeySignature = 5;
|
|
}
|
|
|
|
message KeyId {
|
|
optional bytes id = 1;
|
|
}
|
|
|
|
message LIDMigrationMapping {
|
|
optional uint64 pn = 1;
|
|
optional uint64 assignedLid = 2;
|
|
optional uint64 latestLid = 3;
|
|
}
|
|
|
|
message LIDMigrationMappingSyncMessage {
|
|
optional bytes encodedMappingPayload = 1;
|
|
}
|
|
|
|
message LIDMigrationMappingSyncPayload {
|
|
repeated LIDMigrationMapping pnToLidMappings = 1;
|
|
optional uint64 chatDbMigrationTimestamp = 2;
|
|
}
|
|
|
|
message LegacyMessage {
|
|
optional Message.EventResponseMessage eventResponseMessage = 1;
|
|
optional Message.PollVoteMessage pollVote = 2;
|
|
}
|
|
|
|
message LimitSharing {
|
|
optional bool sharingLimited = 1;
|
|
optional TriggerType trigger = 2;
|
|
optional int64 limitSharingSettingTimestamp = 3;
|
|
optional bool initiatedByMe = 4;
|
|
enum TriggerType {
|
|
UNKNOWN = 0;
|
|
CHAT_SETTING = 1;
|
|
BIZ_SUPPORTS_FB_HOSTING = 2;
|
|
UNKNOWN_GROUP = 3;
|
|
}
|
|
}
|
|
|
|
message LocalizedName {
|
|
optional string lg = 1;
|
|
optional string lc = 2;
|
|
optional string verifiedName = 3;
|
|
}
|
|
|
|
message Location {
|
|
optional double degreesLatitude = 1;
|
|
optional double degreesLongitude = 2;
|
|
optional string name = 3;
|
|
}
|
|
|
|
message MediaData {
|
|
optional string localPath = 1;
|
|
}
|
|
|
|
message MediaDomainInfo {
|
|
optional MediaKeyDomain mediaKeyDomain = 1;
|
|
optional bytes e2EeMediaKey = 2;
|
|
}
|
|
|
|
enum MediaKeyDomain {
|
|
MEDIA_KEY_DOMAIN_UNKNOWN = 0;
|
|
MEDIA_KEY_DOMAIN_E2EE = 1;
|
|
MEDIA_KEY_DOMAIN_NON_E2EE = 2;
|
|
}
|
|
message MediaNotifyMessage {
|
|
optional string expressPathUrl = 1;
|
|
optional bytes fileEncSha256 = 2;
|
|
optional uint64 fileLength = 3;
|
|
}
|
|
|
|
message MediaRetryNotification {
|
|
optional string stanzaId = 1;
|
|
optional string directPath = 2;
|
|
optional ResultType result = 3;
|
|
optional bytes messageSecret = 4;
|
|
enum ResultType {
|
|
GENERAL_ERROR = 0;
|
|
SUCCESS = 1;
|
|
NOT_FOUND = 2;
|
|
DECRYPTION_ERROR = 3;
|
|
}
|
|
}
|
|
|
|
enum MediaVisibility {
|
|
DEFAULT = 0;
|
|
OFF = 1;
|
|
ON = 2;
|
|
}
|
|
message MemberLabel {
|
|
optional string label = 1;
|
|
optional int64 labelTimestamp = 2;
|
|
}
|
|
|
|
message Message {
|
|
optional string conversation = 1;
|
|
optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2;
|
|
optional ImageMessage imageMessage = 3;
|
|
optional ContactMessage contactMessage = 4;
|
|
optional LocationMessage locationMessage = 5;
|
|
optional ExtendedTextMessage extendedTextMessage = 6;
|
|
optional DocumentMessage documentMessage = 7;
|
|
optional AudioMessage audioMessage = 8;
|
|
optional VideoMessage videoMessage = 9;
|
|
optional Call call = 10;
|
|
optional Chat chat = 11;
|
|
optional ProtocolMessage protocolMessage = 12;
|
|
optional ContactsArrayMessage contactsArrayMessage = 13;
|
|
optional HighlyStructuredMessage highlyStructuredMessage = 14;
|
|
optional SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15;
|
|
optional SendPaymentMessage sendPaymentMessage = 16;
|
|
optional LiveLocationMessage liveLocationMessage = 18;
|
|
optional RequestPaymentMessage requestPaymentMessage = 22;
|
|
optional DeclinePaymentRequestMessage declinePaymentRequestMessage = 23;
|
|
optional CancelPaymentRequestMessage cancelPaymentRequestMessage = 24;
|
|
optional TemplateMessage templateMessage = 25;
|
|
optional StickerMessage stickerMessage = 26;
|
|
optional GroupInviteMessage groupInviteMessage = 28;
|
|
optional TemplateButtonReplyMessage templateButtonReplyMessage = 29;
|
|
optional ProductMessage productMessage = 30;
|
|
optional DeviceSentMessage deviceSentMessage = 31;
|
|
optional MessageContextInfo messageContextInfo = 35;
|
|
optional ListMessage listMessage = 36;
|
|
optional FutureProofMessage viewOnceMessage = 37;
|
|
optional OrderMessage orderMessage = 38;
|
|
optional ListResponseMessage listResponseMessage = 39;
|
|
optional FutureProofMessage ephemeralMessage = 40;
|
|
optional InvoiceMessage invoiceMessage = 41;
|
|
optional ButtonsMessage buttonsMessage = 42;
|
|
optional ButtonsResponseMessage buttonsResponseMessage = 43;
|
|
optional PaymentInviteMessage paymentInviteMessage = 44;
|
|
optional InteractiveMessage interactiveMessage = 45;
|
|
optional ReactionMessage reactionMessage = 46;
|
|
optional StickerSyncRMRMessage stickerSyncRmrMessage = 47;
|
|
optional InteractiveResponseMessage interactiveResponseMessage = 48;
|
|
optional PollCreationMessage pollCreationMessage = 49;
|
|
optional PollUpdateMessage pollUpdateMessage = 50;
|
|
optional KeepInChatMessage keepInChatMessage = 51;
|
|
optional FutureProofMessage documentWithCaptionMessage = 53;
|
|
optional RequestPhoneNumberMessage requestPhoneNumberMessage = 54;
|
|
optional FutureProofMessage viewOnceMessageV2 = 55;
|
|
optional EncReactionMessage encReactionMessage = 56;
|
|
optional FutureProofMessage editedMessage = 58;
|
|
optional FutureProofMessage viewOnceMessageV2Extension = 59;
|
|
optional PollCreationMessage pollCreationMessageV2 = 60;
|
|
optional ScheduledCallCreationMessage scheduledCallCreationMessage = 61;
|
|
optional FutureProofMessage groupMentionedMessage = 62;
|
|
optional PinInChatMessage pinInChatMessage = 63;
|
|
optional PollCreationMessage pollCreationMessageV3 = 64;
|
|
optional ScheduledCallEditMessage scheduledCallEditMessage = 65;
|
|
optional VideoMessage ptvMessage = 66;
|
|
optional FutureProofMessage botInvokeMessage = 67;
|
|
optional CallLogMessage callLogMesssage = 69;
|
|
optional MessageHistoryBundle messageHistoryBundle = 70;
|
|
optional EncCommentMessage encCommentMessage = 71;
|
|
optional BCallMessage bcallMessage = 72;
|
|
optional FutureProofMessage lottieStickerMessage = 74;
|
|
optional EventMessage eventMessage = 75;
|
|
optional EncEventResponseMessage encEventResponseMessage = 76;
|
|
optional CommentMessage commentMessage = 77;
|
|
optional NewsletterAdminInviteMessage newsletterAdminInviteMessage = 78;
|
|
optional PlaceholderMessage placeholderMessage = 80;
|
|
optional SecretEncryptedMessage secretEncryptedMessage = 82;
|
|
optional AlbumMessage albumMessage = 83;
|
|
optional FutureProofMessage eventCoverImage = 85;
|
|
optional StickerPackMessage stickerPackMessage = 86;
|
|
optional FutureProofMessage statusMentionMessage = 87;
|
|
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
|
|
optional FutureProofMessage pollCreationOptionImageMessage = 90;
|
|
optional FutureProofMessage associatedChildMessage = 91;
|
|
optional FutureProofMessage groupStatusMentionMessage = 92;
|
|
optional FutureProofMessage pollCreationMessageV4 = 93;
|
|
optional FutureProofMessage statusAddYours = 95;
|
|
optional FutureProofMessage groupStatusMessage = 96;
|
|
optional AIRichResponseMessage richResponseMessage = 97;
|
|
optional StatusNotificationMessage statusNotificationMessage = 98;
|
|
optional FutureProofMessage limitSharingMessage = 99;
|
|
optional FutureProofMessage botTaskMessage = 100;
|
|
optional FutureProofMessage questionMessage = 101;
|
|
optional MessageHistoryNotice messageHistoryNotice = 102;
|
|
optional FutureProofMessage groupStatusMessageV2 = 103;
|
|
optional FutureProofMessage botForwardedMessage = 104;
|
|
optional StatusQuestionAnswerMessage statusQuestionAnswerMessage = 105;
|
|
optional FutureProofMessage questionReplyMessage = 106;
|
|
optional QuestionResponseMessage questionResponseMessage = 107;
|
|
optional StatusQuotedMessage statusQuotedMessage = 109;
|
|
optional StatusStickerInteractionMessage statusStickerInteractionMessage = 110;
|
|
optional PollCreationMessage pollCreationMessageV5 = 111;
|
|
optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
|
|
optional PollResultSnapshotMessage pollResultSnapshotMessageV3 = 115;
|
|
optional FutureProofMessage newsletterAdminProfileMessage = 116;
|
|
optional FutureProofMessage newsletterAdminProfileMessageV2 = 117;
|
|
optional FutureProofMessage spoilerMessage = 118;
|
|
optional PollCreationMessage pollCreationMessageV6 = 119;
|
|
optional ConditionalRevealMessage conditionalRevealMessage = 120;
|
|
optional PollAddOptionMessage pollAddOptionMessage = 121;
|
|
optional EventInviteMessage eventInviteMessage = 122;
|
|
optional GroupRootKeyShare groupRootKeyShare = 123;
|
|
optional P2PPaymentReminderNotification p2PPaymentReminderNotification = 124;
|
|
optional SplitPaymentMessage splitPaymentMessage = 125;
|
|
message AlbumMessage {
|
|
optional uint32 expectedImageCount = 2;
|
|
optional uint32 expectedVideoCount = 3;
|
|
optional ContextInfo contextInfo = 17;
|
|
}
|
|
|
|
message AppStateFatalExceptionNotification {
|
|
repeated string collectionNames = 1;
|
|
optional int64 timestamp = 2;
|
|
}
|
|
|
|
message AppStateSyncKey {
|
|
optional Message.AppStateSyncKeyId keyId = 1;
|
|
optional Message.AppStateSyncKeyData keyData = 2;
|
|
}
|
|
|
|
message AppStateSyncKeyData {
|
|
optional bytes keyData = 1;
|
|
optional Message.AppStateSyncKeyFingerprint fingerprint = 2;
|
|
optional int64 timestamp = 3;
|
|
}
|
|
|
|
message AppStateSyncKeyFingerprint {
|
|
optional uint32 rawId = 1;
|
|
optional uint32 currentIndex = 2;
|
|
repeated uint32 deviceIndexes = 3 [packed=true];
|
|
}
|
|
|
|
message AppStateSyncKeyId {
|
|
optional bytes keyId = 1;
|
|
}
|
|
|
|
message AppStateSyncKeyRequest {
|
|
repeated Message.AppStateSyncKeyId keyIds = 1;
|
|
}
|
|
|
|
message AppStateSyncKeyShare {
|
|
repeated Message.AppStateSyncKey keys = 1;
|
|
}
|
|
|
|
message AudioMessage {
|
|
optional string url = 1;
|
|
optional string mimetype = 2;
|
|
optional bytes fileSha256 = 3;
|
|
optional uint64 fileLength = 4;
|
|
optional uint32 seconds = 5;
|
|
optional bool ptt = 6;
|
|
optional bytes mediaKey = 7;
|
|
optional bytes fileEncSha256 = 8;
|
|
optional string directPath = 9;
|
|
optional int64 mediaKeyTimestamp = 10;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional bytes streamingSidecar = 18;
|
|
optional bytes waveform = 19;
|
|
optional fixed32 backgroundArgb = 20;
|
|
optional bool viewOnce = 21;
|
|
optional string accessibilityLabel = 22;
|
|
}
|
|
|
|
message BCallMessage {
|
|
optional string sessionId = 1;
|
|
optional MediaType mediaType = 2;
|
|
optional bytes masterKey = 3;
|
|
optional string caption = 4;
|
|
enum MediaType {
|
|
UNKNOWN = 0;
|
|
AUDIO = 1;
|
|
VIDEO = 2;
|
|
}
|
|
}
|
|
|
|
message ButtonsMessage {
|
|
optional string contentText = 6;
|
|
optional string footerText = 7;
|
|
optional ContextInfo contextInfo = 8;
|
|
repeated Button buttons = 9;
|
|
optional HeaderType headerType = 10;
|
|
oneof header {
|
|
string text = 1;
|
|
Message.DocumentMessage documentMessage = 2;
|
|
Message.ImageMessage imageMessage = 3;
|
|
Message.VideoMessage videoMessage = 4;
|
|
Message.LocationMessage locationMessage = 5;
|
|
}
|
|
message Button {
|
|
optional string buttonId = 1;
|
|
optional ButtonText buttonText = 2;
|
|
optional Type type = 3;
|
|
optional NativeFlowInfo nativeFlowInfo = 4;
|
|
message ButtonText {
|
|
optional string displayText = 1;
|
|
}
|
|
|
|
message NativeFlowInfo {
|
|
optional string name = 1;
|
|
optional string paramsJson = 2;
|
|
}
|
|
|
|
enum Type {
|
|
UNKNOWN = 0;
|
|
RESPONSE = 1;
|
|
NATIVE_FLOW = 2;
|
|
}
|
|
}
|
|
|
|
enum HeaderType {
|
|
UNKNOWN = 0;
|
|
EMPTY = 1;
|
|
TEXT = 2;
|
|
DOCUMENT = 3;
|
|
IMAGE = 4;
|
|
VIDEO = 5;
|
|
LOCATION = 6;
|
|
}
|
|
}
|
|
|
|
message ButtonsResponseMessage {
|
|
optional string selectedButtonId = 1;
|
|
optional ContextInfo contextInfo = 3;
|
|
optional Type type = 4;
|
|
oneof response {
|
|
string selectedDisplayText = 2;
|
|
}
|
|
enum Type {
|
|
UNKNOWN = 0;
|
|
DISPLAY_TEXT = 1;
|
|
}
|
|
}
|
|
|
|
message Call {
|
|
optional bytes callKey = 1;
|
|
optional string conversionSource = 2;
|
|
optional bytes conversionData = 3;
|
|
optional uint32 conversionDelaySeconds = 4;
|
|
optional string ctwaSignals = 5;
|
|
optional bytes ctwaPayload = 6;
|
|
optional ContextInfo contextInfo = 7;
|
|
optional string nativeFlowCallButtonPayload = 8;
|
|
optional string deeplinkPayload = 9;
|
|
optional MessageContextInfo messageContextInfo = 10;
|
|
optional uint32 callEntryPoint = 11;
|
|
}
|
|
|
|
message CallLogMessage {
|
|
optional bool isVideo = 1;
|
|
optional CallOutcome callOutcome = 2;
|
|
optional int64 durationSecs = 3;
|
|
optional CallType callType = 4;
|
|
repeated CallParticipant participants = 5;
|
|
enum CallOutcome {
|
|
CONNECTED = 0;
|
|
MISSED = 1;
|
|
FAILED = 2;
|
|
REJECTED = 3;
|
|
ACCEPTED_ELSEWHERE = 4;
|
|
ONGOING = 5;
|
|
SILENCED_BY_DND = 6;
|
|
SILENCED_UNKNOWN_CALLER = 7;
|
|
}
|
|
message CallParticipant {
|
|
optional string jid = 1;
|
|
optional Message.CallLogMessage.CallOutcome callOutcome = 2;
|
|
}
|
|
|
|
enum CallType {
|
|
REGULAR = 0;
|
|
SCHEDULED_CALL = 1;
|
|
VOICE_CHAT = 2;
|
|
}
|
|
}
|
|
|
|
message CancelPaymentRequestMessage {
|
|
optional MessageKey key = 1;
|
|
}
|
|
|
|
message Chat {
|
|
optional string displayName = 1;
|
|
optional string id = 2;
|
|
}
|
|
|
|
message ChatCustomImageWallpaper {
|
|
optional string directPath = 1;
|
|
optional bytes mediaKey = 2;
|
|
optional bytes fileEncSha256 = 3;
|
|
optional bytes fileSha256 = 4;
|
|
optional float dimLevel = 5;
|
|
}
|
|
|
|
message ChatDefaultWallpaper {
|
|
optional bool isDoodleEnabled = 1;
|
|
}
|
|
|
|
message ChatSolidColorWallpaper {
|
|
optional string colorLight = 1;
|
|
optional string colorDark = 2;
|
|
optional bool isDoodleEnabled = 3;
|
|
}
|
|
|
|
message ChatStockImageWallpaper {
|
|
optional string stockImageId = 1;
|
|
optional float dimLevel = 2;
|
|
}
|
|
|
|
message ChatThemeSetting {
|
|
optional int64 settingTimestampMs = 1;
|
|
optional bool clearTheme = 2;
|
|
optional string colorSchemeId = 3;
|
|
oneof wallpaper {
|
|
Message.ChatDefaultWallpaper defaultWallpaper = 10;
|
|
Message.ChatSolidColorWallpaper solidColor = 11;
|
|
Message.ChatStockImageWallpaper stockImage = 12;
|
|
Message.ChatCustomImageWallpaper customImage = 13;
|
|
}
|
|
}
|
|
|
|
message CloudAPIThreadControlNotification {
|
|
optional CloudAPIThreadControl status = 1;
|
|
optional int64 senderNotificationTimestampMs = 2;
|
|
optional string consumerLid = 3;
|
|
optional string consumerPhoneNumber = 4;
|
|
optional CloudAPIThreadControlNotificationContent notificationContent = 5;
|
|
optional bool shouldSuppressNotification = 6;
|
|
enum CloudAPIThreadControl {
|
|
UNKNOWN = 0;
|
|
CONTROL_PASSED = 1;
|
|
CONTROL_TAKEN = 2;
|
|
INFO = 3;
|
|
}
|
|
message CloudAPIThreadControlNotificationContent {
|
|
optional string handoffNotificationText = 1;
|
|
optional string extraJson = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message CommentMessage {
|
|
optional Message message = 1;
|
|
optional MessageKey targetMessageKey = 2;
|
|
}
|
|
|
|
message ConditionalRevealMessage {
|
|
optional bytes encPayload = 1;
|
|
optional bytes encIv = 2;
|
|
optional ConditionalRevealMessageType conditionalRevealMessageType = 3;
|
|
optional string revealKeyId = 4;
|
|
enum ConditionalRevealMessageType {
|
|
UNKNOWN = 0;
|
|
SCHEDULED_MESSAGE = 1;
|
|
}
|
|
}
|
|
|
|
message ContactMessage {
|
|
optional string displayName = 1;
|
|
optional string vcard = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional bool isSelfContact = 18;
|
|
}
|
|
|
|
message ContactsArrayMessage {
|
|
optional string displayName = 1;
|
|
repeated Message.ContactMessage contacts = 2;
|
|
optional ContextInfo contextInfo = 17;
|
|
}
|
|
|
|
message DeclinePaymentRequestMessage {
|
|
optional MessageKey key = 1;
|
|
}
|
|
|
|
message DeviceSentMessage {
|
|
optional string destinationJid = 1;
|
|
optional Message message = 2;
|
|
optional string phash = 3;
|
|
}
|
|
|
|
message DocumentMessage {
|
|
optional string url = 1;
|
|
optional string mimetype = 2;
|
|
optional string title = 3;
|
|
optional bytes fileSha256 = 4;
|
|
optional uint64 fileLength = 5;
|
|
optional uint32 pageCount = 6;
|
|
optional bytes mediaKey = 7;
|
|
optional string fileName = 8;
|
|
optional bytes fileEncSha256 = 9;
|
|
optional string directPath = 10;
|
|
optional int64 mediaKeyTimestamp = 11;
|
|
optional bool contactVcard = 12;
|
|
optional string thumbnailDirectPath = 13;
|
|
optional bytes thumbnailSha256 = 14;
|
|
optional bytes thumbnailEncSha256 = 15;
|
|
optional bytes jpegThumbnail = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional uint32 thumbnailHeight = 18;
|
|
optional uint32 thumbnailWidth = 19;
|
|
optional string caption = 20;
|
|
optional string accessibilityLabel = 21;
|
|
}
|
|
|
|
message EncCommentMessage {
|
|
optional MessageKey targetMessageKey = 1;
|
|
optional bytes encPayload = 2;
|
|
optional bytes encIv = 3;
|
|
}
|
|
|
|
message EncEventResponseMessage {
|
|
optional MessageKey eventCreationMessageKey = 1;
|
|
optional bytes encPayload = 2;
|
|
optional bytes encIv = 3;
|
|
}
|
|
|
|
message EncReactionMessage {
|
|
optional MessageKey targetMessageKey = 1;
|
|
optional bytes encPayload = 2;
|
|
optional bytes encIv = 3;
|
|
}
|
|
|
|
message EventInviteMessage {
|
|
optional ContextInfo contextInfo = 1;
|
|
optional string eventId = 2;
|
|
optional string eventTitle = 3;
|
|
optional bytes jpegThumbnail = 4;
|
|
optional int64 startTime = 5;
|
|
optional string caption = 6;
|
|
optional bool isCanceled = 7;
|
|
optional int64 endTime = 8;
|
|
}
|
|
|
|
message EventMessage {
|
|
optional ContextInfo contextInfo = 1;
|
|
optional bool isCanceled = 2;
|
|
optional string name = 3;
|
|
optional string description = 4;
|
|
optional Message.LocationMessage location = 5;
|
|
optional string joinLink = 6;
|
|
optional int64 startTime = 7;
|
|
optional int64 endTime = 8;
|
|
optional bool extraGuestsAllowed = 9;
|
|
optional bool isScheduleCall = 10;
|
|
optional bool hasReminder = 11;
|
|
optional int64 reminderOffsetSec = 12;
|
|
}
|
|
|
|
message EventResponseMessage {
|
|
optional EventResponseType response = 1;
|
|
optional int64 timestampMs = 2;
|
|
optional int32 extraGuestCount = 3;
|
|
enum EventResponseType {
|
|
UNKNOWN = 0;
|
|
GOING = 1;
|
|
NOT_GOING = 2;
|
|
MAYBE = 3;
|
|
}
|
|
}
|
|
|
|
message ExtendedTextMessage {
|
|
optional string text = 1;
|
|
optional string matchedText = 2;
|
|
optional string description = 5;
|
|
optional string title = 6;
|
|
optional fixed32 textArgb = 7;
|
|
optional fixed32 backgroundArgb = 8;
|
|
optional FontType font = 9;
|
|
optional PreviewType previewType = 10;
|
|
optional bytes jpegThumbnail = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional bool doNotPlayInline = 18;
|
|
optional string thumbnailDirectPath = 19;
|
|
optional bytes thumbnailSha256 = 20;
|
|
optional bytes thumbnailEncSha256 = 21;
|
|
optional bytes mediaKey = 22;
|
|
optional int64 mediaKeyTimestamp = 23;
|
|
optional uint32 thumbnailHeight = 24;
|
|
optional uint32 thumbnailWidth = 25;
|
|
optional InviteLinkGroupType inviteLinkGroupType = 26;
|
|
optional string inviteLinkParentGroupSubjectV2 = 27;
|
|
optional bytes inviteLinkParentGroupThumbnailV2 = 28;
|
|
optional InviteLinkGroupType inviteLinkGroupTypeV2 = 29;
|
|
optional bool viewOnce = 30;
|
|
optional uint32 videoHeight = 31;
|
|
optional uint32 videoWidth = 32;
|
|
optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
|
|
optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
|
|
optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
|
|
repeated Message.VideoEndCard endCardTiles = 36;
|
|
optional string videoContentUrl = 37;
|
|
optional EmbeddedMusic musicMetadata = 38;
|
|
optional Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;
|
|
enum FontType {
|
|
SYSTEM = 0;
|
|
SYSTEM_TEXT = 1;
|
|
FB_SCRIPT = 2;
|
|
SYSTEM_BOLD = 6;
|
|
MORNINGBREEZE_REGULAR = 7;
|
|
CALISTOGA_REGULAR = 8;
|
|
EXO2_EXTRABOLD = 9;
|
|
COURIERPRIME_BOLD = 10;
|
|
}
|
|
enum InviteLinkGroupType {
|
|
DEFAULT = 0;
|
|
PARENT = 1;
|
|
SUB = 2;
|
|
DEFAULT_SUB = 3;
|
|
}
|
|
enum PreviewType {
|
|
NONE = 0;
|
|
VIDEO = 1;
|
|
PLACEHOLDER = 4;
|
|
IMAGE = 5;
|
|
PAYMENT_LINKS = 6;
|
|
PROFILE = 7;
|
|
}
|
|
}
|
|
|
|
message FullHistorySyncOnDemandConfig {
|
|
optional uint64 historyFromTimestamp = 1;
|
|
optional uint32 historyDurationDays = 2;
|
|
}
|
|
|
|
message FullHistorySyncOnDemandRequestMetadata {
|
|
optional string requestId = 1;
|
|
optional string businessProduct = 2;
|
|
optional bytes opaqueClientData = 3;
|
|
}
|
|
|
|
message FutureProofMessage {
|
|
optional Message message = 1;
|
|
}
|
|
|
|
message GroupInviteMessage {
|
|
optional string groupJid = 1;
|
|
optional string inviteCode = 2;
|
|
optional int64 inviteExpiration = 3;
|
|
optional string groupName = 4;
|
|
optional bytes jpegThumbnail = 5;
|
|
optional string caption = 6;
|
|
optional ContextInfo contextInfo = 7;
|
|
optional GroupType groupType = 8;
|
|
enum GroupType {
|
|
DEFAULT = 0;
|
|
PARENT = 1;
|
|
}
|
|
}
|
|
|
|
message HighlyStructuredMessage {
|
|
optional string namespace = 1;
|
|
optional string elementName = 2;
|
|
repeated string params = 3;
|
|
optional string fallbackLg = 4;
|
|
optional string fallbackLc = 5;
|
|
repeated HSMLocalizableParameter localizableParams = 6;
|
|
optional string deterministicLg = 7;
|
|
optional string deterministicLc = 8;
|
|
optional Message.TemplateMessage hydratedHsm = 9;
|
|
message HSMLocalizableParameter {
|
|
optional string default = 1;
|
|
oneof paramOneof {
|
|
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMCurrency currency = 2;
|
|
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime dateTime = 3;
|
|
}
|
|
message HSMCurrency {
|
|
optional string currencyCode = 1;
|
|
optional int64 amount1000 = 2;
|
|
}
|
|
|
|
message HSMDateTime {
|
|
oneof datetimeOneof {
|
|
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeComponent component = 1;
|
|
Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeUnixEpoch unixEpoch = 2;
|
|
}
|
|
message HSMDateTimeComponent {
|
|
optional DayOfWeekType dayOfWeek = 1;
|
|
optional uint32 year = 2;
|
|
optional uint32 month = 3;
|
|
optional uint32 dayOfMonth = 4;
|
|
optional uint32 hour = 5;
|
|
optional uint32 minute = 6;
|
|
optional CalendarType calendar = 7;
|
|
enum CalendarType {
|
|
GREGORIAN = 1;
|
|
SOLAR_HIJRI = 2;
|
|
}
|
|
enum DayOfWeekType {
|
|
MONDAY = 1;
|
|
TUESDAY = 2;
|
|
WEDNESDAY = 3;
|
|
THURSDAY = 4;
|
|
FRIDAY = 5;
|
|
SATURDAY = 6;
|
|
SUNDAY = 7;
|
|
}
|
|
}
|
|
|
|
message HSMDateTimeUnixEpoch {
|
|
optional int64 timestamp = 1;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
message HistorySyncMessageAccessStatus {
|
|
optional bool completeAccessGranted = 1;
|
|
}
|
|
|
|
message HistorySyncNotification {
|
|
optional bytes fileSha256 = 1;
|
|
optional uint64 fileLength = 2;
|
|
optional bytes mediaKey = 3;
|
|
optional bytes fileEncSha256 = 4;
|
|
optional string directPath = 5;
|
|
optional Message.HistorySyncType syncType = 6;
|
|
optional uint32 chunkOrder = 7;
|
|
optional string originalMessageId = 8;
|
|
optional uint32 progress = 9;
|
|
optional int64 oldestMsgInChunkTimestampSec = 10;
|
|
optional bytes initialHistBootstrapInlinePayload = 11;
|
|
optional string peerDataRequestSessionId = 12;
|
|
optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
|
|
optional string encHandle = 14;
|
|
optional Message.HistorySyncMessageAccessStatus messageAccessStatus = 15;
|
|
}
|
|
|
|
enum HistorySyncType {
|
|
INITIAL_BOOTSTRAP = 0;
|
|
INITIAL_STATUS_V3 = 1;
|
|
FULL = 2;
|
|
RECENT = 3;
|
|
PUSH_NAME = 4;
|
|
NON_BLOCKING_DATA = 5;
|
|
ON_DEMAND = 6;
|
|
NO_HISTORY = 7;
|
|
MESSAGE_ACCESS_STATUS = 8;
|
|
}
|
|
message ImageMessage {
|
|
optional string url = 1;
|
|
optional string mimetype = 2;
|
|
optional string caption = 3;
|
|
optional bytes fileSha256 = 4;
|
|
optional uint64 fileLength = 5;
|
|
optional uint32 height = 6;
|
|
optional uint32 width = 7;
|
|
optional bytes mediaKey = 8;
|
|
optional bytes fileEncSha256 = 9;
|
|
repeated InteractiveAnnotation interactiveAnnotations = 10;
|
|
optional string directPath = 11;
|
|
optional int64 mediaKeyTimestamp = 12;
|
|
optional bytes jpegThumbnail = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional bytes firstScanSidecar = 18;
|
|
optional uint32 firstScanLength = 19;
|
|
optional uint32 experimentGroupId = 20;
|
|
optional bytes scansSidecar = 21;
|
|
repeated uint32 scanLengths = 22;
|
|
optional bytes midQualityFileSha256 = 23;
|
|
optional bytes midQualityFileEncSha256 = 24;
|
|
optional bool viewOnce = 25;
|
|
optional string thumbnailDirectPath = 26;
|
|
optional bytes thumbnailSha256 = 27;
|
|
optional bytes thumbnailEncSha256 = 28;
|
|
optional string staticUrl = 29;
|
|
repeated InteractiveAnnotation annotations = 30;
|
|
optional ImageSourceType imageSourceType = 31;
|
|
optional string accessibilityLabel = 32;
|
|
optional string qrUrl = 34;
|
|
enum ImageSourceType {
|
|
USER_IMAGE = 0;
|
|
AI_GENERATED = 1;
|
|
AI_MODIFIED = 2;
|
|
RASTERIZED_TEXT_STATUS = 3;
|
|
}
|
|
}
|
|
|
|
message InitialSecurityNotificationSettingSync {
|
|
optional bool securityNotificationEnabled = 1;
|
|
}
|
|
|
|
enum InsightDeliveryState {
|
|
SENT = 0;
|
|
DELIVERED = 1;
|
|
READ = 2;
|
|
REPLIED = 3;
|
|
QUICK_REPLIED = 4;
|
|
}
|
|
message InteractiveMessage {
|
|
optional Header header = 1;
|
|
optional Body body = 2;
|
|
optional Footer footer = 3;
|
|
optional BloksWidget bloksWidget = 8;
|
|
optional ContextInfo contextInfo = 15;
|
|
optional UrlTrackingMap urlTrackingMap = 16;
|
|
oneof interactiveMessage {
|
|
Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;
|
|
Message.InteractiveMessage.CollectionMessage collectionMessage = 5;
|
|
Message.InteractiveMessage.NativeFlowMessage nativeFlowMessage = 6;
|
|
Message.InteractiveMessage.CarouselMessage carouselMessage = 7;
|
|
}
|
|
message BloksWidget {
|
|
optional string uuid = 1;
|
|
optional string data = 2;
|
|
optional string type = 3;
|
|
}
|
|
|
|
message Body {
|
|
optional string text = 1;
|
|
}
|
|
|
|
message CarouselMessage {
|
|
repeated Message.InteractiveMessage cards = 1;
|
|
optional int32 messageVersion = 2;
|
|
optional CarouselCardType carouselCardType = 3;
|
|
enum CarouselCardType {
|
|
UNKNOWN = 0;
|
|
HSCROLL_CARDS = 1;
|
|
ALBUM_IMAGE = 2;
|
|
}
|
|
}
|
|
|
|
message CollectionMessage {
|
|
optional string bizJid = 1;
|
|
optional string id = 2;
|
|
optional int32 messageVersion = 3;
|
|
}
|
|
|
|
message Footer {
|
|
optional string text = 1;
|
|
optional bool hasMediaAttachment = 3;
|
|
oneof media {
|
|
Message.AudioMessage audioMessage = 2;
|
|
}
|
|
}
|
|
|
|
message Header {
|
|
optional string title = 1;
|
|
optional string subtitle = 2;
|
|
optional bool hasMediaAttachment = 5;
|
|
optional Message.InteractiveMessage.BloksWidget bloksWidget = 10;
|
|
oneof media {
|
|
Message.DocumentMessage documentMessage = 3;
|
|
Message.ImageMessage imageMessage = 4;
|
|
bytes jpegThumbnail = 6;
|
|
Message.VideoMessage videoMessage = 7;
|
|
Message.LocationMessage locationMessage = 8;
|
|
Message.ProductMessage productMessage = 9;
|
|
}
|
|
}
|
|
|
|
message NativeFlowMessage {
|
|
repeated NativeFlowButton buttons = 1;
|
|
optional string messageParamsJson = 2;
|
|
optional int32 messageVersion = 3;
|
|
message NativeFlowButton {
|
|
optional string name = 1;
|
|
optional string buttonParamsJson = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message ShopMessage {
|
|
optional string id = 1;
|
|
optional Surface surface = 2;
|
|
optional int32 messageVersion = 3;
|
|
enum Surface {
|
|
UNKNOWN_SURFACE = 0;
|
|
FB = 1;
|
|
IG = 2;
|
|
WA = 3;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message InteractiveResponseMessage {
|
|
optional Body body = 1;
|
|
optional ContextInfo contextInfo = 15;
|
|
oneof interactiveResponseMessage {
|
|
Message.InteractiveResponseMessage.NativeFlowResponseMessage nativeFlowResponseMessage = 2;
|
|
}
|
|
message Body {
|
|
optional string text = 1;
|
|
optional Format format = 2;
|
|
enum Format {
|
|
DEFAULT = 0;
|
|
EXTENSIONS_1 = 1;
|
|
}
|
|
}
|
|
|
|
message NativeFlowResponseMessage {
|
|
optional string name = 1;
|
|
optional string paramsJson = 2;
|
|
optional int32 version = 3;
|
|
}
|
|
|
|
}
|
|
|
|
message InvoiceMessage {
|
|
optional string note = 1;
|
|
optional string token = 2;
|
|
optional AttachmentType attachmentType = 3;
|
|
optional string attachmentMimetype = 4;
|
|
optional bytes attachmentMediaKey = 5;
|
|
optional int64 attachmentMediaKeyTimestamp = 6;
|
|
optional bytes attachmentFileSha256 = 7;
|
|
optional bytes attachmentFileEncSha256 = 8;
|
|
optional string attachmentDirectPath = 9;
|
|
optional bytes attachmentJpegThumbnail = 10;
|
|
enum AttachmentType {
|
|
IMAGE = 0;
|
|
PDF = 1;
|
|
}
|
|
}
|
|
|
|
message KeepInChatMessage {
|
|
optional MessageKey key = 1;
|
|
optional KeepType keepType = 2;
|
|
optional int64 timestampMs = 3;
|
|
}
|
|
|
|
message LinkPreviewMetadata {
|
|
optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
|
|
optional Message.URLMetadata urlMetadata = 2;
|
|
optional uint32 fbExperimentId = 3;
|
|
optional uint32 linkMediaDuration = 4;
|
|
optional SocialMediaPostType socialMediaPostType = 5;
|
|
optional bool linkInlineVideoMuted = 6;
|
|
optional string videoContentUrl = 7;
|
|
optional EmbeddedMusic musicMetadata = 8;
|
|
optional string videoContentCaption = 9;
|
|
enum SocialMediaPostType {
|
|
NONE = 0;
|
|
REEL = 1;
|
|
LIVE_VIDEO = 2;
|
|
LONG_VIDEO = 3;
|
|
SINGLE_IMAGE = 4;
|
|
CAROUSEL = 5;
|
|
}
|
|
}
|
|
|
|
message ListMessage {
|
|
optional string title = 1;
|
|
optional string description = 2;
|
|
optional string buttonText = 3;
|
|
optional ListType listType = 4;
|
|
repeated Section sections = 5;
|
|
optional ProductListInfo productListInfo = 6;
|
|
optional string footerText = 7;
|
|
optional ContextInfo contextInfo = 8;
|
|
enum ListType {
|
|
UNKNOWN = 0;
|
|
SINGLE_SELECT = 1;
|
|
PRODUCT_LIST = 2;
|
|
}
|
|
message Product {
|
|
optional string productId = 1;
|
|
}
|
|
|
|
message ProductListHeaderImage {
|
|
optional string productId = 1;
|
|
optional bytes jpegThumbnail = 2;
|
|
}
|
|
|
|
message ProductListInfo {
|
|
repeated Message.ListMessage.ProductSection productSections = 1;
|
|
optional Message.ListMessage.ProductListHeaderImage headerImage = 2;
|
|
optional string businessOwnerJid = 3;
|
|
}
|
|
|
|
message ProductSection {
|
|
optional string title = 1;
|
|
repeated Message.ListMessage.Product products = 2;
|
|
}
|
|
|
|
message Row {
|
|
optional string title = 1;
|
|
optional string description = 2;
|
|
optional string rowId = 3;
|
|
}
|
|
|
|
message Section {
|
|
optional string title = 1;
|
|
repeated Message.ListMessage.Row rows = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message ListResponseMessage {
|
|
optional string title = 1;
|
|
optional ListType listType = 2;
|
|
optional SingleSelectReply singleSelectReply = 3;
|
|
optional ContextInfo contextInfo = 4;
|
|
optional string description = 5;
|
|
enum ListType {
|
|
UNKNOWN = 0;
|
|
SINGLE_SELECT = 1;
|
|
}
|
|
message SingleSelectReply {
|
|
optional string selectedRowId = 1;
|
|
}
|
|
|
|
}
|
|
|
|
message LiveLocationMessage {
|
|
optional double degreesLatitude = 1;
|
|
optional double degreesLongitude = 2;
|
|
optional uint32 accuracyInMeters = 3;
|
|
optional float speedInMps = 4;
|
|
optional uint32 degreesClockwiseFromMagneticNorth = 5;
|
|
optional string caption = 6;
|
|
optional int64 sequenceNumber = 7;
|
|
optional uint32 timeOffset = 8;
|
|
optional bytes jpegThumbnail = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
}
|
|
|
|
message LocationMessage {
|
|
optional double degreesLatitude = 1;
|
|
optional double degreesLongitude = 2;
|
|
optional string name = 3;
|
|
optional string address = 4;
|
|
optional string url = 5;
|
|
optional bool isLive = 6;
|
|
optional uint32 accuracyInMeters = 7;
|
|
optional float speedInMps = 8;
|
|
optional uint32 degreesClockwiseFromMagneticNorth = 9;
|
|
optional string comment = 11;
|
|
optional bytes jpegThumbnail = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
}
|
|
|
|
message MMSThumbnailMetadata {
|
|
optional string thumbnailDirectPath = 1;
|
|
optional bytes thumbnailSha256 = 2;
|
|
optional bytes thumbnailEncSha256 = 3;
|
|
optional bytes mediaKey = 4;
|
|
optional int64 mediaKeyTimestamp = 5;
|
|
optional uint32 thumbnailHeight = 6;
|
|
optional uint32 thumbnailWidth = 7;
|
|
}
|
|
|
|
message MessageHistoryBundle {
|
|
optional string mimetype = 1;
|
|
optional bytes fileSha256 = 2;
|
|
optional bytes mediaKey = 3;
|
|
optional bytes fileEncSha256 = 4;
|
|
optional string directPath = 5;
|
|
optional int64 mediaKeyTimestamp = 6;
|
|
optional ContextInfo contextInfo = 7;
|
|
optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
|
|
}
|
|
|
|
message MessageHistoryMetadata {
|
|
repeated string historyReceivers = 1;
|
|
optional int64 oldestMessageTimestampInWindow = 2;
|
|
optional int64 messageCount = 3;
|
|
repeated string nonHistoryReceivers = 4;
|
|
optional int64 oldestMessageTimestampInBundle = 5;
|
|
}
|
|
|
|
message MessageHistoryNotice {
|
|
optional ContextInfo contextInfo = 1;
|
|
optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
|
|
}
|
|
|
|
message NewsletterAdminInviteMessage {
|
|
optional string newsletterJid = 1;
|
|
optional string newsletterName = 2;
|
|
optional bytes jpegThumbnail = 3;
|
|
optional string caption = 4;
|
|
optional int64 inviteExpiration = 5;
|
|
optional ContextInfo contextInfo = 6;
|
|
}
|
|
|
|
message NewsletterFollowerInviteMessage {
|
|
optional string newsletterJid = 1;
|
|
optional string newsletterName = 2;
|
|
optional bytes jpegThumbnail = 3;
|
|
optional string caption = 4;
|
|
optional ContextInfo contextInfo = 5;
|
|
}
|
|
|
|
message OrderMessage {
|
|
optional string orderId = 1;
|
|
optional bytes thumbnail = 2;
|
|
optional int32 itemCount = 3;
|
|
optional OrderStatus status = 4;
|
|
optional OrderSurface surface = 5;
|
|
optional string message = 6;
|
|
optional string orderTitle = 7;
|
|
optional string sellerJid = 8;
|
|
optional string token = 9;
|
|
optional int64 totalAmount1000 = 10;
|
|
optional string totalCurrencyCode = 11;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional int32 messageVersion = 12;
|
|
optional MessageKey orderRequestMessageId = 13;
|
|
optional string catalogType = 15;
|
|
enum OrderStatus {
|
|
INQUIRY = 1;
|
|
ACCEPTED = 2;
|
|
DECLINED = 3;
|
|
}
|
|
enum OrderSurface {
|
|
CATALOG = 1;
|
|
}
|
|
}
|
|
|
|
message P2PPaymentReminderNotification {
|
|
optional string reminderId = 1;
|
|
optional Money amount = 2;
|
|
optional ReminderFrequency frequency = 3;
|
|
optional int64 nextReminderTimestamp = 4;
|
|
optional int64 expiryTimestamp = 5;
|
|
optional ReminderState state = 6;
|
|
optional string description = 7;
|
|
optional string creatorJid = 8;
|
|
optional string receiverJid = 9;
|
|
optional string upiId = 10;
|
|
optional int64 createdTimestamp = 11;
|
|
enum ReminderFrequency {
|
|
UNKNOWN_FREQUENCY = 0;
|
|
WEEKLY = 1;
|
|
BIWEEKLY = 2;
|
|
MONTHLY = 3;
|
|
CUSTOM = 4;
|
|
}
|
|
enum ReminderState {
|
|
UNKNOWN_STATE = 0;
|
|
ACTIVE = 1;
|
|
PAUSED = 2;
|
|
STOPPED = 3;
|
|
EXPIRED = 4;
|
|
CANCELLED = 5;
|
|
}
|
|
}
|
|
|
|
message PaymentExtendedMetadata {
|
|
optional uint32 type = 1;
|
|
optional string platform = 2;
|
|
}
|
|
|
|
message PaymentInviteMessage {
|
|
optional ServiceType serviceType = 1;
|
|
optional int64 expiryTimestamp = 2;
|
|
optional bool incentiveEligible = 3;
|
|
optional string referralId = 4;
|
|
optional InviteType inviteType = 5;
|
|
enum InviteType {
|
|
DEFAULT = 0;
|
|
MAPPER = 1;
|
|
}
|
|
enum ServiceType {
|
|
UNKNOWN = 0;
|
|
FBPAY = 1;
|
|
NOVI = 2;
|
|
UPI = 3;
|
|
}
|
|
}
|
|
|
|
message PaymentLinkMetadata {
|
|
optional PaymentLinkButton button = 1;
|
|
optional PaymentLinkHeader header = 2;
|
|
optional PaymentLinkProvider provider = 3;
|
|
message PaymentLinkButton {
|
|
optional string displayText = 1;
|
|
}
|
|
|
|
message PaymentLinkHeader {
|
|
optional PaymentLinkHeaderType headerType = 1;
|
|
enum PaymentLinkHeaderType {
|
|
LINK_PREVIEW = 0;
|
|
ORDER = 1;
|
|
}
|
|
}
|
|
|
|
message PaymentLinkProvider {
|
|
optional string paramsJson = 1;
|
|
}
|
|
|
|
}
|
|
|
|
message PeerDataOperationRequestMessage {
|
|
optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
|
|
repeated RequestStickerReupload requestStickerReupload = 2;
|
|
repeated RequestUrlPreview requestUrlPreview = 3;
|
|
optional HistorySyncOnDemandRequest historySyncOnDemandRequest = 4;
|
|
repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
|
|
optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
|
|
optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
|
|
optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
|
|
optional GalaxyFlowAction galaxyFlowAction = 9;
|
|
optional CompanionCanonicalUserNonceFetchRequest companionCanonicalUserNonceFetchRequest = 10;
|
|
optional BizBroadcastInsightsContactListRequest bizBroadcastInsightsContactListRequest = 11;
|
|
optional BizBroadcastInsightsRefreshRequest bizBroadcastInsightsRefreshRequest = 12;
|
|
message BizBroadcastInsightsContactListRequest {
|
|
optional string campaignId = 1;
|
|
}
|
|
|
|
message BizBroadcastInsightsRefreshRequest {
|
|
optional string campaignId = 1;
|
|
}
|
|
|
|
message CompanionCanonicalUserNonceFetchRequest {
|
|
optional string registrationTraceId = 1;
|
|
}
|
|
|
|
message FullHistorySyncOnDemandRequest {
|
|
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
|
optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
|
|
optional Message.FullHistorySyncOnDemandConfig fullHistorySyncOnDemandConfig = 3;
|
|
}
|
|
|
|
message GalaxyFlowAction {
|
|
optional GalaxyFlowActionType type = 1;
|
|
optional string flowId = 2;
|
|
optional string stanzaId = 3;
|
|
optional string galaxyFlowDownloadRequestId = 4;
|
|
optional string agmId = 5;
|
|
enum GalaxyFlowActionType {
|
|
NOTIFY_LAUNCH = 1;
|
|
DOWNLOAD_RESPONSES = 2;
|
|
}
|
|
}
|
|
|
|
message HistorySyncChunkRetryRequest {
|
|
optional Message.HistorySyncType syncType = 1;
|
|
optional uint32 chunkOrder = 2;
|
|
optional string chunkNotificationId = 3;
|
|
optional bool regenerateChunk = 4;
|
|
}
|
|
|
|
message HistorySyncOnDemandRequest {
|
|
optional string chatJid = 1;
|
|
optional string oldestMsgId = 2;
|
|
optional bool oldestMsgFromMe = 3;
|
|
optional int32 onDemandMsgCount = 4;
|
|
optional int64 oldestMsgTimestampMs = 5;
|
|
optional string accountLid = 6;
|
|
optional bool supportInlineResponse = 7;
|
|
}
|
|
|
|
message PlaceholderMessageResendRequest {
|
|
optional MessageKey messageKey = 1;
|
|
}
|
|
|
|
message RequestStickerReupload {
|
|
optional string fileSha256 = 1;
|
|
}
|
|
|
|
message RequestUrlPreview {
|
|
optional string url = 1;
|
|
optional bool includeHqThumbnail = 2;
|
|
}
|
|
|
|
message SyncDCollectionFatalRecoveryRequest {
|
|
optional string collectionName = 1;
|
|
optional int64 timestamp = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message PeerDataOperationRequestResponseMessage {
|
|
optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
|
|
optional string stanzaId = 2;
|
|
repeated PeerDataOperationResult peerDataOperationResult = 3;
|
|
message PeerDataOperationResult {
|
|
optional MediaRetryNotification.ResultType mediaUploadResult = 1;
|
|
optional Message.StickerMessage stickerMessage = 2;
|
|
optional LinkPreviewResponse linkPreviewResponse = 3;
|
|
optional PlaceholderMessageResendResponse placeholderMessageResendResponse = 4;
|
|
optional WaffleNonceFetchResponse waffleNonceFetchRequestResponse = 5;
|
|
optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
|
|
optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
|
|
optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
|
|
optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
|
|
optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
|
|
optional FlowResponsesCsvBundle flowResponsesCsvBundle = 11;
|
|
optional BizBroadcastInsightsContactListResponse bizBroadcastInsightsContactListResponse = 12;
|
|
message BizBroadcastInsightsContactListResponse {
|
|
optional string campaignId = 1;
|
|
optional int64 timestampMs = 2;
|
|
repeated Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState contacts = 3;
|
|
}
|
|
|
|
message BizBroadcastInsightsContactState {
|
|
optional string contactJid = 1;
|
|
optional Message.InsightDeliveryState state = 2;
|
|
}
|
|
|
|
message CompanionCanonicalUserNonceFetchResponse {
|
|
optional string nonce = 1;
|
|
optional string waFbid = 2;
|
|
optional bool forceRefresh = 3;
|
|
}
|
|
|
|
message CompanionMetaNonceFetchResponse {
|
|
optional string nonce = 1;
|
|
}
|
|
|
|
message FlowResponsesCsvBundle {
|
|
optional string flowId = 1;
|
|
optional string galaxyFlowDownloadRequestId = 2;
|
|
optional string fileName = 3;
|
|
optional string mimetype = 4;
|
|
optional bytes fileSha256 = 5;
|
|
optional bytes mediaKey = 6;
|
|
optional bytes fileEncSha256 = 7;
|
|
optional string directPath = 8;
|
|
optional int64 mediaKeyTimestamp = 9;
|
|
optional uint64 fileLength = 10;
|
|
}
|
|
|
|
message FullHistorySyncOnDemandRequestResponse {
|
|
optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
|
|
optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
|
|
}
|
|
|
|
enum FullHistorySyncOnDemandResponseCode {
|
|
REQUEST_SUCCESS = 0;
|
|
REQUEST_TIME_EXPIRED = 1;
|
|
DECLINED_SHARING_HISTORY = 2;
|
|
GENERIC_ERROR = 3;
|
|
ERROR_REQUEST_ON_NON_SMB_PRIMARY = 4;
|
|
ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
|
|
ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
|
|
ERROR_MULTI_PROVIDER_NOT_CONFIGURED = 7;
|
|
}
|
|
message HistorySyncChunkRetryResponse {
|
|
optional Message.HistorySyncType syncType = 1;
|
|
optional uint32 chunkOrder = 2;
|
|
optional string requestId = 3;
|
|
optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode responseCode = 4;
|
|
optional bool canRecover = 5;
|
|
}
|
|
|
|
enum HistorySyncChunkRetryResponseCode {
|
|
GENERATION_ERROR = 1;
|
|
CHUNK_CONSUMED = 2;
|
|
TIMEOUT = 3;
|
|
SESSION_EXHAUSTED = 4;
|
|
CHUNK_EXHAUSTED = 5;
|
|
DUPLICATED_REQUEST = 6;
|
|
}
|
|
message LinkPreviewResponse {
|
|
optional string url = 1;
|
|
optional string title = 2;
|
|
optional string description = 3;
|
|
optional bytes thumbData = 4;
|
|
optional string matchText = 6;
|
|
optional string previewType = 7;
|
|
optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
|
|
optional PaymentLinkPreviewMetadata previewMetadata = 9;
|
|
message LinkPreviewHighQualityThumbnail {
|
|
optional string directPath = 1;
|
|
optional string thumbHash = 2;
|
|
optional string encThumbHash = 3;
|
|
optional bytes mediaKey = 4;
|
|
optional int64 mediaKeyTimestampMs = 5;
|
|
optional int32 thumbWidth = 6;
|
|
optional int32 thumbHeight = 7;
|
|
}
|
|
|
|
message PaymentLinkPreviewMetadata {
|
|
optional bool isBusinessVerified = 1;
|
|
optional string providerName = 2;
|
|
optional string amount = 3;
|
|
optional string offset = 4;
|
|
optional string currency = 5;
|
|
}
|
|
|
|
}
|
|
|
|
message PlaceholderMessageResendResponse {
|
|
optional bytes webMessageInfoBytes = 1;
|
|
}
|
|
|
|
message SyncDSnapshotFatalRecoveryResponse {
|
|
optional bytes collectionSnapshot = 1;
|
|
optional bool isCompressed = 2;
|
|
}
|
|
|
|
message WaffleNonceFetchResponse {
|
|
optional string nonce = 1;
|
|
optional string waEntFbid = 2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
enum PeerDataOperationRequestType {
|
|
UPLOAD_STICKER = 0;
|
|
SEND_RECENT_STICKER_BOOTSTRAP = 1;
|
|
GENERATE_LINK_PREVIEW = 2;
|
|
HISTORY_SYNC_ON_DEMAND = 3;
|
|
PLACEHOLDER_MESSAGE_RESEND = 4;
|
|
WAFFLE_LINKING_NONCE_FETCH = 5;
|
|
FULL_HISTORY_SYNC_ON_DEMAND = 6;
|
|
COMPANION_META_NONCE_FETCH = 7;
|
|
COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
|
|
COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
|
|
HISTORY_SYNC_CHUNK_RETRY = 10;
|
|
GALAXY_FLOW_ACTION = 11;
|
|
BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO = 12;
|
|
BUSINESS_BROADCAST_INSIGHTS_REFRESH = 13;
|
|
}
|
|
message PinInChatMessage {
|
|
optional MessageKey key = 1;
|
|
optional Type type = 2;
|
|
optional int64 senderTimestampMs = 3;
|
|
enum Type {
|
|
UNKNOWN_TYPE = 0;
|
|
PIN_FOR_ALL = 1;
|
|
UNPIN_FOR_ALL = 2;
|
|
}
|
|
}
|
|
|
|
message PlaceholderMessage {
|
|
optional PlaceholderType type = 1;
|
|
enum PlaceholderType {
|
|
MASK_LINKED_DEVICES = 0;
|
|
}
|
|
}
|
|
|
|
message PollAddOptionMessage {
|
|
optional MessageKey pollCreationMessageKey = 1;
|
|
optional Message.PollCreationMessage.Option addOption = 2;
|
|
}
|
|
|
|
enum PollContentType {
|
|
UNKNOWN = 0;
|
|
TEXT = 1;
|
|
IMAGE = 2;
|
|
}
|
|
message PollCreationMessage {
|
|
optional bytes encKey = 1;
|
|
optional string name = 2;
|
|
repeated Option options = 3;
|
|
optional uint32 selectableOptionsCount = 4;
|
|
optional ContextInfo contextInfo = 5;
|
|
optional Message.PollContentType pollContentType = 6;
|
|
optional Message.PollType pollType = 7;
|
|
optional Option correctAnswer = 8;
|
|
optional int64 endTime = 9;
|
|
optional bool hideParticipantName = 10;
|
|
optional bool allowAddOption = 11;
|
|
message Option {
|
|
optional string optionName = 1;
|
|
optional string optionHash = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message PollEncValue {
|
|
optional bytes encPayload = 1;
|
|
optional bytes encIv = 2;
|
|
}
|
|
|
|
message PollResultSnapshotMessage {
|
|
optional string name = 1;
|
|
repeated PollVote pollVotes = 2;
|
|
optional ContextInfo contextInfo = 3;
|
|
optional Message.PollType pollType = 4;
|
|
message PollVote {
|
|
optional string optionName = 1;
|
|
optional int64 optionVoteCount = 2;
|
|
}
|
|
|
|
}
|
|
|
|
enum PollType {
|
|
POLL = 0;
|
|
QUIZ = 1;
|
|
}
|
|
message PollUpdateMessage {
|
|
optional MessageKey pollCreationMessageKey = 1;
|
|
optional Message.PollEncValue vote = 2;
|
|
optional Message.PollUpdateMessageMetadata metadata = 3;
|
|
optional int64 senderTimestampMs = 4;
|
|
}
|
|
|
|
message PollUpdateMessageMetadata {
|
|
}
|
|
|
|
message PollVoteMessage {
|
|
repeated bytes selectedOptions = 1;
|
|
}
|
|
|
|
message ProductMessage {
|
|
optional ProductSnapshot product = 1;
|
|
optional string businessOwnerJid = 2;
|
|
optional CatalogSnapshot catalog = 4;
|
|
optional string body = 5;
|
|
optional string footer = 6;
|
|
optional ContextInfo contextInfo = 17;
|
|
message CatalogSnapshot {
|
|
optional Message.ImageMessage catalogImage = 1;
|
|
optional string title = 2;
|
|
optional string description = 3;
|
|
}
|
|
|
|
message ProductSnapshot {
|
|
optional Message.ImageMessage productImage = 1;
|
|
optional string productId = 2;
|
|
optional string title = 3;
|
|
optional string description = 4;
|
|
optional string currencyCode = 5;
|
|
optional int64 priceAmount1000 = 6;
|
|
optional string retailerId = 7;
|
|
optional string url = 8;
|
|
optional uint32 productImageCount = 9;
|
|
optional string firstImageId = 11;
|
|
optional int64 salePriceAmount1000 = 12;
|
|
optional string signedUrl = 13;
|
|
}
|
|
|
|
}
|
|
|
|
message ProtocolMessage {
|
|
optional MessageKey key = 1;
|
|
optional Type type = 2;
|
|
optional uint32 ephemeralExpiration = 4;
|
|
optional int64 ephemeralSettingTimestamp = 5;
|
|
optional Message.HistorySyncNotification historySyncNotification = 6;
|
|
optional Message.AppStateSyncKeyShare appStateSyncKeyShare = 7;
|
|
optional Message.AppStateSyncKeyRequest appStateSyncKeyRequest = 8;
|
|
optional Message.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9;
|
|
optional Message.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10;
|
|
optional DisappearingMode disappearingMode = 11;
|
|
optional Message editedMessage = 14;
|
|
optional int64 timestampMs = 15;
|
|
optional Message.PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16;
|
|
optional Message.PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17;
|
|
optional BotFeedbackMessage botFeedbackMessage = 18;
|
|
optional string invokerJid = 19;
|
|
optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
|
|
optional MediaNotifyMessage mediaNotifyMessage = 21;
|
|
optional Message.CloudAPIThreadControlNotification cloudApiThreadControlNotification = 22;
|
|
optional LIDMigrationMappingSyncMessage lidMigrationMappingSyncMessage = 23;
|
|
optional LimitSharing limitSharing = 24;
|
|
optional bytes aiPsiMetadata = 25;
|
|
optional AIQueryFanout aiQueryFanout = 26;
|
|
optional MemberLabel memberLabel = 27;
|
|
optional AIMediaCollectionMessage aiMediaCollectionMessage = 28;
|
|
optional uint32 afterReadDuration = 29;
|
|
optional Message.ChatThemeSetting chatThemeSetting = 30;
|
|
enum Type {
|
|
REVOKE = 0;
|
|
EPHEMERAL_SETTING = 3;
|
|
EPHEMERAL_SYNC_RESPONSE = 4;
|
|
HISTORY_SYNC_NOTIFICATION = 5;
|
|
APP_STATE_SYNC_KEY_SHARE = 6;
|
|
APP_STATE_SYNC_KEY_REQUEST = 7;
|
|
MSG_FANOUT_BACKFILL_REQUEST = 8;
|
|
INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9;
|
|
APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10;
|
|
SHARE_PHONE_NUMBER = 11;
|
|
MESSAGE_EDIT = 14;
|
|
PEER_DATA_OPERATION_REQUEST_MESSAGE = 16;
|
|
PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE = 17;
|
|
REQUEST_WELCOME_MESSAGE = 18;
|
|
BOT_FEEDBACK_MESSAGE = 19;
|
|
MEDIA_NOTIFY_MESSAGE = 20;
|
|
CLOUD_API_THREAD_CONTROL_NOTIFICATION = 21;
|
|
LID_MIGRATION_MAPPING_SYNC = 22;
|
|
REMINDER_MESSAGE = 23;
|
|
BOT_MEMU_ONBOARDING_MESSAGE = 24;
|
|
STATUS_MENTION_MESSAGE = 25;
|
|
STOP_GENERATION_MESSAGE = 26;
|
|
LIMIT_SHARING = 27;
|
|
AI_PSI_METADATA = 28;
|
|
AI_QUERY_FANOUT = 29;
|
|
GROUP_MEMBER_LABEL_CHANGE = 30;
|
|
AI_MEDIA_COLLECTION_MESSAGE = 31;
|
|
MESSAGE_UNSCHEDULE = 32;
|
|
CHAT_THEME_SETTING = 34;
|
|
}
|
|
}
|
|
|
|
message QuestionResponseMessage {
|
|
optional MessageKey key = 1;
|
|
optional string text = 2;
|
|
}
|
|
|
|
message ReactionMessage {
|
|
optional MessageKey key = 1;
|
|
optional string text = 2;
|
|
optional string groupingKey = 3;
|
|
optional int64 senderTimestampMs = 4;
|
|
}
|
|
|
|
message RequestPaymentMessage {
|
|
optional Message noteMessage = 4;
|
|
optional string currencyCodeIso4217 = 1;
|
|
optional uint64 amount1000 = 2;
|
|
optional string requestFrom = 3;
|
|
optional int64 expiryTimestamp = 5;
|
|
optional Money amount = 6;
|
|
optional PaymentBackground background = 7;
|
|
}
|
|
|
|
message RequestPhoneNumberMessage {
|
|
optional ContextInfo contextInfo = 1;
|
|
}
|
|
|
|
message RequestWelcomeMessageMetadata {
|
|
optional LocalChatState localChatState = 1;
|
|
optional WelcomeTrigger welcomeTrigger = 2;
|
|
optional BotAgentMetadata botAgentMetadata = 3;
|
|
enum LocalChatState {
|
|
EMPTY = 0;
|
|
NON_EMPTY = 1;
|
|
}
|
|
enum WelcomeTrigger {
|
|
CHAT_OPEN = 0;
|
|
COMPANION_PAIRING = 1;
|
|
}
|
|
}
|
|
|
|
message ScheduledCallCreationMessage {
|
|
optional int64 scheduledTimestampMs = 1;
|
|
optional CallType callType = 2;
|
|
optional string title = 3;
|
|
enum CallType {
|
|
UNKNOWN = 0;
|
|
VOICE = 1;
|
|
VIDEO = 2;
|
|
}
|
|
}
|
|
|
|
message ScheduledCallEditMessage {
|
|
optional MessageKey key = 1;
|
|
optional EditType editType = 2;
|
|
enum EditType {
|
|
UNKNOWN = 0;
|
|
CANCEL = 1;
|
|
}
|
|
}
|
|
|
|
message SecretEncryptedMessage {
|
|
optional MessageKey targetMessageKey = 1;
|
|
optional bytes encPayload = 2;
|
|
optional bytes encIv = 3;
|
|
optional SecretEncType secretEncType = 4;
|
|
optional string remoteKeyId = 5;
|
|
enum SecretEncType {
|
|
UNKNOWN = 0;
|
|
EVENT_EDIT = 1;
|
|
MESSAGE_EDIT = 2;
|
|
MESSAGE_SCHEDULE = 3;
|
|
POLL_EDIT = 4;
|
|
POLL_ADD_OPTION = 5;
|
|
}
|
|
}
|
|
|
|
message SendPaymentMessage {
|
|
optional Message noteMessage = 2;
|
|
optional MessageKey requestMessageKey = 3;
|
|
optional PaymentBackground background = 4;
|
|
optional string transactionData = 5;
|
|
}
|
|
|
|
message SenderKeyDistributionMessage {
|
|
optional string groupId = 1;
|
|
optional bytes axolotlSenderKeyDistributionMessage = 2;
|
|
}
|
|
|
|
message SplitPaymentMessage {
|
|
optional string splitId = 1;
|
|
optional Money totalAmount = 2;
|
|
optional string description = 3;
|
|
optional string requesterJid = 4;
|
|
repeated Message.SplitPaymentParticipant participants = 5;
|
|
optional int64 createdAtMs = 6;
|
|
optional ContextInfo contextInfo = 17;
|
|
}
|
|
|
|
message SplitPaymentParticipant {
|
|
optional string jid = 1;
|
|
optional Money amount = 2;
|
|
optional SplitPaymentStatus status = 3;
|
|
enum SplitPaymentStatus {
|
|
PENDING = 0;
|
|
PAID = 1;
|
|
}
|
|
}
|
|
|
|
message StatusNotificationMessage {
|
|
optional MessageKey responseMessageKey = 1;
|
|
optional MessageKey originalMessageKey = 2;
|
|
optional StatusNotificationType type = 3;
|
|
enum StatusNotificationType {
|
|
UNKNOWN = 0;
|
|
STATUS_ADD_YOURS = 1;
|
|
STATUS_RESHARE = 2;
|
|
STATUS_QUESTION_ANSWER_RESHARE = 3;
|
|
}
|
|
}
|
|
|
|
message StatusQuestionAnswerMessage {
|
|
optional MessageKey key = 1;
|
|
optional string text = 2;
|
|
}
|
|
|
|
message StatusQuotedMessage {
|
|
optional StatusQuotedMessageType type = 1;
|
|
optional string text = 2;
|
|
optional bytes thumbnail = 3;
|
|
optional MessageKey originalStatusId = 4;
|
|
enum StatusQuotedMessageType {
|
|
QUESTION_ANSWER = 1;
|
|
}
|
|
}
|
|
|
|
message StatusStickerInteractionMessage {
|
|
optional MessageKey key = 1;
|
|
optional string stickerKey = 2;
|
|
optional StatusStickerType type = 3;
|
|
enum StatusStickerType {
|
|
UNKNOWN = 0;
|
|
REACTION = 1;
|
|
}
|
|
}
|
|
|
|
message StickerMessage {
|
|
optional string url = 1;
|
|
optional bytes fileSha256 = 2;
|
|
optional bytes fileEncSha256 = 3;
|
|
optional bytes mediaKey = 4;
|
|
optional string mimetype = 5;
|
|
optional uint32 height = 6;
|
|
optional uint32 width = 7;
|
|
optional string directPath = 8;
|
|
optional uint64 fileLength = 9;
|
|
optional int64 mediaKeyTimestamp = 10;
|
|
optional uint32 firstFrameLength = 11;
|
|
optional bytes firstFrameSidecar = 12;
|
|
optional bool isAnimated = 13;
|
|
optional bytes pngThumbnail = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional int64 stickerSentTs = 18;
|
|
optional bool isAvatar = 19;
|
|
optional bool isAiSticker = 20;
|
|
optional bool isLottie = 21;
|
|
optional string accessibilityLabel = 22;
|
|
optional int32 premium = 24;
|
|
optional string emojis = 25;
|
|
}
|
|
|
|
message StickerPackMessage {
|
|
optional string stickerPackId = 1;
|
|
optional string name = 2;
|
|
optional string publisher = 3;
|
|
repeated Sticker stickers = 4;
|
|
optional uint64 fileLength = 5;
|
|
optional bytes fileSha256 = 6;
|
|
optional bytes fileEncSha256 = 7;
|
|
optional bytes mediaKey = 8;
|
|
optional string directPath = 9;
|
|
optional string caption = 10;
|
|
optional ContextInfo contextInfo = 11;
|
|
optional string packDescription = 12;
|
|
optional int64 mediaKeyTimestamp = 13;
|
|
optional string trayIconFileName = 14;
|
|
optional string thumbnailDirectPath = 15;
|
|
optional bytes thumbnailSha256 = 16;
|
|
optional bytes thumbnailEncSha256 = 17;
|
|
optional uint32 thumbnailHeight = 18;
|
|
optional uint32 thumbnailWidth = 19;
|
|
optional string imageDataHash = 20;
|
|
optional uint64 stickerPackSize = 21;
|
|
optional StickerPackOrigin stickerPackOrigin = 22;
|
|
message Sticker {
|
|
optional string fileName = 1;
|
|
optional bool isAnimated = 2;
|
|
repeated string emojis = 3;
|
|
optional string accessibilityLabel = 4;
|
|
optional bool isLottie = 5;
|
|
optional string mimetype = 6;
|
|
optional int32 premium = 7;
|
|
}
|
|
|
|
enum StickerPackOrigin {
|
|
FIRST_PARTY = 0;
|
|
THIRD_PARTY = 1;
|
|
USER_CREATED = 2;
|
|
}
|
|
}
|
|
|
|
message StickerSyncRMRMessage {
|
|
repeated string filehash = 1;
|
|
optional string rmrSource = 2;
|
|
optional int64 requestTimestamp = 3;
|
|
}
|
|
|
|
message TemplateButtonReplyMessage {
|
|
optional string selectedId = 1;
|
|
optional string selectedDisplayText = 2;
|
|
optional ContextInfo contextInfo = 3;
|
|
optional uint32 selectedIndex = 4;
|
|
optional uint32 selectedCarouselCardIndex = 5;
|
|
}
|
|
|
|
message TemplateMessage {
|
|
optional ContextInfo contextInfo = 3;
|
|
optional HydratedFourRowTemplate hydratedTemplate = 4;
|
|
optional string templateId = 9;
|
|
oneof format {
|
|
Message.TemplateMessage.FourRowTemplate fourRowTemplate = 1;
|
|
Message.TemplateMessage.HydratedFourRowTemplate hydratedFourRowTemplate = 2;
|
|
Message.InteractiveMessage interactiveMessageTemplate = 5;
|
|
}
|
|
message FourRowTemplate {
|
|
optional Message.HighlyStructuredMessage content = 6;
|
|
optional Message.HighlyStructuredMessage footer = 7;
|
|
repeated TemplateButton buttons = 8;
|
|
oneof title {
|
|
Message.DocumentMessage documentMessage = 1;
|
|
Message.HighlyStructuredMessage highlyStructuredMessage = 2;
|
|
Message.ImageMessage imageMessage = 3;
|
|
Message.VideoMessage videoMessage = 4;
|
|
Message.LocationMessage locationMessage = 5;
|
|
}
|
|
}
|
|
|
|
message HydratedFourRowTemplate {
|
|
optional string hydratedContentText = 6;
|
|
optional string hydratedFooterText = 7;
|
|
repeated HydratedTemplateButton hydratedButtons = 8;
|
|
optional string templateId = 9;
|
|
optional bool maskLinkedDevices = 10;
|
|
oneof title {
|
|
Message.DocumentMessage documentMessage = 1;
|
|
string hydratedTitleText = 2;
|
|
Message.ImageMessage imageMessage = 3;
|
|
Message.VideoMessage videoMessage = 4;
|
|
Message.LocationMessage locationMessage = 5;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message URLMetadata {
|
|
optional uint32 fbExperimentId = 1;
|
|
}
|
|
|
|
message VideoEndCard {
|
|
optional string username = 1;
|
|
optional string caption = 2;
|
|
optional string thumbnailImageUrl = 3;
|
|
optional string profilePictureUrl = 4;
|
|
}
|
|
|
|
message VideoMessage {
|
|
optional string url = 1;
|
|
optional string mimetype = 2;
|
|
optional bytes fileSha256 = 3;
|
|
optional uint64 fileLength = 4;
|
|
optional uint32 seconds = 5;
|
|
optional bytes mediaKey = 6;
|
|
optional string caption = 7;
|
|
optional bool gifPlayback = 8;
|
|
optional uint32 height = 9;
|
|
optional uint32 width = 10;
|
|
optional bytes fileEncSha256 = 11;
|
|
repeated InteractiveAnnotation interactiveAnnotations = 12;
|
|
optional string directPath = 13;
|
|
optional int64 mediaKeyTimestamp = 14;
|
|
optional bytes jpegThumbnail = 16;
|
|
optional ContextInfo contextInfo = 17;
|
|
optional bytes streamingSidecar = 18;
|
|
optional Attribution gifAttribution = 19;
|
|
optional bool viewOnce = 20;
|
|
optional string thumbnailDirectPath = 21;
|
|
optional bytes thumbnailSha256 = 22;
|
|
optional bytes thumbnailEncSha256 = 23;
|
|
optional string staticUrl = 24;
|
|
repeated InteractiveAnnotation annotations = 25;
|
|
optional string accessibilityLabel = 26;
|
|
repeated ProcessedVideo processedVideos = 27;
|
|
optional uint32 externalShareFullVideoDurationInSeconds = 28;
|
|
optional uint64 motionPhotoPresentationOffsetMs = 29;
|
|
optional string metadataUrl = 30;
|
|
optional VideoSourceType videoSourceType = 31;
|
|
enum Attribution {
|
|
NONE = 0;
|
|
GIPHY = 1;
|
|
TENOR = 2;
|
|
KLIPY = 3;
|
|
}
|
|
enum VideoSourceType {
|
|
USER_VIDEO = 0;
|
|
AI_GENERATED = 1;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
message MessageAddOn {
|
|
optional MessageAddOnType messageAddOnType = 1;
|
|
optional Message messageAddOn = 2;
|
|
optional int64 senderTimestampMs = 3;
|
|
optional int64 serverTimestampMs = 4;
|
|
optional WebMessageInfo.Status status = 5;
|
|
optional MessageAddOnContextInfo addOnContextInfo = 6;
|
|
optional MessageKey messageAddOnKey = 7;
|
|
optional LegacyMessage legacyMessage = 8;
|
|
enum MessageAddOnType {
|
|
UNDEFINED = 0;
|
|
REACTION = 1;
|
|
EVENT_RESPONSE = 2;
|
|
POLL_UPDATE = 3;
|
|
PIN_IN_CHAT = 4;
|
|
}
|
|
}
|
|
|
|
message MessageAddOnContextInfo {
|
|
optional uint32 messageAddOnDurationInSecs = 1;
|
|
optional MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 2;
|
|
}
|
|
|
|
message MessageAssociation {
|
|
optional AssociationType associationType = 1;
|
|
optional MessageKey parentMessageKey = 2;
|
|
optional int32 messageIndex = 3;
|
|
enum AssociationType {
|
|
UNKNOWN = 0;
|
|
MEDIA_ALBUM = 1;
|
|
BOT_PLUGIN = 2;
|
|
EVENT_COVER_IMAGE = 3;
|
|
STATUS_POLL = 4;
|
|
HD_VIDEO_DUAL_UPLOAD = 5;
|
|
STATUS_EXTERNAL_RESHARE = 6;
|
|
MEDIA_POLL = 7;
|
|
STATUS_ADD_YOURS = 8;
|
|
STATUS_NOTIFICATION = 9;
|
|
HD_IMAGE_DUAL_UPLOAD = 10;
|
|
STICKER_ANNOTATION = 11;
|
|
MOTION_PHOTO = 12;
|
|
STATUS_LINK_ACTION = 13;
|
|
VIEW_ALL_REPLIES = 14;
|
|
STATUS_ADD_YOURS_AI_IMAGINE = 15;
|
|
STATUS_QUESTION = 16;
|
|
STATUS_ADD_YOURS_DIWALI = 17;
|
|
STATUS_REACTION = 18;
|
|
HEVC_VIDEO_DUAL_UPLOAD = 19;
|
|
POLL_ADD_OPTION = 20;
|
|
}
|
|
}
|
|
|
|
message MessageContextInfo {
|
|
optional DeviceListMetadata deviceListMetadata = 1;
|
|
optional int32 deviceListMetadataVersion = 2;
|
|
optional bytes messageSecret = 3;
|
|
optional bytes paddingBytes = 4;
|
|
optional uint32 messageAddOnDurationInSecs = 5;
|
|
optional bytes botMessageSecret = 6;
|
|
optional BotMetadata botMetadata = 7;
|
|
optional int32 reportingTokenVersion = 8;
|
|
optional MessageAddonExpiryType messageAddOnExpiryType = 9;
|
|
optional MessageAssociation messageAssociation = 10;
|
|
optional bool capiCreatedGroup = 11;
|
|
optional string supportPayload = 12;
|
|
optional LimitSharing limitSharing = 13;
|
|
optional LimitSharing limitSharingV2 = 14;
|
|
repeated ThreadID threadId = 15;
|
|
optional WebLinkRenderConfig weblinkRenderConfig = 16;
|
|
optional bytes teeBotMetadata = 17;
|
|
enum MessageAddonExpiryType {
|
|
STATIC = 1;
|
|
DEPENDENT_ON_PARENT = 2;
|
|
}
|
|
}
|
|
|
|
message MessageKey {
|
|
optional string remoteJid = 1;
|
|
optional bool fromMe = 2;
|
|
optional string id = 3;
|
|
optional string participant = 4;
|
|
}
|
|
|
|
message MessageSecretMessage {
|
|
optional sfixed32 version = 1;
|
|
optional bytes encIv = 2;
|
|
optional bytes encPayload = 3;
|
|
}
|
|
|
|
message Money {
|
|
optional int64 value = 1;
|
|
optional uint32 offset = 2;
|
|
optional string currencyCode = 3;
|
|
}
|
|
|
|
message MsgOpaqueData {
|
|
optional string body = 1;
|
|
optional string caption = 3;
|
|
optional double lng = 5;
|
|
optional bool isLive = 6;
|
|
optional double lat = 7;
|
|
optional int32 paymentAmount1000 = 8;
|
|
optional string paymentNoteMsgBody = 9;
|
|
optional string matchedText = 11;
|
|
optional string title = 12;
|
|
optional string description = 13;
|
|
optional bytes futureproofBuffer = 14;
|
|
optional string clientUrl = 15;
|
|
optional string loc = 16;
|
|
optional string pollName = 17;
|
|
repeated PollOption pollOptions = 18;
|
|
optional uint32 pollSelectableOptionsCount = 20;
|
|
optional bytes messageSecret = 21;
|
|
optional string originalSelfAuthor = 51;
|
|
optional int64 senderTimestampMs = 22;
|
|
optional string pollUpdateParentKey = 23;
|
|
optional PollEncValue encPollVote = 24;
|
|
optional bool isSentCagPollCreation = 28;
|
|
optional PollContentType pollContentType = 42;
|
|
optional PollType pollType = 46;
|
|
optional int32 correctOptionIndex = 47;
|
|
optional PollVotesSnapshot pollVotesSnapshot = 41;
|
|
optional string encReactionTargetMessageKey = 25;
|
|
optional bytes encReactionEncPayload = 26;
|
|
optional bytes encReactionEncIv = 27;
|
|
optional bytes botMessageSecret = 29;
|
|
optional string targetMessageKey = 30;
|
|
optional bytes encPayload = 31;
|
|
optional bytes encIv = 32;
|
|
optional string eventName = 33;
|
|
optional bool isEventCanceled = 34;
|
|
optional string eventDescription = 35;
|
|
optional string eventJoinLink = 36;
|
|
optional int64 eventStartTime = 37;
|
|
optional EventLocation eventLocation = 38;
|
|
optional int64 eventEndTime = 40;
|
|
optional bool eventIsScheduledCall = 44;
|
|
optional bool eventExtraGuestsAllowed = 45;
|
|
optional bytes plainProtobufBytes = 43;
|
|
optional string quarantineExtractedText = 48;
|
|
optional int64 pollEndTime = 49;
|
|
optional bool pollHideVoterNames = 50;
|
|
optional bool pollAllowAddOption = 52;
|
|
message EventLocation {
|
|
optional double degreesLatitude = 1;
|
|
optional double degreesLongitude = 2;
|
|
optional string name = 3;
|
|
optional string address = 4;
|
|
optional string url = 5;
|
|
optional bytes jpegThumbnail = 6;
|
|
}
|
|
|
|
enum PollContentType {
|
|
UNKNOWN = 0;
|
|
TEXT = 1;
|
|
IMAGE = 2;
|
|
}
|
|
message PollOption {
|
|
optional string name = 1;
|
|
optional string hash = 2;
|
|
}
|
|
|
|
enum PollType {
|
|
POLL = 0;
|
|
QUIZ = 1;
|
|
}
|
|
message PollVoteSnapshot {
|
|
optional MsgOpaqueData.PollOption option = 1;
|
|
optional int32 optionVoteCount = 2;
|
|
}
|
|
|
|
message PollVotesSnapshot {
|
|
repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
|
|
}
|
|
|
|
}
|
|
|
|
message MsgRowOpaqueData {
|
|
optional MsgOpaqueData currentMsg = 1;
|
|
optional MsgOpaqueData quotedMsg = 2;
|
|
}
|
|
|
|
enum MutationProps {
|
|
STAR_ACTION = 2;
|
|
CONTACT_ACTION = 3;
|
|
MUTE_ACTION = 4;
|
|
PIN_ACTION = 5;
|
|
SECURITY_NOTIFICATION_SETTING = 6;
|
|
PUSH_NAME_SETTING = 7;
|
|
QUICK_REPLY_ACTION = 8;
|
|
RECENT_EMOJI_WEIGHTS_ACTION = 11;
|
|
LABEL_MESSAGE_ACTION = 13;
|
|
LABEL_EDIT_ACTION = 14;
|
|
LABEL_ASSOCIATION_ACTION = 15;
|
|
LOCALE_SETTING = 16;
|
|
ARCHIVE_CHAT_ACTION = 17;
|
|
DELETE_MESSAGE_FOR_ME_ACTION = 18;
|
|
KEY_EXPIRATION = 19;
|
|
MARK_CHAT_AS_READ_ACTION = 20;
|
|
CLEAR_CHAT_ACTION = 21;
|
|
DELETE_CHAT_ACTION = 22;
|
|
UNARCHIVE_CHATS_SETTING = 23;
|
|
PRIMARY_FEATURE = 24;
|
|
ANDROID_UNSUPPORTED_ACTIONS = 26;
|
|
AGENT_ACTION = 27;
|
|
SUBSCRIPTION_ACTION = 28;
|
|
USER_STATUS_MUTE_ACTION = 29;
|
|
TIME_FORMAT_ACTION = 30;
|
|
NUX_ACTION = 31;
|
|
PRIMARY_VERSION_ACTION = 32;
|
|
STICKER_ACTION = 33;
|
|
REMOVE_RECENT_STICKER_ACTION = 34;
|
|
CHAT_ASSIGNMENT = 35;
|
|
CHAT_ASSIGNMENT_OPENED_STATUS = 36;
|
|
PN_FOR_LID_CHAT_ACTION = 37;
|
|
MARKETING_MESSAGE_ACTION = 38;
|
|
MARKETING_MESSAGE_BROADCAST_ACTION = 39;
|
|
EXTERNAL_WEB_BETA_ACTION = 40;
|
|
PRIVACY_SETTING_RELAY_ALL_CALLS = 41;
|
|
CALL_LOG_ACTION = 42;
|
|
UGC_BOT = 43;
|
|
STATUS_PRIVACY = 44;
|
|
BOT_WELCOME_REQUEST_ACTION = 45;
|
|
DELETE_INDIVIDUAL_CALL_LOG = 46;
|
|
LABEL_REORDERING_ACTION = 47;
|
|
PAYMENT_INFO_ACTION = 48;
|
|
CUSTOM_PAYMENT_METHODS_ACTION = 49;
|
|
LOCK_CHAT_ACTION = 50;
|
|
CHAT_LOCK_SETTINGS = 51;
|
|
WAMO_USER_IDENTIFIER_ACTION = 52;
|
|
PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION = 53;
|
|
DEVICE_CAPABILITIES = 54;
|
|
NOTE_EDIT_ACTION = 55;
|
|
FAVORITES_ACTION = 56;
|
|
MERCHANT_PAYMENT_PARTNER_ACTION = 57;
|
|
WAFFLE_ACCOUNT_LINK_STATE_ACTION = 58;
|
|
USERNAME_CHAT_START_MODE = 59;
|
|
NOTIFICATION_ACTIVITY_SETTING_ACTION = 60;
|
|
LID_CONTACT_ACTION = 61;
|
|
CTWA_PER_CUSTOMER_DATA_SHARING_ACTION = 62;
|
|
PAYMENT_TOS_ACTION = 63;
|
|
PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION = 64;
|
|
BUSINESS_BROADCAST_ASSOCIATION_ACTION = 65;
|
|
DETECTED_OUTCOMES_STATUS_ACTION = 66;
|
|
MAIBA_AI_FEATURES_CONTROL_ACTION = 68;
|
|
BUSINESS_BROADCAST_LIST_ACTION = 69;
|
|
MUSIC_USER_ID_ACTION = 70;
|
|
STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION = 71;
|
|
AVATAR_UPDATED_ACTION = 72;
|
|
GALAXY_FLOW_ACTION = 73;
|
|
PRIVATE_PROCESSING_SETTING_ACTION = 74;
|
|
NEWSLETTER_SAVED_INTERESTS_ACTION = 75;
|
|
AI_THREAD_RENAME_ACTION = 76;
|
|
INTERACTIVE_MESSAGE_ACTION = 77;
|
|
SETTINGS_SYNC_ACTION = 78;
|
|
OUT_CONTACT_ACTION = 79;
|
|
NCT_SALT_SYNC_ACTION = 80;
|
|
BUSINESS_BROADCAST_CAMPAIGN_ACTION = 81;
|
|
BUSINESS_BROADCAST_INSIGHTS_ACTION = 82;
|
|
CUSTOMER_DATA_ACTION = 83;
|
|
SUBSCRIPTIONS_SYNC_V2_ACTION = 84;
|
|
THREAD_PIN_ACTION = 85;
|
|
AUTO_ORGANIZE_BUSINESS_CHAT_SETTING = 86;
|
|
BIZ_AI_SETTINGS_NUDGE_ACTION = 87;
|
|
SHARE_OWN_PN = 10001;
|
|
BUSINESS_BROADCAST_ACTION = 10002;
|
|
AI_THREAD_DELETE_ACTION = 10003;
|
|
}
|
|
message NoiseCertificate {
|
|
optional bytes details = 1;
|
|
optional bytes signature = 2;
|
|
message Details {
|
|
optional uint32 serial = 1;
|
|
optional string issuer = 2;
|
|
optional uint64 expires = 3;
|
|
optional string subject = 4;
|
|
optional bytes key = 5;
|
|
}
|
|
|
|
}
|
|
|
|
message NotificationMessageInfo {
|
|
optional MessageKey key = 1;
|
|
optional Message message = 2;
|
|
optional uint64 messageTimestamp = 3;
|
|
optional string participant = 4;
|
|
}
|
|
|
|
message NotificationSettings {
|
|
optional string messageVibrate = 1;
|
|
optional string messagePopup = 2;
|
|
optional string messageLight = 3;
|
|
optional bool lowPriorityNotifications = 4;
|
|
optional bool reactionsMuted = 5;
|
|
optional string callVibrate = 6;
|
|
}
|
|
|
|
message PairingRequest {
|
|
optional bytes companionPublicKey = 1;
|
|
optional bytes companionIdentityKey = 2;
|
|
optional bytes advSecret = 3;
|
|
}
|
|
|
|
message PastParticipant {
|
|
optional string userJid = 1;
|
|
optional LeaveReason leaveReason = 2;
|
|
optional uint64 leaveTs = 3;
|
|
enum LeaveReason {
|
|
LEFT = 0;
|
|
REMOVED = 1;
|
|
}
|
|
}
|
|
|
|
message PastParticipants {
|
|
optional string groupJid = 1;
|
|
repeated PastParticipant pastParticipants = 2;
|
|
}
|
|
|
|
message PatchDebugData {
|
|
optional bytes currentLthash = 1;
|
|
optional bytes newLthash = 2;
|
|
optional bytes patchVersion = 3;
|
|
optional bytes collectionName = 4;
|
|
optional bytes firstFourBytesFromAHashOfSnapshotMacKey = 5;
|
|
optional bytes newLthashSubtract = 6;
|
|
optional int32 numberAdd = 7;
|
|
optional int32 numberRemove = 8;
|
|
optional int32 numberOverride = 9;
|
|
optional Platform senderPlatform = 10;
|
|
optional bool isSenderPrimary = 11;
|
|
enum Platform {
|
|
ANDROID = 0;
|
|
SMBA = 1;
|
|
IPHONE = 2;
|
|
SMBI = 3;
|
|
WEB = 4;
|
|
UWP = 5;
|
|
DARWIN = 6;
|
|
IPAD = 7;
|
|
WEAROS = 8;
|
|
WASG = 9;
|
|
WEARM = 10;
|
|
CAPI = 11;
|
|
}
|
|
}
|
|
|
|
message PaymentBackground {
|
|
optional string id = 1;
|
|
optional uint64 fileLength = 2;
|
|
optional uint32 width = 3;
|
|
optional uint32 height = 4;
|
|
optional string mimetype = 5;
|
|
optional fixed32 placeholderArgb = 6;
|
|
optional fixed32 textArgb = 7;
|
|
optional fixed32 subtextArgb = 8;
|
|
optional MediaData mediaData = 9;
|
|
optional Type type = 10;
|
|
message MediaData {
|
|
optional bytes mediaKey = 1;
|
|
optional int64 mediaKeyTimestamp = 2;
|
|
optional bytes fileSha256 = 3;
|
|
optional bytes fileEncSha256 = 4;
|
|
optional string directPath = 5;
|
|
}
|
|
|
|
enum Type {
|
|
UNKNOWN = 0;
|
|
DEFAULT = 1;
|
|
}
|
|
}
|
|
|
|
message PaymentInfo {
|
|
optional Currency currencyDeprecated = 1;
|
|
optional uint64 amount1000 = 2;
|
|
optional string receiverJid = 3;
|
|
optional Status status = 4;
|
|
optional uint64 transactionTimestamp = 5;
|
|
optional MessageKey requestMessageKey = 6;
|
|
optional uint64 expiryTimestamp = 7;
|
|
optional bool futureproofed = 8;
|
|
optional string currency = 9;
|
|
optional TxnStatus txnStatus = 10;
|
|
optional bool useNoviFiatFormat = 11;
|
|
optional Money primaryAmount = 12;
|
|
optional Money exchangeAmount = 13;
|
|
enum Currency {
|
|
UNKNOWN_CURRENCY = 0;
|
|
INR = 1;
|
|
}
|
|
enum Status {
|
|
UNKNOWN_STATUS = 0;
|
|
PROCESSING = 1;
|
|
SENT = 2;
|
|
NEED_TO_ACCEPT = 3;
|
|
COMPLETE = 4;
|
|
COULD_NOT_COMPLETE = 5;
|
|
REFUNDED = 6;
|
|
EXPIRED = 7;
|
|
REJECTED = 8;
|
|
CANCELLED = 9;
|
|
WAITING_FOR_PAYER = 10;
|
|
WAITING = 11;
|
|
}
|
|
enum TxnStatus {
|
|
UNKNOWN = 0;
|
|
PENDING_SETUP = 1;
|
|
PENDING_RECEIVER_SETUP = 2;
|
|
INIT = 3;
|
|
SUCCESS = 4;
|
|
COMPLETED = 5;
|
|
FAILED = 6;
|
|
FAILED_RISK = 7;
|
|
FAILED_PROCESSING = 8;
|
|
FAILED_RECEIVER_PROCESSING = 9;
|
|
FAILED_DA = 10;
|
|
FAILED_DA_FINAL = 11;
|
|
REFUNDED_TXN = 12;
|
|
REFUND_FAILED = 13;
|
|
REFUND_FAILED_PROCESSING = 14;
|
|
REFUND_FAILED_DA = 15;
|
|
EXPIRED_TXN = 16;
|
|
AUTH_CANCELED = 17;
|
|
AUTH_CANCEL_FAILED_PROCESSING = 18;
|
|
AUTH_CANCEL_FAILED = 19;
|
|
COLLECT_INIT = 20;
|
|
COLLECT_SUCCESS = 21;
|
|
COLLECT_FAILED = 22;
|
|
COLLECT_FAILED_RISK = 23;
|
|
COLLECT_REJECTED = 24;
|
|
COLLECT_EXPIRED = 25;
|
|
COLLECT_CANCELED = 26;
|
|
COLLECT_CANCELLING = 27;
|
|
IN_REVIEW = 28;
|
|
REVERSAL_SUCCESS = 29;
|
|
REVERSAL_PENDING = 30;
|
|
REFUND_PENDING = 31;
|
|
}
|
|
}
|
|
|
|
message PhoneNumberToLIDMapping {
|
|
optional string pnJid = 1;
|
|
optional string lidJid = 2;
|
|
}
|
|
|
|
message PhotoChange {
|
|
optional bytes oldPhoto = 1;
|
|
optional bytes newPhoto = 2;
|
|
optional uint32 newPhotoId = 3;
|
|
}
|
|
|
|
message PinInChat {
|
|
optional Type type = 1;
|
|
optional MessageKey key = 2;
|
|
optional int64 senderTimestampMs = 3;
|
|
optional int64 serverTimestampMs = 4;
|
|
optional MessageAddOnContextInfo messageAddOnContextInfo = 5;
|
|
enum Type {
|
|
UNKNOWN_TYPE = 0;
|
|
PIN_FOR_ALL = 1;
|
|
UNPIN_FOR_ALL = 2;
|
|
}
|
|
}
|
|
|
|
message Point {
|
|
optional int32 xDeprecated = 1;
|
|
optional int32 yDeprecated = 2;
|
|
optional double x = 3;
|
|
optional double y = 4;
|
|
}
|
|
|
|
message PollAdditionalMetadata {
|
|
optional bool pollInvalidated = 1;
|
|
}
|
|
|
|
message PollEncValue {
|
|
optional bytes encPayload = 1;
|
|
optional bytes encIv = 2;
|
|
}
|
|
|
|
message PollUpdate {
|
|
optional MessageKey pollUpdateMessageKey = 1;
|
|
optional Message.PollVoteMessage vote = 2;
|
|
optional int64 senderTimestampMs = 3;
|
|
optional int64 serverTimestampMs = 4;
|
|
optional bool unread = 5;
|
|
}
|
|
|
|
message PreKeyRecordStructure {
|
|
optional uint32 id = 1;
|
|
optional bytes publicKey = 2;
|
|
optional bytes privateKey = 3;
|
|
}
|
|
|
|
message PreKeySignalMessage {
|
|
optional uint32 registrationId = 5;
|
|
optional uint32 preKeyId = 1;
|
|
optional uint32 signedPreKeyId = 6;
|
|
optional bytes baseKey = 2;
|
|
optional bytes identityKey = 3;
|
|
optional bytes message = 4;
|
|
}
|
|
|
|
message PremiumMessageInfo {
|
|
optional string serverCampaignId = 1;
|
|
}
|
|
|
|
message PrimaryEphemeralIdentity {
|
|
optional bytes publicKey = 1;
|
|
optional bytes nonce = 2;
|
|
}
|
|
|
|
enum PrivacySystemMessage {
|
|
E2EE_MSG = 1;
|
|
NE2EE_SELF = 2;
|
|
NE2EE_OTHER = 3;
|
|
}
|
|
message ProcessedVideo {
|
|
optional string directPath = 1;
|
|
optional bytes fileSha256 = 2;
|
|
optional uint32 height = 3;
|
|
optional uint32 width = 4;
|
|
optional uint64 fileLength = 5;
|
|
optional uint32 bitrate = 6;
|
|
optional VideoQuality quality = 7;
|
|
repeated string capabilities = 8;
|
|
enum VideoQuality {
|
|
UNDEFINED = 0;
|
|
LOW = 1;
|
|
MID = 2;
|
|
HIGH = 3;
|
|
}
|
|
}
|
|
|
|
message ProloguePayload {
|
|
optional bytes companionEphemeralIdentity = 1;
|
|
optional CompanionCommitment commitment = 2;
|
|
}
|
|
|
|
message Pushname {
|
|
optional string id = 1;
|
|
optional string pushname = 2;
|
|
}
|
|
|
|
message QuarantinedMessage {
|
|
optional bytes originalData = 1;
|
|
optional string extractedText = 2;
|
|
}
|
|
|
|
message Reaction {
|
|
optional MessageKey key = 1;
|
|
optional string text = 2;
|
|
optional string groupingKey = 3;
|
|
optional int64 senderTimestampMs = 4;
|
|
optional bool unread = 5;
|
|
}
|
|
|
|
message RecentEmojiWeight {
|
|
optional string emoji = 1;
|
|
optional float weight = 2;
|
|
}
|
|
|
|
message RecordStructure {
|
|
optional SessionStructure currentSession = 1;
|
|
repeated SessionStructure previousSessions = 2;
|
|
}
|
|
|
|
message Reportable {
|
|
optional uint32 minVersion = 1;
|
|
optional uint32 maxVersion = 2;
|
|
optional uint32 notReportableMinVersion = 3;
|
|
optional bool never = 4;
|
|
}
|
|
|
|
message ReportingTokenInfo {
|
|
optional bytes reportingTag = 1;
|
|
}
|
|
|
|
message ScheduledMessageMetadata {
|
|
optional string revealKeyId = 1;
|
|
optional bytes revealKey = 2;
|
|
optional uint64 scheduledTime = 3;
|
|
}
|
|
|
|
message SenderKeyDistributionMessage {
|
|
optional uint32 id = 1;
|
|
optional uint32 iteration = 2;
|
|
optional bytes chainKey = 3;
|
|
optional bytes signingKey = 4;
|
|
}
|
|
|
|
message SenderKeyMessage {
|
|
optional uint32 id = 1;
|
|
optional uint32 iteration = 2;
|
|
optional bytes ciphertext = 3;
|
|
}
|
|
|
|
message SenderKeyRecordStructure {
|
|
repeated SenderKeyStateStructure senderKeyStates = 1;
|
|
}
|
|
|
|
message SenderKeyStateStructure {
|
|
optional uint32 senderKeyId = 1;
|
|
optional SenderChainKey senderChainKey = 2;
|
|
optional SenderSigningKey senderSigningKey = 3;
|
|
repeated SenderMessageKey senderMessageKeys = 4;
|
|
message SenderChainKey {
|
|
optional uint32 iteration = 1;
|
|
optional bytes seed = 2;
|
|
}
|
|
|
|
message SenderMessageKey {
|
|
optional uint32 iteration = 1;
|
|
optional bytes seed = 2;
|
|
}
|
|
|
|
message SenderSigningKey {
|
|
optional bytes public = 1;
|
|
optional bytes private = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message ServerErrorReceipt {
|
|
optional string stanzaId = 1;
|
|
}
|
|
|
|
message SessionStructure {
|
|
optional uint32 sessionVersion = 1;
|
|
optional bytes localIdentityPublic = 2;
|
|
optional bytes remoteIdentityPublic = 3;
|
|
optional bytes rootKey = 4;
|
|
optional uint32 previousCounter = 5;
|
|
optional Chain senderChain = 6;
|
|
repeated Chain receiverChains = 7;
|
|
optional PendingKeyExchange pendingKeyExchange = 8;
|
|
optional PendingPreKey pendingPreKey = 9;
|
|
optional uint32 remoteRegistrationId = 10;
|
|
optional uint32 localRegistrationId = 11;
|
|
optional bool needsRefresh = 12;
|
|
optional bytes aliceBaseKey = 13;
|
|
message Chain {
|
|
optional bytes senderRatchetKey = 1;
|
|
optional bytes senderRatchetKeyPrivate = 2;
|
|
optional ChainKey chainKey = 3;
|
|
repeated MessageKey messageKeys = 4;
|
|
message ChainKey {
|
|
optional uint32 index = 1;
|
|
optional bytes key = 2;
|
|
}
|
|
|
|
message MessageKey {
|
|
optional uint32 index = 1;
|
|
optional bytes cipherKey = 2;
|
|
optional bytes macKey = 3;
|
|
optional bytes iv = 4;
|
|
}
|
|
|
|
}
|
|
|
|
message PendingKeyExchange {
|
|
optional uint32 sequence = 1;
|
|
optional bytes localBaseKey = 2;
|
|
optional bytes localBaseKeyPrivate = 3;
|
|
optional bytes localRatchetKey = 4;
|
|
optional bytes localRatchetKeyPrivate = 5;
|
|
optional bytes localIdentityKey = 7;
|
|
optional bytes localIdentityKeyPrivate = 8;
|
|
}
|
|
|
|
message PendingPreKey {
|
|
optional uint32 preKeyId = 1;
|
|
optional int32 signedPreKeyId = 3;
|
|
optional bytes baseKey = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message SessionTransparencyMetadata {
|
|
optional string disclaimerText = 1;
|
|
optional string hcaId = 2;
|
|
optional SessionTransparencyType sessionTransparencyType = 3;
|
|
}
|
|
|
|
enum SessionTransparencyType {
|
|
UNKNOWN_TYPE = 0;
|
|
NY_AI_SAFETY_DISCLAIMER = 1;
|
|
}
|
|
message SignalMessage {
|
|
optional bytes ratchetKey = 1;
|
|
optional uint32 counter = 2;
|
|
optional uint32 previousCounter = 3;
|
|
optional bytes ciphertext = 4;
|
|
}
|
|
|
|
message SignedPreKeyRecordStructure {
|
|
optional uint32 id = 1;
|
|
optional bytes publicKey = 2;
|
|
optional bytes privateKey = 3;
|
|
optional bytes signature = 4;
|
|
optional fixed64 timestamp = 5;
|
|
}
|
|
|
|
message StatusAttribution {
|
|
optional Type type = 1;
|
|
optional string actionUrl = 2;
|
|
oneof attributionData {
|
|
StatusAttribution.StatusReshare statusReshare = 3;
|
|
StatusAttribution.ExternalShare externalShare = 4;
|
|
StatusAttribution.Music music = 5;
|
|
StatusAttribution.GroupStatus groupStatus = 6;
|
|
StatusAttribution.RLAttribution rlAttribution = 7;
|
|
StatusAttribution.AiCreatedAttribution aiCreatedAttribution = 8;
|
|
}
|
|
message AiCreatedAttribution {
|
|
optional Source source = 1;
|
|
enum Source {
|
|
UNKNOWN = 0;
|
|
STATUS_MIMICRY = 1;
|
|
}
|
|
}
|
|
|
|
message ExternalShare {
|
|
optional string actionUrl = 1;
|
|
optional Source source = 2;
|
|
optional int32 duration = 3;
|
|
optional string actionFallbackUrl = 4;
|
|
enum Source {
|
|
UNKNOWN = 0;
|
|
INSTAGRAM = 1;
|
|
FACEBOOK = 2;
|
|
MESSENGER = 3;
|
|
SPOTIFY = 4;
|
|
YOUTUBE = 5;
|
|
PINTEREST = 6;
|
|
THREADS = 7;
|
|
APPLE_MUSIC = 8;
|
|
SHARECHAT = 9;
|
|
GOOGLE_PHOTOS = 10;
|
|
SOUNDCLOUD = 11;
|
|
SHAZAM = 12;
|
|
}
|
|
}
|
|
|
|
message GroupStatus {
|
|
optional string authorJid = 1;
|
|
}
|
|
|
|
message Music {
|
|
optional string authorName = 1;
|
|
optional string songId = 2;
|
|
optional string title = 3;
|
|
optional string author = 4;
|
|
optional string artistAttribution = 5;
|
|
optional bool isExplicit = 6;
|
|
}
|
|
|
|
message RLAttribution {
|
|
optional Source source = 1;
|
|
enum Source {
|
|
UNKNOWN = 0;
|
|
RAY_BAN_META_GLASSES = 1;
|
|
OAKLEY_META_GLASSES = 2;
|
|
HYPERNOVA_GLASSES = 3;
|
|
}
|
|
}
|
|
|
|
message StatusReshare {
|
|
optional Source source = 1;
|
|
optional Metadata metadata = 2;
|
|
message Metadata {
|
|
optional int32 duration = 1;
|
|
optional string channelJid = 2;
|
|
optional int32 channelMessageId = 3;
|
|
optional bool hasMultipleReshares = 4;
|
|
}
|
|
|
|
enum Source {
|
|
UNKNOWN = 0;
|
|
INTERNAL_RESHARE = 1;
|
|
MENTION_RESHARE = 2;
|
|
CHANNEL_RESHARE = 3;
|
|
FORWARD = 4;
|
|
}
|
|
}
|
|
|
|
enum Type {
|
|
UNKNOWN = 0;
|
|
RESHARE = 1;
|
|
EXTERNAL_SHARE = 2;
|
|
MUSIC = 3;
|
|
STATUS_MENTION = 4;
|
|
GROUP_STATUS = 5;
|
|
RL_ATTRIBUTION = 6;
|
|
AI_CREATED = 7;
|
|
LAYOUTS = 8;
|
|
NEWSLETTER_STATUS = 9;
|
|
STATUS_CLOSE_SHARING = 10;
|
|
PAID_PARTNERSHIP = 11;
|
|
}
|
|
}
|
|
|
|
message StatusMentionMessage {
|
|
optional Message quotedStatus = 1;
|
|
}
|
|
|
|
message StatusPSA {
|
|
optional uint64 campaignId = 44;
|
|
optional uint64 campaignExpirationTimestamp = 45;
|
|
}
|
|
|
|
message StickerMetadata {
|
|
optional string url = 1;
|
|
optional bytes fileSha256 = 2;
|
|
optional bytes fileEncSha256 = 3;
|
|
optional bytes mediaKey = 4;
|
|
optional string mimetype = 5;
|
|
optional uint32 height = 6;
|
|
optional uint32 width = 7;
|
|
optional string directPath = 8;
|
|
optional uint64 fileLength = 9;
|
|
optional float weight = 10;
|
|
optional int64 lastStickerSentTs = 11;
|
|
optional bool isLottie = 12;
|
|
optional string imageHash = 13;
|
|
optional bool isAvatarSticker = 14;
|
|
}
|
|
|
|
message SyncActionData {
|
|
optional bytes index = 1;
|
|
optional SyncActionValue value = 2;
|
|
optional bytes padding = 3;
|
|
optional int32 version = 4;
|
|
}
|
|
|
|
message SyncActionValue {
|
|
optional int64 timestamp = 1;
|
|
optional StarAction starAction = 2;
|
|
optional ContactAction contactAction = 3;
|
|
optional MuteAction muteAction = 4;
|
|
optional PinAction pinAction = 5;
|
|
optional PushNameSetting pushNameSetting = 7;
|
|
optional QuickReplyAction quickReplyAction = 8;
|
|
optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11;
|
|
optional LabelEditAction labelEditAction = 14;
|
|
optional LabelAssociationAction labelAssociationAction = 15;
|
|
optional LocaleSetting localeSetting = 16;
|
|
optional ArchiveChatAction archiveChatAction = 17;
|
|
optional DeleteMessageForMeAction deleteMessageForMeAction = 18;
|
|
optional KeyExpiration keyExpiration = 19;
|
|
optional MarkChatAsReadAction markChatAsReadAction = 20;
|
|
optional ClearChatAction clearChatAction = 21;
|
|
optional DeleteChatAction deleteChatAction = 22;
|
|
optional UnarchiveChatsSetting unarchiveChatsSetting = 23;
|
|
optional PrimaryFeature primaryFeature = 24;
|
|
optional AndroidUnsupportedActions androidUnsupportedActions = 26;
|
|
optional AgentAction agentAction = 27;
|
|
optional SubscriptionAction subscriptionAction = 28;
|
|
optional UserStatusMuteAction userStatusMuteAction = 29;
|
|
optional TimeFormatAction timeFormatAction = 30;
|
|
optional NuxAction nuxAction = 31;
|
|
optional PrimaryVersionAction primaryVersionAction = 32;
|
|
optional StickerAction stickerAction = 33;
|
|
optional RemoveRecentStickerAction removeRecentStickerAction = 34;
|
|
optional ChatAssignmentAction chatAssignment = 35;
|
|
optional ChatAssignmentOpenedStatusAction chatAssignmentOpenedStatus = 36;
|
|
optional PnForLidChatAction pnForLidChatAction = 37;
|
|
optional MarketingMessageAction marketingMessageAction = 38;
|
|
optional MarketingMessageBroadcastAction marketingMessageBroadcastAction = 39;
|
|
optional ExternalWebBetaAction externalWebBetaAction = 40;
|
|
optional PrivacySettingRelayAllCalls privacySettingRelayAllCalls = 41;
|
|
optional CallLogAction callLogAction = 42;
|
|
optional UGCBot ugcBot = 43;
|
|
optional StatusPrivacyAction statusPrivacy = 44;
|
|
optional BotWelcomeRequestAction botWelcomeRequestAction = 45;
|
|
optional DeleteIndividualCallLogAction deleteIndividualCallLog = 46;
|
|
optional LabelReorderingAction labelReorderingAction = 47;
|
|
optional PaymentInfoAction paymentInfoAction = 48;
|
|
optional CustomPaymentMethodsAction customPaymentMethodsAction = 49;
|
|
optional LockChatAction lockChatAction = 50;
|
|
optional ChatLockSettings chatLockSettings = 51;
|
|
optional WamoUserIdentifierAction wamoUserIdentifierAction = 52;
|
|
optional PrivacySettingDisableLinkPreviewsAction privacySettingDisableLinkPreviewsAction = 53;
|
|
optional DeviceCapabilities deviceCapabilities = 54;
|
|
optional NoteEditAction noteEditAction = 55;
|
|
optional FavoritesAction favoritesAction = 56;
|
|
optional MerchantPaymentPartnerAction merchantPaymentPartnerAction = 57;
|
|
optional WaffleAccountLinkStateAction waffleAccountLinkStateAction = 58;
|
|
optional UsernameChatStartModeAction usernameChatStartMode = 59;
|
|
optional NotificationActivitySettingAction notificationActivitySettingAction = 60;
|
|
optional LidContactAction lidContactAction = 61;
|
|
optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
|
|
optional PaymentTosAction paymentTosAction = 63;
|
|
optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
|
|
optional DetectedOutcomesStatusAction detectedOutcomesStatusAction = 66;
|
|
optional MaibaAIFeaturesControlAction maibaAiFeaturesControlAction = 68;
|
|
optional BusinessBroadcastListAction businessBroadcastListAction = 69;
|
|
optional MusicUserIdAction musicUserIdAction = 70;
|
|
optional StatusPostOptInNotificationPreferencesAction statusPostOptInNotificationPreferencesAction = 71;
|
|
optional AvatarUpdatedAction avatarUpdatedAction = 72;
|
|
optional PrivateProcessingSettingAction privateProcessingSettingAction = 74;
|
|
optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
|
|
optional AiThreadRenameAction aiThreadRenameAction = 76;
|
|
optional InteractiveMessageAction interactiveMessageAction = 77;
|
|
optional SettingsSyncAction settingsSyncAction = 78;
|
|
optional OutContactAction outContactAction = 79;
|
|
optional NctSaltSyncAction nctSaltSyncAction = 80;
|
|
optional BusinessBroadcastCampaignAction businessBroadcastCampaignAction = 81;
|
|
optional BusinessBroadcastInsightsAction businessBroadcastInsightsAction = 82;
|
|
optional CustomerDataAction customerDataAction = 83;
|
|
optional SubscriptionsSyncV2Action subscriptionsSyncV2Action = 84;
|
|
optional ThreadPinAction threadPinAction = 85;
|
|
optional AutoOrganizeBusinessChatSetting autoOrganizeBusinessChatSetting = 86;
|
|
optional BizAISettingsNudgeAction bizAiSettingsNudgeAction = 87;
|
|
message AgentAction {
|
|
optional string name = 1;
|
|
optional int32 deviceID = 2;
|
|
optional bool isDeleted = 3;
|
|
}
|
|
|
|
message AiThreadRenameAction {
|
|
optional string newTitle = 1;
|
|
}
|
|
|
|
message AndroidUnsupportedActions {
|
|
optional bool allowed = 1;
|
|
}
|
|
|
|
message ArchiveChatAction {
|
|
optional bool archived = 1;
|
|
optional SyncActionValue.SyncActionMessageRange messageRange = 2;
|
|
}
|
|
|
|
message AutoOrganizeBusinessChatSetting {
|
|
optional bool autoOrganize = 1;
|
|
}
|
|
|
|
message AvatarUpdatedAction {
|
|
optional AvatarEventType eventType = 1;
|
|
repeated SyncActionValue.StickerAction recentAvatarStickers = 2;
|
|
enum AvatarEventType {
|
|
UPDATED = 0;
|
|
CREATED = 1;
|
|
DELETED = 2;
|
|
}
|
|
}
|
|
|
|
message BizAISettingsNudgeAction {
|
|
optional BizAISettingsCategory category = 1;
|
|
optional int64 version = 2;
|
|
optional int64 updatedAtMs = 3;
|
|
enum BizAISettingsCategory {
|
|
UNKNOWN = 0;
|
|
INSTRUCTIONS = 1;
|
|
RESPONSE_SETTINGS = 2;
|
|
EXAMPLE_RESPONSES = 3;
|
|
KNOWLEDGE = 4;
|
|
LEAD_GEN = 5;
|
|
}
|
|
}
|
|
|
|
message BotWelcomeRequestAction {
|
|
optional bool isSent = 1;
|
|
}
|
|
|
|
message BroadcastListParticipant {
|
|
optional string lidJid = 1;
|
|
optional string pnJid = 2;
|
|
}
|
|
|
|
message BusinessBroadcastAssociationAction {
|
|
optional bool deleted = 1;
|
|
}
|
|
|
|
message BusinessBroadcastCampaignAction {
|
|
optional int32 deviceId = 1;
|
|
optional string adId = 2;
|
|
optional string name = 3;
|
|
optional string msgId = 4;
|
|
optional string broadcastJid = 5;
|
|
optional int32 reservedQuota = 6;
|
|
optional int64 scheduledTimestamp = 7;
|
|
optional int64 createTimestamp = 8;
|
|
optional SyncActionValue.BusinessBroadcastCampaignStatus status = 9;
|
|
}
|
|
|
|
enum BusinessBroadcastCampaignStatus {
|
|
DRAFT = 1;
|
|
SCHEDULED = 2;
|
|
PROCESSING = 3;
|
|
FAILED = 4;
|
|
SENT = 5;
|
|
}
|
|
message BusinessBroadcastInsightsAction {
|
|
optional int32 recipientCount = 1;
|
|
optional int32 deliveredCount = 2;
|
|
optional int32 readCount = 3;
|
|
optional int32 repliedCount = 4;
|
|
optional int32 quickReplyCount = 5;
|
|
}
|
|
|
|
message BusinessBroadcastListAction {
|
|
optional bool deleted = 1;
|
|
repeated SyncActionValue.BroadcastListParticipant participants = 2;
|
|
optional string listName = 3;
|
|
repeated string labelIds = 4;
|
|
optional string audienceExpression = 5;
|
|
}
|
|
|
|
message CallLogAction {
|
|
optional CallLogRecord callLogRecord = 1;
|
|
}
|
|
|
|
message ChatAssignmentAction {
|
|
optional string deviceAgentID = 1;
|
|
}
|
|
|
|
message ChatAssignmentOpenedStatusAction {
|
|
optional bool chatOpened = 1;
|
|
}
|
|
|
|
message ClearChatAction {
|
|
optional SyncActionValue.SyncActionMessageRange messageRange = 1;
|
|
}
|
|
|
|
message ContactAction {
|
|
optional string fullName = 1;
|
|
optional string firstName = 2;
|
|
optional string lidJid = 3;
|
|
optional bool saveOnPrimaryAddressbook = 4;
|
|
optional string pnJid = 5;
|
|
optional string username = 6;
|
|
}
|
|
|
|
message CtwaPerCustomerDataSharingAction {
|
|
optional bool isCtwaPerCustomerDataSharingEnabled = 1;
|
|
}
|
|
|
|
message CustomPaymentMethod {
|
|
optional string credentialId = 1;
|
|
optional string country = 2;
|
|
optional string type = 3;
|
|
repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
|
|
}
|
|
|
|
message CustomPaymentMethodMetadata {
|
|
optional string key = 1;
|
|
optional string value = 2;
|
|
}
|
|
|
|
message CustomPaymentMethodsAction {
|
|
repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
|
|
}
|
|
|
|
message CustomerDataAction {
|
|
optional string chatJid = 1;
|
|
optional int32 contactType = 2;
|
|
optional string email = 3;
|
|
optional string altPhoneNumbers = 4;
|
|
optional int64 birthday = 5;
|
|
optional string address = 6;
|
|
optional int32 acquisitionSource = 7;
|
|
optional int32 leadStage = 8;
|
|
optional int64 lastOrder = 9;
|
|
optional int64 createdAt = 10;
|
|
optional int64 modifiedAt = 11;
|
|
}
|
|
|
|
message DeleteChatAction {
|
|
optional SyncActionValue.SyncActionMessageRange messageRange = 1;
|
|
}
|
|
|
|
message DeleteIndividualCallLogAction {
|
|
optional string peerJid = 1;
|
|
optional bool isIncoming = 2;
|
|
}
|
|
|
|
message DeleteMessageForMeAction {
|
|
optional bool deleteMedia = 1;
|
|
optional int64 messageTimestamp = 2;
|
|
}
|
|
|
|
message DetectedOutcomesStatusAction {
|
|
optional bool isEnabled = 1;
|
|
}
|
|
|
|
message ExternalWebBetaAction {
|
|
optional bool isOptIn = 1;
|
|
}
|
|
|
|
message FavoritesAction {
|
|
repeated Favorite favorites = 1;
|
|
message Favorite {
|
|
optional string id = 1;
|
|
}
|
|
|
|
}
|
|
|
|
message InteractiveMessageAction {
|
|
optional InteractiveMessageActionMode type = 1;
|
|
optional string agmId = 2;
|
|
enum InteractiveMessageActionMode {
|
|
DISABLE_CTA = 1;
|
|
}
|
|
}
|
|
|
|
message KeyExpiration {
|
|
optional int32 expiredKeyEpoch = 1;
|
|
}
|
|
|
|
message LabelAssociationAction {
|
|
optional bool labeled = 1;
|
|
}
|
|
|
|
message LabelEditAction {
|
|
optional string name = 1;
|
|
optional int32 color = 2;
|
|
optional int32 predefinedId = 3;
|
|
optional bool deleted = 4;
|
|
optional int32 orderIndex = 5;
|
|
optional bool isActive = 6;
|
|
optional ListType type = 7;
|
|
optional bool isImmutable = 8;
|
|
optional int64 muteEndTimeMs = 9;
|
|
enum ListType {
|
|
NONE = 0;
|
|
UNREAD = 1;
|
|
GROUPS = 2;
|
|
FAVORITES = 3;
|
|
PREDEFINED = 4;
|
|
CUSTOM = 5;
|
|
COMMUNITY = 6;
|
|
SERVER_ASSIGNED = 7;
|
|
DRAFTED = 8;
|
|
AI_HANDOFF = 9;
|
|
CHANNELS = 10;
|
|
AI_RESPONDING = 11;
|
|
}
|
|
}
|
|
|
|
message LabelReorderingAction {
|
|
repeated int32 sortedLabelIds = 1;
|
|
}
|
|
|
|
message LidContactAction {
|
|
optional string fullName = 1;
|
|
optional string firstName = 2;
|
|
optional string username = 3;
|
|
}
|
|
|
|
message LocaleSetting {
|
|
optional string locale = 1;
|
|
}
|
|
|
|
message LockChatAction {
|
|
optional bool locked = 1;
|
|
}
|
|
|
|
message MaibaAIFeaturesControlAction {
|
|
optional MaibaAIFeatureStatus aiFeatureStatus = 1;
|
|
enum MaibaAIFeatureStatus {
|
|
ENABLED = 0;
|
|
ENABLED_HAS_LEARNING = 1;
|
|
DISABLED = 2;
|
|
}
|
|
}
|
|
|
|
message MarkChatAsReadAction {
|
|
optional bool read = 1;
|
|
optional SyncActionValue.SyncActionMessageRange messageRange = 2;
|
|
}
|
|
|
|
message MarketingMessageAction {
|
|
optional string name = 1;
|
|
optional string message = 2;
|
|
optional MarketingMessagePrototypeType type = 3;
|
|
optional int64 createdAt = 4;
|
|
optional int64 lastSentAt = 5;
|
|
optional bool isDeleted = 6;
|
|
optional string mediaId = 7;
|
|
enum MarketingMessagePrototypeType {
|
|
PERSONALIZED = 0;
|
|
}
|
|
}
|
|
|
|
message MarketingMessageBroadcastAction {
|
|
optional int32 repliedCount = 1;
|
|
}
|
|
|
|
message MerchantPaymentPartnerAction {
|
|
optional Status status = 1;
|
|
optional string country = 2;
|
|
optional string gatewayName = 3;
|
|
optional string credentialId = 4;
|
|
enum Status {
|
|
ACTIVE = 0;
|
|
INACTIVE = 1;
|
|
}
|
|
}
|
|
|
|
message MusicUserIdAction {
|
|
optional string musicUserId = 1;
|
|
map<string, string> music_user_id_map = 2;
|
|
}
|
|
|
|
message MuteAction {
|
|
optional bool muted = 1;
|
|
optional int64 muteEndTimestamp = 2;
|
|
optional bool autoMuted = 3;
|
|
optional int64 muteEveryoneMentionEndTimestamp = 4;
|
|
}
|
|
|
|
message NctSaltSyncAction {
|
|
optional bytes salt = 1;
|
|
}
|
|
|
|
message NewsletterSavedInterestsAction {
|
|
optional string newsletterSavedInterests = 1;
|
|
}
|
|
|
|
message NoteEditAction {
|
|
optional NoteType type = 1;
|
|
optional string chatJid = 2;
|
|
optional int64 createdAt = 3;
|
|
optional bool deleted = 4;
|
|
optional string unstructuredContent = 5;
|
|
enum NoteType {
|
|
UNSTRUCTURED = 1;
|
|
STRUCTURED = 2;
|
|
}
|
|
}
|
|
|
|
message NotificationActivitySettingAction {
|
|
optional NotificationActivitySetting notificationActivitySetting = 1;
|
|
enum NotificationActivitySetting {
|
|
DEFAULT_ALL_MESSAGES = 0;
|
|
ALL_MESSAGES = 1;
|
|
HIGHLIGHTS = 2;
|
|
DEFAULT_HIGHLIGHTS = 3;
|
|
}
|
|
}
|
|
|
|
message NuxAction {
|
|
optional bool acknowledged = 1;
|
|
}
|
|
|
|
message OutContactAction {
|
|
optional string fullName = 1;
|
|
optional string firstName = 2;
|
|
}
|
|
|
|
message PaymentInfoAction {
|
|
optional string cpi = 1;
|
|
}
|
|
|
|
message PaymentTosAction {
|
|
optional PaymentNotice paymentNotice = 1;
|
|
optional bool accepted = 2;
|
|
enum PaymentNotice {
|
|
BR_PAY_PRIVACY_POLICY = 0;
|
|
}
|
|
}
|
|
|
|
message PinAction {
|
|
optional bool pinned = 1;
|
|
}
|
|
|
|
message PnForLidChatAction {
|
|
optional string pnJid = 1;
|
|
}
|
|
|
|
message PrimaryFeature {
|
|
repeated string flags = 1;
|
|
}
|
|
|
|
message PrimaryVersionAction {
|
|
optional string version = 1;
|
|
}
|
|
|
|
message PrivacySettingChannelsPersonalisedRecommendationAction {
|
|
optional bool isUserOptedOut = 1;
|
|
}
|
|
|
|
message PrivacySettingDisableLinkPreviewsAction {
|
|
optional bool isPreviewsDisabled = 1;
|
|
}
|
|
|
|
message PrivacySettingRelayAllCalls {
|
|
optional bool isEnabled = 1;
|
|
}
|
|
|
|
message PrivateProcessingSettingAction {
|
|
optional PrivateProcessingStatus privateProcessingStatus = 1;
|
|
enum PrivateProcessingStatus {
|
|
UNDEFINED = 0;
|
|
ENABLED = 1;
|
|
DISABLED = 2;
|
|
}
|
|
}
|
|
|
|
message PushNameSetting {
|
|
optional string name = 1;
|
|
}
|
|
|
|
message QuickReplyAction {
|
|
optional string shortcut = 1;
|
|
optional string message = 2;
|
|
repeated string keywords = 3;
|
|
optional int32 count = 4;
|
|
optional bool deleted = 5;
|
|
repeated string associatedLabelIds = 6;
|
|
}
|
|
|
|
message RecentEmojiWeightsAction {
|
|
repeated RecentEmojiWeight weights = 1;
|
|
}
|
|
|
|
message RemoveRecentStickerAction {
|
|
optional int64 lastStickerSentTs = 1;
|
|
}
|
|
|
|
message SettingsSyncAction {
|
|
optional bool startAtLogin = 1;
|
|
optional bool minimizeToTray = 2;
|
|
optional string language = 3;
|
|
optional bool replaceTextWithEmoji = 4;
|
|
optional DisplayMode bannerNotificationDisplayMode = 5;
|
|
optional DisplayMode unreadCounterBadgeDisplayMode = 6;
|
|
optional bool isMessagesNotificationEnabled = 7;
|
|
optional bool isCallsNotificationEnabled = 8;
|
|
optional bool isReactionsNotificationEnabled = 9;
|
|
optional bool isStatusReactionsNotificationEnabled = 10;
|
|
optional bool isTextPreviewForNotificationEnabled = 11;
|
|
optional int32 defaultNotificationToneId = 12;
|
|
optional int32 groupDefaultNotificationToneId = 13;
|
|
optional int32 appTheme = 14;
|
|
optional int32 wallpaperId = 15;
|
|
optional bool isDoodleWallpaperEnabled = 16;
|
|
optional int32 fontSize = 17;
|
|
optional bool isPhotosAutodownloadEnabled = 18;
|
|
optional bool isAudiosAutodownloadEnabled = 19;
|
|
optional bool isVideosAutodownloadEnabled = 20;
|
|
optional bool isDocumentsAutodownloadEnabled = 21;
|
|
optional bool disableLinkPreviews = 22;
|
|
optional int32 notificationToneId = 23;
|
|
optional MediaQualitySetting mediaUploadQuality = 24;
|
|
optional bool isSpellCheckEnabled = 25;
|
|
optional bool isEnterToSendEnabled = 26;
|
|
optional bool isGroupMessageNotificationEnabled = 27;
|
|
optional bool isGroupReactionsNotificationEnabled = 28;
|
|
optional bool isStatusNotificationEnabled = 29;
|
|
optional int32 statusNotificationToneId = 30;
|
|
optional bool shouldPlaySoundForCallNotification = 31;
|
|
optional string chatThemeId = 32;
|
|
optional string colorSchemeId = 33;
|
|
enum DisplayMode {
|
|
DISPLAY_MODE_UNKNOWN = 0;
|
|
ALWAYS = 1;
|
|
NEVER = 2;
|
|
ONLY_WHEN_APP_IS_OPEN = 3;
|
|
}
|
|
enum MediaQualitySetting {
|
|
MEDIA_QUALITY_UNKNOWN = 0;
|
|
STANDARD = 1;
|
|
HD = 2;
|
|
}
|
|
enum SettingKey {
|
|
SETTING_KEY_UNKNOWN = 0;
|
|
START_AT_LOGIN = 1;
|
|
MINIMIZE_TO_TRAY = 2;
|
|
LANGUAGE = 3;
|
|
REPLACE_TEXT_WITH_EMOJI = 4;
|
|
BANNER_NOTIFICATION_DISPLAY_MODE = 5;
|
|
UNREAD_COUNTER_BADGE_DISPLAY_MODE = 6;
|
|
IS_MESSAGES_NOTIFICATION_ENABLED = 7;
|
|
IS_CALLS_NOTIFICATION_ENABLED = 8;
|
|
IS_REACTIONS_NOTIFICATION_ENABLED = 9;
|
|
IS_STATUS_REACTIONS_NOTIFICATION_ENABLED = 10;
|
|
IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED = 11;
|
|
DEFAULT_NOTIFICATION_TONE_ID = 12;
|
|
GROUP_DEFAULT_NOTIFICATION_TONE_ID = 13;
|
|
APP_THEME = 14;
|
|
WALLPAPER_ID = 15;
|
|
IS_DOODLE_WALLPAPER_ENABLED = 16;
|
|
FONT_SIZE = 17;
|
|
IS_PHOTOS_AUTODOWNLOAD_ENABLED = 18;
|
|
IS_AUDIOS_AUTODOWNLOAD_ENABLED = 19;
|
|
IS_VIDEOS_AUTODOWNLOAD_ENABLED = 20;
|
|
IS_DOCUMENTS_AUTODOWNLOAD_ENABLED = 21;
|
|
DISABLE_LINK_PREVIEWS = 22;
|
|
NOTIFICATION_TONE_ID = 23;
|
|
MEDIA_UPLOAD_QUALITY = 24;
|
|
IS_SPELL_CHECK_ENABLED = 25;
|
|
IS_ENTER_TO_SEND_ENABLED = 26;
|
|
IS_GROUP_MESSAGE_NOTIFICATION_ENABLED = 27;
|
|
IS_GROUP_REACTIONS_NOTIFICATION_ENABLED = 28;
|
|
IS_STATUS_NOTIFICATION_ENABLED = 29;
|
|
STATUS_NOTIFICATION_TONE_ID = 30;
|
|
SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION = 31;
|
|
CHAT_THEME_ID = 32;
|
|
COLOR_SCHEME_ID = 33;
|
|
}
|
|
enum SettingPlatform {
|
|
PLATFORM_UNKNOWN = 0;
|
|
WEB = 1;
|
|
HYBRID = 2;
|
|
WINDOWS = 3;
|
|
MAC = 4;
|
|
}
|
|
}
|
|
|
|
message StarAction {
|
|
optional bool starred = 1;
|
|
}
|
|
|
|
message StatusPostOptInNotificationPreferencesAction {
|
|
optional bool enabled = 1;
|
|
}
|
|
|
|
message StatusPrivacyAction {
|
|
optional StatusDistributionMode mode = 1;
|
|
repeated string userJid = 2;
|
|
optional bool shareToFB = 3;
|
|
optional bool shareToIG = 4;
|
|
repeated CustomList customLists = 5;
|
|
repeated StatusDistributionMode modes = 6;
|
|
message CustomList {
|
|
optional string listId = 1;
|
|
optional string name = 2;
|
|
optional string emoji = 3;
|
|
optional bool isSelected = 4;
|
|
repeated string userJid = 5;
|
|
}
|
|
|
|
enum StatusDistributionMode {
|
|
ALLOW_LIST = 0;
|
|
DENY_LIST = 1;
|
|
CONTACTS = 2;
|
|
CLOSE_FRIENDS = 3;
|
|
CUSTOM_LIST = 4;
|
|
}
|
|
}
|
|
|
|
message StickerAction {
|
|
optional string url = 1;
|
|
optional bytes fileEncSha256 = 2;
|
|
optional bytes mediaKey = 3;
|
|
optional string mimetype = 4;
|
|
optional uint32 height = 5;
|
|
optional uint32 width = 6;
|
|
optional string directPath = 7;
|
|
optional uint64 fileLength = 8;
|
|
optional bool isFavorite = 9;
|
|
optional uint32 deviceIdHint = 10;
|
|
optional bool isLottie = 11;
|
|
optional string imageHash = 12;
|
|
optional bool isAvatarSticker = 13;
|
|
}
|
|
|
|
message SubscriptionAction {
|
|
optional bool isDeactivated = 1;
|
|
optional bool isAutoRenewing = 2;
|
|
optional int64 expirationDate = 3;
|
|
}
|
|
|
|
message SubscriptionsSyncV2Action {
|
|
repeated SubscriptionInfo subscriptions = 1;
|
|
repeated PaidFeature paidFeature = 2;
|
|
message PaidFeature {
|
|
optional string name = 1;
|
|
optional bool enabled = 2;
|
|
optional int32 limit = 3;
|
|
optional int64 expirationTime = 4;
|
|
}
|
|
|
|
message SubscriptionInfo {
|
|
optional string id = 1;
|
|
optional int32 tier = 2;
|
|
optional string status = 3;
|
|
optional int64 startTime = 4;
|
|
optional int64 endTime = 5;
|
|
optional bool isPlatformChanged = 6;
|
|
optional string source = 7;
|
|
optional int64 creationTime = 8;
|
|
}
|
|
|
|
}
|
|
|
|
message SyncActionMessage {
|
|
optional MessageKey key = 1;
|
|
optional int64 timestamp = 2;
|
|
}
|
|
|
|
message SyncActionMessageRange {
|
|
optional int64 lastMessageTimestamp = 1;
|
|
optional int64 lastSystemMessageTimestamp = 2;
|
|
repeated SyncActionValue.SyncActionMessage messages = 3;
|
|
}
|
|
|
|
message ThreadPinAction {
|
|
optional bool pinned = 1;
|
|
}
|
|
|
|
message TimeFormatAction {
|
|
optional bool isTwentyFourHourFormatEnabled = 1;
|
|
}
|
|
|
|
message UGCBot {
|
|
optional bytes definition = 1;
|
|
}
|
|
|
|
message UnarchiveChatsSetting {
|
|
optional bool unarchiveChats = 1;
|
|
}
|
|
|
|
message UserStatusMuteAction {
|
|
optional bool muted = 1;
|
|
}
|
|
|
|
message UsernameChatStartModeAction {
|
|
optional ChatStartMode chatStartMode = 1;
|
|
enum ChatStartMode {
|
|
LID = 1;
|
|
PN = 2;
|
|
}
|
|
}
|
|
|
|
message WaffleAccountLinkStateAction {
|
|
optional AccountLinkState linkState = 2;
|
|
enum AccountLinkState {
|
|
ACTIVE = 0;
|
|
PAUSED = 1;
|
|
UNLINKED = 2;
|
|
}
|
|
}
|
|
|
|
message WamoUserIdentifierAction {
|
|
optional string identifier = 1;
|
|
}
|
|
|
|
}
|
|
|
|
message SyncdIndex {
|
|
optional bytes blob = 1;
|
|
}
|
|
|
|
message SyncdMutation {
|
|
optional SyncdOperation operation = 1;
|
|
optional SyncdRecord record = 2;
|
|
enum SyncdOperation {
|
|
SET = 0;
|
|
REMOVE = 1;
|
|
}
|
|
}
|
|
|
|
message SyncdMutations {
|
|
repeated SyncdMutation mutations = 1;
|
|
}
|
|
|
|
message SyncdPatch {
|
|
optional SyncdVersion version = 1;
|
|
repeated SyncdMutation mutations = 2;
|
|
optional ExternalBlobReference externalMutations = 3;
|
|
optional bytes snapshotMac = 4;
|
|
optional bytes patchMac = 5;
|
|
optional KeyId keyId = 6;
|
|
optional ExitCode exitCode = 7;
|
|
optional uint32 deviceIndex = 8;
|
|
optional bytes clientDebugData = 9;
|
|
}
|
|
|
|
message SyncdRecord {
|
|
optional SyncdIndex index = 1;
|
|
optional SyncdValue value = 2;
|
|
optional KeyId keyId = 3;
|
|
}
|
|
|
|
message SyncdSnapshot {
|
|
optional SyncdVersion version = 1;
|
|
repeated SyncdRecord records = 2;
|
|
optional bytes mac = 3;
|
|
optional KeyId keyId = 4;
|
|
}
|
|
|
|
message SyncdValue {
|
|
optional bytes blob = 1;
|
|
}
|
|
|
|
message SyncdVersion {
|
|
optional uint64 version = 1;
|
|
}
|
|
|
|
message TapLinkAction {
|
|
optional string title = 1;
|
|
optional string tapUrl = 2;
|
|
}
|
|
|
|
message TemplateButton {
|
|
optional uint32 index = 4;
|
|
oneof button {
|
|
TemplateButton.QuickReplyButton quickReplyButton = 1;
|
|
TemplateButton.URLButton urlButton = 2;
|
|
TemplateButton.CallButton callButton = 3;
|
|
}
|
|
message CallButton {
|
|
optional Message.HighlyStructuredMessage displayText = 1;
|
|
optional Message.HighlyStructuredMessage phoneNumber = 2;
|
|
}
|
|
|
|
message QuickReplyButton {
|
|
optional Message.HighlyStructuredMessage displayText = 1;
|
|
optional string id = 2;
|
|
}
|
|
|
|
message URLButton {
|
|
optional Message.HighlyStructuredMessage displayText = 1;
|
|
optional Message.HighlyStructuredMessage url = 2;
|
|
}
|
|
|
|
}
|
|
|
|
message ThreadID {
|
|
optional ThreadType threadType = 1;
|
|
optional MessageKey threadKey = 2;
|
|
enum ThreadType {
|
|
UNKNOWN = 0;
|
|
VIEW_REPLIES = 1;
|
|
AI_THREAD = 2;
|
|
}
|
|
}
|
|
|
|
message UrlTrackingMap {
|
|
repeated UrlTrackingMapElement urlTrackingMapElements = 1;
|
|
message UrlTrackingMapElement {
|
|
optional string originalUrl = 1;
|
|
optional string unconsentedUsersUrl = 2;
|
|
optional string consentedUsersUrl = 3;
|
|
optional uint32 cardIndex = 4;
|
|
}
|
|
|
|
}
|
|
|
|
message UserPassword {
|
|
optional Encoding encoding = 1;
|
|
optional Transformer transformer = 2;
|
|
repeated TransformerArg transformerArg = 3;
|
|
optional bytes transformedData = 4;
|
|
enum Encoding {
|
|
UTF8 = 0;
|
|
UTF8_BROKEN = 1;
|
|
}
|
|
enum Transformer {
|
|
NONE = 0;
|
|
PBKDF2_HMAC_SHA512 = 1;
|
|
PBKDF2_HMAC_SHA384 = 2;
|
|
}
|
|
message TransformerArg {
|
|
optional string key = 1;
|
|
optional Value value = 2;
|
|
message Value {
|
|
oneof value {
|
|
bytes asBlob = 1;
|
|
uint32 asUnsignedInteger = 2;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
message UserReceipt {
|
|
optional string userJid = 1;
|
|
optional int64 receiptTimestamp = 2;
|
|
optional int64 readTimestamp = 3;
|
|
optional int64 playedTimestamp = 4;
|
|
repeated string pendingDeviceJid = 5;
|
|
repeated string deliveredDeviceJid = 6;
|
|
}
|
|
|
|
message VerifiedNameCertificate {
|
|
optional bytes details = 1;
|
|
optional bytes signature = 2;
|
|
optional bytes serverSignature = 3;
|
|
message Details {
|
|
optional uint64 serial = 1;
|
|
optional string issuer = 2;
|
|
optional string verifiedName = 4;
|
|
repeated LocalizedName localizedNames = 8;
|
|
optional uint64 issueTime = 10;
|
|
}
|
|
|
|
}
|
|
|
|
message WallpaperSettings {
|
|
optional string filename = 1;
|
|
optional uint32 opacity = 2;
|
|
optional bool isGenAi = 3;
|
|
}
|
|
|
|
message WebFeatures {
|
|
optional Flag labelsDisplay = 1;
|
|
optional Flag voipIndividualOutgoing = 2;
|
|
optional Flag groupsV3 = 3;
|
|
optional Flag groupsV3Create = 4;
|
|
optional Flag changeNumberV2 = 5;
|
|
optional Flag queryStatusV3Thumbnail = 6;
|
|
optional Flag liveLocations = 7;
|
|
optional Flag queryVname = 8;
|
|
optional Flag voipIndividualIncoming = 9;
|
|
optional Flag quickRepliesQuery = 10;
|
|
optional Flag payments = 11;
|
|
optional Flag stickerPackQuery = 12;
|
|
optional Flag liveLocationsFinal = 13;
|
|
optional Flag labelsEdit = 14;
|
|
optional Flag mediaUpload = 15;
|
|
optional Flag mediaUploadRichQuickReplies = 18;
|
|
optional Flag vnameV2 = 19;
|
|
optional Flag videoPlaybackUrl = 20;
|
|
optional Flag statusRanking = 21;
|
|
optional Flag voipIndividualVideo = 22;
|
|
optional Flag thirdPartyStickers = 23;
|
|
optional Flag frequentlyForwardedSetting = 24;
|
|
optional Flag groupsV4JoinPermission = 25;
|
|
optional Flag recentStickers = 26;
|
|
optional Flag catalog = 27;
|
|
optional Flag starredStickers = 28;
|
|
optional Flag voipGroupCall = 29;
|
|
optional Flag templateMessage = 30;
|
|
optional Flag templateMessageInteractivity = 31;
|
|
optional Flag ephemeralMessages = 32;
|
|
optional Flag e2ENotificationSync = 33;
|
|
optional Flag recentStickersV2 = 34;
|
|
optional Flag recentStickersV3 = 36;
|
|
optional Flag userNotice = 37;
|
|
optional Flag support = 39;
|
|
optional Flag groupUiiCleanup = 40;
|
|
optional Flag groupDogfoodingInternalOnly = 41;
|
|
optional Flag settingsSync = 42;
|
|
optional Flag archiveV2 = 43;
|
|
optional Flag ephemeralAllowGroupMembers = 44;
|
|
optional Flag ephemeral24HDuration = 45;
|
|
optional Flag mdForceUpgrade = 46;
|
|
optional Flag disappearingMode = 47;
|
|
optional Flag externalMdOptInAvailable = 48;
|
|
optional Flag noDeleteMessageTimeLimit = 49;
|
|
enum Flag {
|
|
NOT_STARTED = 0;
|
|
FORCE_UPGRADE = 1;
|
|
DEVELOPMENT = 2;
|
|
PRODUCTION = 3;
|
|
}
|
|
}
|
|
|
|
enum WebLinkRenderConfig {
|
|
WEBVIEW = 0;
|
|
SYSTEM = 1;
|
|
}
|
|
message WebMessageInfo {
|
|
optional MessageKey key = 1;
|
|
optional Message message = 2;
|
|
optional uint64 messageTimestamp = 3;
|
|
optional Status status = 4;
|
|
optional string participant = 5;
|
|
optional uint64 messageC2STimestamp = 6;
|
|
optional bool ignore = 16;
|
|
optional bool starred = 17;
|
|
optional bool broadcast = 18;
|
|
optional string pushName = 19;
|
|
optional bytes mediaCiphertextSha256 = 20;
|
|
optional bool multicast = 21;
|
|
optional bool urlText = 22;
|
|
optional bool urlNumber = 23;
|
|
optional StubType messageStubType = 24;
|
|
optional bool clearMedia = 25;
|
|
repeated string messageStubParameters = 26;
|
|
optional uint32 duration = 27;
|
|
repeated string labels = 28;
|
|
optional PaymentInfo paymentInfo = 29;
|
|
optional Message.LiveLocationMessage finalLiveLocation = 30;
|
|
optional PaymentInfo quotedPaymentInfo = 31;
|
|
optional uint64 ephemeralStartTimestamp = 32;
|
|
optional uint32 ephemeralDuration = 33;
|
|
optional bool ephemeralOffToOn = 34;
|
|
optional bool ephemeralOutOfSync = 35;
|
|
optional BizPrivacyStatus bizPrivacyStatus = 36;
|
|
optional string verifiedBizName = 37;
|
|
optional MediaData mediaData = 38;
|
|
optional PhotoChange photoChange = 39;
|
|
repeated UserReceipt userReceipt = 40;
|
|
repeated Reaction reactions = 41;
|
|
optional MediaData quotedStickerData = 42;
|
|
optional bytes futureproofData = 43;
|
|
optional StatusPSA statusPsa = 44;
|
|
repeated PollUpdate pollUpdates = 45;
|
|
optional PollAdditionalMetadata pollAdditionalMetadata = 46;
|
|
optional string agentId = 47;
|
|
optional bool statusAlreadyViewed = 48;
|
|
optional bytes messageSecret = 49;
|
|
optional KeepInChat keepInChat = 50;
|
|
optional string originalSelfAuthorUserJidString = 51;
|
|
optional uint64 revokeMessageTimestamp = 52;
|
|
optional PinInChat pinInChat = 54;
|
|
optional PremiumMessageInfo premiumMessageInfo = 55;
|
|
optional bool is1PBizBotMessage = 56;
|
|
optional bool isGroupHistoryMessage = 57;
|
|
optional string botMessageInvokerJid = 58;
|
|
optional CommentMetadata commentMetadata = 59;
|
|
repeated EventResponse eventResponses = 61;
|
|
optional ReportingTokenInfo reportingTokenInfo = 62;
|
|
optional uint64 newsletterServerId = 63;
|
|
optional EventAdditionalMetadata eventAdditionalMetadata = 64;
|
|
optional bool isMentionedInStatus = 65;
|
|
repeated string statusMentions = 66;
|
|
optional MessageKey targetMessageId = 67;
|
|
repeated MessageAddOn messageAddOns = 68;
|
|
optional StatusMentionMessage statusMentionMessageInfo = 69;
|
|
optional bool isSupportAiMessage = 70;
|
|
repeated string statusMentionSources = 71;
|
|
repeated Citation supportAiCitations = 72;
|
|
optional string botTargetId = 73;
|
|
optional GroupHistoryIndividualMessageInfo groupHistoryIndividualMessageInfo = 74;
|
|
optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
|
|
optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
|
|
optional QuarantinedMessage quarantinedMessage = 77;
|
|
optional uint32 nonJidMentions = 78;
|
|
optional string hsmTag = 79;
|
|
optional uint64 ephemeralExpirationTimestamp = 80;
|
|
optional ScheduledMessageMetadata scheduledMessageMetadata = 81;
|
|
optional string decisionId = 82;
|
|
repeated string decisionSources = 83;
|
|
enum BizPrivacyStatus {
|
|
E2EE = 0;
|
|
FB = 2;
|
|
BSP = 1;
|
|
BSP_AND_FB = 3;
|
|
}
|
|
enum Status {
|
|
ERROR = 0;
|
|
PENDING = 1;
|
|
SERVER_ACK = 2;
|
|
DELIVERY_ACK = 3;
|
|
READ = 4;
|
|
PLAYED = 5;
|
|
}
|
|
enum StubType {
|
|
UNKNOWN = 0;
|
|
REVOKE = 1;
|
|
CIPHERTEXT = 2;
|
|
FUTUREPROOF = 3;
|
|
NON_VERIFIED_TRANSITION = 4;
|
|
UNVERIFIED_TRANSITION = 5;
|
|
VERIFIED_TRANSITION = 6;
|
|
VERIFIED_LOW_UNKNOWN = 7;
|
|
VERIFIED_HIGH = 8;
|
|
VERIFIED_INITIAL_UNKNOWN = 9;
|
|
VERIFIED_INITIAL_LOW = 10;
|
|
VERIFIED_INITIAL_HIGH = 11;
|
|
VERIFIED_TRANSITION_ANY_TO_NONE = 12;
|
|
VERIFIED_TRANSITION_ANY_TO_HIGH = 13;
|
|
VERIFIED_TRANSITION_HIGH_TO_LOW = 14;
|
|
VERIFIED_TRANSITION_HIGH_TO_UNKNOWN = 15;
|
|
VERIFIED_TRANSITION_UNKNOWN_TO_LOW = 16;
|
|
VERIFIED_TRANSITION_LOW_TO_UNKNOWN = 17;
|
|
VERIFIED_TRANSITION_NONE_TO_LOW = 18;
|
|
VERIFIED_TRANSITION_NONE_TO_UNKNOWN = 19;
|
|
GROUP_CREATE = 20;
|
|
GROUP_CHANGE_SUBJECT = 21;
|
|
GROUP_CHANGE_ICON = 22;
|
|
GROUP_CHANGE_INVITE_LINK = 23;
|
|
GROUP_CHANGE_DESCRIPTION = 24;
|
|
GROUP_CHANGE_RESTRICT = 25;
|
|
GROUP_CHANGE_ANNOUNCE = 26;
|
|
GROUP_PARTICIPANT_ADD = 27;
|
|
GROUP_PARTICIPANT_REMOVE = 28;
|
|
GROUP_PARTICIPANT_PROMOTE = 29;
|
|
GROUP_PARTICIPANT_DEMOTE = 30;
|
|
GROUP_PARTICIPANT_INVITE = 31;
|
|
GROUP_PARTICIPANT_LEAVE = 32;
|
|
GROUP_PARTICIPANT_CHANGE_NUMBER = 33;
|
|
BROADCAST_CREATE = 34;
|
|
BROADCAST_ADD = 35;
|
|
BROADCAST_REMOVE = 36;
|
|
GENERIC_NOTIFICATION = 37;
|
|
E2E_IDENTITY_CHANGED = 38;
|
|
E2E_ENCRYPTED = 39;
|
|
CALL_MISSED_VOICE = 40;
|
|
CALL_MISSED_VIDEO = 41;
|
|
INDIVIDUAL_CHANGE_NUMBER = 42;
|
|
GROUP_DELETE = 43;
|
|
GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE = 44;
|
|
CALL_MISSED_GROUP_VOICE = 45;
|
|
CALL_MISSED_GROUP_VIDEO = 46;
|
|
PAYMENT_CIPHERTEXT = 47;
|
|
PAYMENT_FUTUREPROOF = 48;
|
|
PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED = 49;
|
|
PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED = 50;
|
|
PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED = 51;
|
|
PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP = 52;
|
|
PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP = 53;
|
|
PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER = 54;
|
|
PAYMENT_ACTION_SEND_PAYMENT_REMINDER = 55;
|
|
PAYMENT_ACTION_SEND_PAYMENT_INVITATION = 56;
|
|
PAYMENT_ACTION_REQUEST_DECLINED = 57;
|
|
PAYMENT_ACTION_REQUEST_EXPIRED = 58;
|
|
PAYMENT_ACTION_REQUEST_CANCELLED = 59;
|
|
BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM = 60;
|
|
BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP = 61;
|
|
BIZ_INTRO_TOP = 62;
|
|
BIZ_INTRO_BOTTOM = 63;
|
|
BIZ_NAME_CHANGE = 64;
|
|
BIZ_MOVE_TO_CONSUMER_APP = 65;
|
|
BIZ_TWO_TIER_MIGRATION_TOP = 66;
|
|
BIZ_TWO_TIER_MIGRATION_BOTTOM = 67;
|
|
OVERSIZED = 68;
|
|
GROUP_CHANGE_NO_FREQUENTLY_FORWARDED = 69;
|
|
GROUP_V4_ADD_INVITE_SENT = 70;
|
|
GROUP_PARTICIPANT_ADD_REQUEST_JOIN = 71;
|
|
CHANGE_EPHEMERAL_SETTING = 72;
|
|
E2E_DEVICE_CHANGED = 73;
|
|
VIEWED_ONCE = 74;
|
|
E2E_ENCRYPTED_NOW = 75;
|
|
BLUE_MSG_BSP_FB_TO_BSP_PREMISE = 76;
|
|
BLUE_MSG_BSP_FB_TO_SELF_FB = 77;
|
|
BLUE_MSG_BSP_FB_TO_SELF_PREMISE = 78;
|
|
BLUE_MSG_BSP_FB_UNVERIFIED = 79;
|
|
BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 80;
|
|
BLUE_MSG_BSP_FB_VERIFIED = 81;
|
|
BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 82;
|
|
BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE = 83;
|
|
BLUE_MSG_BSP_PREMISE_UNVERIFIED = 84;
|
|
BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 85;
|
|
BLUE_MSG_BSP_PREMISE_VERIFIED = 86;
|
|
BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 87;
|
|
BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED = 88;
|
|
BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED = 89;
|
|
BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED = 90;
|
|
BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED = 91;
|
|
BLUE_MSG_SELF_FB_TO_BSP_PREMISE = 92;
|
|
BLUE_MSG_SELF_FB_TO_SELF_PREMISE = 93;
|
|
BLUE_MSG_SELF_FB_UNVERIFIED = 94;
|
|
BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 95;
|
|
BLUE_MSG_SELF_FB_VERIFIED = 96;
|
|
BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 97;
|
|
BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE = 98;
|
|
BLUE_MSG_SELF_PREMISE_UNVERIFIED = 99;
|
|
BLUE_MSG_SELF_PREMISE_VERIFIED = 100;
|
|
BLUE_MSG_TO_BSP_FB = 101;
|
|
BLUE_MSG_TO_CONSUMER = 102;
|
|
BLUE_MSG_TO_SELF_FB = 103;
|
|
BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED = 104;
|
|
BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 105;
|
|
BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED = 106;
|
|
BLUE_MSG_UNVERIFIED_TO_VERIFIED = 107;
|
|
BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED = 108;
|
|
BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 109;
|
|
BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED = 110;
|
|
BLUE_MSG_VERIFIED_TO_UNVERIFIED = 111;
|
|
BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 112;
|
|
BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED = 113;
|
|
BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 114;
|
|
BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED = 115;
|
|
BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 116;
|
|
BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 117;
|
|
E2E_IDENTITY_UNAVAILABLE = 118;
|
|
GROUP_CREATING = 119;
|
|
GROUP_CREATE_FAILED = 120;
|
|
GROUP_BOUNCED = 121;
|
|
BLOCK_CONTACT = 122;
|
|
EPHEMERAL_SETTING_NOT_APPLIED = 123;
|
|
SYNC_FAILED = 124;
|
|
SYNCING = 125;
|
|
BIZ_PRIVACY_MODE_INIT_FB = 126;
|
|
BIZ_PRIVACY_MODE_INIT_BSP = 127;
|
|
BIZ_PRIVACY_MODE_TO_FB = 128;
|
|
BIZ_PRIVACY_MODE_TO_BSP = 129;
|
|
DISAPPEARING_MODE = 130;
|
|
E2E_DEVICE_FETCH_FAILED = 131;
|
|
ADMIN_REVOKE = 132;
|
|
GROUP_INVITE_LINK_GROWTH_LOCKED = 133;
|
|
COMMUNITY_LINK_PARENT_GROUP = 134;
|
|
COMMUNITY_LINK_SIBLING_GROUP = 135;
|
|
COMMUNITY_LINK_SUB_GROUP = 136;
|
|
COMMUNITY_UNLINK_PARENT_GROUP = 137;
|
|
COMMUNITY_UNLINK_SIBLING_GROUP = 138;
|
|
COMMUNITY_UNLINK_SUB_GROUP = 139;
|
|
GROUP_PARTICIPANT_ACCEPT = 140;
|
|
GROUP_PARTICIPANT_LINKED_GROUP_JOIN = 141;
|
|
COMMUNITY_CREATE = 142;
|
|
EPHEMERAL_KEEP_IN_CHAT = 143;
|
|
GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST = 144;
|
|
GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE = 145;
|
|
INTEGRITY_UNLINK_PARENT_GROUP = 146;
|
|
COMMUNITY_PARTICIPANT_PROMOTE = 147;
|
|
COMMUNITY_PARTICIPANT_DEMOTE = 148;
|
|
COMMUNITY_PARENT_GROUP_DELETED = 149;
|
|
COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL = 150;
|
|
GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP = 151;
|
|
MASKED_THREAD_CREATED = 152;
|
|
MASKED_THREAD_UNMASKED = 153;
|
|
BIZ_CHAT_ASSIGNMENT = 154;
|
|
CHAT_PSA = 155;
|
|
CHAT_POLL_CREATION_MESSAGE = 156;
|
|
CAG_MASKED_THREAD_CREATED = 157;
|
|
COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED = 158;
|
|
CAG_INVITE_AUTO_ADD = 159;
|
|
BIZ_CHAT_ASSIGNMENT_UNASSIGN = 160;
|
|
CAG_INVITE_AUTO_JOINED = 161;
|
|
SCHEDULED_CALL_START_MESSAGE = 162;
|
|
COMMUNITY_INVITE_RICH = 163;
|
|
COMMUNITY_INVITE_AUTO_ADD_RICH = 164;
|
|
SUB_GROUP_INVITE_RICH = 165;
|
|
SUB_GROUP_PARTICIPANT_ADD_RICH = 166;
|
|
COMMUNITY_LINK_PARENT_GROUP_RICH = 167;
|
|
COMMUNITY_PARTICIPANT_ADD_RICH = 168;
|
|
SILENCED_UNKNOWN_CALLER_AUDIO = 169;
|
|
SILENCED_UNKNOWN_CALLER_VIDEO = 170;
|
|
GROUP_MEMBER_ADD_MODE = 171;
|
|
GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD = 172;
|
|
COMMUNITY_CHANGE_DESCRIPTION = 173;
|
|
SENDER_INVITE = 174;
|
|
RECEIVER_INVITE = 175;
|
|
COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS = 176;
|
|
PINNED_MESSAGE_IN_CHAT = 177;
|
|
PAYMENT_INVITE_SETUP_INVITER = 178;
|
|
PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY = 179;
|
|
PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE = 180;
|
|
LINKED_GROUP_CALL_START = 181;
|
|
REPORT_TO_ADMIN_ENABLED_STATUS = 182;
|
|
EMPTY_SUBGROUP_CREATE = 183;
|
|
SCHEDULED_CALL_CANCEL = 184;
|
|
SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH = 185;
|
|
GROUP_CHANGE_RECENT_HISTORY_SHARING = 186;
|
|
PAID_MESSAGE_SERVER_CAMPAIGN_ID = 187;
|
|
GENERAL_CHAT_CREATE = 188;
|
|
GENERAL_CHAT_ADD = 189;
|
|
GENERAL_CHAT_AUTO_ADD_DISABLED = 190;
|
|
SUGGESTED_SUBGROUP_ANNOUNCE = 191;
|
|
BIZ_BOT_1P_MESSAGING_ENABLED = 192;
|
|
CHANGE_USERNAME = 193;
|
|
BIZ_COEX_PRIVACY_INIT_SELF = 194;
|
|
BIZ_COEX_PRIVACY_TRANSITION_SELF = 195;
|
|
SUPPORT_AI_EDUCATION = 196;
|
|
BIZ_BOT_3P_MESSAGING_ENABLED = 197;
|
|
REMINDER_SETUP_MESSAGE = 198;
|
|
REMINDER_SENT_MESSAGE = 199;
|
|
REMINDER_CANCEL_MESSAGE = 200;
|
|
BIZ_COEX_PRIVACY_INIT = 201;
|
|
BIZ_COEX_PRIVACY_TRANSITION = 202;
|
|
GROUP_DEACTIVATED = 203;
|
|
COMMUNITY_DEACTIVATE_SIBLING_GROUP = 204;
|
|
EVENT_UPDATED = 205;
|
|
EVENT_CANCELED = 206;
|
|
COMMUNITY_OWNER_UPDATED = 207;
|
|
COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208;
|
|
CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209;
|
|
STATUS_MENTION = 210;
|
|
USER_CONTROLS_SYSTEM_MESSAGE = 211;
|
|
SUPPORT_SYSTEM_MESSAGE = 212;
|
|
CHANGE_LID = 213;
|
|
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE = 214;
|
|
BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE = 215;
|
|
CHANGE_LIMIT_SHARING = 216;
|
|
GROUP_MEMBER_LINK_MODE = 217;
|
|
BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
|
|
PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219;
|
|
QUARANTINED_MESSAGE = 220;
|
|
GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE = 221;
|
|
GROUP_OPEN_BOT_ADDED = 222;
|
|
GROUP_TEE_BOT_ADDED = 223;
|
|
CONTACT_INFO = 224;
|
|
SCHEDULED_MESSAGE_CREATED = 225;
|
|
}
|
|
}
|
|
|
|
message WebNotificationsInfo {
|
|
optional uint64 timestamp = 2;
|
|
optional uint32 unreadChats = 3;
|
|
optional uint32 notifyMessageCount = 4;
|
|
repeated WebMessageInfo notifyMessages = 5;
|
|
}
|