From a8b8eceb72a37a179c969c818ea57a87e8f60ab2 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Thu, 6 Nov 2025 22:16:37 +0200 Subject: [PATCH] waproto, validate-connection: Update headers and proto to latest version --- WAProto/WAProto.proto | 1316 +- WAProto/fix-imports.js | 2 +- WAProto/index.d.ts | 3180 ++++- WAProto/index.js | 19650 ++++++++++++++++++++++++----- src/Utils/validate-connection.ts | 9 +- 5 files changed, 20169 insertions(+), 3988 deletions(-) diff --git a/WAProto/WAProto.proto b/WAProto/WAProto.proto index 07694216..d7631748 100644 --- a/WAProto/WAProto.proto +++ b/WAProto/WAProto.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package proto; -/// WhatsApp Version: 2.3000.1023047013 +/// WhatsApp Version: 2.3000.1029496320 message ADVDeviceIdentity { optional uint32 rawId = 1; @@ -42,165 +42,212 @@ message ADVSignedKeyIndexList { 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; + enum AIHomeActionType { + PROMPT = 0; + CREATE_IMAGE = 1; + ANIMATE_PHOTO = 2; + ANALYZE_FILE = 3; + } + } + +} + 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; - message AIRichResponseCodeMetadata { - optional string codeLanguage = 1; - repeated AIRichResponseCodeBlock codeBlocks = 2; - message AIRichResponseCodeBlock { - optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1; - optional string codeContent = 2; - } + optional ContextInfo contextInfo = 4; +} - 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; +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; +} + +message AIThreadInfo { + optional AIThreadServerInfo serverInfo = 1; + optional AIThreadClientInfo clientInfo = 2; + message AIThreadClientInfo { + optional AIThreadType type = 1; + enum AIThreadType { + UNKNOWN = 0; + DEFAULT = 1; + INCOGNITO = 2; } } - message AIRichResponseContentItemsMetadata { - repeated AIRichResponseContentItemMetadata itemsMetadata = 1; - optional ContentType contentType = 2; - message AIRichResponseContentItemMetadata { - oneof aIRichResponseContentItem { - AIRichResponseMessage.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 AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1; - repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2; - } - - message AIRichResponseImageURL { - optional string imagePreviewUrl = 1; - optional string imageHighResUrl = 2; - optional string sourceUrl = 3; - } - - message AIRichResponseInlineImageMetadata { - optional AIRichResponseMessage.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; - } - - } - - enum AIRichResponseMessageType { - AI_RICH_RESPONSE_TYPE_UNKNOWN = 0; - AI_RICH_RESPONSE_TYPE_STANDARD = 1; - } - message AIRichResponseSubMessage { - optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1; - optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2; - optional string messageText = 3; - optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4; - optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5; - optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6; - optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7; - optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8; - optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9; - optional AIRichResponseMessage.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; - message AIRichResponseTableRow { - repeated string items = 1; - optional bool isHeading = 2; - } - - } - - message AIRichResponseUnifiedResponse { - optional bytes data = 1; + message AIThreadServerInfo { + optional string title = 1; } } @@ -276,6 +323,11 @@ message BizIdentityInfo { message BotAgeCollectionMetadata { optional bool ageCollectionEligible = 1; optional bool shouldTriggerAgeCollectionOnClient = 2; + optional AgeCollectionType ageCollectionType = 3; + enum AgeCollectionType { + O18_BINARY = 0; + WAFFLE = 1; + } } message BotAvatarMetadata { @@ -325,9 +377,119 @@ message BotCapabilityMetadata { 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; } } +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 BotImagineMetadata { optional ImagineType imagineType = 1; enum ImagineType { @@ -382,6 +544,22 @@ 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 BotAvatarMetadata avatarMetadata = 1; optional string personaId = 2; @@ -407,9 +585,20 @@ message BotMetadata { 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 bytes internalMetadata = 999; } enum BotMetricsEntryPoint { + UNDEFINED_ENTRY_POINT = 0; FAVICON = 1; CHATLIST = 2; AISEARCH_NULL_STATE_PAPER_PLANE = 3; @@ -434,6 +623,20 @@ enum BotMetricsEntryPoint { 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; } message BotMetricsMetadata { optional string destinationId = 1; @@ -446,6 +649,7 @@ enum BotMetricsThreadEntryPoint { 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; @@ -458,6 +662,7 @@ message BotModeSelectionMetadata { message BotModelMetadata { optional ModelType modelType = 1; optional PremiumModelStatus premiumModelStatus = 2; + optional string modelNameOverride = 3; enum ModelType { UNKNOWN_TYPE = 0; LLAMA_PROD = 1; @@ -554,6 +759,7 @@ message BotPromotionMessageMetadata { enum BotPromotionType { UNKNOWN_TYPE = 0; C50 = 1; + SURVEY_PLATFORM = 2; } } @@ -624,6 +830,21 @@ enum BotSessionSource { EMU_FLASH_FOLLOWUP = 5; VOICE = 6; } +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; + } +} + message BotSourcesMetadata { repeated BotSourceItem sources = 1; message BotSourceItem { @@ -633,11 +854,13 @@ message BotSourcesMetadata { 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; } } @@ -650,6 +873,22 @@ message BotSuggestedPromptMetadata { 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; @@ -769,6 +1008,7 @@ message Citation { message ClientPairingProps { optional bool isChatDbLidMigrated = 1; optional bool isSyncdPureLidSession = 2; + optional bool isSyncdSnapshotRecoveryEnabled = 3; } message ClientPayload { @@ -802,6 +1042,10 @@ message ClientPayload { 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; enum AccountType { DEFAULT = 0; GUEST = 1; @@ -947,6 +1191,8 @@ message ClientPayload { IPAD = 33; TEST = 34; SMART_GLASSES = 35; + BLUE_VR = 36; + AR_WRIST = 37; } enum ReleaseChannel { RELEASE = 0; @@ -987,6 +1233,14 @@ message ClientPayload { } +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; @@ -1055,6 +1309,14 @@ message ContextInfo { 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; message AdReplyInfo { optional string advertiserName = 1; optional MediaType mediaType = 2; @@ -1075,6 +1337,11 @@ message ContextInfo { 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; @@ -1111,6 +1378,8 @@ message ContextInfo { optional string automatedGreetingMessageCtaType = 23; optional bool wtwaAdFormat = 24; optional AdType adType = 25; + optional string wtwaWebsiteUrl = 26; + optional string adPreviewUrl = 27; enum AdType { CTWA = 0; CAWC = 1; @@ -1127,14 +1396,17 @@ message ContextInfo { optional bool cannotBeRanked = 2; optional bool canRequestFeedback = 3; optional bool canBeReshared = 4; + optional bool canReceiveMultiReact = 5; } - message ForwardedAIBotMessageInfo { - optional string botName = 1; - optional string botJid = 2; - optional string creatorName = 3; + 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; @@ -1156,12 +1428,34 @@ message ContextInfo { HD_IMAGE_CHILD = 4; MOTION_PHOTO_PARENT = 5; MOTION_PHOTO_CHILD = 6; + HEVC_VIDEO_PARENT = 7; + HEVC_VIDEO_CHILD = 8; + } + 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; + enum AudienceType { + UNKNOWN = 0; + CLOSE_FRIENDS = 1; + } + } + enum StatusSourceType { IMAGE = 0; VIDEO = 1; @@ -1178,7 +1472,7 @@ message ContextInfo { } message Conversation { - string id = 1; + string id = 1; repeated HistorySyncMsg messages = 2; optional string newJid = 3; optional string oldJid = 4; @@ -1231,6 +1525,7 @@ message Conversation { optional int64 limitSharingSettingTimestamp = 51; optional LimitSharing.TriggerType limitSharingTrigger = 52; optional bool limitSharingInitiatedByMe = 53; + optional bool maibaAiThreadEnabled = 54; enum EndOfHistoryTransferType { COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0; COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1; @@ -1241,6 +1536,13 @@ message Conversation { message DeviceCapabilities { optional ChatLockSupportLevel chatLockSupportLevel = 1; optional LIDMigration lidMigration = 2; + optional BusinessBroadcast businessBroadcast = 3; + optional UserHasAvatar userHasAvatar = 4; + optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5; + message BusinessBroadcast { + optional bool importListEnabled = 1; + } + enum ChatLockSupportLevel { NONE = 0; MINIMAL = 1; @@ -1250,6 +1552,15 @@ message DeviceCapabilities { optional uint64 chatDbMigrationTimestamp = 1; } + enum MemberNameTagPrimarySupport { + DISABLED = 0; + RECEIVER_ENABLED = 1; + SENDER_ENABLED = 2; + } + message UserHasAvatar { + optional bool userHasAvatar = 1; + } + } message DeviceConsistencyCodeMessage { @@ -1297,6 +1608,11 @@ message DeviceProps { 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; } enum PlatformType { @@ -1369,10 +1685,13 @@ message EmbeddedMusic { optional string artworkDirectPath = 5; optional bytes artworkSha256 = 6; optional bytes artworkEncSha256 = 7; - optional bytes artworkMediaKey = 11; optional string artistAttribution = 8; optional bytes countryBlocklist = 9; optional bool isExplicit = 10; + optional bytes artworkMediaKey = 11; + optional int64 musicSongStartTimeInMs = 12; + optional int64 derivedContentStartTimeInMs = 13; + optional int64 overlapDurationInMs = 14; } message EncryptedPairingRequest { @@ -1418,6 +1737,12 @@ message Field { map 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; @@ -1441,14 +1766,32 @@ message GlobalSettings { 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 { - string userJid = 1; + string userJid = 1; optional Rank rank = 2; + optional MemberLabel memberLabel = 3; enum Rank { REGULAR = 0; ADMIN = 1; @@ -1463,24 +1806,28 @@ message HandshakeMessage { message ClientFinish { optional bytes static = 1; optional bytes payload = 2; + optional bytes extendedCiphertext = 3; } message ClientHello { optional bytes ephemeral = 1; optional bytes static = 2; optional bytes payload = 3; + optional bool useExtended = 4; + optional bytes extendedCiphertext = 5; } message ServerHello { optional bytes ephemeral = 1; optional bytes static = 2; optional bytes payload = 3; + optional bytes extendedStatic = 4; } } message HistorySync { - HistorySyncType syncType = 1; + HistorySyncType syncType = 1; repeated Conversation conversations = 2; repeated WebMessageInfo statusV3Messages = 3; optional uint32 chunkOrder = 5; @@ -1553,6 +1900,43 @@ message IdentityKeyPairStructure { 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; + 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 InteractiveAnnotation { repeated Point polygonVertices = 1; optional bool shouldSkipConfirmation = 4; @@ -1571,6 +1955,10 @@ message InteractiveAnnotation { } } +message InteractiveMessageAdditionalMetadata { + optional bool isGalaxyFlowCompleted = 1; +} + message KeepInChat { optional KeepType keepType = 1; optional int64 serverTimestamp = 2; @@ -1598,8 +1986,8 @@ message KeyId { } message LIDMigrationMapping { - uint64 pn = 1; - uint64 assignedLid = 2; + uint64 pn = 1; + uint64 assignedLid = 2; optional uint64 latestLid = 3; } @@ -1753,7 +2141,6 @@ message Message { optional FutureProofMessage associatedChildMessage = 91; optional FutureProofMessage groupStatusMentionMessage = 92; optional FutureProofMessage pollCreationMessageV4 = 93; - optional FutureProofMessage pollCreationMessageV5 = 94; optional FutureProofMessage statusAddYours = 95; optional FutureProofMessage groupStatusMessage = 96; optional AIRichResponseMessage richResponseMessage = 97; @@ -1762,6 +2149,16 @@ message Message { 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 = 114; message AlbumMessage { optional uint32 expectedImageCount = 2; optional uint32 expectedVideoCount = 3; @@ -1819,6 +2216,7 @@ message Message { optional fixed32 backgroundArgb = 20; optional bool viewOnce = 21; optional string accessibilityLabel = 22; + optional Message.MediaKeyDomain mediaKeyDomain = 23; } message BCallMessage { @@ -1833,47 +2231,6 @@ message Message { } } - 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; - 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; - } - 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 { - GENERIC = 0; - } - } - message ButtonsMessage { optional string contentText = 6; optional string footerText = 7; @@ -1940,6 +2297,8 @@ message Message { optional string ctwaSignals = 5; optional bytes ctwaPayload = 6; optional ContextInfo contextInfo = 7; + optional string nativeFlowCallButtonPayload = 8; + optional string deeplinkPayload = 9; } message CallLogMessage { @@ -1985,6 +2344,7 @@ message Message { optional string consumerLid = 3; optional string consumerPhoneNumber = 4; optional CloudAPIThreadControlNotificationContent notificationContent = 5; + optional bool shouldSuppressNotification = 6; enum CloudAPIThreadControl { UNKNOWN = 0; CONTROL_PASSED = 1; @@ -2046,6 +2406,7 @@ message Message { optional uint32 thumbnailWidth = 19; optional string caption = 20; optional string accessibilityLabel = 21; + optional Message.MediaKeyDomain mediaKeyDomain = 22; } message EncCommentMessage { @@ -2077,6 +2438,8 @@ message Message { optional int64 endTime = 8; optional bool extraGuestsAllowed = 9; optional bool isScheduleCall = 10; + optional bool hasReminder = 11; + optional int64 reminderOffsetSec = 12; } message EventResponseMessage { @@ -2120,6 +2483,10 @@ message Message { 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; @@ -2228,13 +2595,17 @@ message Message { } + 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 HistorySyncType syncType = 6; + optional Message.HistorySyncType syncType = 6; optional uint32 chunkOrder = 7; optional string originalMessageId = 8; optional uint32 progress = 9; @@ -2243,18 +2614,20 @@ message Message { optional string peerDataRequestSessionId = 12; optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13; optional string encHandle = 14; - 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; - } + 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; @@ -2285,6 +2658,8 @@ message Message { repeated InteractiveAnnotation annotations = 30; optional ImageSourceType imageSourceType = 31; optional string accessibilityLabel = 32; + optional Message.MediaKeyDomain mediaKeyDomain = 33; + optional string qrUrl = 34; enum ImageSourceType { USER_IMAGE = 0; AI_GENERATED = 1; @@ -2316,6 +2691,12 @@ message Message { 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 { @@ -2326,6 +2707,10 @@ message Message { message Footer { optional string text = 1; + optional bool hasMediaAttachment = 3; + oneof media { + Message.AudioMessage audioMessage = 2; + } } message Header { @@ -2417,6 +2802,20 @@ message Message { 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 { @@ -2518,8 +2917,16 @@ message Message { optional int64 mediaKeyTimestamp = 5; optional uint32 thumbnailHeight = 6; optional uint32 thumbnailWidth = 7; + optional Message.MediaKeyDomain mediaKeyDomain = 8; } + enum MediaKeyDomain { + UNSET = 0; + E2EE_CHAT = 1; + STATUS = 2; + CAPI = 3; + BOT = 4; + } message MessageHistoryBundle { optional string mimetype = 1; optional bytes fileSha256 = 2; @@ -2533,7 +2940,7 @@ message Message { message MessageHistoryMetadata { repeated string historyReceivers = 1; - optional int64 firstMessageTimestamp = 2; + optional int64 oldestMessageTimestamp = 2; optional int64 messageCount = 3; } @@ -2551,6 +2958,14 @@ message Message { 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; @@ -2577,6 +2992,12 @@ message Message { } } + message PaymentExtendedMetadata { + optional uint32 type = 1; + optional string platform = 2; + optional string messageParamsJson = 3; + } + message PaymentInviteMessage { optional ServiceType serviceType = 1; optional int64 expiryTimestamp = 2; @@ -2591,6 +3012,7 @@ message Message { message PaymentLinkMetadata { optional PaymentLinkButton button = 1; optional PaymentLinkHeader header = 2; + optional PaymentLinkProvider provider = 3; message PaymentLinkButton { optional string displayText = 1; } @@ -2603,6 +3025,10 @@ message Message { } } + message PaymentLinkProvider { + optional string paramsJson = 1; + } + } message PeerDataOperationRequestMessage { @@ -2613,11 +3039,29 @@ message Message { repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5; optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6; optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7; + optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8; + optional GalaxyFlowAction galaxyFlowAction = 9; message FullHistorySyncOnDemandRequest { optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1; optional DeviceProps.HistorySyncConfig historySyncConfig = 2; } + message GalaxyFlowAction { + optional GalaxyFlowActionType type = 1; + optional string flowId = 2; + optional string stanzaId = 3; + enum GalaxyFlowActionType { + NOTIFY_LAUNCH = 1; + } + } + + 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; @@ -2660,6 +3104,14 @@ message Message { optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6; optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7; optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8; + optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9; + optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10; + message CompanionCanonicalUserNonceFetchResponse { + optional string nonce = 1; + optional string waFbid = 2; + optional bool forceRefresh = 3; + } + message CompanionMetaNonceFetchResponse { optional string nonce = 1; } @@ -2678,6 +3130,22 @@ message Message { ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5; ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6; } + 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; @@ -2686,6 +3154,7 @@ message Message { 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; @@ -2696,6 +3165,11 @@ message Message { optional int32 thumbHeight = 7; } + message PaymentLinkPreviewMetadata { + optional bool isBusinessVerified = 1; + optional string providerName = 2; + } + } message PlaceholderMessageResendResponse { @@ -2726,6 +3200,9 @@ message Message { 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; } message PinInChatMessage { optional MessageKey key = 1; @@ -2757,17 +3234,13 @@ message Message { optional uint32 selectableOptionsCount = 4; optional ContextInfo contextInfo = 5; optional Message.PollContentType pollContentType = 6; - optional PollType pollType = 7; + optional Message.PollType pollType = 7; optional Option correctAnswer = 8; message Option { optional string optionName = 1; optional string optionHash = 2; } - enum PollType { - POLL = 0; - QUIZ = 1; - } } message PollEncValue { @@ -2779,6 +3252,7 @@ message Message { 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; @@ -2786,6 +3260,10 @@ message Message { } + enum PollType { + POLL = 0; + QUIZ = 1; + } message PollUpdateMessage { optional MessageKey pollCreationMessageKey = 1; optional Message.PollEncValue vote = 2; @@ -2845,7 +3323,7 @@ message Message { optional int64 timestampMs = 15; optional Message.PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16; optional Message.PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17; - optional Message.BotFeedbackMessage botFeedbackMessage = 18; + optional BotFeedbackMessage botFeedbackMessage = 18; optional string invokerJid = 19; optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20; optional MediaNotifyMessage mediaNotifyMessage = 21; @@ -2885,6 +3363,11 @@ message Message { } } + message QuestionResponseMessage { + optional MessageKey key = 1; + optional string text = 2; + } + message ReactionMessage { optional MessageKey key = 1; optional string text = 2; @@ -2950,6 +3433,7 @@ message Message { optional Message noteMessage = 2; optional MessageKey requestMessageKey = 3; optional PaymentBackground background = 4; + optional string transactionData = 5; } message SenderKeyDistributionMessage { @@ -2965,6 +3449,32 @@ message Message { 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; } } @@ -2989,6 +3499,7 @@ message Message { optional bool isAiSticker = 20; optional bool isLottie = 21; optional string accessibilityLabel = 22; + optional Message.MediaKeyDomain mediaKeyDomain = 23; } message StickerPackMessage { @@ -3087,6 +3598,13 @@ message Message { optional uint32 fbExperimentId = 1; } + message VideoEndCard { + string username = 1; + string caption = 2; + string thumbnailImageUrl = 3; + string profilePictureUrl = 4; + } + message VideoMessage { optional string url = 1; optional string mimetype = 2; @@ -3115,10 +3633,19 @@ message Message { optional string accessibilityLabel = 26; repeated ProcessedVideo processedVideos = 27; optional uint32 externalShareFullVideoDurationInSeconds = 28; + optional uint64 motionPhotoPresentationOffsetMs = 29; + optional string metadataUrl = 30; + optional VideoSourceType videoSourceType = 31; + optional Message.MediaKeyDomain mediaKeyDomain = 32; enum Attribution { NONE = 0; GIPHY = 1; TENOR = 2; + KLIPY = 3; + } + enum VideoSourceType { + USER_VIDEO = 0; + AI_GENERATED = 1; } } @@ -3167,6 +3694,11 @@ message MessageAssociation { 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; } } @@ -3185,6 +3717,8 @@ message MessageContextInfo { optional string supportPayload = 12; optional LimitSharing limitSharing = 13; optional LimitSharing limitSharingV2 = 14; + repeated ThreadID threadId = 15; + optional WebLinkRenderConfig weblinkRenderConfig = 16; enum MessageAddonExpiryType { STATIC = 1; DEPENDENT_ON_PARENT = 2; @@ -3234,6 +3768,8 @@ message MsgOpaqueData { 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; @@ -3249,6 +3785,8 @@ message MsgOpaqueData { optional int64 eventStartTime = 37; optional EventLocation eventLocation = 38; optional int64 eventEndTime = 40; + optional bool eventIsScheduledCall = 44; + optional bool eventExtraGuestsAllowed = 45; optional bytes plainProtobufBytes = 43; message EventLocation { optional double degreesLatitude = 1; @@ -3269,6 +3807,10 @@ message MsgOpaqueData { optional string hash = 2; } + enum PollType { + POLL = 0; + QUIZ = 1; + } message PollVoteSnapshot { optional MsgOpaqueData.PollOption option = 1; optional int32 optionVoteCount = 2; @@ -3285,6 +3827,81 @@ message MsgRowOpaqueData { 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; + SHARE_OWN_PN = 10001; + BUSINESS_BROADCAST_ACTION = 10002; +} message NoiseCertificate { optional bytes details = 1; optional bytes signature = 2; @@ -3357,6 +3974,9 @@ message PatchDebugData { DARWIN = 6; IPAD = 7; WEAROS = 8; + WASG = 9; + WEARM = 10; + CAPI = 11; } } @@ -3557,6 +4177,11 @@ message Pushname { optional string pushname = 2; } +message QuarantinedMessage { + optional bytes originalData = 1; + optional string extractedText = 2; +} + message Reaction { optional MessageKey key = 1; optional string text = 2; @@ -3680,6 +4305,16 @@ message SessionStructure { } +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; @@ -3695,12 +4330,106 @@ message SignedPreKeyRecordStructure { 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; + } + } + + 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; + } +} + message StatusMentionMessage { optional Message quotedStatus = 1; } message StatusPSA { - uint64 campaignId = 44; + uint64 campaignId = 44; optional uint64 campaignExpirationTimestamp = 45; } @@ -3717,6 +4446,8 @@ message StickerMetadata { optional float weight = 10; optional int64 lastStickerSentTs = 11; optional bool isLottie = 12; + optional string imageHash = 13; + optional bool isAvatarSticker = 14; } message SyncActionData { @@ -3732,7 +4463,6 @@ message SyncActionValue { optional ContactAction contactAction = 3; optional MuteAction muteAction = 4; optional PinAction pinAction = 5; - optional SecurityNotificationSetting securityNotificationSetting = 6; optional PushNameSetting pushNameSetting = 7; optional QuickReplyAction quickReplyAction = 8; optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11; @@ -3764,6 +4494,7 @@ message SyncActionValue { 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; @@ -3784,12 +4515,28 @@ message SyncActionValue { optional LidContactAction lidContactAction = 61; optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62; optional PaymentTosAction paymentTosAction = 63; + optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64; + optional BusinessBroadcastAssociationAction businessBroadcastAssociationAction = 65; + 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; 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; } @@ -3799,10 +4546,35 @@ message SyncActionValue { optional SyncActionValue.SyncActionMessageRange messageRange = 2; } + message AvatarUpdatedAction { + optional AvatarEventType eventType = 1; + repeated SyncActionValue.StickerAction recentAvatarStickers = 2; + enum AvatarEventType { + UPDATED = 0; + CREATED = 1; + DELETED = 2; + } + } + message BotWelcomeRequestAction { optional bool isSent = 1; } + message BroadcastListParticipant { + string lidJid = 1; + optional string pnJid = 2; + } + + message BusinessBroadcastAssociationAction { + optional bool deleted = 1; + } + + message BusinessBroadcastListAction { + optional bool deleted = 1; + repeated SyncActionValue.BroadcastListParticipant participants = 2; + optional string listName = 3; + } + message CallLogAction { optional CallLogRecord callLogRecord = 1; } @@ -3833,15 +4605,15 @@ message SyncActionValue { } message CustomPaymentMethod { - string credentialId = 1; - string country = 2; - string type = 3; + string credentialId = 1; + string country = 2; + string type = 3; repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4; } message CustomPaymentMethodMetadata { - string key = 1; - string value = 2; + string key = 1; + string value = 2; } message CustomPaymentMethodsAction { @@ -3862,6 +4634,10 @@ message SyncActionValue { optional int64 messageTimestamp = 2; } + message DetectedOutcomesStatusAction { + optional bool isEnabled = 1; + } + message ExternalWebBetaAction { optional bool isOptIn = 1; } @@ -3874,6 +4650,13 @@ message SyncActionValue { } + message InteractiveMessageAction { + InteractiveMessageActionMode type = 1; + enum InteractiveMessageActionMode { + DISABLE_CTA = 1; + } + } + message KeyExpiration { optional int32 expiredKeyEpoch = 1; } @@ -3891,6 +4674,7 @@ message SyncActionValue { optional bool isActive = 6; optional ListType type = 7; optional bool isImmutable = 8; + optional int64 muteEndTimeMs = 9; enum ListType { NONE = 0; UNREAD = 1; @@ -3900,6 +4684,8 @@ message SyncActionValue { CUSTOM = 5; COMMUNITY = 6; SERVER_ASSIGNED = 7; + DRAFTED = 8; + AI_HANDOFF = 9; } } @@ -3911,7 +4697,6 @@ message SyncActionValue { optional string fullName = 1; optional string firstName = 2; optional string username = 3; - optional bool saveOnPrimaryAddressbook = 4; } message LocaleSetting { @@ -3922,6 +4707,15 @@ message SyncActionValue { 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; @@ -3945,8 +4739,8 @@ message SyncActionValue { } message MerchantPaymentPartnerAction { - Status status = 1; - string country = 2; + Status status = 1; + string country = 2; optional string gatewayName = 3; optional string credentialId = 4; enum Status { @@ -3955,12 +4749,21 @@ message SyncActionValue { } } + message MusicUserIdAction { + optional string musicUserId = 1; + map music_user_id_map = 2; + } + message MuteAction { optional bool muted = 1; optional int64 muteEndTimestamp = 2; optional bool autoMuted = 3; } + message NewsletterSavedInterestsAction { + optional string newsletterSavedInterests = 1; + } + message NoteEditAction { optional NoteType type = 1; optional string chatJid = 2; @@ -3992,8 +4795,8 @@ message SyncActionValue { } message PaymentTosAction { - PaymentNotice paymentNotice = 1; - bool accepted = 2; + PaymentNotice paymentNotice = 1; + bool accepted = 2; enum PaymentNotice { BR_PAY_PRIVACY_POLICY = 0; } @@ -4015,6 +4818,10 @@ message SyncActionValue { optional string version = 1; } + message PrivacySettingChannelsPersonalisedRecommendationAction { + optional bool isUserOptedOut = 1; + } + message PrivacySettingDisableLinkPreviewsAction { optional bool isPreviewsDisabled = 1; } @@ -4023,6 +4830,15 @@ message SyncActionValue { optional bool isEnabled = 1; } + message PrivateProcessingSettingAction { + optional PrivateProcessingStatus privateProcessingStatus = 1; + enum PrivateProcessingStatus { + UNDEFINED = 0; + ENABLED = 1; + DISABLED = 2; + } + } + message PushNameSetting { optional string name = 1; } @@ -4043,14 +4859,14 @@ message SyncActionValue { optional int64 lastStickerSentTs = 1; } - message SecurityNotificationSetting { - optional bool showNotification = 1; - } - message StarAction { optional bool starred = 1; } + message StatusPostOptInNotificationPreferencesAction { + optional bool enabled = 1; + } + message StatusPrivacyAction { optional StatusDistributionMode mode = 1; repeated string userJid = 2; @@ -4058,6 +4874,7 @@ message SyncActionValue { ALLOW_LIST = 0; DENY_LIST = 1; CONTACTS = 2; + CLOSE_FRIENDS = 3; } } @@ -4073,6 +4890,8 @@ message SyncActionValue { optional bool isFavorite = 9; optional uint32 deviceIdHint = 10; optional bool isLottie = 11; + optional string imageHash = 12; + optional bool isAvatarSticker = 13; } message SubscriptionAction { @@ -4096,6 +4915,10 @@ message SyncActionValue { optional bool isTwentyFourHourFormatEnabled = 1; } + message UGCBot { + optional bytes definition = 1; + } + message UnarchiveChatsSetting { optional bool unarchiveChats = 1; } @@ -4116,6 +4939,8 @@ message SyncActionValue { optional AccountLinkState linkState = 2; enum AccountLinkState { ACTIVE = 0; + PAUSED = 1; + UNLINKED = 2; } } @@ -4204,6 +5029,16 @@ message TemplateButton { } +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 { @@ -4244,7 +5079,7 @@ message UserPassword { } message UserReceipt { - string userJid = 1; + string userJid = 1; optional int64 receiptTimestamp = 2; optional int64 readTimestamp = 3; optional int64 playedTimestamp = 4; @@ -4325,8 +5160,12 @@ message WebFeatures { } } +enum WebLinkRenderConfig { + WEBVIEW = 0; + SYSTEM = 1; +} message WebMessageInfo { - MessageKey key = 1; + MessageKey key = 1; optional Message message = 2; optional uint64 messageTimestamp = 3; optional Status status = 4; @@ -4388,6 +5227,10 @@ message WebMessageInfo { 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; enum BizPrivacyStatus { E2EE = 0; FB = 2; @@ -4622,6 +5465,9 @@ message WebMessageInfo { 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; } } diff --git a/WAProto/fix-imports.js b/WAProto/fix-imports.js index ff5805ea..baa91413 100644 --- a/WAProto/fix-imports.js +++ b/WAProto/fix-imports.js @@ -1,5 +1,5 @@ import { readFileSync, writeFileSync } from 'fs'; -import { argv, exit } from 'process'; +import { exit } from 'process'; const filePath = './index.js'; diff --git a/WAProto/index.d.ts b/WAProto/index.d.ts index b1e9538c..86405800 100644 --- a/WAProto/index.d.ts +++ b/WAProto/index.d.ts @@ -117,6 +117,67 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IAIHomeState { + lastFetchTime?: (number|Long|null); + capabilityOptions?: (proto.AIHomeState.IAIHomeOption[]|null); + conversationOptions?: (proto.AIHomeState.IAIHomeOption[]|null); + } + + class AIHomeState implements IAIHomeState { + constructor(p?: proto.IAIHomeState); + public lastFetchTime?: (number|Long|null); + public capabilityOptions: proto.AIHomeState.IAIHomeOption[]; + public conversationOptions: proto.AIHomeState.IAIHomeOption[]; + public static create(properties?: proto.IAIHomeState): proto.AIHomeState; + public static encode(m: proto.IAIHomeState, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIHomeState; + public static fromObject(d: { [k: string]: any }): proto.AIHomeState; + public static toObject(m: proto.AIHomeState, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIHomeState { + + interface IAIHomeOption { + type?: (proto.AIHomeState.AIHomeOption.AIHomeActionType|null); + title?: (string|null); + promptText?: (string|null); + sessionId?: (string|null); + imageWdsIdentifier?: (string|null); + imageTintColor?: (string|null); + imageBackgroundColor?: (string|null); + } + + class AIHomeOption implements IAIHomeOption { + constructor(p?: proto.AIHomeState.IAIHomeOption); + public type?: (proto.AIHomeState.AIHomeOption.AIHomeActionType|null); + public title?: (string|null); + public promptText?: (string|null); + public sessionId?: (string|null); + public imageWdsIdentifier?: (string|null); + public imageTintColor?: (string|null); + public imageBackgroundColor?: (string|null); + public static create(properties?: proto.AIHomeState.IAIHomeOption): proto.AIHomeState.AIHomeOption; + public static encode(m: proto.AIHomeState.IAIHomeOption, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIHomeState.AIHomeOption; + public static fromObject(d: { [k: string]: any }): proto.AIHomeState.AIHomeOption; + public static toObject(m: proto.AIHomeState.AIHomeOption, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIHomeOption { + + enum AIHomeActionType { + PROMPT = 0, + CREATE_IMAGE = 1, + ANIMATE_PHOTO = 2, + ANALYZE_FILE = 3 + } + } + } + interface IAIQueryFanout { messageKey?: (proto.IMessageKey|null); message?: (proto.IMessage|null); @@ -137,17 +198,356 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IAIRegenerateMetadata { + messageKey?: (proto.IMessageKey|null); + responseTimestampMs?: (number|Long|null); + } + + class AIRegenerateMetadata implements IAIRegenerateMetadata { + constructor(p?: proto.IAIRegenerateMetadata); + public messageKey?: (proto.IMessageKey|null); + public responseTimestampMs?: (number|Long|null); + public static create(properties?: proto.IAIRegenerateMetadata): proto.AIRegenerateMetadata; + public static encode(m: proto.IAIRegenerateMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRegenerateMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRegenerateMetadata; + public static toObject(m: proto.AIRegenerateMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IAIRichResponseCodeMetadata { + codeLanguage?: (string|null); + codeBlocks?: (proto.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[]|null); + } + + class AIRichResponseCodeMetadata implements IAIRichResponseCodeMetadata { + constructor(p?: proto.IAIRichResponseCodeMetadata); + public codeLanguage?: (string|null); + public codeBlocks: proto.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[]; + public static create(properties?: proto.IAIRichResponseCodeMetadata): proto.AIRichResponseCodeMetadata; + public static encode(m: proto.IAIRichResponseCodeMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseCodeMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseCodeMetadata; + public static toObject(m: proto.AIRichResponseCodeMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIRichResponseCodeMetadata { + + interface IAIRichResponseCodeBlock { + highlightType?: (proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType|null); + codeContent?: (string|null); + } + + class AIRichResponseCodeBlock implements IAIRichResponseCodeBlock { + constructor(p?: proto.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock); + public highlightType?: (proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType|null); + public codeContent?: (string|null); + public static create(properties?: proto.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock): proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; + public static encode(m: proto.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; + public static toObject(m: proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + 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 + } + } + + interface IAIRichResponseContentItemsMetadata { + itemsMetadata?: (proto.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]|null); + contentType?: (proto.AIRichResponseContentItemsMetadata.ContentType|null); + } + + class AIRichResponseContentItemsMetadata implements IAIRichResponseContentItemsMetadata { + constructor(p?: proto.IAIRichResponseContentItemsMetadata); + public itemsMetadata: proto.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]; + public contentType?: (proto.AIRichResponseContentItemsMetadata.ContentType|null); + public static create(properties?: proto.IAIRichResponseContentItemsMetadata): proto.AIRichResponseContentItemsMetadata; + public static encode(m: proto.IAIRichResponseContentItemsMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseContentItemsMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseContentItemsMetadata; + public static toObject(m: proto.AIRichResponseContentItemsMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIRichResponseContentItemsMetadata { + + interface IAIRichResponseContentItemMetadata { + reelItem?: (proto.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null); + } + + class AIRichResponseContentItemMetadata implements IAIRichResponseContentItemMetadata { + constructor(p?: proto.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata); + public reelItem?: (proto.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null); + public aIRichResponseContentItem?: "reelItem"; + public static create(properties?: proto.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata): proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; + public static encode(m: proto.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; + public static toObject(m: proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IAIRichResponseReelItem { + title?: (string|null); + profileIconUrl?: (string|null); + thumbnailUrl?: (string|null); + videoUrl?: (string|null); + } + + class AIRichResponseReelItem implements IAIRichResponseReelItem { + constructor(p?: proto.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem); + public title?: (string|null); + public profileIconUrl?: (string|null); + public thumbnailUrl?: (string|null); + public videoUrl?: (string|null); + public static create(properties?: proto.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem): proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; + public static encode(m: proto.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; + public static toObject(m: proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + enum ContentType { + DEFAULT = 0, + CAROUSEL = 1 + } + } + + interface IAIRichResponseDynamicMetadata { + type?: (proto.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType|null); + version?: (number|Long|null); + url?: (string|null); + loopCount?: (number|null); + } + + class AIRichResponseDynamicMetadata implements IAIRichResponseDynamicMetadata { + constructor(p?: proto.IAIRichResponseDynamicMetadata); + public type?: (proto.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType|null); + public version?: (number|Long|null); + public url?: (string|null); + public loopCount?: (number|null); + public static create(properties?: proto.IAIRichResponseDynamicMetadata): proto.AIRichResponseDynamicMetadata; + public static encode(m: proto.IAIRichResponseDynamicMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseDynamicMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseDynamicMetadata; + public static toObject(m: proto.AIRichResponseDynamicMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIRichResponseDynamicMetadata { + + 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 + } + } + + interface IAIRichResponseGridImageMetadata { + gridImageUrl?: (proto.IAIRichResponseImageURL|null); + imageUrls?: (proto.IAIRichResponseImageURL[]|null); + } + + class AIRichResponseGridImageMetadata implements IAIRichResponseGridImageMetadata { + constructor(p?: proto.IAIRichResponseGridImageMetadata); + public gridImageUrl?: (proto.IAIRichResponseImageURL|null); + public imageUrls: proto.IAIRichResponseImageURL[]; + public static create(properties?: proto.IAIRichResponseGridImageMetadata): proto.AIRichResponseGridImageMetadata; + public static encode(m: proto.IAIRichResponseGridImageMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseGridImageMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseGridImageMetadata; + public static toObject(m: proto.AIRichResponseGridImageMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IAIRichResponseImageURL { + imagePreviewUrl?: (string|null); + imageHighResUrl?: (string|null); + sourceUrl?: (string|null); + } + + class AIRichResponseImageURL implements IAIRichResponseImageURL { + constructor(p?: proto.IAIRichResponseImageURL); + public imagePreviewUrl?: (string|null); + public imageHighResUrl?: (string|null); + public sourceUrl?: (string|null); + public static create(properties?: proto.IAIRichResponseImageURL): proto.AIRichResponseImageURL; + public static encode(m: proto.IAIRichResponseImageURL, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseImageURL; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseImageURL; + public static toObject(m: proto.AIRichResponseImageURL, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IAIRichResponseInlineImageMetadata { + imageUrl?: (proto.IAIRichResponseImageURL|null); + imageText?: (string|null); + alignment?: (proto.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment|null); + tapLinkUrl?: (string|null); + } + + class AIRichResponseInlineImageMetadata implements IAIRichResponseInlineImageMetadata { + constructor(p?: proto.IAIRichResponseInlineImageMetadata); + public imageUrl?: (proto.IAIRichResponseImageURL|null); + public imageText?: (string|null); + public alignment?: (proto.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment|null); + public tapLinkUrl?: (string|null); + public static create(properties?: proto.IAIRichResponseInlineImageMetadata): proto.AIRichResponseInlineImageMetadata; + public static encode(m: proto.IAIRichResponseInlineImageMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseInlineImageMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseInlineImageMetadata; + public static toObject(m: proto.AIRichResponseInlineImageMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIRichResponseInlineImageMetadata { + + 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 + } + } + + interface IAIRichResponseLatexMetadata { + text?: (string|null); + expressions?: (proto.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression[]|null); + } + + class AIRichResponseLatexMetadata implements IAIRichResponseLatexMetadata { + constructor(p?: proto.IAIRichResponseLatexMetadata); + public text?: (string|null); + public expressions: proto.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression[]; + public static create(properties?: proto.IAIRichResponseLatexMetadata): proto.AIRichResponseLatexMetadata; + public static encode(m: proto.IAIRichResponseLatexMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseLatexMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseLatexMetadata; + public static toObject(m: proto.AIRichResponseLatexMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIRichResponseLatexMetadata { + + interface IAIRichResponseLatexExpression { + latexExpression?: (string|null); + url?: (string|null); + width?: (number|null); + height?: (number|null); + fontHeight?: (number|null); + imageTopPadding?: (number|null); + imageLeadingPadding?: (number|null); + imageBottomPadding?: (number|null); + imageTrailingPadding?: (number|null); + } + + class AIRichResponseLatexExpression implements IAIRichResponseLatexExpression { + constructor(p?: proto.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression); + public latexExpression?: (string|null); + public url?: (string|null); + public width?: (number|null); + public height?: (number|null); + public fontHeight?: (number|null); + public imageTopPadding?: (number|null); + public imageLeadingPadding?: (number|null); + public imageBottomPadding?: (number|null); + public imageTrailingPadding?: (number|null); + public static create(properties?: proto.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression): proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; + public static encode(m: proto.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; + public static toObject(m: proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + interface IAIRichResponseMapMetadata { + centerLatitude?: (number|null); + centerLongitude?: (number|null); + latitudeDelta?: (number|null); + longitudeDelta?: (number|null); + annotations?: (proto.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation[]|null); + showInfoList?: (boolean|null); + } + + class AIRichResponseMapMetadata implements IAIRichResponseMapMetadata { + constructor(p?: proto.IAIRichResponseMapMetadata); + public centerLatitude?: (number|null); + public centerLongitude?: (number|null); + public latitudeDelta?: (number|null); + public longitudeDelta?: (number|null); + public annotations: proto.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation[]; + public showInfoList?: (boolean|null); + public static create(properties?: proto.IAIRichResponseMapMetadata): proto.AIRichResponseMapMetadata; + public static encode(m: proto.IAIRichResponseMapMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMapMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMapMetadata; + public static toObject(m: proto.AIRichResponseMapMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIRichResponseMapMetadata { + + interface IAIRichResponseMapAnnotation { + annotationNumber?: (number|null); + latitude?: (number|null); + longitude?: (number|null); + title?: (string|null); + body?: (string|null); + } + + class AIRichResponseMapAnnotation implements IAIRichResponseMapAnnotation { + constructor(p?: proto.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation); + public annotationNumber?: (number|null); + public latitude?: (number|null); + public longitude?: (number|null); + public title?: (string|null); + public body?: (string|null); + public static create(properties?: proto.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation): proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; + public static encode(m: proto.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; + public static toObject(m: proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + interface IAIRichResponseMessage { - messageType?: (proto.AIRichResponseMessage.AIRichResponseMessageType|null); - submessages?: (proto.AIRichResponseMessage.IAIRichResponseSubMessage[]|null); - unifiedResponse?: (proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null); + messageType?: (proto.AIRichResponseMessageType|null); + submessages?: (proto.IAIRichResponseSubMessage[]|null); + unifiedResponse?: (proto.IAIRichResponseUnifiedResponse|null); + contextInfo?: (proto.IContextInfo|null); } class AIRichResponseMessage implements IAIRichResponseMessage { constructor(p?: proto.IAIRichResponseMessage); - public messageType?: (proto.AIRichResponseMessage.AIRichResponseMessageType|null); - public submessages: proto.AIRichResponseMessage.IAIRichResponseSubMessage[]; - public unifiedResponse?: (proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null); + public messageType?: (proto.AIRichResponseMessageType|null); + public submessages: proto.IAIRichResponseSubMessage[]; + public unifiedResponse?: (proto.IAIRichResponseUnifiedResponse|null); + public contextInfo?: (proto.IContextInfo|null); public static create(properties?: proto.IAIRichResponseMessage): proto.AIRichResponseMessage; public static encode(m: proto.IAIRichResponseMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage; @@ -157,428 +557,170 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AIRichResponseMessage { + enum AIRichResponseMessageType { + AI_RICH_RESPONSE_TYPE_UNKNOWN = 0, + AI_RICH_RESPONSE_TYPE_STANDARD = 1 + } - interface IAIRichResponseCodeMetadata { - codeLanguage?: (string|null); - codeBlocks?: (proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[]|null); + interface IAIRichResponseSubMessage { + messageType?: (proto.AIRichResponseSubMessageType|null); + gridImageMetadata?: (proto.IAIRichResponseGridImageMetadata|null); + messageText?: (string|null); + imageMetadata?: (proto.IAIRichResponseInlineImageMetadata|null); + codeMetadata?: (proto.IAIRichResponseCodeMetadata|null); + tableMetadata?: (proto.IAIRichResponseTableMetadata|null); + dynamicMetadata?: (proto.IAIRichResponseDynamicMetadata|null); + latexMetadata?: (proto.IAIRichResponseLatexMetadata|null); + mapMetadata?: (proto.IAIRichResponseMapMetadata|null); + contentItemsMetadata?: (proto.IAIRichResponseContentItemsMetadata|null); + } + + class AIRichResponseSubMessage implements IAIRichResponseSubMessage { + constructor(p?: proto.IAIRichResponseSubMessage); + public messageType?: (proto.AIRichResponseSubMessageType|null); + public gridImageMetadata?: (proto.IAIRichResponseGridImageMetadata|null); + public messageText?: (string|null); + public imageMetadata?: (proto.IAIRichResponseInlineImageMetadata|null); + public codeMetadata?: (proto.IAIRichResponseCodeMetadata|null); + public tableMetadata?: (proto.IAIRichResponseTableMetadata|null); + public dynamicMetadata?: (proto.IAIRichResponseDynamicMetadata|null); + public latexMetadata?: (proto.IAIRichResponseLatexMetadata|null); + public mapMetadata?: (proto.IAIRichResponseMapMetadata|null); + public contentItemsMetadata?: (proto.IAIRichResponseContentItemsMetadata|null); + public static create(properties?: proto.IAIRichResponseSubMessage): proto.AIRichResponseSubMessage; + public static encode(m: proto.IAIRichResponseSubMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseSubMessage; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseSubMessage; + public static toObject(m: proto.AIRichResponseSubMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + 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 + } + + interface IAIRichResponseTableMetadata { + rows?: (proto.AIRichResponseTableMetadata.IAIRichResponseTableRow[]|null); + title?: (string|null); + } + + class AIRichResponseTableMetadata implements IAIRichResponseTableMetadata { + constructor(p?: proto.IAIRichResponseTableMetadata); + public rows: proto.AIRichResponseTableMetadata.IAIRichResponseTableRow[]; + public title?: (string|null); + public static create(properties?: proto.IAIRichResponseTableMetadata): proto.AIRichResponseTableMetadata; + public static encode(m: proto.IAIRichResponseTableMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseTableMetadata; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseTableMetadata; + public static toObject(m: proto.AIRichResponseTableMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIRichResponseTableMetadata { + + interface IAIRichResponseTableRow { + items?: (string[]|null); + isHeading?: (boolean|null); } - class AIRichResponseCodeMetadata implements IAIRichResponseCodeMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata); - public codeLanguage?: (string|null); - public codeBlocks: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[]; - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata): proto.AIRichResponseMessage.AIRichResponseCodeMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseCodeMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseCodeMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseCodeMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + class AIRichResponseTableRow implements IAIRichResponseTableRow { + constructor(p?: proto.AIRichResponseTableMetadata.IAIRichResponseTableRow); + public items: string[]; + public isHeading?: (boolean|null); + public static create(properties?: proto.AIRichResponseTableMetadata.IAIRichResponseTableRow): proto.AIRichResponseTableMetadata.AIRichResponseTableRow; + public static encode(m: proto.AIRichResponseTableMetadata.IAIRichResponseTableRow, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseTableMetadata.AIRichResponseTableRow; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseTableMetadata.AIRichResponseTableRow; + public static toObject(m: proto.AIRichResponseTableMetadata.AIRichResponseTableRow, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + interface IAIRichResponseUnifiedResponse { + data?: (Uint8Array|null); + } + + class AIRichResponseUnifiedResponse implements IAIRichResponseUnifiedResponse { + constructor(p?: proto.IAIRichResponseUnifiedResponse); + public data?: (Uint8Array|null); + public static create(properties?: proto.IAIRichResponseUnifiedResponse): proto.AIRichResponseUnifiedResponse; + public static encode(m: proto.IAIRichResponseUnifiedResponse, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseUnifiedResponse; + public static fromObject(d: { [k: string]: any }): proto.AIRichResponseUnifiedResponse; + public static toObject(m: proto.AIRichResponseUnifiedResponse, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IAIThreadInfo { + serverInfo?: (proto.AIThreadInfo.IAIThreadServerInfo|null); + clientInfo?: (proto.AIThreadInfo.IAIThreadClientInfo|null); + } + + class AIThreadInfo implements IAIThreadInfo { + constructor(p?: proto.IAIThreadInfo); + public serverInfo?: (proto.AIThreadInfo.IAIThreadServerInfo|null); + public clientInfo?: (proto.AIThreadInfo.IAIThreadClientInfo|null); + public static create(properties?: proto.IAIThreadInfo): proto.AIThreadInfo; + public static encode(m: proto.IAIThreadInfo, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIThreadInfo; + public static fromObject(d: { [k: string]: any }): proto.AIThreadInfo; + public static toObject(m: proto.AIThreadInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AIThreadInfo { + + interface IAIThreadClientInfo { + type?: (proto.AIThreadInfo.AIThreadClientInfo.AIThreadType|null); + } + + class AIThreadClientInfo implements IAIThreadClientInfo { + constructor(p?: proto.AIThreadInfo.IAIThreadClientInfo); + public type?: (proto.AIThreadInfo.AIThreadClientInfo.AIThreadType|null); + public static create(properties?: proto.AIThreadInfo.IAIThreadClientInfo): proto.AIThreadInfo.AIThreadClientInfo; + public static encode(m: proto.AIThreadInfo.IAIThreadClientInfo, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIThreadInfo.AIThreadClientInfo; + public static fromObject(d: { [k: string]: any }): proto.AIThreadInfo.AIThreadClientInfo; + public static toObject(m: proto.AIThreadInfo.AIThreadClientInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; public toJSON(): { [k: string]: any }; public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AIRichResponseCodeMetadata { + namespace AIThreadClientInfo { - interface IAIRichResponseCodeBlock { - highlightType?: (proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType|null); - codeContent?: (string|null); - } - - class AIRichResponseCodeBlock implements IAIRichResponseCodeBlock { - constructor(p?: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock); - public highlightType?: (proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType|null); - public codeContent?: (string|null); - public static create(properties?: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; - public static encode(m: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - 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 + enum AIThreadType { + UNKNOWN = 0, + DEFAULT = 1, + INCOGNITO = 2 } } - interface IAIRichResponseContentItemsMetadata { - itemsMetadata?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]|null); - contentType?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType|null); + interface IAIThreadServerInfo { + title?: (string|null); } - class AIRichResponseContentItemsMetadata implements IAIRichResponseContentItemsMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata); - public itemsMetadata: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]; - public contentType?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType|null); - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AIRichResponseContentItemsMetadata { - - interface IAIRichResponseContentItemMetadata { - reelItem?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null); - } - - class AIRichResponseContentItemMetadata implements IAIRichResponseContentItemMetadata { - constructor(p?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata); - public reelItem?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null); - public aIRichResponseContentItem?: "reelItem"; - public static create(properties?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; - public static encode(m: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - interface IAIRichResponseReelItem { - title?: (string|null); - profileIconUrl?: (string|null); - thumbnailUrl?: (string|null); - videoUrl?: (string|null); - } - - class AIRichResponseReelItem implements IAIRichResponseReelItem { - constructor(p?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem); - public title?: (string|null); - public profileIconUrl?: (string|null); - public thumbnailUrl?: (string|null); - public videoUrl?: (string|null); - public static create(properties?: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; - public static encode(m: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - enum ContentType { - DEFAULT = 0, - CAROUSEL = 1 - } - } - - interface IAIRichResponseDynamicMetadata { - type?: (proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType|null); - version?: (number|Long|null); - url?: (string|null); - loopCount?: (number|null); - } - - class AIRichResponseDynamicMetadata implements IAIRichResponseDynamicMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata); - public type?: (proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType|null); - public version?: (number|Long|null); - public url?: (string|null); - public loopCount?: (number|null); - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseDynamicMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AIRichResponseDynamicMetadata { - - 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 - } - } - - interface IAIRichResponseGridImageMetadata { - gridImageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); - imageUrls?: (proto.AIRichResponseMessage.IAIRichResponseImageURL[]|null); - } - - class AIRichResponseGridImageMetadata implements IAIRichResponseGridImageMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata); - public gridImageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); - public imageUrls: proto.AIRichResponseMessage.IAIRichResponseImageURL[]; - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata): proto.AIRichResponseMessage.AIRichResponseGridImageMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseGridImageMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseGridImageMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseGridImageMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - interface IAIRichResponseImageURL { - imagePreviewUrl?: (string|null); - imageHighResUrl?: (string|null); - sourceUrl?: (string|null); - } - - class AIRichResponseImageURL implements IAIRichResponseImageURL { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseImageURL); - public imagePreviewUrl?: (string|null); - public imageHighResUrl?: (string|null); - public sourceUrl?: (string|null); - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseImageURL): proto.AIRichResponseMessage.AIRichResponseImageURL; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseImageURL, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseImageURL; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseImageURL; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseImageURL, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - interface IAIRichResponseInlineImageMetadata { - imageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); - imageText?: (string|null); - alignment?: (proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment|null); - tapLinkUrl?: (string|null); - } - - class AIRichResponseInlineImageMetadata implements IAIRichResponseInlineImageMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata); - public imageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null); - public imageText?: (string|null); - public alignment?: (proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment|null); - public tapLinkUrl?: (string|null); - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata): proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AIRichResponseInlineImageMetadata { - - 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 - } - } - - interface IAIRichResponseLatexMetadata { - text?: (string|null); - expressions?: (proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression[]|null); - } - - class AIRichResponseLatexMetadata implements IAIRichResponseLatexMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseLatexMetadata); - public text?: (string|null); - public expressions: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression[]; - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseLatexMetadata): proto.AIRichResponseMessage.AIRichResponseLatexMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseLatexMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseLatexMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseLatexMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseLatexMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AIRichResponseLatexMetadata { - - interface IAIRichResponseLatexExpression { - latexExpression?: (string|null); - url?: (string|null); - width?: (number|null); - height?: (number|null); - fontHeight?: (number|null); - imageTopPadding?: (number|null); - imageLeadingPadding?: (number|null); - imageBottomPadding?: (number|null); - imageTrailingPadding?: (number|null); - } - - class AIRichResponseLatexExpression implements IAIRichResponseLatexExpression { - constructor(p?: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression); - public latexExpression?: (string|null); - public url?: (string|null); - public width?: (number|null); - public height?: (number|null); - public fontHeight?: (number|null); - public imageTopPadding?: (number|null); - public imageLeadingPadding?: (number|null); - public imageBottomPadding?: (number|null); - public imageTrailingPadding?: (number|null); - public static create(properties?: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression): proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; - public static encode(m: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.IAIRichResponseLatexExpression, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - interface IAIRichResponseMapMetadata { - centerLatitude?: (number|null); - centerLongitude?: (number|null); - latitudeDelta?: (number|null); - longitudeDelta?: (number|null); - annotations?: (proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation[]|null); - showInfoList?: (boolean|null); - } - - class AIRichResponseMapMetadata implements IAIRichResponseMapMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseMapMetadata); - public centerLatitude?: (number|null); - public centerLongitude?: (number|null); - public latitudeDelta?: (number|null); - public longitudeDelta?: (number|null); - public annotations: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation[]; - public showInfoList?: (boolean|null); - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseMapMetadata): proto.AIRichResponseMessage.AIRichResponseMapMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseMapMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseMapMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseMapMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseMapMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AIRichResponseMapMetadata { - - interface IAIRichResponseMapAnnotation { - annotationNumber?: (number|null); - latitude?: (number|null); - longitude?: (number|null); - title?: (string|null); - body?: (string|null); - } - - class AIRichResponseMapAnnotation implements IAIRichResponseMapAnnotation { - constructor(p?: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation); - public annotationNumber?: (number|null); - public latitude?: (number|null); - public longitude?: (number|null); - public title?: (string|null); - public body?: (string|null); - public static create(properties?: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation): proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; - public static encode(m: proto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - enum AIRichResponseMessageType { - AI_RICH_RESPONSE_TYPE_UNKNOWN = 0, - AI_RICH_RESPONSE_TYPE_STANDARD = 1 - } - - interface IAIRichResponseSubMessage { - messageType?: (proto.AIRichResponseMessage.AIRichResponseSubMessageType|null); - gridImageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata|null); - messageText?: (string|null); - imageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata|null); - codeMetadata?: (proto.AIRichResponseMessage.IAIRichResponseCodeMetadata|null); - tableMetadata?: (proto.AIRichResponseMessage.IAIRichResponseTableMetadata|null); - dynamicMetadata?: (proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata|null); - latexMetadata?: (proto.AIRichResponseMessage.IAIRichResponseLatexMetadata|null); - mapMetadata?: (proto.AIRichResponseMessage.IAIRichResponseMapMetadata|null); - contentItemsMetadata?: (proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata|null); - } - - class AIRichResponseSubMessage implements IAIRichResponseSubMessage { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseSubMessage); - public messageType?: (proto.AIRichResponseMessage.AIRichResponseSubMessageType|null); - public gridImageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata|null); - public messageText?: (string|null); - public imageMetadata?: (proto.AIRichResponseMessage.IAIRichResponseInlineImageMetadata|null); - public codeMetadata?: (proto.AIRichResponseMessage.IAIRichResponseCodeMetadata|null); - public tableMetadata?: (proto.AIRichResponseMessage.IAIRichResponseTableMetadata|null); - public dynamicMetadata?: (proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata|null); - public latexMetadata?: (proto.AIRichResponseMessage.IAIRichResponseLatexMetadata|null); - public mapMetadata?: (proto.AIRichResponseMessage.IAIRichResponseMapMetadata|null); - public contentItemsMetadata?: (proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata|null); - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseSubMessage): proto.AIRichResponseMessage.AIRichResponseSubMessage; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseSubMessage, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseSubMessage; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseSubMessage; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseSubMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - 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 - } - - interface IAIRichResponseTableMetadata { - rows?: (proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow[]|null); - } - - class AIRichResponseTableMetadata implements IAIRichResponseTableMetadata { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseTableMetadata); - public rows: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow[]; - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseTableMetadata): proto.AIRichResponseMessage.AIRichResponseTableMetadata; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseTableMetadata, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseTableMetadata; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseTableMetadata; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseTableMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AIRichResponseTableMetadata { - - interface IAIRichResponseTableRow { - items?: (string[]|null); - isHeading?: (boolean|null); - } - - class AIRichResponseTableRow implements IAIRichResponseTableRow { - constructor(p?: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow); - public items: string[]; - public isHeading?: (boolean|null); - public static create(properties?: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow): proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow; - public static encode(m: proto.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - interface IAIRichResponseUnifiedResponse { - data?: (Uint8Array|null); - } - - class AIRichResponseUnifiedResponse implements IAIRichResponseUnifiedResponse { - constructor(p?: proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse); - public data?: (Uint8Array|null); - public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse): proto.AIRichResponseMessage.AIRichResponseUnifiedResponse; - public static encode(m: proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIRichResponseMessage.AIRichResponseUnifiedResponse; - public static fromObject(d: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseUnifiedResponse; - public static toObject(m: proto.AIRichResponseMessage.AIRichResponseUnifiedResponse, o?: $protobuf.IConversionOptions): { [k: string]: any }; + class AIThreadServerInfo implements IAIThreadServerInfo { + constructor(p?: proto.AIThreadInfo.IAIThreadServerInfo); + public title?: (string|null); + public static create(properties?: proto.AIThreadInfo.IAIThreadServerInfo): proto.AIThreadInfo.AIThreadServerInfo; + public static encode(m: proto.AIThreadInfo.IAIThreadServerInfo, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIThreadInfo.AIThreadServerInfo; + public static fromObject(d: { [k: string]: any }): proto.AIThreadInfo.AIThreadServerInfo; + public static toObject(m: proto.AIThreadInfo.AIThreadServerInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; public toJSON(): { [k: string]: any }; public static getTypeUrl(typeUrlPrefix?: string): string; } @@ -770,12 +912,14 @@ export namespace proto { interface IBotAgeCollectionMetadata { ageCollectionEligible?: (boolean|null); shouldTriggerAgeCollectionOnClient?: (boolean|null); + ageCollectionType?: (proto.BotAgeCollectionMetadata.AgeCollectionType|null); } class BotAgeCollectionMetadata implements IBotAgeCollectionMetadata { constructor(p?: proto.IBotAgeCollectionMetadata); public ageCollectionEligible?: (boolean|null); public shouldTriggerAgeCollectionOnClient?: (boolean|null); + public ageCollectionType?: (proto.BotAgeCollectionMetadata.AgeCollectionType|null); public static create(properties?: proto.IBotAgeCollectionMetadata): proto.BotAgeCollectionMetadata; public static encode(m: proto.IBotAgeCollectionMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotAgeCollectionMetadata; @@ -785,6 +929,14 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace BotAgeCollectionMetadata { + + enum AgeCollectionType { + O18_BINARY = 0, + WAFFLE = 1 + } + } + interface IBotAvatarMetadata { sentiment?: (number|null); behaviorGraph?: (string|null); @@ -863,7 +1015,263 @@ export namespace proto { QUERY_PLAN = 32, PROACTIVE_MESSAGE = 33, RICH_RESPONSE_UNIFIED_RESPONSE = 34, - PROMOTION_MESSAGE = 35 + 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 + } + } + + interface IBotFeedbackMessage { + messageKey?: (proto.IMessageKey|null); + kind?: (proto.BotFeedbackMessage.BotFeedbackKind|null); + text?: (string|null); + kindNegative?: (number|Long|null); + kindPositive?: (number|Long|null); + kindReport?: (proto.BotFeedbackMessage.ReportKind|null); + sideBySideSurveyMetadata?: (proto.BotFeedbackMessage.ISideBySideSurveyMetadata|null); + } + + class BotFeedbackMessage implements IBotFeedbackMessage { + constructor(p?: proto.IBotFeedbackMessage); + public messageKey?: (proto.IMessageKey|null); + public kind?: (proto.BotFeedbackMessage.BotFeedbackKind|null); + public text?: (string|null); + public kindNegative?: (number|Long|null); + public kindPositive?: (number|Long|null); + public kindReport?: (proto.BotFeedbackMessage.ReportKind|null); + public sideBySideSurveyMetadata?: (proto.BotFeedbackMessage.ISideBySideSurveyMetadata|null); + public static create(properties?: proto.IBotFeedbackMessage): proto.BotFeedbackMessage; + public static encode(m: proto.IBotFeedbackMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage; + public static toObject(m: proto.BotFeedbackMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace BotFeedbackMessage { + + 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 + } + + interface ISideBySideSurveyMetadata { + selectedRequestId?: (string|null); + surveyId?: (number|null); + simonSessionFbid?: (string|null); + responseOtid?: (string|null); + responseTimestampMsString?: (string|null); + isSelectedResponsePrimary?: (boolean|null); + messageIdToEdit?: (string|null); + analyticsData?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISideBySideSurveyAnalyticsData|null); + metaAiAnalyticsData?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISidebySideSurveyMetaAiAnalyticsData|null); + } + + class SideBySideSurveyMetadata implements ISideBySideSurveyMetadata { + constructor(p?: proto.BotFeedbackMessage.ISideBySideSurveyMetadata); + public selectedRequestId?: (string|null); + public surveyId?: (number|null); + public simonSessionFbid?: (string|null); + public responseOtid?: (string|null); + public responseTimestampMsString?: (string|null); + public isSelectedResponsePrimary?: (boolean|null); + public messageIdToEdit?: (string|null); + public analyticsData?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISideBySideSurveyAnalyticsData|null); + public metaAiAnalyticsData?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISidebySideSurveyMetaAiAnalyticsData|null); + public static create(properties?: proto.BotFeedbackMessage.ISideBySideSurveyMetadata): proto.BotFeedbackMessage.SideBySideSurveyMetadata; + public static encode(m: proto.BotFeedbackMessage.ISideBySideSurveyMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SideBySideSurveyMetadata { + + interface ISideBySideSurveyAnalyticsData { + tessaEvent?: (string|null); + tessaSessionFbid?: (string|null); + simonSessionFbid?: (string|null); + } + + class SideBySideSurveyAnalyticsData implements ISideBySideSurveyAnalyticsData { + constructor(p?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISideBySideSurveyAnalyticsData); + public tessaEvent?: (string|null); + public tessaSessionFbid?: (string|null); + public simonSessionFbid?: (string|null); + public static create(properties?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISideBySideSurveyAnalyticsData): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData; + public static encode(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISideBySideSurveyAnalyticsData, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface ISidebySideSurveyMetaAiAnalyticsData { + surveyId?: (number|null); + primaryResponseId?: (string|null); + testArmName?: (string|null); + timestampMsString?: (string|null); + ctaImpressionEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAImpressionEventData|null); + ctaClickEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAClickEventData|null); + cardImpressionEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCardImpressionEventData|null); + responseEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyResponseEventData|null); + abandonEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyAbandonEventData|null); + } + + class SidebySideSurveyMetaAiAnalyticsData implements ISidebySideSurveyMetaAiAnalyticsData { + constructor(p?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISidebySideSurveyMetaAiAnalyticsData); + public surveyId?: (number|null); + public primaryResponseId?: (string|null); + public testArmName?: (string|null); + public timestampMsString?: (string|null); + public ctaImpressionEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAImpressionEventData|null); + public ctaClickEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAClickEventData|null); + public cardImpressionEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCardImpressionEventData|null); + public responseEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyResponseEventData|null); + public abandonEvent?: (proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyAbandonEventData|null); + public static create(properties?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISidebySideSurveyMetaAiAnalyticsData): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData; + public static encode(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.ISidebySideSurveyMetaAiAnalyticsData, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SidebySideSurveyMetaAiAnalyticsData { + + interface ISideBySideSurveyAbandonEventData { + abandonDwellTimeMsString?: (string|null); + } + + class SideBySideSurveyAbandonEventData implements ISideBySideSurveyAbandonEventData { + constructor(p?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyAbandonEventData); + public abandonDwellTimeMsString?: (string|null); + public static create(properties?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyAbandonEventData): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData; + public static encode(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyAbandonEventData, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface ISideBySideSurveyCTAClickEventData { + isSurveyExpired?: (boolean|null); + clickDwellTimeMsString?: (string|null); + } + + class SideBySideSurveyCTAClickEventData implements ISideBySideSurveyCTAClickEventData { + constructor(p?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAClickEventData); + public isSurveyExpired?: (boolean|null); + public clickDwellTimeMsString?: (string|null); + public static create(properties?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAClickEventData): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData; + public static encode(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAClickEventData, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface ISideBySideSurveyCTAImpressionEventData { + isSurveyExpired?: (boolean|null); + } + + class SideBySideSurveyCTAImpressionEventData implements ISideBySideSurveyCTAImpressionEventData { + constructor(p?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAImpressionEventData); + public isSurveyExpired?: (boolean|null); + public static create(properties?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAImpressionEventData): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData; + public static encode(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCTAImpressionEventData, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface ISideBySideSurveyCardImpressionEventData { + } + + class SideBySideSurveyCardImpressionEventData implements ISideBySideSurveyCardImpressionEventData { + constructor(p?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCardImpressionEventData); + public static create(properties?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCardImpressionEventData): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData; + public static encode(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyCardImpressionEventData, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface ISideBySideSurveyResponseEventData { + responseDwellTimeMsString?: (string|null); + selectedResponseId?: (string|null); + } + + class SideBySideSurveyResponseEventData implements ISideBySideSurveyResponseEventData { + constructor(p?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyResponseEventData); + public responseDwellTimeMsString?: (string|null); + public selectedResponseId?: (string|null); + public static create(properties?: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyResponseEventData): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData; + public static encode(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ISideBySideSurveyResponseEventData, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData; + public static fromObject(d: { [k: string]: any }): proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData; + public static toObject(m: proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } } @@ -1028,6 +1436,63 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IBotMessageOrigin { + type?: (proto.BotMessageOrigin.BotMessageOriginType|null); + } + + class BotMessageOrigin implements IBotMessageOrigin { + constructor(p?: proto.IBotMessageOrigin); + public type?: (proto.BotMessageOrigin.BotMessageOriginType|null); + public static create(properties?: proto.IBotMessageOrigin): proto.BotMessageOrigin; + public static encode(m: proto.IBotMessageOrigin, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMessageOrigin; + public static fromObject(d: { [k: string]: any }): proto.BotMessageOrigin; + public static toObject(m: proto.BotMessageOrigin, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace BotMessageOrigin { + + enum BotMessageOriginType { + BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0 + } + } + + interface IBotMessageOriginMetadata { + origins?: (proto.IBotMessageOrigin[]|null); + } + + class BotMessageOriginMetadata implements IBotMessageOriginMetadata { + constructor(p?: proto.IBotMessageOriginMetadata); + public origins: proto.IBotMessageOrigin[]; + public static create(properties?: proto.IBotMessageOriginMetadata): proto.BotMessageOriginMetadata; + public static encode(m: proto.IBotMessageOriginMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMessageOriginMetadata; + public static fromObject(d: { [k: string]: any }): proto.BotMessageOriginMetadata; + public static toObject(m: proto.BotMessageOriginMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IBotMessageSharingInfo { + botEntryPointOrigin?: (proto.BotMetricsEntryPoint|null); + forwardScore?: (number|null); + } + + class BotMessageSharingInfo implements IBotMessageSharingInfo { + constructor(p?: proto.IBotMessageSharingInfo); + public botEntryPointOrigin?: (proto.BotMetricsEntryPoint|null); + public forwardScore?: (number|null); + public static create(properties?: proto.IBotMessageSharingInfo): proto.BotMessageSharingInfo; + public static encode(m: proto.IBotMessageSharingInfo, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMessageSharingInfo; + public static fromObject(d: { [k: string]: any }): proto.BotMessageSharingInfo; + public static toObject(m: proto.BotMessageSharingInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IBotMetadata { avatarMetadata?: (proto.IBotAvatarMetadata|null); personaId?: (string|null); @@ -1053,6 +1518,16 @@ export namespace proto { botModeSelectionMetadata?: (proto.IBotModeSelectionMetadata|null); botQuotaMetadata?: (proto.IBotQuotaMetadata|null); botAgeCollectionMetadata?: (proto.IBotAgeCollectionMetadata|null); + conversationStarterPromptId?: (string|null); + botResponseId?: (string|null); + verificationMetadata?: (proto.IBotSignatureVerificationMetadata|null); + unifiedResponseMutation?: (proto.IBotUnifiedResponseMutation|null); + botMessageOriginMetadata?: (proto.IBotMessageOriginMetadata|null); + inThreadSurveyMetadata?: (proto.IInThreadSurveyMetadata|null); + botThreadInfo?: (proto.IAIThreadInfo|null); + regenerateMetadata?: (proto.IAIRegenerateMetadata|null); + sessionTransparencyMetadata?: (proto.ISessionTransparencyMetadata|null); + internalMetadata?: (Uint8Array|null); } class BotMetadata implements IBotMetadata { @@ -1081,6 +1556,16 @@ export namespace proto { public botModeSelectionMetadata?: (proto.IBotModeSelectionMetadata|null); public botQuotaMetadata?: (proto.IBotQuotaMetadata|null); public botAgeCollectionMetadata?: (proto.IBotAgeCollectionMetadata|null); + public conversationStarterPromptId?: (string|null); + public botResponseId?: (string|null); + public verificationMetadata?: (proto.IBotSignatureVerificationMetadata|null); + public unifiedResponseMutation?: (proto.IBotUnifiedResponseMutation|null); + public botMessageOriginMetadata?: (proto.IBotMessageOriginMetadata|null); + public inThreadSurveyMetadata?: (proto.IInThreadSurveyMetadata|null); + public botThreadInfo?: (proto.IAIThreadInfo|null); + public regenerateMetadata?: (proto.IAIRegenerateMetadata|null); + public sessionTransparencyMetadata?: (proto.ISessionTransparencyMetadata|null); + public internalMetadata?: (Uint8Array|null); public static create(properties?: proto.IBotMetadata): proto.BotMetadata; public static encode(m: proto.IBotMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotMetadata; @@ -1091,6 +1576,7 @@ export namespace proto { } enum BotMetricsEntryPoint { + UNDEFINED_ENTRY_POINT = 0, FAVICON = 1, CHATLIST = 2, AISEARCH_NULL_STATE_PAPER_PLANE = 3, @@ -1114,7 +1600,21 @@ export namespace proto { AI_DEEPLINK = 21, META_AI_CHAT_SHORTCUT_AI_STUDIO = 22, UGC_CHAT_SHORTCUT_AI_STUDIO = 23, - NEW_CHAT_AI_STUDIO = 24 + 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 } interface IBotMetricsMetadata { @@ -1141,7 +1641,8 @@ export namespace proto { AI_TAB_THREAD = 1, AI_HOME_THREAD = 2, AI_DEEPLINK_IMMERSIVE_THREAD = 3, - AI_DEEPLINK_THREAD = 4 + AI_DEEPLINK_THREAD = 4, + ASK_META_AI_CONTEXT_MENU_THREAD = 5 } interface IBotModeSelectionMetadata { @@ -1171,12 +1672,14 @@ export namespace proto { interface IBotModelMetadata { modelType?: (proto.BotModelMetadata.ModelType|null); premiumModelStatus?: (proto.BotModelMetadata.PremiumModelStatus|null); + modelNameOverride?: (string|null); } class BotModelMetadata implements IBotModelMetadata { constructor(p?: proto.IBotModelMetadata); public modelType?: (proto.BotModelMetadata.ModelType|null); public premiumModelStatus?: (proto.BotModelMetadata.PremiumModelStatus|null); + public modelNameOverride?: (string|null); public static create(properties?: proto.IBotModelMetadata): proto.BotModelMetadata; public static encode(m: proto.IBotModelMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotModelMetadata; @@ -1415,7 +1918,8 @@ export namespace proto { enum BotPromotionType { UNKNOWN_TYPE = 0, - C50 = 1 + C50 = 1, + SURVEY_PLATFORM = 2 } } @@ -1607,6 +2111,52 @@ export namespace proto { VOICE = 6 } + interface IBotSignatureVerificationMetadata { + proofs?: (proto.IBotSignatureVerificationUseCaseProof[]|null); + } + + class BotSignatureVerificationMetadata implements IBotSignatureVerificationMetadata { + constructor(p?: proto.IBotSignatureVerificationMetadata); + public proofs: proto.IBotSignatureVerificationUseCaseProof[]; + public static create(properties?: proto.IBotSignatureVerificationMetadata): proto.BotSignatureVerificationMetadata; + public static encode(m: proto.IBotSignatureVerificationMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotSignatureVerificationMetadata; + public static fromObject(d: { [k: string]: any }): proto.BotSignatureVerificationMetadata; + public static toObject(m: proto.BotSignatureVerificationMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IBotSignatureVerificationUseCaseProof { + version?: (number|null); + useCase?: (proto.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null); + signature?: (Uint8Array|null); + certificateChain?: (Uint8Array[]|null); + } + + class BotSignatureVerificationUseCaseProof implements IBotSignatureVerificationUseCaseProof { + constructor(p?: proto.IBotSignatureVerificationUseCaseProof); + public version?: (number|null); + public useCase?: (proto.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null); + public signature?: (Uint8Array|null); + public certificateChain: Uint8Array[]; + public static create(properties?: proto.IBotSignatureVerificationUseCaseProof): proto.BotSignatureVerificationUseCaseProof; + public static encode(m: proto.IBotSignatureVerificationUseCaseProof, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotSignatureVerificationUseCaseProof; + public static fromObject(d: { [k: string]: any }): proto.BotSignatureVerificationUseCaseProof; + public static toObject(m: proto.BotSignatureVerificationUseCaseProof, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace BotSignatureVerificationUseCaseProof { + + enum BotSignatureUseCase { + UNSPECIFIED = 0, + WA_BOT_MSG = 1 + } + } + interface IBotSourcesMetadata { sources?: (proto.BotSourcesMetadata.IBotSourceItem[]|null); } @@ -1632,6 +2182,7 @@ export namespace proto { sourceQuery?: (string|null); faviconCdnUrl?: (string|null); citationNumber?: (number|null); + sourceTitle?: (string|null); } class BotSourceItem implements IBotSourceItem { @@ -1642,6 +2193,7 @@ export namespace proto { public sourceQuery?: (string|null); public faviconCdnUrl?: (string|null); public citationNumber?: (number|null); + public sourceTitle?: (string|null); public static create(properties?: proto.BotSourcesMetadata.IBotSourceItem): proto.BotSourcesMetadata.BotSourceItem; public static encode(m: proto.BotSourcesMetadata.IBotSourceItem, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotSourcesMetadata.BotSourceItem; @@ -1657,7 +2209,8 @@ export namespace proto { UNKNOWN = 0, BING = 1, GOOGLE = 2, - SUPPORT = 3 + SUPPORT = 3, + OTHER = 4 } } } @@ -1684,6 +2237,65 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IBotUnifiedResponseMutation { + sbsMetadata?: (proto.BotUnifiedResponseMutation.ISideBySideMetadata|null); + mediaDetailsMetadataList?: (proto.BotUnifiedResponseMutation.IMediaDetailsMetadata[]|null); + } + + class BotUnifiedResponseMutation implements IBotUnifiedResponseMutation { + constructor(p?: proto.IBotUnifiedResponseMutation); + public sbsMetadata?: (proto.BotUnifiedResponseMutation.ISideBySideMetadata|null); + public mediaDetailsMetadataList: proto.BotUnifiedResponseMutation.IMediaDetailsMetadata[]; + public static create(properties?: proto.IBotUnifiedResponseMutation): proto.BotUnifiedResponseMutation; + public static encode(m: proto.IBotUnifiedResponseMutation, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotUnifiedResponseMutation; + public static fromObject(d: { [k: string]: any }): proto.BotUnifiedResponseMutation; + public static toObject(m: proto.BotUnifiedResponseMutation, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace BotUnifiedResponseMutation { + + interface IMediaDetailsMetadata { + id?: (string|null); + highResMedia?: (proto.IBotMediaMetadata|null); + previewMedia?: (proto.IBotMediaMetadata|null); + } + + class MediaDetailsMetadata implements IMediaDetailsMetadata { + constructor(p?: proto.BotUnifiedResponseMutation.IMediaDetailsMetadata); + public id?: (string|null); + public highResMedia?: (proto.IBotMediaMetadata|null); + public previewMedia?: (proto.IBotMediaMetadata|null); + public static create(properties?: proto.BotUnifiedResponseMutation.IMediaDetailsMetadata): proto.BotUnifiedResponseMutation.MediaDetailsMetadata; + public static encode(m: proto.BotUnifiedResponseMutation.IMediaDetailsMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotUnifiedResponseMutation.MediaDetailsMetadata; + public static fromObject(d: { [k: string]: any }): proto.BotUnifiedResponseMutation.MediaDetailsMetadata; + public static toObject(m: proto.BotUnifiedResponseMutation.MediaDetailsMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface ISideBySideMetadata { + primaryResponseId?: (string|null); + surveyCtaHasRendered?: (boolean|null); + } + + class SideBySideMetadata implements ISideBySideMetadata { + constructor(p?: proto.BotUnifiedResponseMutation.ISideBySideMetadata); + public primaryResponseId?: (string|null); + public surveyCtaHasRendered?: (boolean|null); + public static create(properties?: proto.BotUnifiedResponseMutation.ISideBySideMetadata): proto.BotUnifiedResponseMutation.SideBySideMetadata; + public static encode(m: proto.BotUnifiedResponseMutation.ISideBySideMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotUnifiedResponseMutation.SideBySideMetadata; + public static fromObject(d: { [k: string]: any }): proto.BotUnifiedResponseMutation.SideBySideMetadata; + public static toObject(m: proto.BotUnifiedResponseMutation.SideBySideMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + interface ICallLogRecord { callResult?: (proto.CallLogRecord.CallResult|null); isDndMode?: (boolean|null); @@ -2000,12 +2612,14 @@ export namespace proto { interface IClientPairingProps { isChatDbLidMigrated?: (boolean|null); isSyncdPureLidSession?: (boolean|null); + isSyncdSnapshotRecoveryEnabled?: (boolean|null); } class ClientPairingProps implements IClientPairingProps { constructor(p?: proto.IClientPairingProps); public isChatDbLidMigrated?: (boolean|null); public isSyncdPureLidSession?: (boolean|null); + public isSyncdSnapshotRecoveryEnabled?: (boolean|null); public static create(properties?: proto.IClientPairingProps): proto.ClientPairingProps; public static encode(m: proto.IClientPairingProps, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ClientPairingProps; @@ -2046,6 +2660,10 @@ export namespace proto { trafficAnonymization?: (proto.ClientPayload.TrafficAnonymization|null); lidDbMigrated?: (boolean|null); accountType?: (proto.ClientPayload.AccountType|null); + connectionSequenceInfo?: (number|null); + paaLink?: (boolean|null); + preacksCount?: (number|null); + processingQueueSize?: (number|null); } class ClientPayload implements IClientPayload { @@ -2080,6 +2698,10 @@ export namespace proto { public trafficAnonymization?: (proto.ClientPayload.TrafficAnonymization|null); public lidDbMigrated?: (boolean|null); public accountType?: (proto.ClientPayload.AccountType|null); + public connectionSequenceInfo?: (number|null); + public paaLink?: (boolean|null); + public preacksCount?: (number|null); + public processingQueueSize?: (number|null); public static create(properties?: proto.IClientPayload): proto.ClientPayload; public static encode(m: proto.IClientPayload, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ClientPayload; @@ -2339,7 +2961,9 @@ export namespace proto { BLUE_WEB = 32, IPAD = 33, TEST = 34, - SMART_GLASSES = 35 + SMART_GLASSES = 35, + BLUE_VR = 36, + AR_WRIST = 37 } enum ReleaseChannel { @@ -2421,6 +3045,15 @@ export namespace proto { } } + enum CollectionName { + COLLECTION_NAME_UNKNOWN = 0, + REGULAR = 1, + REGULAR_LOW = 2, + REGULAR_HIGH = 3, + CRITICAL_BLOCK = 4, + CRITICAL_UNBLOCK_LOW = 5 + } + interface ICommentMetadata { commentParentKey?: (proto.IMessageKey|null); replyCount?: (number|null); @@ -2533,7 +3166,7 @@ export namespace proto { entryPointConversionExternalMedium?: (string|null); ctwaSignals?: (string|null); ctwaPayload?: (Uint8Array|null); - forwardedAiBotMessageInfo?: (proto.ContextInfo.IForwardedAIBotMessageInfo|null); + forwardedAiBotMessageInfo?: (proto.IForwardedAIBotMessageInfo|null); statusAttributionType?: (proto.ContextInfo.StatusAttributionType|null); urlTrackingMap?: (proto.IUrlTrackingMap|null); pairedMediaType?: (proto.ContextInfo.PairedMediaType|null); @@ -2541,6 +3174,14 @@ export namespace proto { memberLabel?: (proto.IMemberLabel|null); isQuestion?: (boolean|null); statusSourceType?: (proto.ContextInfo.StatusSourceType|null); + statusAttributions?: (proto.IStatusAttribution[]|null); + isGroupStatus?: (boolean|null); + forwardOrigin?: (proto.ContextInfo.ForwardOrigin|null); + questionReplyQuotedMessage?: (proto.ContextInfo.IQuestionReplyQuotedMessage|null); + statusAudienceMetadata?: (proto.ContextInfo.IStatusAudienceMetadata|null); + nonJidMentions?: (number|null); + quotedType?: (proto.ContextInfo.QuotedType|null); + botMessageSharingInfo?: (proto.IBotMessageSharingInfo|null); } class ContextInfo implements IContextInfo { @@ -2584,7 +3225,7 @@ export namespace proto { public entryPointConversionExternalMedium?: (string|null); public ctwaSignals?: (string|null); public ctwaPayload?: (Uint8Array|null); - public forwardedAiBotMessageInfo?: (proto.ContextInfo.IForwardedAIBotMessageInfo|null); + public forwardedAiBotMessageInfo?: (proto.IForwardedAIBotMessageInfo|null); public statusAttributionType?: (proto.ContextInfo.StatusAttributionType|null); public urlTrackingMap?: (proto.IUrlTrackingMap|null); public pairedMediaType?: (proto.ContextInfo.PairedMediaType|null); @@ -2592,6 +3233,14 @@ export namespace proto { public memberLabel?: (proto.IMemberLabel|null); public isQuestion?: (boolean|null); public statusSourceType?: (proto.ContextInfo.StatusSourceType|null); + public statusAttributions: proto.IStatusAttribution[]; + public isGroupStatus?: (boolean|null); + public forwardOrigin?: (proto.ContextInfo.ForwardOrigin|null); + public questionReplyQuotedMessage?: (proto.ContextInfo.IQuestionReplyQuotedMessage|null); + public statusAudienceMetadata?: (proto.ContextInfo.IStatusAudienceMetadata|null); + public nonJidMentions?: (number|null); + public quotedType?: (proto.ContextInfo.QuotedType|null); + public botMessageSharingInfo?: (proto.IBotMessageSharingInfo|null); public static create(properties?: proto.IContextInfo): proto.ContextInfo; public static encode(m: proto.IContextInfo, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo; @@ -2654,6 +3303,7 @@ export namespace proto { showMmDisclosure?: (boolean|null); encryptedSignalTokenConsented?: (string|null); parameters?: (proto.ContextInfo.DataSharingContext.IParameters[]|null); + dataSharingFlags?: (number|null); } class DataSharingContext implements IDataSharingContext { @@ -2661,6 +3311,7 @@ export namespace proto { public showMmDisclosure?: (boolean|null); public encryptedSignalTokenConsented?: (string|null); public parameters: proto.ContextInfo.DataSharingContext.IParameters[]; + public dataSharingFlags?: (number|null); public static create(properties?: proto.ContextInfo.IDataSharingContext): proto.ContextInfo.DataSharingContext; public static encode(m: proto.ContextInfo.IDataSharingContext, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.DataSharingContext; @@ -2672,6 +3323,11 @@ export namespace proto { namespace DataSharingContext { + enum DataSharingFlags { + SHOW_MM_DISCLOSURE_ON_CLICK = 1, + SHOW_MM_DISCLOSURE_ON_READ = 2 + } + interface IParameters { key?: (string|null); stringData?: (string|null); @@ -2723,6 +3379,8 @@ export namespace proto { automatedGreetingMessageCtaType?: (string|null); wtwaAdFormat?: (boolean|null); adType?: (proto.ContextInfo.ExternalAdReplyInfo.AdType|null); + wtwaWebsiteUrl?: (string|null); + adPreviewUrl?: (string|null); } class ExternalAdReplyInfo implements IExternalAdReplyInfo { @@ -2752,6 +3410,8 @@ export namespace proto { public automatedGreetingMessageCtaType?: (string|null); public wtwaAdFormat?: (boolean|null); public adType?: (proto.ContextInfo.ExternalAdReplyInfo.AdType|null); + public wtwaWebsiteUrl?: (string|null); + public adPreviewUrl?: (string|null); public static create(properties?: proto.ContextInfo.IExternalAdReplyInfo): proto.ContextInfo.ExternalAdReplyInfo; public static encode(m: proto.ContextInfo.IExternalAdReplyInfo, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.ExternalAdReplyInfo; @@ -2780,6 +3440,7 @@ export namespace proto { cannotBeRanked?: (boolean|null); canRequestFeedback?: (boolean|null); canBeReshared?: (boolean|null); + canReceiveMultiReact?: (boolean|null); } class FeatureEligibilities implements IFeatureEligibilities { @@ -2788,6 +3449,7 @@ export namespace proto { public cannotBeRanked?: (boolean|null); public canRequestFeedback?: (boolean|null); public canBeReshared?: (boolean|null); + public canReceiveMultiReact?: (boolean|null); public static create(properties?: proto.ContextInfo.IFeatureEligibilities): proto.ContextInfo.FeatureEligibilities; public static encode(m: proto.ContextInfo.IFeatureEligibilities, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.FeatureEligibilities; @@ -2797,24 +3459,13 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } - interface IForwardedAIBotMessageInfo { - botName?: (string|null); - botJid?: (string|null); - creatorName?: (string|null); - } - - class ForwardedAIBotMessageInfo implements IForwardedAIBotMessageInfo { - constructor(p?: proto.ContextInfo.IForwardedAIBotMessageInfo); - public botName?: (string|null); - public botJid?: (string|null); - public creatorName?: (string|null); - public static create(properties?: proto.ContextInfo.IForwardedAIBotMessageInfo): proto.ContextInfo.ForwardedAIBotMessageInfo; - public static encode(m: proto.ContextInfo.IForwardedAIBotMessageInfo, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.ForwardedAIBotMessageInfo; - public static fromObject(d: { [k: string]: any }): proto.ContextInfo.ForwardedAIBotMessageInfo; - public static toObject(m: proto.ContextInfo.ForwardedAIBotMessageInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; + enum ForwardOrigin { + UNKNOWN = 0, + CHAT = 1, + STATUS = 2, + CHANNELS = 3, + META_AI = 4, + UGC = 5 } interface IForwardedNewsletterMessageInfo { @@ -2857,13 +3508,66 @@ export namespace proto { SD_IMAGE_PARENT = 3, HD_IMAGE_CHILD = 4, MOTION_PHOTO_PARENT = 5, - MOTION_PHOTO_CHILD = 6 + MOTION_PHOTO_CHILD = 6, + HEVC_VIDEO_PARENT = 7, + HEVC_VIDEO_CHILD = 8 + } + + interface IQuestionReplyQuotedMessage { + serverQuestionId?: (number|null); + quotedQuestion?: (proto.IMessage|null); + quotedResponse?: (proto.IMessage|null); + } + + class QuestionReplyQuotedMessage implements IQuestionReplyQuotedMessage { + constructor(p?: proto.ContextInfo.IQuestionReplyQuotedMessage); + public serverQuestionId?: (number|null); + public quotedQuestion?: (proto.IMessage|null); + public quotedResponse?: (proto.IMessage|null); + public static create(properties?: proto.ContextInfo.IQuestionReplyQuotedMessage): proto.ContextInfo.QuestionReplyQuotedMessage; + public static encode(m: proto.ContextInfo.IQuestionReplyQuotedMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.QuestionReplyQuotedMessage; + public static fromObject(d: { [k: string]: any }): proto.ContextInfo.QuestionReplyQuotedMessage; + public static toObject(m: proto.ContextInfo.QuestionReplyQuotedMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + enum QuotedType { + EXPLICIT = 0, + AUTO = 1 } enum StatusAttributionType { NONE = 0, RESHARED_FROM_MENTION = 1, - RESHARED_FROM_POST = 2 + RESHARED_FROM_POST = 2, + RESHARED_FROM_POST_MANY_TIMES = 3, + FORWARDED_FROM_STATUS = 4 + } + + interface IStatusAudienceMetadata { + audienceType?: (proto.ContextInfo.StatusAudienceMetadata.AudienceType|null); + } + + class StatusAudienceMetadata implements IStatusAudienceMetadata { + constructor(p?: proto.ContextInfo.IStatusAudienceMetadata); + public audienceType?: (proto.ContextInfo.StatusAudienceMetadata.AudienceType|null); + public static create(properties?: proto.ContextInfo.IStatusAudienceMetadata): proto.ContextInfo.StatusAudienceMetadata; + public static encode(m: proto.ContextInfo.IStatusAudienceMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.StatusAudienceMetadata; + public static fromObject(d: { [k: string]: any }): proto.ContextInfo.StatusAudienceMetadata; + public static toObject(m: proto.ContextInfo.StatusAudienceMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StatusAudienceMetadata { + + enum AudienceType { + UNKNOWN = 0, + CLOSE_FRIENDS = 1 + } } enum StatusSourceType { @@ -2948,6 +3652,7 @@ export namespace proto { limitSharingSettingTimestamp?: (number|Long|null); limitSharingTrigger?: (proto.LimitSharing.TriggerType|null); limitSharingInitiatedByMe?: (boolean|null); + maibaAiThreadEnabled?: (boolean|null); } class Conversation implements IConversation { @@ -3005,6 +3710,7 @@ export namespace proto { public limitSharingSettingTimestamp?: (number|Long|null); public limitSharingTrigger?: (proto.LimitSharing.TriggerType|null); public limitSharingInitiatedByMe?: (boolean|null); + public maibaAiThreadEnabled?: (boolean|null); public static create(properties?: proto.IConversation): proto.Conversation; public static encode(m: proto.IConversation, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Conversation; @@ -3026,12 +3732,18 @@ export namespace proto { interface IDeviceCapabilities { chatLockSupportLevel?: (proto.DeviceCapabilities.ChatLockSupportLevel|null); lidMigration?: (proto.DeviceCapabilities.ILIDMigration|null); + businessBroadcast?: (proto.DeviceCapabilities.IBusinessBroadcast|null); + userHasAvatar?: (proto.DeviceCapabilities.IUserHasAvatar|null); + memberNameTagPrimarySupport?: (proto.DeviceCapabilities.MemberNameTagPrimarySupport|null); } class DeviceCapabilities implements IDeviceCapabilities { constructor(p?: proto.IDeviceCapabilities); public chatLockSupportLevel?: (proto.DeviceCapabilities.ChatLockSupportLevel|null); public lidMigration?: (proto.DeviceCapabilities.ILIDMigration|null); + public businessBroadcast?: (proto.DeviceCapabilities.IBusinessBroadcast|null); + public userHasAvatar?: (proto.DeviceCapabilities.IUserHasAvatar|null); + public memberNameTagPrimarySupport?: (proto.DeviceCapabilities.MemberNameTagPrimarySupport|null); public static create(properties?: proto.IDeviceCapabilities): proto.DeviceCapabilities; public static encode(m: proto.IDeviceCapabilities, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceCapabilities; @@ -3043,6 +3755,22 @@ export namespace proto { namespace DeviceCapabilities { + interface IBusinessBroadcast { + importListEnabled?: (boolean|null); + } + + class BusinessBroadcast implements IBusinessBroadcast { + constructor(p?: proto.DeviceCapabilities.IBusinessBroadcast); + public importListEnabled?: (boolean|null); + public static create(properties?: proto.DeviceCapabilities.IBusinessBroadcast): proto.DeviceCapabilities.BusinessBroadcast; + public static encode(m: proto.DeviceCapabilities.IBusinessBroadcast, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceCapabilities.BusinessBroadcast; + public static fromObject(d: { [k: string]: any }): proto.DeviceCapabilities.BusinessBroadcast; + public static toObject(m: proto.DeviceCapabilities.BusinessBroadcast, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + enum ChatLockSupportLevel { NONE = 0, MINIMAL = 1, @@ -3064,6 +3792,28 @@ export namespace proto { public toJSON(): { [k: string]: any }; public static getTypeUrl(typeUrlPrefix?: string): string; } + + enum MemberNameTagPrimarySupport { + DISABLED = 0, + RECEIVER_ENABLED = 1, + SENDER_ENABLED = 2 + } + + interface IUserHasAvatar { + userHasAvatar?: (boolean|null); + } + + class UserHasAvatar implements IUserHasAvatar { + constructor(p?: proto.DeviceCapabilities.IUserHasAvatar); + public userHasAvatar?: (boolean|null); + public static create(properties?: proto.DeviceCapabilities.IUserHasAvatar): proto.DeviceCapabilities.UserHasAvatar; + public static encode(m: proto.DeviceCapabilities.IUserHasAvatar, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceCapabilities.UserHasAvatar; + public static fromObject(d: { [k: string]: any }): proto.DeviceCapabilities.UserHasAvatar; + public static toObject(m: proto.DeviceCapabilities.UserHasAvatar, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } } interface IDeviceConsistencyCodeMessage { @@ -3179,6 +3929,11 @@ export namespace proto { supportFbidBotChatHistory?: (boolean|null); supportAddOnHistorySyncMigration?: (boolean|null); supportMessageAssociation?: (boolean|null); + supportGroupHistory?: (boolean|null); + onDemandReady?: (boolean|null); + supportGuestChat?: (boolean|null); + completeOnDemandReady?: (boolean|null); + thumbnailSyncDaysLimit?: (number|null); } class HistorySyncConfig implements IHistorySyncConfig { @@ -3197,6 +3952,11 @@ export namespace proto { public supportFbidBotChatHistory?: (boolean|null); public supportAddOnHistorySyncMigration?: (boolean|null); public supportMessageAssociation?: (boolean|null); + public supportGroupHistory?: (boolean|null); + public onDemandReady?: (boolean|null); + public supportGuestChat?: (boolean|null); + public completeOnDemandReady?: (boolean|null); + public thumbnailSyncDaysLimit?: (number|null); public static create(properties?: proto.DeviceProps.IHistorySyncConfig): proto.DeviceProps.HistorySyncConfig; public static encode(m: proto.DeviceProps.IHistorySyncConfig, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.DeviceProps.HistorySyncConfig; @@ -3321,10 +4081,13 @@ export namespace proto { artworkDirectPath?: (string|null); artworkSha256?: (Uint8Array|null); artworkEncSha256?: (Uint8Array|null); - artworkMediaKey?: (Uint8Array|null); artistAttribution?: (string|null); countryBlocklist?: (Uint8Array|null); isExplicit?: (boolean|null); + artworkMediaKey?: (Uint8Array|null); + musicSongStartTimeInMs?: (number|Long|null); + derivedContentStartTimeInMs?: (number|Long|null); + overlapDurationInMs?: (number|Long|null); } class EmbeddedMusic implements IEmbeddedMusic { @@ -3336,10 +4099,13 @@ export namespace proto { public artworkDirectPath?: (string|null); public artworkSha256?: (Uint8Array|null); public artworkEncSha256?: (Uint8Array|null); - public artworkMediaKey?: (Uint8Array|null); public artistAttribution?: (string|null); public countryBlocklist?: (Uint8Array|null); public isExplicit?: (boolean|null); + public artworkMediaKey?: (Uint8Array|null); + public musicSongStartTimeInMs?: (number|Long|null); + public derivedContentStartTimeInMs?: (number|Long|null); + public overlapDurationInMs?: (number|Long|null); public static create(properties?: proto.IEmbeddedMusic): proto.EmbeddedMusic; public static encode(m: proto.IEmbeddedMusic, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.EmbeddedMusic; @@ -3491,6 +4257,26 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IForwardedAIBotMessageInfo { + botName?: (string|null); + botJid?: (string|null); + creatorName?: (string|null); + } + + class ForwardedAIBotMessageInfo implements IForwardedAIBotMessageInfo { + constructor(p?: proto.IForwardedAIBotMessageInfo); + public botName?: (string|null); + public botJid?: (string|null); + public creatorName?: (string|null); + public static create(properties?: proto.IForwardedAIBotMessageInfo): proto.ForwardedAIBotMessageInfo; + public static encode(m: proto.IForwardedAIBotMessageInfo, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ForwardedAIBotMessageInfo; + public static fromObject(d: { [k: string]: any }): proto.ForwardedAIBotMessageInfo; + public static toObject(m: proto.ForwardedAIBotMessageInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IGlobalSettings { lightThemeWallpaper?: (proto.IWallpaperSettings|null); mediaVisibility?: (proto.MediaVisibility|null); @@ -3545,6 +4331,53 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IGroupHistoryBundleInfo { + deprecatedMessageHistoryBundle?: (proto.Message.IMessageHistoryBundle|null); + processState?: (proto.GroupHistoryBundleInfo.ProcessState|null); + } + + class GroupHistoryBundleInfo implements IGroupHistoryBundleInfo { + constructor(p?: proto.IGroupHistoryBundleInfo); + public deprecatedMessageHistoryBundle?: (proto.Message.IMessageHistoryBundle|null); + public processState?: (proto.GroupHistoryBundleInfo.ProcessState|null); + public static create(properties?: proto.IGroupHistoryBundleInfo): proto.GroupHistoryBundleInfo; + public static encode(m: proto.IGroupHistoryBundleInfo, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.GroupHistoryBundleInfo; + public static fromObject(d: { [k: string]: any }): proto.GroupHistoryBundleInfo; + public static toObject(m: proto.GroupHistoryBundleInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GroupHistoryBundleInfo { + + enum ProcessState { + NOT_INJECTED = 0, + INJECTED = 1, + INJECTED_PARTIAL = 2, + INJECTION_FAILED = 3, + INJECTION_FAILED_NO_RETRY = 4 + } + } + + interface IGroupHistoryIndividualMessageInfo { + bundleMessageKey?: (proto.IMessageKey|null); + editedAfterReceivedAsHistory?: (boolean|null); + } + + class GroupHistoryIndividualMessageInfo implements IGroupHistoryIndividualMessageInfo { + constructor(p?: proto.IGroupHistoryIndividualMessageInfo); + public bundleMessageKey?: (proto.IMessageKey|null); + public editedAfterReceivedAsHistory?: (boolean|null); + public static create(properties?: proto.IGroupHistoryIndividualMessageInfo): proto.GroupHistoryIndividualMessageInfo; + public static encode(m: proto.IGroupHistoryIndividualMessageInfo, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.GroupHistoryIndividualMessageInfo; + public static fromObject(d: { [k: string]: any }): proto.GroupHistoryIndividualMessageInfo; + public static toObject(m: proto.GroupHistoryIndividualMessageInfo, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IGroupMention { groupJid?: (string|null); groupSubject?: (string|null); @@ -3566,12 +4399,14 @@ export namespace proto { interface IGroupParticipant { userJid?: (string|null); rank?: (proto.GroupParticipant.Rank|null); + memberLabel?: (proto.IMemberLabel|null); } class GroupParticipant implements IGroupParticipant { constructor(p?: proto.IGroupParticipant); public userJid: string; public rank?: (proto.GroupParticipant.Rank|null); + public memberLabel?: (proto.IMemberLabel|null); public static create(properties?: proto.IGroupParticipant): proto.GroupParticipant; public static encode(m: proto.IGroupParticipant, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.GroupParticipant; @@ -3615,12 +4450,14 @@ export namespace proto { interface IClientFinish { "static"?: (Uint8Array|null); payload?: (Uint8Array|null); + extendedCiphertext?: (Uint8Array|null); } class ClientFinish implements IClientFinish { constructor(p?: proto.HandshakeMessage.IClientFinish); public static?: (Uint8Array|null); public payload?: (Uint8Array|null); + public extendedCiphertext?: (Uint8Array|null); public static create(properties?: proto.HandshakeMessage.IClientFinish): proto.HandshakeMessage.ClientFinish; public static encode(m: proto.HandshakeMessage.IClientFinish, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HandshakeMessage.ClientFinish; @@ -3634,6 +4471,8 @@ export namespace proto { ephemeral?: (Uint8Array|null); "static"?: (Uint8Array|null); payload?: (Uint8Array|null); + useExtended?: (boolean|null); + extendedCiphertext?: (Uint8Array|null); } class ClientHello implements IClientHello { @@ -3641,6 +4480,8 @@ export namespace proto { public ephemeral?: (Uint8Array|null); public static?: (Uint8Array|null); public payload?: (Uint8Array|null); + public useExtended?: (boolean|null); + public extendedCiphertext?: (Uint8Array|null); public static create(properties?: proto.HandshakeMessage.IClientHello): proto.HandshakeMessage.ClientHello; public static encode(m: proto.HandshakeMessage.IClientHello, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HandshakeMessage.ClientHello; @@ -3654,6 +4495,7 @@ export namespace proto { ephemeral?: (Uint8Array|null); "static"?: (Uint8Array|null); payload?: (Uint8Array|null); + extendedStatic?: (Uint8Array|null); } class ServerHello implements IServerHello { @@ -3661,6 +4503,7 @@ export namespace proto { public ephemeral?: (Uint8Array|null); public static?: (Uint8Array|null); public payload?: (Uint8Array|null); + public extendedStatic?: (Uint8Array|null); public static create(properties?: proto.HandshakeMessage.IServerHello): proto.HandshakeMessage.ServerHello; public static encode(m: proto.HandshakeMessage.IServerHello, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HandshakeMessage.ServerHello; @@ -3866,6 +4709,115 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IInThreadSurveyMetadata { + tessaSessionId?: (string|null); + simonSessionId?: (string|null); + simonSurveyId?: (string|null); + tessaRootId?: (string|null); + requestId?: (string|null); + tessaEvent?: (string|null); + invitationHeaderText?: (string|null); + invitationBodyText?: (string|null); + invitationCtaText?: (string|null); + invitationCtaUrl?: (string|null); + surveyTitle?: (string|null); + questions?: (proto.InThreadSurveyMetadata.IInThreadSurveyQuestion[]|null); + surveyContinueButtonText?: (string|null); + surveySubmitButtonText?: (string|null); + privacyStatementFull?: (string|null); + privacyStatementParts?: (proto.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]|null); + feedbackToastText?: (string|null); + } + + class InThreadSurveyMetadata implements IInThreadSurveyMetadata { + constructor(p?: proto.IInThreadSurveyMetadata); + public tessaSessionId?: (string|null); + public simonSessionId?: (string|null); + public simonSurveyId?: (string|null); + public tessaRootId?: (string|null); + public requestId?: (string|null); + public tessaEvent?: (string|null); + public invitationHeaderText?: (string|null); + public invitationBodyText?: (string|null); + public invitationCtaText?: (string|null); + public invitationCtaUrl?: (string|null); + public surveyTitle?: (string|null); + public questions: proto.InThreadSurveyMetadata.IInThreadSurveyQuestion[]; + public surveyContinueButtonText?: (string|null); + public surveySubmitButtonText?: (string|null); + public privacyStatementFull?: (string|null); + public privacyStatementParts: proto.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]; + public feedbackToastText?: (string|null); + public static create(properties?: proto.IInThreadSurveyMetadata): proto.InThreadSurveyMetadata; + public static encode(m: proto.IInThreadSurveyMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.InThreadSurveyMetadata; + public static fromObject(d: { [k: string]: any }): proto.InThreadSurveyMetadata; + public static toObject(m: proto.InThreadSurveyMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InThreadSurveyMetadata { + + interface IInThreadSurveyOption { + stringValue?: (string|null); + numericValue?: (number|null); + textTranslated?: (string|null); + } + + class InThreadSurveyOption implements IInThreadSurveyOption { + constructor(p?: proto.InThreadSurveyMetadata.IInThreadSurveyOption); + public stringValue?: (string|null); + public numericValue?: (number|null); + public textTranslated?: (string|null); + public static create(properties?: proto.InThreadSurveyMetadata.IInThreadSurveyOption): proto.InThreadSurveyMetadata.InThreadSurveyOption; + public static encode(m: proto.InThreadSurveyMetadata.IInThreadSurveyOption, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.InThreadSurveyMetadata.InThreadSurveyOption; + public static fromObject(d: { [k: string]: any }): proto.InThreadSurveyMetadata.InThreadSurveyOption; + public static toObject(m: proto.InThreadSurveyMetadata.InThreadSurveyOption, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IInThreadSurveyPrivacyStatementPart { + text?: (string|null); + url?: (string|null); + } + + class InThreadSurveyPrivacyStatementPart implements IInThreadSurveyPrivacyStatementPart { + constructor(p?: proto.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart); + public text?: (string|null); + public url?: (string|null); + public static create(properties?: proto.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart): proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart; + public static encode(m: proto.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart; + public static fromObject(d: { [k: string]: any }): proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart; + public static toObject(m: proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IInThreadSurveyQuestion { + questionText?: (string|null); + questionId?: (string|null); + questionOptions?: (proto.InThreadSurveyMetadata.IInThreadSurveyOption[]|null); + } + + class InThreadSurveyQuestion implements IInThreadSurveyQuestion { + constructor(p?: proto.InThreadSurveyMetadata.IInThreadSurveyQuestion); + public questionText?: (string|null); + public questionId?: (string|null); + public questionOptions: proto.InThreadSurveyMetadata.IInThreadSurveyOption[]; + public static create(properties?: proto.InThreadSurveyMetadata.IInThreadSurveyQuestion): proto.InThreadSurveyMetadata.InThreadSurveyQuestion; + public static encode(m: proto.InThreadSurveyMetadata.IInThreadSurveyQuestion, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.InThreadSurveyMetadata.InThreadSurveyQuestion; + public static fromObject(d: { [k: string]: any }): proto.InThreadSurveyMetadata.InThreadSurveyQuestion; + public static toObject(m: proto.InThreadSurveyMetadata.InThreadSurveyQuestion, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + interface IInteractiveAnnotation { polygonVertices?: (proto.IPoint[]|null); shouldSkipConfirmation?: (boolean|null); @@ -3906,6 +4858,22 @@ export namespace proto { } } + interface IInteractiveMessageAdditionalMetadata { + isGalaxyFlowCompleted?: (boolean|null); + } + + class InteractiveMessageAdditionalMetadata implements IInteractiveMessageAdditionalMetadata { + constructor(p?: proto.IInteractiveMessageAdditionalMetadata); + public isGalaxyFlowCompleted?: (boolean|null); + public static create(properties?: proto.IInteractiveMessageAdditionalMetadata): proto.InteractiveMessageAdditionalMetadata; + public static encode(m: proto.IInteractiveMessageAdditionalMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.InteractiveMessageAdditionalMetadata; + public static fromObject(d: { [k: string]: any }): proto.InteractiveMessageAdditionalMetadata; + public static toObject(m: proto.InteractiveMessageAdditionalMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IKeepInChat { keepType?: (proto.KeepType|null); serverTimestamp?: (number|Long|null); @@ -4292,7 +5260,6 @@ export namespace proto { associatedChildMessage?: (proto.Message.IFutureProofMessage|null); groupStatusMentionMessage?: (proto.Message.IFutureProofMessage|null); pollCreationMessageV4?: (proto.Message.IFutureProofMessage|null); - pollCreationMessageV5?: (proto.Message.IFutureProofMessage|null); statusAddYours?: (proto.Message.IFutureProofMessage|null); groupStatusMessage?: (proto.Message.IFutureProofMessage|null); richResponseMessage?: (proto.IAIRichResponseMessage|null); @@ -4301,6 +5268,16 @@ export namespace proto { botTaskMessage?: (proto.Message.IFutureProofMessage|null); questionMessage?: (proto.Message.IFutureProofMessage|null); messageHistoryNotice?: (proto.Message.IMessageHistoryNotice|null); + groupStatusMessageV2?: (proto.Message.IFutureProofMessage|null); + botForwardedMessage?: (proto.Message.IFutureProofMessage|null); + statusQuestionAnswerMessage?: (proto.Message.IStatusQuestionAnswerMessage|null); + questionReplyMessage?: (proto.Message.IFutureProofMessage|null); + questionResponseMessage?: (proto.Message.IQuestionResponseMessage|null); + statusQuotedMessage?: (proto.Message.IStatusQuotedMessage|null); + statusStickerInteractionMessage?: (proto.Message.IStatusStickerInteractionMessage|null); + pollCreationMessageV5?: (proto.Message.IPollCreationMessage|null); + newsletterFollowerInviteMessageV2?: (proto.Message.INewsletterFollowerInviteMessage|null); + pollResultSnapshotMessageV3?: (proto.Message.IPollResultSnapshotMessage|null); } class Message implements IMessage { @@ -4382,7 +5359,6 @@ export namespace proto { public associatedChildMessage?: (proto.Message.IFutureProofMessage|null); public groupStatusMentionMessage?: (proto.Message.IFutureProofMessage|null); public pollCreationMessageV4?: (proto.Message.IFutureProofMessage|null); - public pollCreationMessageV5?: (proto.Message.IFutureProofMessage|null); public statusAddYours?: (proto.Message.IFutureProofMessage|null); public groupStatusMessage?: (proto.Message.IFutureProofMessage|null); public richResponseMessage?: (proto.IAIRichResponseMessage|null); @@ -4391,6 +5367,16 @@ export namespace proto { public botTaskMessage?: (proto.Message.IFutureProofMessage|null); public questionMessage?: (proto.Message.IFutureProofMessage|null); public messageHistoryNotice?: (proto.Message.IMessageHistoryNotice|null); + public groupStatusMessageV2?: (proto.Message.IFutureProofMessage|null); + public botForwardedMessage?: (proto.Message.IFutureProofMessage|null); + public statusQuestionAnswerMessage?: (proto.Message.IStatusQuestionAnswerMessage|null); + public questionReplyMessage?: (proto.Message.IFutureProofMessage|null); + public questionResponseMessage?: (proto.Message.IQuestionResponseMessage|null); + public statusQuotedMessage?: (proto.Message.IStatusQuotedMessage|null); + public statusStickerInteractionMessage?: (proto.Message.IStatusStickerInteractionMessage|null); + public pollCreationMessageV5?: (proto.Message.IPollCreationMessage|null); + public newsletterFollowerInviteMessageV2?: (proto.Message.INewsletterFollowerInviteMessage|null); + public pollResultSnapshotMessageV3?: (proto.Message.IPollResultSnapshotMessage|null); public static create(properties?: proto.IMessage): proto.Message; public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message; @@ -4563,6 +5549,7 @@ export namespace proto { backgroundArgb?: (number|null); viewOnce?: (boolean|null); accessibilityLabel?: (string|null); + mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); } class AudioMessage implements IAudioMessage { @@ -4583,6 +5570,7 @@ export namespace proto { public backgroundArgb?: (number|null); public viewOnce?: (boolean|null); public accessibilityLabel?: (string|null); + public mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); public static create(properties?: proto.Message.IAudioMessage): proto.Message.AudioMessage; public static encode(m: proto.Message.IAudioMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.AudioMessage; @@ -4623,71 +5611,6 @@ export namespace proto { } } - interface IBotFeedbackMessage { - messageKey?: (proto.IMessageKey|null); - kind?: (proto.Message.BotFeedbackMessage.BotFeedbackKind|null); - text?: (string|null); - kindNegative?: (number|Long|null); - kindPositive?: (number|Long|null); - kindReport?: (proto.Message.BotFeedbackMessage.ReportKind|null); - } - - class BotFeedbackMessage implements IBotFeedbackMessage { - constructor(p?: proto.Message.IBotFeedbackMessage); - public messageKey?: (proto.IMessageKey|null); - public kind?: (proto.Message.BotFeedbackMessage.BotFeedbackKind|null); - public text?: (string|null); - public kindNegative?: (number|Long|null); - public kindPositive?: (number|Long|null); - public kindReport?: (proto.Message.BotFeedbackMessage.ReportKind|null); - public static create(properties?: proto.Message.IBotFeedbackMessage): proto.Message.BotFeedbackMessage; - public static encode(m: proto.Message.IBotFeedbackMessage, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.BotFeedbackMessage; - public static fromObject(d: { [k: string]: any }): proto.Message.BotFeedbackMessage; - public static toObject(m: proto.Message.BotFeedbackMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace BotFeedbackMessage { - - 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 - } - - 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 { - GENERIC = 0 - } - } - interface IButtonsMessage { contentText?: (string|null); footerText?: (string|null); @@ -4840,6 +5763,8 @@ export namespace proto { ctwaSignals?: (string|null); ctwaPayload?: (Uint8Array|null); contextInfo?: (proto.IContextInfo|null); + nativeFlowCallButtonPayload?: (string|null); + deeplinkPayload?: (string|null); } class Call implements ICall { @@ -4851,6 +5776,8 @@ export namespace proto { public ctwaSignals?: (string|null); public ctwaPayload?: (Uint8Array|null); public contextInfo?: (proto.IContextInfo|null); + public nativeFlowCallButtonPayload?: (string|null); + public deeplinkPayload?: (string|null); public static create(properties?: proto.Message.ICall): proto.Message.Call; public static encode(m: proto.Message.ICall, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.Call; @@ -4962,6 +5889,7 @@ export namespace proto { consumerLid?: (string|null); consumerPhoneNumber?: (string|null); notificationContent?: (proto.Message.CloudAPIThreadControlNotification.ICloudAPIThreadControlNotificationContent|null); + shouldSuppressNotification?: (boolean|null); } class CloudAPIThreadControlNotification implements ICloudAPIThreadControlNotification { @@ -4971,6 +5899,7 @@ export namespace proto { public consumerLid?: (string|null); public consumerPhoneNumber?: (string|null); public notificationContent?: (proto.Message.CloudAPIThreadControlNotification.ICloudAPIThreadControlNotificationContent|null); + public shouldSuppressNotification?: (boolean|null); public static create(properties?: proto.Message.ICloudAPIThreadControlNotification): proto.Message.CloudAPIThreadControlNotification; public static encode(m: proto.Message.ICloudAPIThreadControlNotification, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.CloudAPIThreadControlNotification; @@ -5123,6 +6052,7 @@ export namespace proto { thumbnailWidth?: (number|null); caption?: (string|null); accessibilityLabel?: (string|null); + mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); } class DocumentMessage implements IDocumentMessage { @@ -5148,6 +6078,7 @@ export namespace proto { public thumbnailWidth?: (number|null); public caption?: (string|null); public accessibilityLabel?: (string|null); + public mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); public static create(properties?: proto.Message.IDocumentMessage): proto.Message.DocumentMessage; public static encode(m: proto.Message.IDocumentMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.DocumentMessage; @@ -5228,6 +6159,8 @@ export namespace proto { endTime?: (number|Long|null); extraGuestsAllowed?: (boolean|null); isScheduleCall?: (boolean|null); + hasReminder?: (boolean|null); + reminderOffsetSec?: (number|Long|null); } class EventMessage implements IEventMessage { @@ -5242,6 +6175,8 @@ export namespace proto { public endTime?: (number|Long|null); public extraGuestsAllowed?: (boolean|null); public isScheduleCall?: (boolean|null); + public hasReminder?: (boolean|null); + public reminderOffsetSec?: (number|Long|null); public static create(properties?: proto.Message.IEventMessage): proto.Message.EventMessage; public static encode(m: proto.Message.IEventMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.EventMessage; @@ -5310,6 +6245,10 @@ export namespace proto { faviconMMSMetadata?: (proto.Message.IMMSThumbnailMetadata|null); linkPreviewMetadata?: (proto.Message.ILinkPreviewMetadata|null); paymentLinkMetadata?: (proto.Message.IPaymentLinkMetadata|null); + endCardTiles?: (proto.Message.IVideoEndCard[]|null); + videoContentUrl?: (string|null); + musicMetadata?: (proto.IEmbeddedMusic|null); + paymentExtendedMetadata?: (proto.Message.IPaymentExtendedMetadata|null); } class ExtendedTextMessage implements IExtendedTextMessage { @@ -5342,6 +6281,10 @@ export namespace proto { public faviconMMSMetadata?: (proto.Message.IMMSThumbnailMetadata|null); public linkPreviewMetadata?: (proto.Message.ILinkPreviewMetadata|null); public paymentLinkMetadata?: (proto.Message.IPaymentLinkMetadata|null); + public endCardTiles: proto.Message.IVideoEndCard[]; + public videoContentUrl?: (string|null); + public musicMetadata?: (proto.IEmbeddedMusic|null); + public paymentExtendedMetadata?: (proto.Message.IPaymentExtendedMetadata|null); public static create(properties?: proto.Message.IExtendedTextMessage): proto.Message.ExtendedTextMessage; public static encode(m: proto.Message.IExtendedTextMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ExtendedTextMessage; @@ -5612,13 +6555,29 @@ export namespace proto { } } + interface IHistorySyncMessageAccessStatus { + completeAccessGranted?: (boolean|null); + } + + class HistorySyncMessageAccessStatus implements IHistorySyncMessageAccessStatus { + constructor(p?: proto.Message.IHistorySyncMessageAccessStatus); + public completeAccessGranted?: (boolean|null); + public static create(properties?: proto.Message.IHistorySyncMessageAccessStatus): proto.Message.HistorySyncMessageAccessStatus; + public static encode(m: proto.Message.IHistorySyncMessageAccessStatus, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.HistorySyncMessageAccessStatus; + public static fromObject(d: { [k: string]: any }): proto.Message.HistorySyncMessageAccessStatus; + public static toObject(m: proto.Message.HistorySyncMessageAccessStatus, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IHistorySyncNotification { fileSha256?: (Uint8Array|null); fileLength?: (number|Long|null); mediaKey?: (Uint8Array|null); fileEncSha256?: (Uint8Array|null); directPath?: (string|null); - syncType?: (proto.Message.HistorySyncNotification.HistorySyncType|null); + syncType?: (proto.Message.HistorySyncType|null); chunkOrder?: (number|null); originalMessageId?: (string|null); progress?: (number|null); @@ -5627,6 +6586,7 @@ export namespace proto { peerDataRequestSessionId?: (string|null); fullHistorySyncOnDemandRequestMetadata?: (proto.Message.IFullHistorySyncOnDemandRequestMetadata|null); encHandle?: (string|null); + messageAccessStatus?: (proto.Message.IHistorySyncMessageAccessStatus|null); } class HistorySyncNotification implements IHistorySyncNotification { @@ -5636,7 +6596,7 @@ export namespace proto { public mediaKey?: (Uint8Array|null); public fileEncSha256?: (Uint8Array|null); public directPath?: (string|null); - public syncType?: (proto.Message.HistorySyncNotification.HistorySyncType|null); + public syncType?: (proto.Message.HistorySyncType|null); public chunkOrder?: (number|null); public originalMessageId?: (string|null); public progress?: (number|null); @@ -5645,6 +6605,7 @@ export namespace proto { public peerDataRequestSessionId?: (string|null); public fullHistorySyncOnDemandRequestMetadata?: (proto.Message.IFullHistorySyncOnDemandRequestMetadata|null); public encHandle?: (string|null); + public messageAccessStatus?: (proto.Message.IHistorySyncMessageAccessStatus|null); public static create(properties?: proto.Message.IHistorySyncNotification): proto.Message.HistorySyncNotification; public static encode(m: proto.Message.IHistorySyncNotification, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.HistorySyncNotification; @@ -5654,18 +6615,16 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace HistorySyncNotification { - - 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 - } + 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 } interface IImageMessage { @@ -5698,6 +6657,8 @@ export namespace proto { annotations?: (proto.IInteractiveAnnotation[]|null); imageSourceType?: (proto.Message.ImageMessage.ImageSourceType|null); accessibilityLabel?: (string|null); + mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); + qrUrl?: (string|null); } class ImageMessage implements IImageMessage { @@ -5731,6 +6692,8 @@ export namespace proto { public annotations: proto.IInteractiveAnnotation[]; public imageSourceType?: (proto.Message.ImageMessage.ImageSourceType|null); public accessibilityLabel?: (string|null); + public mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); + public qrUrl?: (string|null); public static create(properties?: proto.Message.IImageMessage): proto.Message.ImageMessage; public static encode(m: proto.Message.IImageMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ImageMessage; @@ -5820,12 +6783,14 @@ export namespace proto { interface ICarouselMessage { cards?: (proto.Message.IInteractiveMessage[]|null); messageVersion?: (number|null); + carouselCardType?: (proto.Message.InteractiveMessage.CarouselMessage.CarouselCardType|null); } class CarouselMessage implements ICarouselMessage { constructor(p?: proto.Message.InteractiveMessage.ICarouselMessage); public cards: proto.Message.IInteractiveMessage[]; public messageVersion?: (number|null); + public carouselCardType?: (proto.Message.InteractiveMessage.CarouselMessage.CarouselCardType|null); public static create(properties?: proto.Message.InteractiveMessage.ICarouselMessage): proto.Message.InteractiveMessage.CarouselMessage; public static encode(m: proto.Message.InteractiveMessage.ICarouselMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.InteractiveMessage.CarouselMessage; @@ -5835,6 +6800,15 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace CarouselMessage { + + enum CarouselCardType { + UNKNOWN = 0, + HSCROLL_CARDS = 1, + ALBUM_IMAGE = 2 + } + } + interface ICollectionMessage { bizJid?: (string|null); id?: (string|null); @@ -5857,11 +6831,16 @@ export namespace proto { interface IFooter { text?: (string|null); + hasMediaAttachment?: (boolean|null); + audioMessage?: (proto.Message.IAudioMessage|null); } class Footer implements IFooter { constructor(p?: proto.Message.InteractiveMessage.IFooter); public text?: (string|null); + public hasMediaAttachment?: (boolean|null); + public audioMessage?: (proto.Message.IAudioMessage|null); + public media?: "audioMessage"; public static create(properties?: proto.Message.InteractiveMessage.IFooter): proto.Message.InteractiveMessage.Footer; public static encode(m: proto.Message.InteractiveMessage.IFooter, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.InteractiveMessage.Footer; @@ -6112,6 +7091,12 @@ export namespace proto { paymentLinkMetadata?: (proto.Message.IPaymentLinkMetadata|null); urlMetadata?: (proto.Message.IURLMetadata|null); fbExperimentId?: (number|null); + linkMediaDuration?: (number|null); + socialMediaPostType?: (proto.Message.LinkPreviewMetadata.SocialMediaPostType|null); + linkInlineVideoMuted?: (boolean|null); + videoContentUrl?: (string|null); + musicMetadata?: (proto.IEmbeddedMusic|null); + videoContentCaption?: (string|null); } class LinkPreviewMetadata implements ILinkPreviewMetadata { @@ -6119,6 +7104,12 @@ export namespace proto { public paymentLinkMetadata?: (proto.Message.IPaymentLinkMetadata|null); public urlMetadata?: (proto.Message.IURLMetadata|null); public fbExperimentId?: (number|null); + public linkMediaDuration?: (number|null); + public socialMediaPostType?: (proto.Message.LinkPreviewMetadata.SocialMediaPostType|null); + public linkInlineVideoMuted?: (boolean|null); + public videoContentUrl?: (string|null); + public musicMetadata?: (proto.IEmbeddedMusic|null); + public videoContentCaption?: (string|null); public static create(properties?: proto.Message.ILinkPreviewMetadata): proto.Message.LinkPreviewMetadata; public static encode(m: proto.Message.ILinkPreviewMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.LinkPreviewMetadata; @@ -6128,6 +7119,18 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace LinkPreviewMetadata { + + enum SocialMediaPostType { + NONE = 0, + REEL = 1, + LIVE_VIDEO = 2, + LONG_VIDEO = 3, + SINGLE_IMAGE = 4, + CAROUSEL = 5 + } + } + interface IListMessage { title?: (string|null); description?: (string|null); @@ -6405,6 +7408,7 @@ export namespace proto { mediaKeyTimestamp?: (number|Long|null); thumbnailHeight?: (number|null); thumbnailWidth?: (number|null); + mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); } class MMSThumbnailMetadata implements IMMSThumbnailMetadata { @@ -6416,6 +7420,7 @@ export namespace proto { public mediaKeyTimestamp?: (number|Long|null); public thumbnailHeight?: (number|null); public thumbnailWidth?: (number|null); + public mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); public static create(properties?: proto.Message.IMMSThumbnailMetadata): proto.Message.MMSThumbnailMetadata; public static encode(m: proto.Message.IMMSThumbnailMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.MMSThumbnailMetadata; @@ -6425,6 +7430,14 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + enum MediaKeyDomain { + UNSET = 0, + E2EE_CHAT = 1, + STATUS = 2, + CAPI = 3, + BOT = 4 + } + interface IMessageHistoryBundle { mimetype?: (string|null); fileSha256?: (Uint8Array|null); @@ -6457,14 +7470,14 @@ export namespace proto { interface IMessageHistoryMetadata { historyReceivers?: (string[]|null); - firstMessageTimestamp?: (number|Long|null); + oldestMessageTimestamp?: (number|Long|null); messageCount?: (number|Long|null); } class MessageHistoryMetadata implements IMessageHistoryMetadata { constructor(p?: proto.Message.IMessageHistoryMetadata); public historyReceivers: string[]; - public firstMessageTimestamp?: (number|Long|null); + public oldestMessageTimestamp?: (number|Long|null); public messageCount?: (number|Long|null); public static create(properties?: proto.Message.IMessageHistoryMetadata): proto.Message.MessageHistoryMetadata; public static encode(m: proto.Message.IMessageHistoryMetadata, w?: $protobuf.Writer): $protobuf.Writer; @@ -6519,6 +7532,30 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface INewsletterFollowerInviteMessage { + newsletterJid?: (string|null); + newsletterName?: (string|null); + jpegThumbnail?: (Uint8Array|null); + caption?: (string|null); + contextInfo?: (proto.IContextInfo|null); + } + + class NewsletterFollowerInviteMessage implements INewsletterFollowerInviteMessage { + constructor(p?: proto.Message.INewsletterFollowerInviteMessage); + public newsletterJid?: (string|null); + public newsletterName?: (string|null); + public jpegThumbnail?: (Uint8Array|null); + public caption?: (string|null); + public contextInfo?: (proto.IContextInfo|null); + public static create(properties?: proto.Message.INewsletterFollowerInviteMessage): proto.Message.NewsletterFollowerInviteMessage; + public static encode(m: proto.Message.INewsletterFollowerInviteMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.NewsletterFollowerInviteMessage; + public static fromObject(d: { [k: string]: any }): proto.Message.NewsletterFollowerInviteMessage; + public static toObject(m: proto.Message.NewsletterFollowerInviteMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IOrderMessage { orderId?: (string|null); thumbnail?: (Uint8Array|null); @@ -6576,6 +7613,26 @@ export namespace proto { } } + interface IPaymentExtendedMetadata { + type?: (number|null); + platform?: (string|null); + messageParamsJson?: (string|null); + } + + class PaymentExtendedMetadata implements IPaymentExtendedMetadata { + constructor(p?: proto.Message.IPaymentExtendedMetadata); + public type?: (number|null); + public platform?: (string|null); + public messageParamsJson?: (string|null); + public static create(properties?: proto.Message.IPaymentExtendedMetadata): proto.Message.PaymentExtendedMetadata; + public static encode(m: proto.Message.IPaymentExtendedMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PaymentExtendedMetadata; + public static fromObject(d: { [k: string]: any }): proto.Message.PaymentExtendedMetadata; + public static toObject(m: proto.Message.PaymentExtendedMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IPaymentInviteMessage { serviceType?: (proto.Message.PaymentInviteMessage.ServiceType|null); expiryTimestamp?: (number|Long|null); @@ -6607,12 +7664,14 @@ export namespace proto { interface IPaymentLinkMetadata { button?: (proto.Message.PaymentLinkMetadata.IPaymentLinkButton|null); header?: (proto.Message.PaymentLinkMetadata.IPaymentLinkHeader|null); + provider?: (proto.Message.PaymentLinkMetadata.IPaymentLinkProvider|null); } class PaymentLinkMetadata implements IPaymentLinkMetadata { constructor(p?: proto.Message.IPaymentLinkMetadata); public button?: (proto.Message.PaymentLinkMetadata.IPaymentLinkButton|null); public header?: (proto.Message.PaymentLinkMetadata.IPaymentLinkHeader|null); + public provider?: (proto.Message.PaymentLinkMetadata.IPaymentLinkProvider|null); public static create(properties?: proto.Message.IPaymentLinkMetadata): proto.Message.PaymentLinkMetadata; public static encode(m: proto.Message.IPaymentLinkMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PaymentLinkMetadata; @@ -6663,6 +7722,22 @@ export namespace proto { ORDER = 1 } } + + interface IPaymentLinkProvider { + paramsJson?: (string|null); + } + + class PaymentLinkProvider implements IPaymentLinkProvider { + constructor(p?: proto.Message.PaymentLinkMetadata.IPaymentLinkProvider); + public paramsJson?: (string|null); + public static create(properties?: proto.Message.PaymentLinkMetadata.IPaymentLinkProvider): proto.Message.PaymentLinkMetadata.PaymentLinkProvider; + public static encode(m: proto.Message.PaymentLinkMetadata.IPaymentLinkProvider, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PaymentLinkMetadata.PaymentLinkProvider; + public static fromObject(d: { [k: string]: any }): proto.Message.PaymentLinkMetadata.PaymentLinkProvider; + public static toObject(m: proto.Message.PaymentLinkMetadata.PaymentLinkProvider, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } } interface IPeerDataOperationRequestMessage { @@ -6673,6 +7748,8 @@ export namespace proto { placeholderMessageResendRequest?: (proto.Message.PeerDataOperationRequestMessage.IPlaceholderMessageResendRequest[]|null); fullHistorySyncOnDemandRequest?: (proto.Message.PeerDataOperationRequestMessage.IFullHistorySyncOnDemandRequest|null); syncdCollectionFatalRecoveryRequest?: (proto.Message.PeerDataOperationRequestMessage.ISyncDCollectionFatalRecoveryRequest|null); + historySyncChunkRetryRequest?: (proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest|null); + galaxyFlowAction?: (proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null); } class PeerDataOperationRequestMessage implements IPeerDataOperationRequestMessage { @@ -6684,6 +7761,8 @@ export namespace proto { public placeholderMessageResendRequest: proto.Message.PeerDataOperationRequestMessage.IPlaceholderMessageResendRequest[]; public fullHistorySyncOnDemandRequest?: (proto.Message.PeerDataOperationRequestMessage.IFullHistorySyncOnDemandRequest|null); public syncdCollectionFatalRecoveryRequest?: (proto.Message.PeerDataOperationRequestMessage.ISyncDCollectionFatalRecoveryRequest|null); + public historySyncChunkRetryRequest?: (proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest|null); + public galaxyFlowAction?: (proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null); public static create(properties?: proto.Message.IPeerDataOperationRequestMessage): proto.Message.PeerDataOperationRequestMessage; public static encode(m: proto.Message.IPeerDataOperationRequestMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestMessage; @@ -6713,6 +7792,55 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IGalaxyFlowAction { + type?: (proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType|null); + flowId?: (string|null); + stanzaId?: (string|null); + } + + class GalaxyFlowAction implements IGalaxyFlowAction { + constructor(p?: proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction); + public type?: (proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType|null); + public flowId?: (string|null); + public stanzaId?: (string|null); + public static create(properties?: proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction): proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction; + public static encode(m: proto.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction; + public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction; + public static toObject(m: proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GalaxyFlowAction { + + enum GalaxyFlowActionType { + NOTIFY_LAUNCH = 1 + } + } + + interface IHistorySyncChunkRetryRequest { + syncType?: (proto.Message.HistorySyncType|null); + chunkOrder?: (number|null); + chunkNotificationId?: (string|null); + regenerateChunk?: (boolean|null); + } + + class HistorySyncChunkRetryRequest implements IHistorySyncChunkRetryRequest { + constructor(p?: proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest); + public syncType?: (proto.Message.HistorySyncType|null); + public chunkOrder?: (number|null); + public chunkNotificationId?: (string|null); + public regenerateChunk?: (boolean|null); + public static create(properties?: proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest): proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest; + public static encode(m: proto.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest; + public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest; + public static toObject(m: proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IHistorySyncOnDemandRequest { chatJid?: (string|null); oldestMsgId?: (string|null); @@ -6839,6 +7967,8 @@ export namespace proto { fullHistorySyncOnDemandRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFullHistorySyncOnDemandRequestResponse|null); companionMetaNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionMetaNonceFetchResponse|null); syncdSnapshotFatalRecoveryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ISyncDSnapshotFatalRecoveryResponse|null); + companionCanonicalUserNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null); + historySyncChunkRetryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse|null); } class PeerDataOperationResult implements IPeerDataOperationResult { @@ -6851,6 +7981,8 @@ export namespace proto { public fullHistorySyncOnDemandRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFullHistorySyncOnDemandRequestResponse|null); public companionMetaNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionMetaNonceFetchResponse|null); public syncdSnapshotFatalRecoveryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ISyncDSnapshotFatalRecoveryResponse|null); + public companionCanonicalUserNonceFetchRequestResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null); + public historySyncChunkRetryResponse?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse|null); public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.IPeerDataOperationResult): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult; public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.IPeerDataOperationResult, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult; @@ -6862,6 +7994,26 @@ export namespace proto { namespace PeerDataOperationResult { + interface ICompanionCanonicalUserNonceFetchResponse { + nonce?: (string|null); + waFbid?: (string|null); + forceRefresh?: (boolean|null); + } + + class CompanionCanonicalUserNonceFetchResponse implements ICompanionCanonicalUserNonceFetchResponse { + constructor(p?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse); + public nonce?: (string|null); + public waFbid?: (string|null); + public forceRefresh?: (boolean|null); + public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse; + public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse; + public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse; + public static toObject(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface ICompanionMetaNonceFetchResponse { nonce?: (string|null); } @@ -6906,6 +8058,39 @@ export namespace proto { ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6 } + interface IHistorySyncChunkRetryResponse { + syncType?: (proto.Message.HistorySyncType|null); + chunkOrder?: (number|null); + requestId?: (string|null); + responseCode?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode|null); + canRecover?: (boolean|null); + } + + class HistorySyncChunkRetryResponse implements IHistorySyncChunkRetryResponse { + constructor(p?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse); + public syncType?: (proto.Message.HistorySyncType|null); + public chunkOrder?: (number|null); + public requestId?: (string|null); + public responseCode?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode|null); + public canRecover?: (boolean|null); + public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse; + public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IHistorySyncChunkRetryResponse, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse; + public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse; + public static toObject(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + enum HistorySyncChunkRetryResponseCode { + GENERATION_ERROR = 1, + CHUNK_CONSUMED = 2, + TIMEOUT = 3, + SESSION_EXHAUSTED = 4, + CHUNK_EXHAUSTED = 5, + DUPLICATED_REQUEST = 6 + } + interface ILinkPreviewResponse { url?: (string|null); title?: (string|null); @@ -6914,6 +8099,7 @@ export namespace proto { matchText?: (string|null); previewType?: (string|null); hqThumbnail?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.ILinkPreviewHighQualityThumbnail|null); + previewMetadata?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.IPaymentLinkPreviewMetadata|null); } class LinkPreviewResponse implements ILinkPreviewResponse { @@ -6925,6 +8111,7 @@ export namespace proto { public matchText?: (string|null); public previewType?: (string|null); public hqThumbnail?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.ILinkPreviewHighQualityThumbnail|null); + public previewMetadata?: (proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.IPaymentLinkPreviewMetadata|null); public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ILinkPreviewResponse): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse; public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ILinkPreviewResponse, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse; @@ -6963,6 +8150,24 @@ export namespace proto { public toJSON(): { [k: string]: any }; public static getTypeUrl(typeUrlPrefix?: string): string; } + + interface IPaymentLinkPreviewMetadata { + isBusinessVerified?: (boolean|null); + providerName?: (string|null); + } + + class PaymentLinkPreviewMetadata implements IPaymentLinkPreviewMetadata { + constructor(p?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.IPaymentLinkPreviewMetadata); + public isBusinessVerified?: (boolean|null); + public providerName?: (string|null); + public static create(properties?: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.IPaymentLinkPreviewMetadata): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata; + public static encode(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.IPaymentLinkPreviewMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata; + public static fromObject(d: { [k: string]: any }): proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata; + public static toObject(m: proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } } interface IPlaceholderMessageResendResponse { @@ -7028,7 +8233,10 @@ export namespace proto { WAFFLE_LINKING_NONCE_FETCH = 5, FULL_HISTORY_SYNC_ON_DEMAND = 6, COMPANION_META_NONCE_FETCH = 7, - COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8 + COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8, + COMPANION_CANONICAL_USER_NONCE_FETCH = 9, + HISTORY_SYNC_CHUNK_RETRY = 10, + GALAXY_FLOW_ACTION = 11 } interface IPinInChatMessage { @@ -7096,7 +8304,7 @@ export namespace proto { selectableOptionsCount?: (number|null); contextInfo?: (proto.IContextInfo|null); pollContentType?: (proto.Message.PollContentType|null); - pollType?: (proto.Message.PollCreationMessage.PollType|null); + pollType?: (proto.Message.PollType|null); correctAnswer?: (proto.Message.PollCreationMessage.IOption|null); } @@ -7108,7 +8316,7 @@ export namespace proto { public selectableOptionsCount?: (number|null); public contextInfo?: (proto.IContextInfo|null); public pollContentType?: (proto.Message.PollContentType|null); - public pollType?: (proto.Message.PollCreationMessage.PollType|null); + public pollType?: (proto.Message.PollType|null); public correctAnswer?: (proto.Message.PollCreationMessage.IOption|null); public static create(properties?: proto.Message.IPollCreationMessage): proto.Message.PollCreationMessage; public static encode(m: proto.Message.IPollCreationMessage, w?: $protobuf.Writer): $protobuf.Writer; @@ -7138,11 +8346,6 @@ export namespace proto { public toJSON(): { [k: string]: any }; public static getTypeUrl(typeUrlPrefix?: string): string; } - - enum PollType { - POLL = 0, - QUIZ = 1 - } } interface IPollEncValue { @@ -7167,6 +8370,7 @@ export namespace proto { name?: (string|null); pollVotes?: (proto.Message.PollResultSnapshotMessage.IPollVote[]|null); contextInfo?: (proto.IContextInfo|null); + pollType?: (proto.Message.PollType|null); } class PollResultSnapshotMessage implements IPollResultSnapshotMessage { @@ -7174,6 +8378,7 @@ export namespace proto { public name?: (string|null); public pollVotes: proto.Message.PollResultSnapshotMessage.IPollVote[]; public contextInfo?: (proto.IContextInfo|null); + public pollType?: (proto.Message.PollType|null); public static create(properties?: proto.Message.IPollResultSnapshotMessage): proto.Message.PollResultSnapshotMessage; public static encode(m: proto.Message.IPollResultSnapshotMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PollResultSnapshotMessage; @@ -7204,6 +8409,11 @@ export namespace proto { } } + enum PollType { + POLL = 0, + QUIZ = 1 + } + interface IPollUpdateMessage { pollCreationMessageKey?: (proto.IMessageKey|null); vote?: (proto.Message.IPollEncValue|null); @@ -7358,7 +8568,7 @@ export namespace proto { timestampMs?: (number|Long|null); peerDataOperationRequestMessage?: (proto.Message.IPeerDataOperationRequestMessage|null); peerDataOperationRequestResponseMessage?: (proto.Message.IPeerDataOperationRequestResponseMessage|null); - botFeedbackMessage?: (proto.Message.IBotFeedbackMessage|null); + botFeedbackMessage?: (proto.IBotFeedbackMessage|null); invokerJid?: (string|null); requestWelcomeMessageMetadata?: (proto.Message.IRequestWelcomeMessageMetadata|null); mediaNotifyMessage?: (proto.IMediaNotifyMessage|null); @@ -7386,7 +8596,7 @@ export namespace proto { public timestampMs?: (number|Long|null); public peerDataOperationRequestMessage?: (proto.Message.IPeerDataOperationRequestMessage|null); public peerDataOperationRequestResponseMessage?: (proto.Message.IPeerDataOperationRequestResponseMessage|null); - public botFeedbackMessage?: (proto.Message.IBotFeedbackMessage|null); + public botFeedbackMessage?: (proto.IBotFeedbackMessage|null); public invokerJid?: (string|null); public requestWelcomeMessageMetadata?: (proto.Message.IRequestWelcomeMessageMetadata|null); public mediaNotifyMessage?: (proto.IMediaNotifyMessage|null); @@ -7437,6 +8647,24 @@ export namespace proto { } } + interface IQuestionResponseMessage { + key?: (proto.IMessageKey|null); + text?: (string|null); + } + + class QuestionResponseMessage implements IQuestionResponseMessage { + constructor(p?: proto.Message.IQuestionResponseMessage); + public key?: (proto.IMessageKey|null); + public text?: (string|null); + public static create(properties?: proto.Message.IQuestionResponseMessage): proto.Message.QuestionResponseMessage; + public static encode(m: proto.Message.IQuestionResponseMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.QuestionResponseMessage; + public static fromObject(d: { [k: string]: any }): proto.Message.QuestionResponseMessage; + public static toObject(m: proto.Message.QuestionResponseMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IReactionMessage { key?: (proto.IMessageKey|null); text?: (string|null); @@ -7617,6 +8845,7 @@ export namespace proto { noteMessage?: (proto.IMessage|null); requestMessageKey?: (proto.IMessageKey|null); background?: (proto.IPaymentBackground|null); + transactionData?: (string|null); } class SendPaymentMessage implements ISendPaymentMessage { @@ -7624,6 +8853,7 @@ export namespace proto { public noteMessage?: (proto.IMessage|null); public requestMessageKey?: (proto.IMessageKey|null); public background?: (proto.IPaymentBackground|null); + public transactionData?: (string|null); public static create(properties?: proto.Message.ISendPaymentMessage): proto.Message.SendPaymentMessage; public static encode(m: proto.Message.ISendPaymentMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.SendPaymentMessage; @@ -7676,7 +8906,83 @@ export namespace proto { enum StatusNotificationType { UNKNOWN = 0, STATUS_ADD_YOURS = 1, - STATUS_RESHARE = 2 + STATUS_RESHARE = 2, + STATUS_QUESTION_ANSWER_RESHARE = 3 + } + } + + interface IStatusQuestionAnswerMessage { + key?: (proto.IMessageKey|null); + text?: (string|null); + } + + class StatusQuestionAnswerMessage implements IStatusQuestionAnswerMessage { + constructor(p?: proto.Message.IStatusQuestionAnswerMessage); + public key?: (proto.IMessageKey|null); + public text?: (string|null); + public static create(properties?: proto.Message.IStatusQuestionAnswerMessage): proto.Message.StatusQuestionAnswerMessage; + public static encode(m: proto.Message.IStatusQuestionAnswerMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.StatusQuestionAnswerMessage; + public static fromObject(d: { [k: string]: any }): proto.Message.StatusQuestionAnswerMessage; + public static toObject(m: proto.Message.StatusQuestionAnswerMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IStatusQuotedMessage { + type?: (proto.Message.StatusQuotedMessage.StatusQuotedMessageType|null); + text?: (string|null); + thumbnail?: (Uint8Array|null); + originalStatusId?: (proto.IMessageKey|null); + } + + class StatusQuotedMessage implements IStatusQuotedMessage { + constructor(p?: proto.Message.IStatusQuotedMessage); + public type?: (proto.Message.StatusQuotedMessage.StatusQuotedMessageType|null); + public text?: (string|null); + public thumbnail?: (Uint8Array|null); + public originalStatusId?: (proto.IMessageKey|null); + public static create(properties?: proto.Message.IStatusQuotedMessage): proto.Message.StatusQuotedMessage; + public static encode(m: proto.Message.IStatusQuotedMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.StatusQuotedMessage; + public static fromObject(d: { [k: string]: any }): proto.Message.StatusQuotedMessage; + public static toObject(m: proto.Message.StatusQuotedMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StatusQuotedMessage { + + enum StatusQuotedMessageType { + QUESTION_ANSWER = 1 + } + } + + interface IStatusStickerInteractionMessage { + key?: (proto.IMessageKey|null); + stickerKey?: (string|null); + type?: (proto.Message.StatusStickerInteractionMessage.StatusStickerType|null); + } + + class StatusStickerInteractionMessage implements IStatusStickerInteractionMessage { + constructor(p?: proto.Message.IStatusStickerInteractionMessage); + public key?: (proto.IMessageKey|null); + public stickerKey?: (string|null); + public type?: (proto.Message.StatusStickerInteractionMessage.StatusStickerType|null); + public static create(properties?: proto.Message.IStatusStickerInteractionMessage): proto.Message.StatusStickerInteractionMessage; + public static encode(m: proto.Message.IStatusStickerInteractionMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.StatusStickerInteractionMessage; + public static fromObject(d: { [k: string]: any }): proto.Message.StatusStickerInteractionMessage; + public static toObject(m: proto.Message.StatusStickerInteractionMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StatusStickerInteractionMessage { + + enum StatusStickerType { + UNKNOWN = 0, + REACTION = 1 } } @@ -7701,6 +9007,7 @@ export namespace proto { isAiSticker?: (boolean|null); isLottie?: (boolean|null); accessibilityLabel?: (string|null); + mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); } class StickerMessage implements IStickerMessage { @@ -7725,6 +9032,7 @@ export namespace proto { public isAiSticker?: (boolean|null); public isLottie?: (boolean|null); public accessibilityLabel?: (string|null); + public mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); public static create(properties?: proto.Message.IStickerMessage): proto.Message.StickerMessage; public static encode(m: proto.Message.IStickerMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.StickerMessage; @@ -7983,6 +9291,28 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IVideoEndCard { + username?: (string|null); + caption?: (string|null); + thumbnailImageUrl?: (string|null); + profilePictureUrl?: (string|null); + } + + class VideoEndCard implements IVideoEndCard { + constructor(p?: proto.Message.IVideoEndCard); + public username: string; + public caption: string; + public thumbnailImageUrl: string; + public profilePictureUrl: string; + public static create(properties?: proto.Message.IVideoEndCard): proto.Message.VideoEndCard; + public static encode(m: proto.Message.IVideoEndCard, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.VideoEndCard; + public static fromObject(d: { [k: string]: any }): proto.Message.VideoEndCard; + public static toObject(m: proto.Message.VideoEndCard, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IVideoMessage { url?: (string|null); mimetype?: (string|null); @@ -8011,6 +9341,10 @@ export namespace proto { accessibilityLabel?: (string|null); processedVideos?: (proto.IProcessedVideo[]|null); externalShareFullVideoDurationInSeconds?: (number|null); + motionPhotoPresentationOffsetMs?: (number|Long|null); + metadataUrl?: (string|null); + videoSourceType?: (proto.Message.VideoMessage.VideoSourceType|null); + mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); } class VideoMessage implements IVideoMessage { @@ -8042,6 +9376,10 @@ export namespace proto { public accessibilityLabel?: (string|null); public processedVideos: proto.IProcessedVideo[]; public externalShareFullVideoDurationInSeconds?: (number|null); + public motionPhotoPresentationOffsetMs?: (number|Long|null); + public metadataUrl?: (string|null); + public videoSourceType?: (proto.Message.VideoMessage.VideoSourceType|null); + public mediaKeyDomain?: (proto.Message.MediaKeyDomain|null); public static create(properties?: proto.Message.IVideoMessage): proto.Message.VideoMessage; public static encode(m: proto.Message.IVideoMessage, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.VideoMessage; @@ -8056,7 +9394,13 @@ export namespace proto { enum Attribution { NONE = 0, GIPHY = 1, - TENOR = 2 + TENOR = 2, + KLIPY = 3 + } + + enum VideoSourceType { + USER_VIDEO = 0, + AI_GENERATED = 1 } } } @@ -8157,7 +9501,12 @@ export namespace proto { STICKER_ANNOTATION = 11, MOTION_PHOTO = 12, STATUS_LINK_ACTION = 13, - VIEW_ALL_REPLIES = 14 + 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 } } @@ -8176,6 +9525,8 @@ export namespace proto { supportPayload?: (string|null); limitSharing?: (proto.ILimitSharing|null); limitSharingV2?: (proto.ILimitSharing|null); + threadId?: (proto.IThreadID[]|null); + weblinkRenderConfig?: (proto.WebLinkRenderConfig|null); } class MessageContextInfo implements IMessageContextInfo { @@ -8194,6 +9545,8 @@ export namespace proto { public supportPayload?: (string|null); public limitSharing?: (proto.ILimitSharing|null); public limitSharingV2?: (proto.ILimitSharing|null); + public threadId: proto.IThreadID[]; + public weblinkRenderConfig?: (proto.WebLinkRenderConfig|null); public static create(properties?: proto.IMessageContextInfo): proto.MessageContextInfo; public static encode(m: proto.IMessageContextInfo, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.MessageContextInfo; @@ -8297,6 +9650,8 @@ export namespace proto { encPollVote?: (proto.IPollEncValue|null); isSentCagPollCreation?: (boolean|null); pollContentType?: (proto.MsgOpaqueData.PollContentType|null); + pollType?: (proto.MsgOpaqueData.PollType|null); + correctOptionIndex?: (number|null); pollVotesSnapshot?: (proto.MsgOpaqueData.IPollVotesSnapshot|null); encReactionTargetMessageKey?: (string|null); encReactionEncPayload?: (Uint8Array|null); @@ -8312,6 +9667,8 @@ export namespace proto { eventStartTime?: (number|Long|null); eventLocation?: (proto.MsgOpaqueData.IEventLocation|null); eventEndTime?: (number|Long|null); + eventIsScheduledCall?: (boolean|null); + eventExtraGuestsAllowed?: (boolean|null); plainProtobufBytes?: (Uint8Array|null); } @@ -8340,6 +9697,8 @@ export namespace proto { public encPollVote?: (proto.IPollEncValue|null); public isSentCagPollCreation?: (boolean|null); public pollContentType?: (proto.MsgOpaqueData.PollContentType|null); + public pollType?: (proto.MsgOpaqueData.PollType|null); + public correctOptionIndex?: (number|null); public pollVotesSnapshot?: (proto.MsgOpaqueData.IPollVotesSnapshot|null); public encReactionTargetMessageKey?: (string|null); public encReactionEncPayload?: (Uint8Array|null); @@ -8355,6 +9714,8 @@ export namespace proto { public eventStartTime?: (number|Long|null); public eventLocation?: (proto.MsgOpaqueData.IEventLocation|null); public eventEndTime?: (number|Long|null); + public eventIsScheduledCall?: (boolean|null); + public eventExtraGuestsAllowed?: (boolean|null); public plainProtobufBytes?: (Uint8Array|null); public static create(properties?: proto.IMsgOpaqueData): proto.MsgOpaqueData; public static encode(m: proto.IMsgOpaqueData, w?: $protobuf.Writer): $protobuf.Writer; @@ -8417,6 +9778,11 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + enum PollType { + POLL = 0, + QUIZ = 1 + } + interface IPollVoteSnapshot { option?: (proto.MsgOpaqueData.IPollOption|null); optionVoteCount?: (number|null); @@ -8470,6 +9836,82 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + 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, + SHARE_OWN_PN = 10001, + BUSINESS_BROADCAST_ACTION = 10002 + } + interface INoiseCertificate { details?: (Uint8Array|null); signature?: (Uint8Array|null); @@ -8676,7 +10118,10 @@ export namespace proto { UWP = 5, DARWIN = 6, IPAD = 7, - WEAROS = 8 + WEAROS = 8, + WASG = 9, + WEARM = 10, + CAPI = 11 } } @@ -9157,6 +10602,24 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IQuarantinedMessage { + originalData?: (Uint8Array|null); + extractedText?: (string|null); + } + + class QuarantinedMessage implements IQuarantinedMessage { + constructor(p?: proto.IQuarantinedMessage); + public originalData?: (Uint8Array|null); + public extractedText?: (string|null); + public static create(properties?: proto.IQuarantinedMessage): proto.QuarantinedMessage; + public static encode(m: proto.IQuarantinedMessage, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.QuarantinedMessage; + public static fromObject(d: { [k: string]: any }): proto.QuarantinedMessage; + public static toObject(m: proto.QuarantinedMessage, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IReaction { key?: (proto.IMessageKey|null); text?: (string|null); @@ -9564,6 +11027,31 @@ export namespace proto { } } + interface ISessionTransparencyMetadata { + disclaimerText?: (string|null); + hcaId?: (string|null); + sessionTransparencyType?: (proto.SessionTransparencyType|null); + } + + class SessionTransparencyMetadata implements ISessionTransparencyMetadata { + constructor(p?: proto.ISessionTransparencyMetadata); + public disclaimerText?: (string|null); + public hcaId?: (string|null); + public sessionTransparencyType?: (proto.SessionTransparencyType|null); + public static create(properties?: proto.ISessionTransparencyMetadata): proto.SessionTransparencyMetadata; + public static encode(m: proto.ISessionTransparencyMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SessionTransparencyMetadata; + public static fromObject(d: { [k: string]: any }): proto.SessionTransparencyMetadata; + public static toObject(m: proto.SessionTransparencyMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + enum SessionTransparencyType { + UNKNOWN_TYPE = 0, + NY_AI_SAFETY_DISCLAIMER = 1 + } + interface ISignalMessage { ratchetKey?: (Uint8Array|null); counter?: (number|null); @@ -9610,6 +11098,234 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IStatusAttribution { + type?: (proto.StatusAttribution.Type|null); + actionUrl?: (string|null); + statusReshare?: (proto.StatusAttribution.IStatusReshare|null); + externalShare?: (proto.StatusAttribution.IExternalShare|null); + music?: (proto.StatusAttribution.IMusic|null); + groupStatus?: (proto.StatusAttribution.IGroupStatus|null); + rlAttribution?: (proto.StatusAttribution.IRLAttribution|null); + aiCreatedAttribution?: (proto.StatusAttribution.IAiCreatedAttribution|null); + } + + class StatusAttribution implements IStatusAttribution { + constructor(p?: proto.IStatusAttribution); + public type?: (proto.StatusAttribution.Type|null); + public actionUrl?: (string|null); + public statusReshare?: (proto.StatusAttribution.IStatusReshare|null); + public externalShare?: (proto.StatusAttribution.IExternalShare|null); + public music?: (proto.StatusAttribution.IMusic|null); + public groupStatus?: (proto.StatusAttribution.IGroupStatus|null); + public rlAttribution?: (proto.StatusAttribution.IRLAttribution|null); + public aiCreatedAttribution?: (proto.StatusAttribution.IAiCreatedAttribution|null); + public attributionData?: ("statusReshare"|"externalShare"|"music"|"groupStatus"|"rlAttribution"|"aiCreatedAttribution"); + public static create(properties?: proto.IStatusAttribution): proto.StatusAttribution; + public static encode(m: proto.IStatusAttribution, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution; + public static toObject(m: proto.StatusAttribution, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StatusAttribution { + + interface IAiCreatedAttribution { + source?: (proto.StatusAttribution.AiCreatedAttribution.Source|null); + } + + class AiCreatedAttribution implements IAiCreatedAttribution { + constructor(p?: proto.StatusAttribution.IAiCreatedAttribution); + public source?: (proto.StatusAttribution.AiCreatedAttribution.Source|null); + public static create(properties?: proto.StatusAttribution.IAiCreatedAttribution): proto.StatusAttribution.AiCreatedAttribution; + public static encode(m: proto.StatusAttribution.IAiCreatedAttribution, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution.AiCreatedAttribution; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution.AiCreatedAttribution; + public static toObject(m: proto.StatusAttribution.AiCreatedAttribution, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AiCreatedAttribution { + + enum Source { + UNKNOWN = 0, + STATUS_MIMICRY = 1 + } + } + + interface IExternalShare { + actionUrl?: (string|null); + source?: (proto.StatusAttribution.ExternalShare.Source|null); + duration?: (number|null); + actionFallbackUrl?: (string|null); + } + + class ExternalShare implements IExternalShare { + constructor(p?: proto.StatusAttribution.IExternalShare); + public actionUrl?: (string|null); + public source?: (proto.StatusAttribution.ExternalShare.Source|null); + public duration?: (number|null); + public actionFallbackUrl?: (string|null); + public static create(properties?: proto.StatusAttribution.IExternalShare): proto.StatusAttribution.ExternalShare; + public static encode(m: proto.StatusAttribution.IExternalShare, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution.ExternalShare; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution.ExternalShare; + public static toObject(m: proto.StatusAttribution.ExternalShare, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExternalShare { + + 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 + } + } + + interface IGroupStatus { + authorJid?: (string|null); + } + + class GroupStatus implements IGroupStatus { + constructor(p?: proto.StatusAttribution.IGroupStatus); + public authorJid?: (string|null); + public static create(properties?: proto.StatusAttribution.IGroupStatus): proto.StatusAttribution.GroupStatus; + public static encode(m: proto.StatusAttribution.IGroupStatus, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution.GroupStatus; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution.GroupStatus; + public static toObject(m: proto.StatusAttribution.GroupStatus, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IMusic { + authorName?: (string|null); + songId?: (string|null); + title?: (string|null); + author?: (string|null); + artistAttribution?: (string|null); + isExplicit?: (boolean|null); + } + + class Music implements IMusic { + constructor(p?: proto.StatusAttribution.IMusic); + public authorName?: (string|null); + public songId?: (string|null); + public title?: (string|null); + public author?: (string|null); + public artistAttribution?: (string|null); + public isExplicit?: (boolean|null); + public static create(properties?: proto.StatusAttribution.IMusic): proto.StatusAttribution.Music; + public static encode(m: proto.StatusAttribution.IMusic, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution.Music; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution.Music; + public static toObject(m: proto.StatusAttribution.Music, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IRLAttribution { + source?: (proto.StatusAttribution.RLAttribution.Source|null); + } + + class RLAttribution implements IRLAttribution { + constructor(p?: proto.StatusAttribution.IRLAttribution); + public source?: (proto.StatusAttribution.RLAttribution.Source|null); + public static create(properties?: proto.StatusAttribution.IRLAttribution): proto.StatusAttribution.RLAttribution; + public static encode(m: proto.StatusAttribution.IRLAttribution, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution.RLAttribution; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution.RLAttribution; + public static toObject(m: proto.StatusAttribution.RLAttribution, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RLAttribution { + + enum Source { + UNKNOWN = 0, + RAY_BAN_META_GLASSES = 1, + OAKLEY_META_GLASSES = 2, + HYPERNOVA_GLASSES = 3 + } + } + + interface IStatusReshare { + source?: (proto.StatusAttribution.StatusReshare.Source|null); + metadata?: (proto.StatusAttribution.StatusReshare.IMetadata|null); + } + + class StatusReshare implements IStatusReshare { + constructor(p?: proto.StatusAttribution.IStatusReshare); + public source?: (proto.StatusAttribution.StatusReshare.Source|null); + public metadata?: (proto.StatusAttribution.StatusReshare.IMetadata|null); + public static create(properties?: proto.StatusAttribution.IStatusReshare): proto.StatusAttribution.StatusReshare; + public static encode(m: proto.StatusAttribution.IStatusReshare, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution.StatusReshare; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution.StatusReshare; + public static toObject(m: proto.StatusAttribution.StatusReshare, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StatusReshare { + + interface IMetadata { + duration?: (number|null); + channelJid?: (string|null); + channelMessageId?: (number|null); + hasMultipleReshares?: (boolean|null); + } + + class Metadata implements IMetadata { + constructor(p?: proto.StatusAttribution.StatusReshare.IMetadata); + public duration?: (number|null); + public channelJid?: (string|null); + public channelMessageId?: (number|null); + public hasMultipleReshares?: (boolean|null); + public static create(properties?: proto.StatusAttribution.StatusReshare.IMetadata): proto.StatusAttribution.StatusReshare.Metadata; + public static encode(m: proto.StatusAttribution.StatusReshare.IMetadata, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StatusAttribution.StatusReshare.Metadata; + public static fromObject(d: { [k: string]: any }): proto.StatusAttribution.StatusReshare.Metadata; + public static toObject(m: proto.StatusAttribution.StatusReshare.Metadata, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + 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 + } + } + interface IStatusMentionMessage { quotedStatus?: (proto.IMessage|null); } @@ -9657,6 +11373,8 @@ export namespace proto { weight?: (number|null); lastStickerSentTs?: (number|Long|null); isLottie?: (boolean|null); + imageHash?: (string|null); + isAvatarSticker?: (boolean|null); } class StickerMetadata implements IStickerMetadata { @@ -9673,6 +11391,8 @@ export namespace proto { public weight?: (number|null); public lastStickerSentTs?: (number|Long|null); public isLottie?: (boolean|null); + public imageHash?: (string|null); + public isAvatarSticker?: (boolean|null); public static create(properties?: proto.IStickerMetadata): proto.StickerMetadata; public static encode(m: proto.IStickerMetadata, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.StickerMetadata; @@ -9710,7 +11430,6 @@ export namespace proto { contactAction?: (proto.SyncActionValue.IContactAction|null); muteAction?: (proto.SyncActionValue.IMuteAction|null); pinAction?: (proto.SyncActionValue.IPinAction|null); - securityNotificationSetting?: (proto.SyncActionValue.ISecurityNotificationSetting|null); pushNameSetting?: (proto.SyncActionValue.IPushNameSetting|null); quickReplyAction?: (proto.SyncActionValue.IQuickReplyAction|null); recentEmojiWeightsAction?: (proto.SyncActionValue.IRecentEmojiWeightsAction|null); @@ -9742,6 +11461,7 @@ export namespace proto { externalWebBetaAction?: (proto.SyncActionValue.IExternalWebBetaAction|null); privacySettingRelayAllCalls?: (proto.SyncActionValue.IPrivacySettingRelayAllCalls|null); callLogAction?: (proto.SyncActionValue.ICallLogAction|null); + ugcBot?: (proto.SyncActionValue.IUGCBot|null); statusPrivacy?: (proto.SyncActionValue.IStatusPrivacyAction|null); botWelcomeRequestAction?: (proto.SyncActionValue.IBotWelcomeRequestAction|null); deleteIndividualCallLog?: (proto.SyncActionValue.IDeleteIndividualCallLogAction|null); @@ -9762,6 +11482,18 @@ export namespace proto { lidContactAction?: (proto.SyncActionValue.ILidContactAction|null); ctwaPerCustomerDataSharingAction?: (proto.SyncActionValue.ICtwaPerCustomerDataSharingAction|null); paymentTosAction?: (proto.SyncActionValue.IPaymentTosAction|null); + privacySettingChannelsPersonalisedRecommendationAction?: (proto.SyncActionValue.IPrivacySettingChannelsPersonalisedRecommendationAction|null); + businessBroadcastAssociationAction?: (proto.SyncActionValue.IBusinessBroadcastAssociationAction|null); + detectedOutcomesStatusAction?: (proto.SyncActionValue.IDetectedOutcomesStatusAction|null); + maibaAiFeaturesControlAction?: (proto.SyncActionValue.IMaibaAIFeaturesControlAction|null); + businessBroadcastListAction?: (proto.SyncActionValue.IBusinessBroadcastListAction|null); + musicUserIdAction?: (proto.SyncActionValue.IMusicUserIdAction|null); + statusPostOptInNotificationPreferencesAction?: (proto.SyncActionValue.IStatusPostOptInNotificationPreferencesAction|null); + avatarUpdatedAction?: (proto.SyncActionValue.IAvatarUpdatedAction|null); + privateProcessingSettingAction?: (proto.SyncActionValue.IPrivateProcessingSettingAction|null); + newsletterSavedInterestsAction?: (proto.SyncActionValue.INewsletterSavedInterestsAction|null); + aiThreadRenameAction?: (proto.SyncActionValue.IAiThreadRenameAction|null); + interactiveMessageAction?: (proto.SyncActionValue.IInteractiveMessageAction|null); } class SyncActionValue implements ISyncActionValue { @@ -9771,7 +11503,6 @@ export namespace proto { public contactAction?: (proto.SyncActionValue.IContactAction|null); public muteAction?: (proto.SyncActionValue.IMuteAction|null); public pinAction?: (proto.SyncActionValue.IPinAction|null); - public securityNotificationSetting?: (proto.SyncActionValue.ISecurityNotificationSetting|null); public pushNameSetting?: (proto.SyncActionValue.IPushNameSetting|null); public quickReplyAction?: (proto.SyncActionValue.IQuickReplyAction|null); public recentEmojiWeightsAction?: (proto.SyncActionValue.IRecentEmojiWeightsAction|null); @@ -9803,6 +11534,7 @@ export namespace proto { public externalWebBetaAction?: (proto.SyncActionValue.IExternalWebBetaAction|null); public privacySettingRelayAllCalls?: (proto.SyncActionValue.IPrivacySettingRelayAllCalls|null); public callLogAction?: (proto.SyncActionValue.ICallLogAction|null); + public ugcBot?: (proto.SyncActionValue.IUGCBot|null); public statusPrivacy?: (proto.SyncActionValue.IStatusPrivacyAction|null); public botWelcomeRequestAction?: (proto.SyncActionValue.IBotWelcomeRequestAction|null); public deleteIndividualCallLog?: (proto.SyncActionValue.IDeleteIndividualCallLogAction|null); @@ -9823,6 +11555,18 @@ export namespace proto { public lidContactAction?: (proto.SyncActionValue.ILidContactAction|null); public ctwaPerCustomerDataSharingAction?: (proto.SyncActionValue.ICtwaPerCustomerDataSharingAction|null); public paymentTosAction?: (proto.SyncActionValue.IPaymentTosAction|null); + public privacySettingChannelsPersonalisedRecommendationAction?: (proto.SyncActionValue.IPrivacySettingChannelsPersonalisedRecommendationAction|null); + public businessBroadcastAssociationAction?: (proto.SyncActionValue.IBusinessBroadcastAssociationAction|null); + public detectedOutcomesStatusAction?: (proto.SyncActionValue.IDetectedOutcomesStatusAction|null); + public maibaAiFeaturesControlAction?: (proto.SyncActionValue.IMaibaAIFeaturesControlAction|null); + public businessBroadcastListAction?: (proto.SyncActionValue.IBusinessBroadcastListAction|null); + public musicUserIdAction?: (proto.SyncActionValue.IMusicUserIdAction|null); + public statusPostOptInNotificationPreferencesAction?: (proto.SyncActionValue.IStatusPostOptInNotificationPreferencesAction|null); + public avatarUpdatedAction?: (proto.SyncActionValue.IAvatarUpdatedAction|null); + public privateProcessingSettingAction?: (proto.SyncActionValue.IPrivateProcessingSettingAction|null); + public newsletterSavedInterestsAction?: (proto.SyncActionValue.INewsletterSavedInterestsAction|null); + public aiThreadRenameAction?: (proto.SyncActionValue.IAiThreadRenameAction|null); + public interactiveMessageAction?: (proto.SyncActionValue.IInteractiveMessageAction|null); public static create(properties?: proto.ISyncActionValue): proto.SyncActionValue; public static encode(m: proto.ISyncActionValue, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue; @@ -9854,6 +11598,22 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IAiThreadRenameAction { + newTitle?: (string|null); + } + + class AiThreadRenameAction implements IAiThreadRenameAction { + constructor(p?: proto.SyncActionValue.IAiThreadRenameAction); + public newTitle?: (string|null); + public static create(properties?: proto.SyncActionValue.IAiThreadRenameAction): proto.SyncActionValue.AiThreadRenameAction; + public static encode(m: proto.SyncActionValue.IAiThreadRenameAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.AiThreadRenameAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.AiThreadRenameAction; + public static toObject(m: proto.SyncActionValue.AiThreadRenameAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IAndroidUnsupportedActions { allowed?: (boolean|null); } @@ -9888,6 +11648,33 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IAvatarUpdatedAction { + eventType?: (proto.SyncActionValue.AvatarUpdatedAction.AvatarEventType|null); + recentAvatarStickers?: (proto.SyncActionValue.IStickerAction[]|null); + } + + class AvatarUpdatedAction implements IAvatarUpdatedAction { + constructor(p?: proto.SyncActionValue.IAvatarUpdatedAction); + public eventType?: (proto.SyncActionValue.AvatarUpdatedAction.AvatarEventType|null); + public recentAvatarStickers: proto.SyncActionValue.IStickerAction[]; + public static create(properties?: proto.SyncActionValue.IAvatarUpdatedAction): proto.SyncActionValue.AvatarUpdatedAction; + public static encode(m: proto.SyncActionValue.IAvatarUpdatedAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.AvatarUpdatedAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.AvatarUpdatedAction; + public static toObject(m: proto.SyncActionValue.AvatarUpdatedAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AvatarUpdatedAction { + + enum AvatarEventType { + UPDATED = 0, + CREATED = 1, + DELETED = 2 + } + } + interface IBotWelcomeRequestAction { isSent?: (boolean|null); } @@ -9904,6 +11691,60 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IBroadcastListParticipant { + lidJid?: (string|null); + pnJid?: (string|null); + } + + class BroadcastListParticipant implements IBroadcastListParticipant { + constructor(p?: proto.SyncActionValue.IBroadcastListParticipant); + public lidJid: string; + public pnJid?: (string|null); + public static create(properties?: proto.SyncActionValue.IBroadcastListParticipant): proto.SyncActionValue.BroadcastListParticipant; + public static encode(m: proto.SyncActionValue.IBroadcastListParticipant, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.BroadcastListParticipant; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.BroadcastListParticipant; + public static toObject(m: proto.SyncActionValue.BroadcastListParticipant, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IBusinessBroadcastAssociationAction { + deleted?: (boolean|null); + } + + class BusinessBroadcastAssociationAction implements IBusinessBroadcastAssociationAction { + constructor(p?: proto.SyncActionValue.IBusinessBroadcastAssociationAction); + public deleted?: (boolean|null); + public static create(properties?: proto.SyncActionValue.IBusinessBroadcastAssociationAction): proto.SyncActionValue.BusinessBroadcastAssociationAction; + public static encode(m: proto.SyncActionValue.IBusinessBroadcastAssociationAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.BusinessBroadcastAssociationAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.BusinessBroadcastAssociationAction; + public static toObject(m: proto.SyncActionValue.BusinessBroadcastAssociationAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + interface IBusinessBroadcastListAction { + deleted?: (boolean|null); + participants?: (proto.SyncActionValue.IBroadcastListParticipant[]|null); + listName?: (string|null); + } + + class BusinessBroadcastListAction implements IBusinessBroadcastListAction { + constructor(p?: proto.SyncActionValue.IBusinessBroadcastListAction); + public deleted?: (boolean|null); + public participants: proto.SyncActionValue.IBroadcastListParticipant[]; + public listName?: (string|null); + public static create(properties?: proto.SyncActionValue.IBusinessBroadcastListAction): proto.SyncActionValue.BusinessBroadcastListAction; + public static encode(m: proto.SyncActionValue.IBusinessBroadcastListAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.BusinessBroadcastListAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.BusinessBroadcastListAction; + public static toObject(m: proto.SyncActionValue.BusinessBroadcastListAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface ICallLogAction { callLogRecord?: (proto.ICallLogRecord|null); } @@ -10118,6 +11959,22 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IDetectedOutcomesStatusAction { + isEnabled?: (boolean|null); + } + + class DetectedOutcomesStatusAction implements IDetectedOutcomesStatusAction { + constructor(p?: proto.SyncActionValue.IDetectedOutcomesStatusAction); + public isEnabled?: (boolean|null); + public static create(properties?: proto.SyncActionValue.IDetectedOutcomesStatusAction): proto.SyncActionValue.DetectedOutcomesStatusAction; + public static encode(m: proto.SyncActionValue.IDetectedOutcomesStatusAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.DetectedOutcomesStatusAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.DetectedOutcomesStatusAction; + public static toObject(m: proto.SyncActionValue.DetectedOutcomesStatusAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IExternalWebBetaAction { isOptIn?: (boolean|null); } @@ -10169,6 +12026,29 @@ export namespace proto { } } + interface IInteractiveMessageAction { + type?: (proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode|null); + } + + class InteractiveMessageAction implements IInteractiveMessageAction { + constructor(p?: proto.SyncActionValue.IInteractiveMessageAction); + public type: proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode; + public static create(properties?: proto.SyncActionValue.IInteractiveMessageAction): proto.SyncActionValue.InteractiveMessageAction; + public static encode(m: proto.SyncActionValue.IInteractiveMessageAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.InteractiveMessageAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.InteractiveMessageAction; + public static toObject(m: proto.SyncActionValue.InteractiveMessageAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InteractiveMessageAction { + + enum InteractiveMessageActionMode { + DISABLE_CTA = 1 + } + } + interface IKeyExpiration { expiredKeyEpoch?: (number|null); } @@ -10210,6 +12090,7 @@ export namespace proto { isActive?: (boolean|null); type?: (proto.SyncActionValue.LabelEditAction.ListType|null); isImmutable?: (boolean|null); + muteEndTimeMs?: (number|Long|null); } class LabelEditAction implements ILabelEditAction { @@ -10222,6 +12103,7 @@ export namespace proto { public isActive?: (boolean|null); public type?: (proto.SyncActionValue.LabelEditAction.ListType|null); public isImmutable?: (boolean|null); + public muteEndTimeMs?: (number|Long|null); public static create(properties?: proto.SyncActionValue.ILabelEditAction): proto.SyncActionValue.LabelEditAction; public static encode(m: proto.SyncActionValue.ILabelEditAction, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.LabelEditAction; @@ -10241,7 +12123,9 @@ export namespace proto { PREDEFINED = 4, CUSTOM = 5, COMMUNITY = 6, - SERVER_ASSIGNED = 7 + SERVER_ASSIGNED = 7, + DRAFTED = 8, + AI_HANDOFF = 9 } } @@ -10265,7 +12149,6 @@ export namespace proto { fullName?: (string|null); firstName?: (string|null); username?: (string|null); - saveOnPrimaryAddressbook?: (boolean|null); } class LidContactAction implements ILidContactAction { @@ -10273,7 +12156,6 @@ export namespace proto { public fullName?: (string|null); public firstName?: (string|null); public username?: (string|null); - public saveOnPrimaryAddressbook?: (boolean|null); public static create(properties?: proto.SyncActionValue.ILidContactAction): proto.SyncActionValue.LidContactAction; public static encode(m: proto.SyncActionValue.ILidContactAction, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.LidContactAction; @@ -10315,6 +12197,31 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IMaibaAIFeaturesControlAction { + aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null); + } + + class MaibaAIFeaturesControlAction implements IMaibaAIFeaturesControlAction { + constructor(p?: proto.SyncActionValue.IMaibaAIFeaturesControlAction); + public aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null); + public static create(properties?: proto.SyncActionValue.IMaibaAIFeaturesControlAction): proto.SyncActionValue.MaibaAIFeaturesControlAction; + public static encode(m: proto.SyncActionValue.IMaibaAIFeaturesControlAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.MaibaAIFeaturesControlAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.MaibaAIFeaturesControlAction; + public static toObject(m: proto.SyncActionValue.MaibaAIFeaturesControlAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MaibaAIFeaturesControlAction { + + enum MaibaAIFeatureStatus { + ENABLED = 0, + ENABLED_HAS_LEARNING = 1, + DISABLED = 2 + } + } + interface IMarkChatAsReadAction { read?: (boolean|null); messageRange?: (proto.SyncActionValue.ISyncActionMessageRange|null); @@ -10414,6 +12321,24 @@ export namespace proto { } } + interface IMusicUserIdAction { + musicUserId?: (string|null); + musicUserIdMap?: ({ [k: string]: string }|null); + } + + class MusicUserIdAction implements IMusicUserIdAction { + constructor(p?: proto.SyncActionValue.IMusicUserIdAction); + public musicUserId?: (string|null); + public musicUserIdMap: { [k: string]: string }; + public static create(properties?: proto.SyncActionValue.IMusicUserIdAction): proto.SyncActionValue.MusicUserIdAction; + public static encode(m: proto.SyncActionValue.IMusicUserIdAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.MusicUserIdAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.MusicUserIdAction; + public static toObject(m: proto.SyncActionValue.MusicUserIdAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IMuteAction { muted?: (boolean|null); muteEndTimestamp?: (number|Long|null); @@ -10434,6 +12359,22 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface INewsletterSavedInterestsAction { + newsletterSavedInterests?: (string|null); + } + + class NewsletterSavedInterestsAction implements INewsletterSavedInterestsAction { + constructor(p?: proto.SyncActionValue.INewsletterSavedInterestsAction); + public newsletterSavedInterests?: (string|null); + public static create(properties?: proto.SyncActionValue.INewsletterSavedInterestsAction): proto.SyncActionValue.NewsletterSavedInterestsAction; + public static encode(m: proto.SyncActionValue.INewsletterSavedInterestsAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.NewsletterSavedInterestsAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.NewsletterSavedInterestsAction; + public static toObject(m: proto.SyncActionValue.NewsletterSavedInterestsAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface INoteEditAction { type?: (proto.SyncActionValue.NoteEditAction.NoteType|null); chatJid?: (string|null); @@ -10613,6 +12554,22 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IPrivacySettingChannelsPersonalisedRecommendationAction { + isUserOptedOut?: (boolean|null); + } + + class PrivacySettingChannelsPersonalisedRecommendationAction implements IPrivacySettingChannelsPersonalisedRecommendationAction { + constructor(p?: proto.SyncActionValue.IPrivacySettingChannelsPersonalisedRecommendationAction); + public isUserOptedOut?: (boolean|null); + public static create(properties?: proto.SyncActionValue.IPrivacySettingChannelsPersonalisedRecommendationAction): proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction; + public static encode(m: proto.SyncActionValue.IPrivacySettingChannelsPersonalisedRecommendationAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction; + public static toObject(m: proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IPrivacySettingDisableLinkPreviewsAction { isPreviewsDisabled?: (boolean|null); } @@ -10645,6 +12602,31 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IPrivateProcessingSettingAction { + privateProcessingStatus?: (proto.SyncActionValue.PrivateProcessingSettingAction.PrivateProcessingStatus|null); + } + + class PrivateProcessingSettingAction implements IPrivateProcessingSettingAction { + constructor(p?: proto.SyncActionValue.IPrivateProcessingSettingAction); + public privateProcessingStatus?: (proto.SyncActionValue.PrivateProcessingSettingAction.PrivateProcessingStatus|null); + public static create(properties?: proto.SyncActionValue.IPrivateProcessingSettingAction): proto.SyncActionValue.PrivateProcessingSettingAction; + public static encode(m: proto.SyncActionValue.IPrivateProcessingSettingAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.PrivateProcessingSettingAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.PrivateProcessingSettingAction; + public static toObject(m: proto.SyncActionValue.PrivateProcessingSettingAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PrivateProcessingSettingAction { + + enum PrivateProcessingStatus { + UNDEFINED = 0, + ENABLED = 1, + DISABLED = 2 + } + } + interface IPushNameSetting { name?: (string|null); } @@ -10717,22 +12699,6 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } - interface ISecurityNotificationSetting { - showNotification?: (boolean|null); - } - - class SecurityNotificationSetting implements ISecurityNotificationSetting { - constructor(p?: proto.SyncActionValue.ISecurityNotificationSetting); - public showNotification?: (boolean|null); - public static create(properties?: proto.SyncActionValue.ISecurityNotificationSetting): proto.SyncActionValue.SecurityNotificationSetting; - public static encode(m: proto.SyncActionValue.ISecurityNotificationSetting, w?: $protobuf.Writer): $protobuf.Writer; - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.SecurityNotificationSetting; - public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.SecurityNotificationSetting; - public static toObject(m: proto.SyncActionValue.SecurityNotificationSetting, o?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; - public static getTypeUrl(typeUrlPrefix?: string): string; - } - interface IStarAction { starred?: (boolean|null); } @@ -10749,6 +12715,22 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IStatusPostOptInNotificationPreferencesAction { + enabled?: (boolean|null); + } + + class StatusPostOptInNotificationPreferencesAction implements IStatusPostOptInNotificationPreferencesAction { + constructor(p?: proto.SyncActionValue.IStatusPostOptInNotificationPreferencesAction); + public enabled?: (boolean|null); + public static create(properties?: proto.SyncActionValue.IStatusPostOptInNotificationPreferencesAction): proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction; + public static encode(m: proto.SyncActionValue.IStatusPostOptInNotificationPreferencesAction, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction; + public static toObject(m: proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IStatusPrivacyAction { mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null); userJid?: (string[]|null); @@ -10772,7 +12754,8 @@ export namespace proto { enum StatusDistributionMode { ALLOW_LIST = 0, DENY_LIST = 1, - CONTACTS = 2 + CONTACTS = 2, + CLOSE_FRIENDS = 3 } } @@ -10788,6 +12771,8 @@ export namespace proto { isFavorite?: (boolean|null); deviceIdHint?: (number|null); isLottie?: (boolean|null); + imageHash?: (string|null); + isAvatarSticker?: (boolean|null); } class StickerAction implements IStickerAction { @@ -10803,6 +12788,8 @@ export namespace proto { public isFavorite?: (boolean|null); public deviceIdHint?: (number|null); public isLottie?: (boolean|null); + public imageHash?: (string|null); + public isAvatarSticker?: (boolean|null); public static create(properties?: proto.SyncActionValue.IStickerAction): proto.SyncActionValue.StickerAction; public static encode(m: proto.SyncActionValue.IStickerAction, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.StickerAction; @@ -10886,6 +12873,22 @@ export namespace proto { public static getTypeUrl(typeUrlPrefix?: string): string; } + interface IUGCBot { + definition?: (Uint8Array|null); + } + + class UGCBot implements IUGCBot { + constructor(p?: proto.SyncActionValue.IUGCBot); + public definition?: (Uint8Array|null); + public static create(properties?: proto.SyncActionValue.IUGCBot): proto.SyncActionValue.UGCBot; + public static encode(m: proto.SyncActionValue.IUGCBot, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.UGCBot; + public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.UGCBot; + public static toObject(m: proto.SyncActionValue.UGCBot, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + interface IUnarchiveChatsSetting { unarchiveChats?: (boolean|null); } @@ -10961,7 +12964,9 @@ export namespace proto { namespace WaffleAccountLinkStateAction { enum AccountLinkState { - ACTIVE = 0 + ACTIVE = 0, + PAUSED = 1, + UNLINKED = 2 } } @@ -11244,6 +13249,33 @@ export namespace proto { } } + interface IThreadID { + threadType?: (proto.ThreadID.ThreadType|null); + threadKey?: (proto.IMessageKey|null); + } + + class ThreadID implements IThreadID { + constructor(p?: proto.IThreadID); + public threadType?: (proto.ThreadID.ThreadType|null); + public threadKey?: (proto.IMessageKey|null); + public static create(properties?: proto.IThreadID): proto.ThreadID; + public static encode(m: proto.IThreadID, w?: $protobuf.Writer): $protobuf.Writer; + public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ThreadID; + public static fromObject(d: { [k: string]: any }): proto.ThreadID; + public static toObject(m: proto.ThreadID, o?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ThreadID { + + enum ThreadType { + UNKNOWN = 0, + VIEW_REPLIES = 1, + AI_THREAD = 2 + } + } + interface IUrlTrackingMap { urlTrackingMapElements?: (proto.UrlTrackingMap.IUrlTrackingMapElement[]|null); } @@ -11566,6 +13598,11 @@ export namespace proto { } } + enum WebLinkRenderConfig { + WEBVIEW = 0, + SYSTEM = 1 + } + interface IWebMessageInfo { key?: (proto.IMessageKey|null); message?: (proto.IMessage|null); @@ -11629,6 +13666,10 @@ export namespace proto { statusMentionSources?: (string[]|null); supportAiCitations?: (proto.ICitation[]|null); botTargetId?: (string|null); + groupHistoryIndividualMessageInfo?: (proto.IGroupHistoryIndividualMessageInfo|null); + groupHistoryBundleInfo?: (proto.IGroupHistoryBundleInfo|null); + interactiveMessageAdditionalMetadata?: (proto.IInteractiveMessageAdditionalMetadata|null); + quarantinedMessage?: (proto.IQuarantinedMessage|null); } class WebMessageInfo implements IWebMessageInfo { @@ -11695,6 +13736,10 @@ export namespace proto { public statusMentionSources: string[]; public supportAiCitations: proto.ICitation[]; public botTargetId?: (string|null); + public groupHistoryIndividualMessageInfo?: (proto.IGroupHistoryIndividualMessageInfo|null); + public groupHistoryBundleInfo?: (proto.IGroupHistoryBundleInfo|null); + public interactiveMessageAdditionalMetadata?: (proto.IInteractiveMessageAdditionalMetadata|null); + public quarantinedMessage?: (proto.IQuarantinedMessage|null); public static create(properties?: proto.IWebMessageInfo): proto.WebMessageInfo; public static encode(m: proto.IWebMessageInfo, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.WebMessageInfo; @@ -11941,7 +13986,10 @@ export namespace proto { 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 + BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218, + PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219, + QUARANTINED_MESSAGE = 220, + GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE = 221 } } diff --git a/WAProto/index.js b/WAProto/index.js index 913a0a8a..75dae613 100644 --- a/WAProto/index.js +++ b/WAProto/index.js @@ -885,6 +885,408 @@ export const proto = $root.proto = (() => { return ADVSignedKeyIndexList; })(); + proto.AIHomeState = (function() { + + function AIHomeState(p) { + this.capabilityOptions = []; + this.conversationOptions = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIHomeState.prototype.lastFetchTime = null; + AIHomeState.prototype.capabilityOptions = $util.emptyArray; + AIHomeState.prototype.conversationOptions = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeState.prototype, "_lastFetchTime", { + get: $util.oneOfGetter($oneOfFields = ["lastFetchTime"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIHomeState.create = function create(properties) { + return new AIHomeState(properties); + }; + + AIHomeState.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.lastFetchTime != null && Object.hasOwnProperty.call(m, "lastFetchTime")) + w.uint32(8).int64(m.lastFetchTime); + if (m.capabilityOptions != null && m.capabilityOptions.length) { + for (var i = 0; i < m.capabilityOptions.length; ++i) + $root.proto.AIHomeState.AIHomeOption.encode(m.capabilityOptions[i], w.uint32(18).fork()).ldelim(); + } + if (m.conversationOptions != null && m.conversationOptions.length) { + for (var i = 0; i < m.conversationOptions.length; ++i) + $root.proto.AIHomeState.AIHomeOption.encode(m.conversationOptions[i], w.uint32(26).fork()).ldelim(); + } + return w; + }; + + AIHomeState.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIHomeState(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.lastFetchTime = r.int64(); + break; + } + case 2: { + if (!(m.capabilityOptions && m.capabilityOptions.length)) + m.capabilityOptions = []; + m.capabilityOptions.push($root.proto.AIHomeState.AIHomeOption.decode(r, r.uint32())); + break; + } + case 3: { + if (!(m.conversationOptions && m.conversationOptions.length)) + m.conversationOptions = []; + m.conversationOptions.push($root.proto.AIHomeState.AIHomeOption.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIHomeState.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIHomeState) + return d; + var m = new $root.proto.AIHomeState(); + if (d.lastFetchTime != null) { + if ($util.Long) + (m.lastFetchTime = $util.Long.fromValue(d.lastFetchTime)).unsigned = false; + else if (typeof d.lastFetchTime === "string") + m.lastFetchTime = parseInt(d.lastFetchTime, 10); + else if (typeof d.lastFetchTime === "number") + m.lastFetchTime = d.lastFetchTime; + else if (typeof d.lastFetchTime === "object") + m.lastFetchTime = new $util.LongBits(d.lastFetchTime.low >>> 0, d.lastFetchTime.high >>> 0).toNumber(); + } + if (d.capabilityOptions) { + if (!Array.isArray(d.capabilityOptions)) + throw TypeError(".proto.AIHomeState.capabilityOptions: array expected"); + m.capabilityOptions = []; + for (var i = 0; i < d.capabilityOptions.length; ++i) { + if (typeof d.capabilityOptions[i] !== "object") + throw TypeError(".proto.AIHomeState.capabilityOptions: object expected"); + m.capabilityOptions[i] = $root.proto.AIHomeState.AIHomeOption.fromObject(d.capabilityOptions[i]); + } + } + if (d.conversationOptions) { + if (!Array.isArray(d.conversationOptions)) + throw TypeError(".proto.AIHomeState.conversationOptions: array expected"); + m.conversationOptions = []; + for (var i = 0; i < d.conversationOptions.length; ++i) { + if (typeof d.conversationOptions[i] !== "object") + throw TypeError(".proto.AIHomeState.conversationOptions: object expected"); + m.conversationOptions[i] = $root.proto.AIHomeState.AIHomeOption.fromObject(d.conversationOptions[i]); + } + } + return m; + }; + + AIHomeState.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.capabilityOptions = []; + d.conversationOptions = []; + } + if (m.lastFetchTime != null && m.hasOwnProperty("lastFetchTime")) { + if (typeof m.lastFetchTime === "number") + d.lastFetchTime = o.longs === String ? String(m.lastFetchTime) : m.lastFetchTime; + else + d.lastFetchTime = o.longs === String ? $util.Long.prototype.toString.call(m.lastFetchTime) : o.longs === Number ? new $util.LongBits(m.lastFetchTime.low >>> 0, m.lastFetchTime.high >>> 0).toNumber() : m.lastFetchTime; + if (o.oneofs) + d._lastFetchTime = "lastFetchTime"; + } + if (m.capabilityOptions && m.capabilityOptions.length) { + d.capabilityOptions = []; + for (var j = 0; j < m.capabilityOptions.length; ++j) { + d.capabilityOptions[j] = $root.proto.AIHomeState.AIHomeOption.toObject(m.capabilityOptions[j], o); + } + } + if (m.conversationOptions && m.conversationOptions.length) { + d.conversationOptions = []; + for (var j = 0; j < m.conversationOptions.length; ++j) { + d.conversationOptions[j] = $root.proto.AIHomeState.AIHomeOption.toObject(m.conversationOptions[j], o); + } + } + return d; + }; + + AIHomeState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIHomeState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIHomeState"; + }; + + AIHomeState.AIHomeOption = (function() { + + function AIHomeOption(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIHomeOption.prototype.type = null; + AIHomeOption.prototype.title = null; + AIHomeOption.prototype.promptText = null; + AIHomeOption.prototype.sessionId = null; + AIHomeOption.prototype.imageWdsIdentifier = null; + AIHomeOption.prototype.imageTintColor = null; + AIHomeOption.prototype.imageBackgroundColor = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeOption.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeOption.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeOption.prototype, "_promptText", { + get: $util.oneOfGetter($oneOfFields = ["promptText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeOption.prototype, "_sessionId", { + get: $util.oneOfGetter($oneOfFields = ["sessionId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeOption.prototype, "_imageWdsIdentifier", { + get: $util.oneOfGetter($oneOfFields = ["imageWdsIdentifier"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeOption.prototype, "_imageTintColor", { + get: $util.oneOfGetter($oneOfFields = ["imageTintColor"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIHomeOption.prototype, "_imageBackgroundColor", { + get: $util.oneOfGetter($oneOfFields = ["imageBackgroundColor"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIHomeOption.create = function create(properties) { + return new AIHomeOption(properties); + }; + + AIHomeOption.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).int32(m.type); + if (m.title != null && Object.hasOwnProperty.call(m, "title")) + w.uint32(18).string(m.title); + if (m.promptText != null && Object.hasOwnProperty.call(m, "promptText")) + w.uint32(26).string(m.promptText); + if (m.sessionId != null && Object.hasOwnProperty.call(m, "sessionId")) + w.uint32(34).string(m.sessionId); + if (m.imageWdsIdentifier != null && Object.hasOwnProperty.call(m, "imageWdsIdentifier")) + w.uint32(42).string(m.imageWdsIdentifier); + if (m.imageTintColor != null && Object.hasOwnProperty.call(m, "imageTintColor")) + w.uint32(50).string(m.imageTintColor); + if (m.imageBackgroundColor != null && Object.hasOwnProperty.call(m, "imageBackgroundColor")) + w.uint32(58).string(m.imageBackgroundColor); + return w; + }; + + AIHomeOption.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIHomeState.AIHomeOption(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.int32(); + break; + } + case 2: { + m.title = r.string(); + break; + } + case 3: { + m.promptText = r.string(); + break; + } + case 4: { + m.sessionId = r.string(); + break; + } + case 5: { + m.imageWdsIdentifier = r.string(); + break; + } + case 6: { + m.imageTintColor = r.string(); + break; + } + case 7: { + m.imageBackgroundColor = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIHomeOption.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIHomeState.AIHomeOption) + return d; + var m = new $root.proto.AIHomeState.AIHomeOption(); + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "PROMPT": + case 0: + m.type = 0; + break; + case "CREATE_IMAGE": + case 1: + m.type = 1; + break; + case "ANIMATE_PHOTO": + case 2: + m.type = 2; + break; + case "ANALYZE_FILE": + case 3: + m.type = 3; + break; + } + if (d.title != null) { + m.title = String(d.title); + } + if (d.promptText != null) { + m.promptText = String(d.promptText); + } + if (d.sessionId != null) { + m.sessionId = String(d.sessionId); + } + if (d.imageWdsIdentifier != null) { + m.imageWdsIdentifier = String(d.imageWdsIdentifier); + } + if (d.imageTintColor != null) { + m.imageTintColor = String(d.imageTintColor); + } + if (d.imageBackgroundColor != null) { + m.imageBackgroundColor = String(d.imageBackgroundColor); + } + return m; + }; + + AIHomeOption.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.AIHomeState.AIHomeOption.AIHomeActionType[m.type] === undefined ? m.type : $root.proto.AIHomeState.AIHomeOption.AIHomeActionType[m.type] : m.type; + if (o.oneofs) + d._type = "type"; + } + if (m.title != null && m.hasOwnProperty("title")) { + d.title = m.title; + if (o.oneofs) + d._title = "title"; + } + if (m.promptText != null && m.hasOwnProperty("promptText")) { + d.promptText = m.promptText; + if (o.oneofs) + d._promptText = "promptText"; + } + if (m.sessionId != null && m.hasOwnProperty("sessionId")) { + d.sessionId = m.sessionId; + if (o.oneofs) + d._sessionId = "sessionId"; + } + if (m.imageWdsIdentifier != null && m.hasOwnProperty("imageWdsIdentifier")) { + d.imageWdsIdentifier = m.imageWdsIdentifier; + if (o.oneofs) + d._imageWdsIdentifier = "imageWdsIdentifier"; + } + if (m.imageTintColor != null && m.hasOwnProperty("imageTintColor")) { + d.imageTintColor = m.imageTintColor; + if (o.oneofs) + d._imageTintColor = "imageTintColor"; + } + if (m.imageBackgroundColor != null && m.hasOwnProperty("imageBackgroundColor")) { + d.imageBackgroundColor = m.imageBackgroundColor; + if (o.oneofs) + d._imageBackgroundColor = "imageBackgroundColor"; + } + return d; + }; + + AIHomeOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIHomeOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIHomeState.AIHomeOption"; + }; + + AIHomeOption.AIHomeActionType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROMPT"] = 0; + values[valuesById[1] = "CREATE_IMAGE"] = 1; + values[valuesById[2] = "ANIMATE_PHOTO"] = 2; + values[valuesById[3] = "ANALYZE_FILE"] = 3; + return values; + })(); + + return AIHomeOption; + })(); + + return AIHomeState; + })(); + proto.AIQueryFanout = (function() { function AIQueryFanout(p) { @@ -1029,6 +1431,2139 @@ export const proto = $root.proto = (() => { return AIQueryFanout; })(); + proto.AIRegenerateMetadata = (function() { + + function AIRegenerateMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRegenerateMetadata.prototype.messageKey = null; + AIRegenerateMetadata.prototype.responseTimestampMs = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRegenerateMetadata.prototype, "_messageKey", { + get: $util.oneOfGetter($oneOfFields = ["messageKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRegenerateMetadata.prototype, "_responseTimestampMs", { + get: $util.oneOfGetter($oneOfFields = ["responseTimestampMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRegenerateMetadata.create = function create(properties) { + return new AIRegenerateMetadata(properties); + }; + + AIRegenerateMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.messageKey != null && Object.hasOwnProperty.call(m, "messageKey")) + $root.proto.MessageKey.encode(m.messageKey, w.uint32(10).fork()).ldelim(); + if (m.responseTimestampMs != null && Object.hasOwnProperty.call(m, "responseTimestampMs")) + w.uint32(16).int64(m.responseTimestampMs); + return w; + }; + + AIRegenerateMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRegenerateMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.messageKey = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + case 2: { + m.responseTimestampMs = r.int64(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRegenerateMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRegenerateMetadata) + return d; + var m = new $root.proto.AIRegenerateMetadata(); + if (d.messageKey != null) { + if (typeof d.messageKey !== "object") + throw TypeError(".proto.AIRegenerateMetadata.messageKey: object expected"); + m.messageKey = $root.proto.MessageKey.fromObject(d.messageKey); + } + if (d.responseTimestampMs != null) { + if ($util.Long) + (m.responseTimestampMs = $util.Long.fromValue(d.responseTimestampMs)).unsigned = false; + else if (typeof d.responseTimestampMs === "string") + m.responseTimestampMs = parseInt(d.responseTimestampMs, 10); + else if (typeof d.responseTimestampMs === "number") + m.responseTimestampMs = d.responseTimestampMs; + else if (typeof d.responseTimestampMs === "object") + m.responseTimestampMs = new $util.LongBits(d.responseTimestampMs.low >>> 0, d.responseTimestampMs.high >>> 0).toNumber(); + } + return m; + }; + + AIRegenerateMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.messageKey != null && m.hasOwnProperty("messageKey")) { + d.messageKey = $root.proto.MessageKey.toObject(m.messageKey, o); + if (o.oneofs) + d._messageKey = "messageKey"; + } + if (m.responseTimestampMs != null && m.hasOwnProperty("responseTimestampMs")) { + if (typeof m.responseTimestampMs === "number") + d.responseTimestampMs = o.longs === String ? String(m.responseTimestampMs) : m.responseTimestampMs; + else + d.responseTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.responseTimestampMs) : o.longs === Number ? new $util.LongBits(m.responseTimestampMs.low >>> 0, m.responseTimestampMs.high >>> 0).toNumber() : m.responseTimestampMs; + if (o.oneofs) + d._responseTimestampMs = "responseTimestampMs"; + } + return d; + }; + + AIRegenerateMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRegenerateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRegenerateMetadata"; + }; + + return AIRegenerateMetadata; + })(); + + proto.AIRichResponseCodeMetadata = (function() { + + function AIRichResponseCodeMetadata(p) { + this.codeBlocks = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseCodeMetadata.prototype.codeLanguage = null; + AIRichResponseCodeMetadata.prototype.codeBlocks = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseCodeMetadata.prototype, "_codeLanguage", { + get: $util.oneOfGetter($oneOfFields = ["codeLanguage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseCodeMetadata.create = function create(properties) { + return new AIRichResponseCodeMetadata(properties); + }; + + AIRichResponseCodeMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.codeLanguage != null && Object.hasOwnProperty.call(m, "codeLanguage")) + w.uint32(10).string(m.codeLanguage); + if (m.codeBlocks != null && m.codeBlocks.length) { + for (var i = 0; i < m.codeBlocks.length; ++i) + $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.encode(m.codeBlocks[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + + AIRichResponseCodeMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseCodeMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.codeLanguage = r.string(); + break; + } + case 2: { + if (!(m.codeBlocks && m.codeBlocks.length)) + m.codeBlocks = []; + m.codeBlocks.push($root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseCodeMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseCodeMetadata) + return d; + var m = new $root.proto.AIRichResponseCodeMetadata(); + if (d.codeLanguage != null) { + m.codeLanguage = String(d.codeLanguage); + } + if (d.codeBlocks) { + if (!Array.isArray(d.codeBlocks)) + throw TypeError(".proto.AIRichResponseCodeMetadata.codeBlocks: array expected"); + m.codeBlocks = []; + for (var i = 0; i < d.codeBlocks.length; ++i) { + if (typeof d.codeBlocks[i] !== "object") + throw TypeError(".proto.AIRichResponseCodeMetadata.codeBlocks: object expected"); + m.codeBlocks[i] = $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.fromObject(d.codeBlocks[i]); + } + } + return m; + }; + + AIRichResponseCodeMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.codeBlocks = []; + } + if (m.codeLanguage != null && m.hasOwnProperty("codeLanguage")) { + d.codeLanguage = m.codeLanguage; + if (o.oneofs) + d._codeLanguage = "codeLanguage"; + } + if (m.codeBlocks && m.codeBlocks.length) { + d.codeBlocks = []; + for (var j = 0; j < m.codeBlocks.length; ++j) { + d.codeBlocks[j] = $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.toObject(m.codeBlocks[j], o); + } + } + return d; + }; + + AIRichResponseCodeMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseCodeMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseCodeMetadata"; + }; + + AIRichResponseCodeMetadata.AIRichResponseCodeBlock = (function() { + + function AIRichResponseCodeBlock(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseCodeBlock.prototype.highlightType = null; + AIRichResponseCodeBlock.prototype.codeContent = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseCodeBlock.prototype, "_highlightType", { + get: $util.oneOfGetter($oneOfFields = ["highlightType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseCodeBlock.prototype, "_codeContent", { + get: $util.oneOfGetter($oneOfFields = ["codeContent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseCodeBlock.create = function create(properties) { + return new AIRichResponseCodeBlock(properties); + }; + + AIRichResponseCodeBlock.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.highlightType != null && Object.hasOwnProperty.call(m, "highlightType")) + w.uint32(8).int32(m.highlightType); + if (m.codeContent != null && Object.hasOwnProperty.call(m, "codeContent")) + w.uint32(18).string(m.codeContent); + return w; + }; + + AIRichResponseCodeBlock.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.highlightType = r.int32(); + break; + } + case 2: { + m.codeContent = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseCodeBlock.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock) + return d; + var m = new $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock(); + switch (d.highlightType) { + default: + if (typeof d.highlightType === "number") { + m.highlightType = d.highlightType; + break; + } + break; + case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT": + case 0: + m.highlightType = 0; + break; + case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD": + case 1: + m.highlightType = 1; + break; + case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD": + case 2: + m.highlightType = 2; + break; + case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING": + case 3: + m.highlightType = 3; + break; + case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER": + case 4: + m.highlightType = 4; + break; + case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT": + case 5: + m.highlightType = 5; + break; + } + if (d.codeContent != null) { + m.codeContent = String(d.codeContent); + } + return m; + }; + + AIRichResponseCodeBlock.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.highlightType != null && m.hasOwnProperty("highlightType")) { + d.highlightType = o.enums === String ? $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType[m.highlightType] === undefined ? m.highlightType : $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType[m.highlightType] : m.highlightType; + if (o.oneofs) + d._highlightType = "highlightType"; + } + if (m.codeContent != null && m.hasOwnProperty("codeContent")) { + d.codeContent = m.codeContent; + if (o.oneofs) + d._codeContent = "codeContent"; + } + return d; + }; + + AIRichResponseCodeBlock.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseCodeBlock.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock"; + }; + + return AIRichResponseCodeBlock; + })(); + + AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT"] = 0; + values[valuesById[1] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD"] = 1; + values[valuesById[2] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD"] = 2; + values[valuesById[3] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING"] = 3; + values[valuesById[4] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER"] = 4; + values[valuesById[5] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT"] = 5; + return values; + })(); + + return AIRichResponseCodeMetadata; + })(); + + proto.AIRichResponseContentItemsMetadata = (function() { + + function AIRichResponseContentItemsMetadata(p) { + this.itemsMetadata = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseContentItemsMetadata.prototype.itemsMetadata = $util.emptyArray; + AIRichResponseContentItemsMetadata.prototype.contentType = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseContentItemsMetadata.prototype, "_contentType", { + get: $util.oneOfGetter($oneOfFields = ["contentType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseContentItemsMetadata.create = function create(properties) { + return new AIRichResponseContentItemsMetadata(properties); + }; + + AIRichResponseContentItemsMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.itemsMetadata != null && m.itemsMetadata.length) { + for (var i = 0; i < m.itemsMetadata.length; ++i) + $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.encode(m.itemsMetadata[i], w.uint32(10).fork()).ldelim(); + } + if (m.contentType != null && Object.hasOwnProperty.call(m, "contentType")) + w.uint32(16).int32(m.contentType); + return w; + }; + + AIRichResponseContentItemsMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseContentItemsMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + if (!(m.itemsMetadata && m.itemsMetadata.length)) + m.itemsMetadata = []; + m.itemsMetadata.push($root.proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.decode(r, r.uint32())); + break; + } + case 2: { + m.contentType = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseContentItemsMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseContentItemsMetadata) + return d; + var m = new $root.proto.AIRichResponseContentItemsMetadata(); + if (d.itemsMetadata) { + if (!Array.isArray(d.itemsMetadata)) + throw TypeError(".proto.AIRichResponseContentItemsMetadata.itemsMetadata: array expected"); + m.itemsMetadata = []; + for (var i = 0; i < d.itemsMetadata.length; ++i) { + if (typeof d.itemsMetadata[i] !== "object") + throw TypeError(".proto.AIRichResponseContentItemsMetadata.itemsMetadata: object expected"); + m.itemsMetadata[i] = $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.fromObject(d.itemsMetadata[i]); + } + } + switch (d.contentType) { + default: + if (typeof d.contentType === "number") { + m.contentType = d.contentType; + break; + } + break; + case "DEFAULT": + case 0: + m.contentType = 0; + break; + case "CAROUSEL": + case 1: + m.contentType = 1; + break; + } + return m; + }; + + AIRichResponseContentItemsMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.itemsMetadata = []; + } + if (m.itemsMetadata && m.itemsMetadata.length) { + d.itemsMetadata = []; + for (var j = 0; j < m.itemsMetadata.length; ++j) { + d.itemsMetadata[j] = $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.toObject(m.itemsMetadata[j], o); + } + } + if (m.contentType != null && m.hasOwnProperty("contentType")) { + d.contentType = o.enums === String ? $root.proto.AIRichResponseContentItemsMetadata.ContentType[m.contentType] === undefined ? m.contentType : $root.proto.AIRichResponseContentItemsMetadata.ContentType[m.contentType] : m.contentType; + if (o.oneofs) + d._contentType = "contentType"; + } + return d; + }; + + AIRichResponseContentItemsMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseContentItemsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseContentItemsMetadata"; + }; + + AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata = (function() { + + function AIRichResponseContentItemMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseContentItemMetadata.prototype.reelItem = null; + + let $oneOfFields; + + Object.defineProperty(AIRichResponseContentItemMetadata.prototype, "aIRichResponseContentItem", { + get: $util.oneOfGetter($oneOfFields = ["reelItem"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseContentItemMetadata.create = function create(properties) { + return new AIRichResponseContentItemMetadata(properties); + }; + + AIRichResponseContentItemMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.reelItem != null && Object.hasOwnProperty.call(m, "reelItem")) + $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.encode(m.reelItem, w.uint32(10).fork()).ldelim(); + return w; + }; + + AIRichResponseContentItemMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.reelItem = $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseContentItemMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata) + return d; + var m = new $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata(); + if (d.reelItem != null) { + if (typeof d.reelItem !== "object") + throw TypeError(".proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.reelItem: object expected"); + m.reelItem = $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.fromObject(d.reelItem); + } + return m; + }; + + AIRichResponseContentItemMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.reelItem != null && m.hasOwnProperty("reelItem")) { + d.reelItem = $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.toObject(m.reelItem, o); + if (o.oneofs) + d.aIRichResponseContentItem = "reelItem"; + } + return d; + }; + + AIRichResponseContentItemMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseContentItemMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata"; + }; + + return AIRichResponseContentItemMetadata; + })(); + + AIRichResponseContentItemsMetadata.AIRichResponseReelItem = (function() { + + function AIRichResponseReelItem(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseReelItem.prototype.title = null; + AIRichResponseReelItem.prototype.profileIconUrl = null; + AIRichResponseReelItem.prototype.thumbnailUrl = null; + AIRichResponseReelItem.prototype.videoUrl = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseReelItem.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseReelItem.prototype, "_profileIconUrl", { + get: $util.oneOfGetter($oneOfFields = ["profileIconUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseReelItem.prototype, "_thumbnailUrl", { + get: $util.oneOfGetter($oneOfFields = ["thumbnailUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseReelItem.prototype, "_videoUrl", { + get: $util.oneOfGetter($oneOfFields = ["videoUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseReelItem.create = function create(properties) { + return new AIRichResponseReelItem(properties); + }; + + AIRichResponseReelItem.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.title != null && Object.hasOwnProperty.call(m, "title")) + w.uint32(10).string(m.title); + if (m.profileIconUrl != null && Object.hasOwnProperty.call(m, "profileIconUrl")) + w.uint32(18).string(m.profileIconUrl); + if (m.thumbnailUrl != null && Object.hasOwnProperty.call(m, "thumbnailUrl")) + w.uint32(26).string(m.thumbnailUrl); + if (m.videoUrl != null && Object.hasOwnProperty.call(m, "videoUrl")) + w.uint32(34).string(m.videoUrl); + return w; + }; + + AIRichResponseReelItem.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.title = r.string(); + break; + } + case 2: { + m.profileIconUrl = r.string(); + break; + } + case 3: { + m.thumbnailUrl = r.string(); + break; + } + case 4: { + m.videoUrl = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseReelItem.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem) + return d; + var m = new $root.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem(); + if (d.title != null) { + m.title = String(d.title); + } + if (d.profileIconUrl != null) { + m.profileIconUrl = String(d.profileIconUrl); + } + if (d.thumbnailUrl != null) { + m.thumbnailUrl = String(d.thumbnailUrl); + } + if (d.videoUrl != null) { + m.videoUrl = String(d.videoUrl); + } + return m; + }; + + AIRichResponseReelItem.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.title != null && m.hasOwnProperty("title")) { + d.title = m.title; + if (o.oneofs) + d._title = "title"; + } + if (m.profileIconUrl != null && m.hasOwnProperty("profileIconUrl")) { + d.profileIconUrl = m.profileIconUrl; + if (o.oneofs) + d._profileIconUrl = "profileIconUrl"; + } + if (m.thumbnailUrl != null && m.hasOwnProperty("thumbnailUrl")) { + d.thumbnailUrl = m.thumbnailUrl; + if (o.oneofs) + d._thumbnailUrl = "thumbnailUrl"; + } + if (m.videoUrl != null && m.hasOwnProperty("videoUrl")) { + d.videoUrl = m.videoUrl; + if (o.oneofs) + d._videoUrl = "videoUrl"; + } + return d; + }; + + AIRichResponseReelItem.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseReelItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem"; + }; + + return AIRichResponseReelItem; + })(); + + AIRichResponseContentItemsMetadata.ContentType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT"] = 0; + values[valuesById[1] = "CAROUSEL"] = 1; + return values; + })(); + + return AIRichResponseContentItemsMetadata; + })(); + + proto.AIRichResponseDynamicMetadata = (function() { + + function AIRichResponseDynamicMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseDynamicMetadata.prototype.type = null; + AIRichResponseDynamicMetadata.prototype.version = null; + AIRichResponseDynamicMetadata.prototype.url = null; + AIRichResponseDynamicMetadata.prototype.loopCount = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_version", { + get: $util.oneOfGetter($oneOfFields = ["version"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_url", { + get: $util.oneOfGetter($oneOfFields = ["url"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_loopCount", { + get: $util.oneOfGetter($oneOfFields = ["loopCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseDynamicMetadata.create = function create(properties) { + return new AIRichResponseDynamicMetadata(properties); + }; + + AIRichResponseDynamicMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).int32(m.type); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) + w.uint32(16).uint64(m.version); + if (m.url != null && Object.hasOwnProperty.call(m, "url")) + w.uint32(26).string(m.url); + if (m.loopCount != null && Object.hasOwnProperty.call(m, "loopCount")) + w.uint32(32).uint32(m.loopCount); + return w; + }; + + AIRichResponseDynamicMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseDynamicMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.int32(); + break; + } + case 2: { + m.version = r.uint64(); + break; + } + case 3: { + m.url = r.string(); + break; + } + case 4: { + m.loopCount = r.uint32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseDynamicMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseDynamicMetadata) + return d; + var m = new $root.proto.AIRichResponseDynamicMetadata(); + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN": + case 0: + m.type = 0; + break; + case "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE": + case 1: + m.type = 1; + break; + case "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF": + case 2: + m.type = 2; + break; + } + if (d.version != null) { + if ($util.Long) + (m.version = $util.Long.fromValue(d.version)).unsigned = true; + else if (typeof d.version === "string") + m.version = parseInt(d.version, 10); + else if (typeof d.version === "number") + m.version = d.version; + else if (typeof d.version === "object") + m.version = new $util.LongBits(d.version.low >>> 0, d.version.high >>> 0).toNumber(true); + } + if (d.url != null) { + m.url = String(d.url); + } + if (d.loopCount != null) { + m.loopCount = d.loopCount >>> 0; + } + return m; + }; + + AIRichResponseDynamicMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType[m.type] === undefined ? m.type : $root.proto.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType[m.type] : m.type; + if (o.oneofs) + d._type = "type"; + } + if (m.version != null && m.hasOwnProperty("version")) { + if (typeof m.version === "number") + d.version = o.longs === String ? String(m.version) : m.version; + else + d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version; + if (o.oneofs) + d._version = "version"; + } + if (m.url != null && m.hasOwnProperty("url")) { + d.url = m.url; + if (o.oneofs) + d._url = "url"; + } + if (m.loopCount != null && m.hasOwnProperty("loopCount")) { + d.loopCount = m.loopCount; + if (o.oneofs) + d._loopCount = "loopCount"; + } + return d; + }; + + AIRichResponseDynamicMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseDynamicMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseDynamicMetadata"; + }; + + AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE"] = 1; + values[valuesById[2] = "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF"] = 2; + return values; + })(); + + return AIRichResponseDynamicMetadata; + })(); + + proto.AIRichResponseGridImageMetadata = (function() { + + function AIRichResponseGridImageMetadata(p) { + this.imageUrls = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseGridImageMetadata.prototype.gridImageUrl = null; + AIRichResponseGridImageMetadata.prototype.imageUrls = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseGridImageMetadata.prototype, "_gridImageUrl", { + get: $util.oneOfGetter($oneOfFields = ["gridImageUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseGridImageMetadata.create = function create(properties) { + return new AIRichResponseGridImageMetadata(properties); + }; + + AIRichResponseGridImageMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.gridImageUrl != null && Object.hasOwnProperty.call(m, "gridImageUrl")) + $root.proto.AIRichResponseImageURL.encode(m.gridImageUrl, w.uint32(10).fork()).ldelim(); + if (m.imageUrls != null && m.imageUrls.length) { + for (var i = 0; i < m.imageUrls.length; ++i) + $root.proto.AIRichResponseImageURL.encode(m.imageUrls[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + + AIRichResponseGridImageMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseGridImageMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.gridImageUrl = $root.proto.AIRichResponseImageURL.decode(r, r.uint32()); + break; + } + case 2: { + if (!(m.imageUrls && m.imageUrls.length)) + m.imageUrls = []; + m.imageUrls.push($root.proto.AIRichResponseImageURL.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseGridImageMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseGridImageMetadata) + return d; + var m = new $root.proto.AIRichResponseGridImageMetadata(); + if (d.gridImageUrl != null) { + if (typeof d.gridImageUrl !== "object") + throw TypeError(".proto.AIRichResponseGridImageMetadata.gridImageUrl: object expected"); + m.gridImageUrl = $root.proto.AIRichResponseImageURL.fromObject(d.gridImageUrl); + } + if (d.imageUrls) { + if (!Array.isArray(d.imageUrls)) + throw TypeError(".proto.AIRichResponseGridImageMetadata.imageUrls: array expected"); + m.imageUrls = []; + for (var i = 0; i < d.imageUrls.length; ++i) { + if (typeof d.imageUrls[i] !== "object") + throw TypeError(".proto.AIRichResponseGridImageMetadata.imageUrls: object expected"); + m.imageUrls[i] = $root.proto.AIRichResponseImageURL.fromObject(d.imageUrls[i]); + } + } + return m; + }; + + AIRichResponseGridImageMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.imageUrls = []; + } + if (m.gridImageUrl != null && m.hasOwnProperty("gridImageUrl")) { + d.gridImageUrl = $root.proto.AIRichResponseImageURL.toObject(m.gridImageUrl, o); + if (o.oneofs) + d._gridImageUrl = "gridImageUrl"; + } + if (m.imageUrls && m.imageUrls.length) { + d.imageUrls = []; + for (var j = 0; j < m.imageUrls.length; ++j) { + d.imageUrls[j] = $root.proto.AIRichResponseImageURL.toObject(m.imageUrls[j], o); + } + } + return d; + }; + + AIRichResponseGridImageMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseGridImageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseGridImageMetadata"; + }; + + return AIRichResponseGridImageMetadata; + })(); + + proto.AIRichResponseImageURL = (function() { + + function AIRichResponseImageURL(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseImageURL.prototype.imagePreviewUrl = null; + AIRichResponseImageURL.prototype.imageHighResUrl = null; + AIRichResponseImageURL.prototype.sourceUrl = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseImageURL.prototype, "_imagePreviewUrl", { + get: $util.oneOfGetter($oneOfFields = ["imagePreviewUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseImageURL.prototype, "_imageHighResUrl", { + get: $util.oneOfGetter($oneOfFields = ["imageHighResUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseImageURL.prototype, "_sourceUrl", { + get: $util.oneOfGetter($oneOfFields = ["sourceUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseImageURL.create = function create(properties) { + return new AIRichResponseImageURL(properties); + }; + + AIRichResponseImageURL.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.imagePreviewUrl != null && Object.hasOwnProperty.call(m, "imagePreviewUrl")) + w.uint32(10).string(m.imagePreviewUrl); + if (m.imageHighResUrl != null && Object.hasOwnProperty.call(m, "imageHighResUrl")) + w.uint32(18).string(m.imageHighResUrl); + if (m.sourceUrl != null && Object.hasOwnProperty.call(m, "sourceUrl")) + w.uint32(26).string(m.sourceUrl); + return w; + }; + + AIRichResponseImageURL.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseImageURL(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.imagePreviewUrl = r.string(); + break; + } + case 2: { + m.imageHighResUrl = r.string(); + break; + } + case 3: { + m.sourceUrl = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseImageURL.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseImageURL) + return d; + var m = new $root.proto.AIRichResponseImageURL(); + if (d.imagePreviewUrl != null) { + m.imagePreviewUrl = String(d.imagePreviewUrl); + } + if (d.imageHighResUrl != null) { + m.imageHighResUrl = String(d.imageHighResUrl); + } + if (d.sourceUrl != null) { + m.sourceUrl = String(d.sourceUrl); + } + return m; + }; + + AIRichResponseImageURL.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.imagePreviewUrl != null && m.hasOwnProperty("imagePreviewUrl")) { + d.imagePreviewUrl = m.imagePreviewUrl; + if (o.oneofs) + d._imagePreviewUrl = "imagePreviewUrl"; + } + if (m.imageHighResUrl != null && m.hasOwnProperty("imageHighResUrl")) { + d.imageHighResUrl = m.imageHighResUrl; + if (o.oneofs) + d._imageHighResUrl = "imageHighResUrl"; + } + if (m.sourceUrl != null && m.hasOwnProperty("sourceUrl")) { + d.sourceUrl = m.sourceUrl; + if (o.oneofs) + d._sourceUrl = "sourceUrl"; + } + return d; + }; + + AIRichResponseImageURL.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseImageURL.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseImageURL"; + }; + + return AIRichResponseImageURL; + })(); + + proto.AIRichResponseInlineImageMetadata = (function() { + + function AIRichResponseInlineImageMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseInlineImageMetadata.prototype.imageUrl = null; + AIRichResponseInlineImageMetadata.prototype.imageText = null; + AIRichResponseInlineImageMetadata.prototype.alignment = null; + AIRichResponseInlineImageMetadata.prototype.tapLinkUrl = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_imageUrl", { + get: $util.oneOfGetter($oneOfFields = ["imageUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_imageText", { + get: $util.oneOfGetter($oneOfFields = ["imageText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_alignment", { + get: $util.oneOfGetter($oneOfFields = ["alignment"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_tapLinkUrl", { + get: $util.oneOfGetter($oneOfFields = ["tapLinkUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseInlineImageMetadata.create = function create(properties) { + return new AIRichResponseInlineImageMetadata(properties); + }; + + AIRichResponseInlineImageMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.imageUrl != null && Object.hasOwnProperty.call(m, "imageUrl")) + $root.proto.AIRichResponseImageURL.encode(m.imageUrl, w.uint32(10).fork()).ldelim(); + if (m.imageText != null && Object.hasOwnProperty.call(m, "imageText")) + w.uint32(18).string(m.imageText); + if (m.alignment != null && Object.hasOwnProperty.call(m, "alignment")) + w.uint32(24).int32(m.alignment); + if (m.tapLinkUrl != null && Object.hasOwnProperty.call(m, "tapLinkUrl")) + w.uint32(34).string(m.tapLinkUrl); + return w; + }; + + AIRichResponseInlineImageMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseInlineImageMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.imageUrl = $root.proto.AIRichResponseImageURL.decode(r, r.uint32()); + break; + } + case 2: { + m.imageText = r.string(); + break; + } + case 3: { + m.alignment = r.int32(); + break; + } + case 4: { + m.tapLinkUrl = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseInlineImageMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseInlineImageMetadata) + return d; + var m = new $root.proto.AIRichResponseInlineImageMetadata(); + if (d.imageUrl != null) { + if (typeof d.imageUrl !== "object") + throw TypeError(".proto.AIRichResponseInlineImageMetadata.imageUrl: object expected"); + m.imageUrl = $root.proto.AIRichResponseImageURL.fromObject(d.imageUrl); + } + if (d.imageText != null) { + m.imageText = String(d.imageText); + } + switch (d.alignment) { + default: + if (typeof d.alignment === "number") { + m.alignment = d.alignment; + break; + } + break; + case "AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED": + case 0: + m.alignment = 0; + break; + case "AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED": + case 1: + m.alignment = 1; + break; + case "AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED": + case 2: + m.alignment = 2; + break; + } + if (d.tapLinkUrl != null) { + m.tapLinkUrl = String(d.tapLinkUrl); + } + return m; + }; + + AIRichResponseInlineImageMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.imageUrl != null && m.hasOwnProperty("imageUrl")) { + d.imageUrl = $root.proto.AIRichResponseImageURL.toObject(m.imageUrl, o); + if (o.oneofs) + d._imageUrl = "imageUrl"; + } + if (m.imageText != null && m.hasOwnProperty("imageText")) { + d.imageText = m.imageText; + if (o.oneofs) + d._imageText = "imageText"; + } + if (m.alignment != null && m.hasOwnProperty("alignment")) { + d.alignment = o.enums === String ? $root.proto.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment[m.alignment] === undefined ? m.alignment : $root.proto.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment[m.alignment] : m.alignment; + if (o.oneofs) + d._alignment = "alignment"; + } + if (m.tapLinkUrl != null && m.hasOwnProperty("tapLinkUrl")) { + d.tapLinkUrl = m.tapLinkUrl; + if (o.oneofs) + d._tapLinkUrl = "tapLinkUrl"; + } + return d; + }; + + AIRichResponseInlineImageMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseInlineImageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseInlineImageMetadata"; + }; + + AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED"] = 0; + values[valuesById[1] = "AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED"] = 1; + values[valuesById[2] = "AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED"] = 2; + return values; + })(); + + return AIRichResponseInlineImageMetadata; + })(); + + proto.AIRichResponseLatexMetadata = (function() { + + function AIRichResponseLatexMetadata(p) { + this.expressions = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseLatexMetadata.prototype.text = null; + AIRichResponseLatexMetadata.prototype.expressions = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexMetadata.prototype, "_text", { + get: $util.oneOfGetter($oneOfFields = ["text"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseLatexMetadata.create = function create(properties) { + return new AIRichResponseLatexMetadata(properties); + }; + + AIRichResponseLatexMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.text != null && Object.hasOwnProperty.call(m, "text")) + w.uint32(10).string(m.text); + if (m.expressions != null && m.expressions.length) { + for (var i = 0; i < m.expressions.length; ++i) + $root.proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.encode(m.expressions[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + + AIRichResponseLatexMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseLatexMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.text = r.string(); + break; + } + case 2: { + if (!(m.expressions && m.expressions.length)) + m.expressions = []; + m.expressions.push($root.proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseLatexMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseLatexMetadata) + return d; + var m = new $root.proto.AIRichResponseLatexMetadata(); + if (d.text != null) { + m.text = String(d.text); + } + if (d.expressions) { + if (!Array.isArray(d.expressions)) + throw TypeError(".proto.AIRichResponseLatexMetadata.expressions: array expected"); + m.expressions = []; + for (var i = 0; i < d.expressions.length; ++i) { + if (typeof d.expressions[i] !== "object") + throw TypeError(".proto.AIRichResponseLatexMetadata.expressions: object expected"); + m.expressions[i] = $root.proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.fromObject(d.expressions[i]); + } + } + return m; + }; + + AIRichResponseLatexMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.expressions = []; + } + if (m.text != null && m.hasOwnProperty("text")) { + d.text = m.text; + if (o.oneofs) + d._text = "text"; + } + if (m.expressions && m.expressions.length) { + d.expressions = []; + for (var j = 0; j < m.expressions.length; ++j) { + d.expressions[j] = $root.proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.toObject(m.expressions[j], o); + } + } + return d; + }; + + AIRichResponseLatexMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseLatexMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseLatexMetadata"; + }; + + AIRichResponseLatexMetadata.AIRichResponseLatexExpression = (function() { + + function AIRichResponseLatexExpression(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseLatexExpression.prototype.latexExpression = null; + AIRichResponseLatexExpression.prototype.url = null; + AIRichResponseLatexExpression.prototype.width = null; + AIRichResponseLatexExpression.prototype.height = null; + AIRichResponseLatexExpression.prototype.fontHeight = null; + AIRichResponseLatexExpression.prototype.imageTopPadding = null; + AIRichResponseLatexExpression.prototype.imageLeadingPadding = null; + AIRichResponseLatexExpression.prototype.imageBottomPadding = null; + AIRichResponseLatexExpression.prototype.imageTrailingPadding = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_latexExpression", { + get: $util.oneOfGetter($oneOfFields = ["latexExpression"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_url", { + get: $util.oneOfGetter($oneOfFields = ["url"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_width", { + get: $util.oneOfGetter($oneOfFields = ["width"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_height", { + get: $util.oneOfGetter($oneOfFields = ["height"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_fontHeight", { + get: $util.oneOfGetter($oneOfFields = ["fontHeight"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageTopPadding", { + get: $util.oneOfGetter($oneOfFields = ["imageTopPadding"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageLeadingPadding", { + get: $util.oneOfGetter($oneOfFields = ["imageLeadingPadding"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageBottomPadding", { + get: $util.oneOfGetter($oneOfFields = ["imageBottomPadding"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageTrailingPadding", { + get: $util.oneOfGetter($oneOfFields = ["imageTrailingPadding"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseLatexExpression.create = function create(properties) { + return new AIRichResponseLatexExpression(properties); + }; + + AIRichResponseLatexExpression.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.latexExpression != null && Object.hasOwnProperty.call(m, "latexExpression")) + w.uint32(10).string(m.latexExpression); + if (m.url != null && Object.hasOwnProperty.call(m, "url")) + w.uint32(18).string(m.url); + if (m.width != null && Object.hasOwnProperty.call(m, "width")) + w.uint32(25).double(m.width); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + w.uint32(33).double(m.height); + if (m.fontHeight != null && Object.hasOwnProperty.call(m, "fontHeight")) + w.uint32(41).double(m.fontHeight); + if (m.imageTopPadding != null && Object.hasOwnProperty.call(m, "imageTopPadding")) + w.uint32(49).double(m.imageTopPadding); + if (m.imageLeadingPadding != null && Object.hasOwnProperty.call(m, "imageLeadingPadding")) + w.uint32(57).double(m.imageLeadingPadding); + if (m.imageBottomPadding != null && Object.hasOwnProperty.call(m, "imageBottomPadding")) + w.uint32(65).double(m.imageBottomPadding); + if (m.imageTrailingPadding != null && Object.hasOwnProperty.call(m, "imageTrailingPadding")) + w.uint32(73).double(m.imageTrailingPadding); + return w; + }; + + AIRichResponseLatexExpression.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.latexExpression = r.string(); + break; + } + case 2: { + m.url = r.string(); + break; + } + case 3: { + m.width = r.double(); + break; + } + case 4: { + m.height = r.double(); + break; + } + case 5: { + m.fontHeight = r.double(); + break; + } + case 6: { + m.imageTopPadding = r.double(); + break; + } + case 7: { + m.imageLeadingPadding = r.double(); + break; + } + case 8: { + m.imageBottomPadding = r.double(); + break; + } + case 9: { + m.imageTrailingPadding = r.double(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseLatexExpression.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression) + return d; + var m = new $root.proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression(); + if (d.latexExpression != null) { + m.latexExpression = String(d.latexExpression); + } + if (d.url != null) { + m.url = String(d.url); + } + if (d.width != null) { + m.width = Number(d.width); + } + if (d.height != null) { + m.height = Number(d.height); + } + if (d.fontHeight != null) { + m.fontHeight = Number(d.fontHeight); + } + if (d.imageTopPadding != null) { + m.imageTopPadding = Number(d.imageTopPadding); + } + if (d.imageLeadingPadding != null) { + m.imageLeadingPadding = Number(d.imageLeadingPadding); + } + if (d.imageBottomPadding != null) { + m.imageBottomPadding = Number(d.imageBottomPadding); + } + if (d.imageTrailingPadding != null) { + m.imageTrailingPadding = Number(d.imageTrailingPadding); + } + return m; + }; + + AIRichResponseLatexExpression.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.latexExpression != null && m.hasOwnProperty("latexExpression")) { + d.latexExpression = m.latexExpression; + if (o.oneofs) + d._latexExpression = "latexExpression"; + } + if (m.url != null && m.hasOwnProperty("url")) { + d.url = m.url; + if (o.oneofs) + d._url = "url"; + } + if (m.width != null && m.hasOwnProperty("width")) { + d.width = o.json && !isFinite(m.width) ? String(m.width) : m.width; + if (o.oneofs) + d._width = "width"; + } + if (m.height != null && m.hasOwnProperty("height")) { + d.height = o.json && !isFinite(m.height) ? String(m.height) : m.height; + if (o.oneofs) + d._height = "height"; + } + if (m.fontHeight != null && m.hasOwnProperty("fontHeight")) { + d.fontHeight = o.json && !isFinite(m.fontHeight) ? String(m.fontHeight) : m.fontHeight; + if (o.oneofs) + d._fontHeight = "fontHeight"; + } + if (m.imageTopPadding != null && m.hasOwnProperty("imageTopPadding")) { + d.imageTopPadding = o.json && !isFinite(m.imageTopPadding) ? String(m.imageTopPadding) : m.imageTopPadding; + if (o.oneofs) + d._imageTopPadding = "imageTopPadding"; + } + if (m.imageLeadingPadding != null && m.hasOwnProperty("imageLeadingPadding")) { + d.imageLeadingPadding = o.json && !isFinite(m.imageLeadingPadding) ? String(m.imageLeadingPadding) : m.imageLeadingPadding; + if (o.oneofs) + d._imageLeadingPadding = "imageLeadingPadding"; + } + if (m.imageBottomPadding != null && m.hasOwnProperty("imageBottomPadding")) { + d.imageBottomPadding = o.json && !isFinite(m.imageBottomPadding) ? String(m.imageBottomPadding) : m.imageBottomPadding; + if (o.oneofs) + d._imageBottomPadding = "imageBottomPadding"; + } + if (m.imageTrailingPadding != null && m.hasOwnProperty("imageTrailingPadding")) { + d.imageTrailingPadding = o.json && !isFinite(m.imageTrailingPadding) ? String(m.imageTrailingPadding) : m.imageTrailingPadding; + if (o.oneofs) + d._imageTrailingPadding = "imageTrailingPadding"; + } + return d; + }; + + AIRichResponseLatexExpression.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseLatexExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression"; + }; + + return AIRichResponseLatexExpression; + })(); + + return AIRichResponseLatexMetadata; + })(); + + proto.AIRichResponseMapMetadata = (function() { + + function AIRichResponseMapMetadata(p) { + this.annotations = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseMapMetadata.prototype.centerLatitude = null; + AIRichResponseMapMetadata.prototype.centerLongitude = null; + AIRichResponseMapMetadata.prototype.latitudeDelta = null; + AIRichResponseMapMetadata.prototype.longitudeDelta = null; + AIRichResponseMapMetadata.prototype.annotations = $util.emptyArray; + AIRichResponseMapMetadata.prototype.showInfoList = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapMetadata.prototype, "_centerLatitude", { + get: $util.oneOfGetter($oneOfFields = ["centerLatitude"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapMetadata.prototype, "_centerLongitude", { + get: $util.oneOfGetter($oneOfFields = ["centerLongitude"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapMetadata.prototype, "_latitudeDelta", { + get: $util.oneOfGetter($oneOfFields = ["latitudeDelta"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapMetadata.prototype, "_longitudeDelta", { + get: $util.oneOfGetter($oneOfFields = ["longitudeDelta"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapMetadata.prototype, "_showInfoList", { + get: $util.oneOfGetter($oneOfFields = ["showInfoList"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseMapMetadata.create = function create(properties) { + return new AIRichResponseMapMetadata(properties); + }; + + AIRichResponseMapMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.centerLatitude != null && Object.hasOwnProperty.call(m, "centerLatitude")) + w.uint32(9).double(m.centerLatitude); + if (m.centerLongitude != null && Object.hasOwnProperty.call(m, "centerLongitude")) + w.uint32(17).double(m.centerLongitude); + if (m.latitudeDelta != null && Object.hasOwnProperty.call(m, "latitudeDelta")) + w.uint32(25).double(m.latitudeDelta); + if (m.longitudeDelta != null && Object.hasOwnProperty.call(m, "longitudeDelta")) + w.uint32(33).double(m.longitudeDelta); + if (m.annotations != null && m.annotations.length) { + for (var i = 0; i < m.annotations.length; ++i) + $root.proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.encode(m.annotations[i], w.uint32(42).fork()).ldelim(); + } + if (m.showInfoList != null && Object.hasOwnProperty.call(m, "showInfoList")) + w.uint32(48).bool(m.showInfoList); + return w; + }; + + AIRichResponseMapMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMapMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.centerLatitude = r.double(); + break; + } + case 2: { + m.centerLongitude = r.double(); + break; + } + case 3: { + m.latitudeDelta = r.double(); + break; + } + case 4: { + m.longitudeDelta = r.double(); + break; + } + case 5: { + if (!(m.annotations && m.annotations.length)) + m.annotations = []; + m.annotations.push($root.proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.decode(r, r.uint32())); + break; + } + case 6: { + m.showInfoList = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseMapMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseMapMetadata) + return d; + var m = new $root.proto.AIRichResponseMapMetadata(); + if (d.centerLatitude != null) { + m.centerLatitude = Number(d.centerLatitude); + } + if (d.centerLongitude != null) { + m.centerLongitude = Number(d.centerLongitude); + } + if (d.latitudeDelta != null) { + m.latitudeDelta = Number(d.latitudeDelta); + } + if (d.longitudeDelta != null) { + m.longitudeDelta = Number(d.longitudeDelta); + } + if (d.annotations) { + if (!Array.isArray(d.annotations)) + throw TypeError(".proto.AIRichResponseMapMetadata.annotations: array expected"); + m.annotations = []; + for (var i = 0; i < d.annotations.length; ++i) { + if (typeof d.annotations[i] !== "object") + throw TypeError(".proto.AIRichResponseMapMetadata.annotations: object expected"); + m.annotations[i] = $root.proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.fromObject(d.annotations[i]); + } + } + if (d.showInfoList != null) { + m.showInfoList = Boolean(d.showInfoList); + } + return m; + }; + + AIRichResponseMapMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.annotations = []; + } + if (m.centerLatitude != null && m.hasOwnProperty("centerLatitude")) { + d.centerLatitude = o.json && !isFinite(m.centerLatitude) ? String(m.centerLatitude) : m.centerLatitude; + if (o.oneofs) + d._centerLatitude = "centerLatitude"; + } + if (m.centerLongitude != null && m.hasOwnProperty("centerLongitude")) { + d.centerLongitude = o.json && !isFinite(m.centerLongitude) ? String(m.centerLongitude) : m.centerLongitude; + if (o.oneofs) + d._centerLongitude = "centerLongitude"; + } + if (m.latitudeDelta != null && m.hasOwnProperty("latitudeDelta")) { + d.latitudeDelta = o.json && !isFinite(m.latitudeDelta) ? String(m.latitudeDelta) : m.latitudeDelta; + if (o.oneofs) + d._latitudeDelta = "latitudeDelta"; + } + if (m.longitudeDelta != null && m.hasOwnProperty("longitudeDelta")) { + d.longitudeDelta = o.json && !isFinite(m.longitudeDelta) ? String(m.longitudeDelta) : m.longitudeDelta; + if (o.oneofs) + d._longitudeDelta = "longitudeDelta"; + } + if (m.annotations && m.annotations.length) { + d.annotations = []; + for (var j = 0; j < m.annotations.length; ++j) { + d.annotations[j] = $root.proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.toObject(m.annotations[j], o); + } + } + if (m.showInfoList != null && m.hasOwnProperty("showInfoList")) { + d.showInfoList = m.showInfoList; + if (o.oneofs) + d._showInfoList = "showInfoList"; + } + return d; + }; + + AIRichResponseMapMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseMapMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseMapMetadata"; + }; + + AIRichResponseMapMetadata.AIRichResponseMapAnnotation = (function() { + + function AIRichResponseMapAnnotation(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseMapAnnotation.prototype.annotationNumber = null; + AIRichResponseMapAnnotation.prototype.latitude = null; + AIRichResponseMapAnnotation.prototype.longitude = null; + AIRichResponseMapAnnotation.prototype.title = null; + AIRichResponseMapAnnotation.prototype.body = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_annotationNumber", { + get: $util.oneOfGetter($oneOfFields = ["annotationNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_latitude", { + get: $util.oneOfGetter($oneOfFields = ["latitude"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_longitude", { + get: $util.oneOfGetter($oneOfFields = ["longitude"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_body", { + get: $util.oneOfGetter($oneOfFields = ["body"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseMapAnnotation.create = function create(properties) { + return new AIRichResponseMapAnnotation(properties); + }; + + AIRichResponseMapAnnotation.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.annotationNumber != null && Object.hasOwnProperty.call(m, "annotationNumber")) + w.uint32(8).uint32(m.annotationNumber); + if (m.latitude != null && Object.hasOwnProperty.call(m, "latitude")) + w.uint32(17).double(m.latitude); + if (m.longitude != null && Object.hasOwnProperty.call(m, "longitude")) + w.uint32(25).double(m.longitude); + if (m.title != null && Object.hasOwnProperty.call(m, "title")) + w.uint32(34).string(m.title); + if (m.body != null && Object.hasOwnProperty.call(m, "body")) + w.uint32(42).string(m.body); + return w; + }; + + AIRichResponseMapAnnotation.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.annotationNumber = r.uint32(); + break; + } + case 2: { + m.latitude = r.double(); + break; + } + case 3: { + m.longitude = r.double(); + break; + } + case 4: { + m.title = r.string(); + break; + } + case 5: { + m.body = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseMapAnnotation.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation) + return d; + var m = new $root.proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation(); + if (d.annotationNumber != null) { + m.annotationNumber = d.annotationNumber >>> 0; + } + if (d.latitude != null) { + m.latitude = Number(d.latitude); + } + if (d.longitude != null) { + m.longitude = Number(d.longitude); + } + if (d.title != null) { + m.title = String(d.title); + } + if (d.body != null) { + m.body = String(d.body); + } + return m; + }; + + AIRichResponseMapAnnotation.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.annotationNumber != null && m.hasOwnProperty("annotationNumber")) { + d.annotationNumber = m.annotationNumber; + if (o.oneofs) + d._annotationNumber = "annotationNumber"; + } + if (m.latitude != null && m.hasOwnProperty("latitude")) { + d.latitude = o.json && !isFinite(m.latitude) ? String(m.latitude) : m.latitude; + if (o.oneofs) + d._latitude = "latitude"; + } + if (m.longitude != null && m.hasOwnProperty("longitude")) { + d.longitude = o.json && !isFinite(m.longitude) ? String(m.longitude) : m.longitude; + if (o.oneofs) + d._longitude = "longitude"; + } + if (m.title != null && m.hasOwnProperty("title")) { + d.title = m.title; + if (o.oneofs) + d._title = "title"; + } + if (m.body != null && m.hasOwnProperty("body")) { + d.body = m.body; + if (o.oneofs) + d._body = "body"; + } + return d; + }; + + AIRichResponseMapAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseMapAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation"; + }; + + return AIRichResponseMapAnnotation; + })(); + + return AIRichResponseMapMetadata; + })(); + proto.AIRichResponseMessage = (function() { function AIRichResponseMessage(p) { @@ -1042,6 +3577,7 @@ export const proto = $root.proto = (() => { AIRichResponseMessage.prototype.messageType = null; AIRichResponseMessage.prototype.submessages = $util.emptyArray; AIRichResponseMessage.prototype.unifiedResponse = null; + AIRichResponseMessage.prototype.contextInfo = null; let $oneOfFields; @@ -1057,6 +3593,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseMessage.prototype, "_contextInfo", { + get: $util.oneOfGetter($oneOfFields = ["contextInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + AIRichResponseMessage.create = function create(properties) { return new AIRichResponseMessage(properties); }; @@ -1068,10 +3610,12 @@ export const proto = $root.proto = (() => { w.uint32(8).int32(m.messageType); if (m.submessages != null && m.submessages.length) { for (var i = 0; i < m.submessages.length; ++i) - $root.proto.AIRichResponseMessage.AIRichResponseSubMessage.encode(m.submessages[i], w.uint32(18).fork()).ldelim(); + $root.proto.AIRichResponseSubMessage.encode(m.submessages[i], w.uint32(18).fork()).ldelim(); } if (m.unifiedResponse != null && Object.hasOwnProperty.call(m, "unifiedResponse")) - $root.proto.AIRichResponseMessage.AIRichResponseUnifiedResponse.encode(m.unifiedResponse, w.uint32(26).fork()).ldelim(); + $root.proto.AIRichResponseUnifiedResponse.encode(m.unifiedResponse, w.uint32(26).fork()).ldelim(); + if (m.contextInfo != null && Object.hasOwnProperty.call(m, "contextInfo")) + $root.proto.ContextInfo.encode(m.contextInfo, w.uint32(34).fork()).ldelim(); return w; }; @@ -1091,11 +3635,15 @@ export const proto = $root.proto = (() => { case 2: { if (!(m.submessages && m.submessages.length)) m.submessages = []; - m.submessages.push($root.proto.AIRichResponseMessage.AIRichResponseSubMessage.decode(r, r.uint32())); + m.submessages.push($root.proto.AIRichResponseSubMessage.decode(r, r.uint32())); break; } case 3: { - m.unifiedResponse = $root.proto.AIRichResponseMessage.AIRichResponseUnifiedResponse.decode(r, r.uint32()); + m.unifiedResponse = $root.proto.AIRichResponseUnifiedResponse.decode(r, r.uint32()); + break; + } + case 4: { + m.contextInfo = $root.proto.ContextInfo.decode(r, r.uint32()); break; } default: @@ -1133,13 +3681,18 @@ export const proto = $root.proto = (() => { for (var i = 0; i < d.submessages.length; ++i) { if (typeof d.submessages[i] !== "object") throw TypeError(".proto.AIRichResponseMessage.submessages: object expected"); - m.submessages[i] = $root.proto.AIRichResponseMessage.AIRichResponseSubMessage.fromObject(d.submessages[i]); + m.submessages[i] = $root.proto.AIRichResponseSubMessage.fromObject(d.submessages[i]); } } if (d.unifiedResponse != null) { if (typeof d.unifiedResponse !== "object") throw TypeError(".proto.AIRichResponseMessage.unifiedResponse: object expected"); - m.unifiedResponse = $root.proto.AIRichResponseMessage.AIRichResponseUnifiedResponse.fromObject(d.unifiedResponse); + m.unifiedResponse = $root.proto.AIRichResponseUnifiedResponse.fromObject(d.unifiedResponse); + } + if (d.contextInfo != null) { + if (typeof d.contextInfo !== "object") + throw TypeError(".proto.AIRichResponseMessage.contextInfo: object expected"); + m.contextInfo = $root.proto.ContextInfo.fromObject(d.contextInfo); } return m; }; @@ -1152,21 +3705,26 @@ export const proto = $root.proto = (() => { d.submessages = []; } if (m.messageType != null && m.hasOwnProperty("messageType")) { - d.messageType = o.enums === String ? $root.proto.AIRichResponseMessage.AIRichResponseMessageType[m.messageType] === undefined ? m.messageType : $root.proto.AIRichResponseMessage.AIRichResponseMessageType[m.messageType] : m.messageType; + d.messageType = o.enums === String ? $root.proto.AIRichResponseMessageType[m.messageType] === undefined ? m.messageType : $root.proto.AIRichResponseMessageType[m.messageType] : m.messageType; if (o.oneofs) d._messageType = "messageType"; } if (m.submessages && m.submessages.length) { d.submessages = []; for (var j = 0; j < m.submessages.length; ++j) { - d.submessages[j] = $root.proto.AIRichResponseMessage.AIRichResponseSubMessage.toObject(m.submessages[j], o); + d.submessages[j] = $root.proto.AIRichResponseSubMessage.toObject(m.submessages[j], o); } } if (m.unifiedResponse != null && m.hasOwnProperty("unifiedResponse")) { - d.unifiedResponse = $root.proto.AIRichResponseMessage.AIRichResponseUnifiedResponse.toObject(m.unifiedResponse, o); + d.unifiedResponse = $root.proto.AIRichResponseUnifiedResponse.toObject(m.unifiedResponse, o); if (o.oneofs) d._unifiedResponse = "unifiedResponse"; } + if (m.contextInfo != null && m.hasOwnProperty("contextInfo")) { + d.contextInfo = $root.proto.ContextInfo.toObject(m.contextInfo, o); + if (o.oneofs) + d._contextInfo = "contextInfo"; + } return d; }; @@ -1181,715 +3739,841 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.AIRichResponseMessage"; }; - AIRichResponseMessage.AIRichResponseCodeMetadata = (function() { + return AIRichResponseMessage; + })(); - function AIRichResponseCodeMetadata(p) { - this.codeBlocks = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } + proto.AIRichResponseMessageType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AI_RICH_RESPONSE_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "AI_RICH_RESPONSE_TYPE_STANDARD"] = 1; + return values; + })(); - AIRichResponseCodeMetadata.prototype.codeLanguage = null; - AIRichResponseCodeMetadata.prototype.codeBlocks = $util.emptyArray; + proto.AIRichResponseSubMessage = (function() { - let $oneOfFields; + function AIRichResponseSubMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseCodeMetadata.prototype, "_codeLanguage", { - get: $util.oneOfGetter($oneOfFields = ["codeLanguage"]), - set: $util.oneOfSetter($oneOfFields) - }); + AIRichResponseSubMessage.prototype.messageType = null; + AIRichResponseSubMessage.prototype.gridImageMetadata = null; + AIRichResponseSubMessage.prototype.messageText = null; + AIRichResponseSubMessage.prototype.imageMetadata = null; + AIRichResponseSubMessage.prototype.codeMetadata = null; + AIRichResponseSubMessage.prototype.tableMetadata = null; + AIRichResponseSubMessage.prototype.dynamicMetadata = null; + AIRichResponseSubMessage.prototype.latexMetadata = null; + AIRichResponseSubMessage.prototype.mapMetadata = null; + AIRichResponseSubMessage.prototype.contentItemsMetadata = null; - AIRichResponseCodeMetadata.create = function create(properties) { - return new AIRichResponseCodeMetadata(properties); - }; + let $oneOfFields; - AIRichResponseCodeMetadata.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.codeLanguage != null && Object.hasOwnProperty.call(m, "codeLanguage")) - w.uint32(10).string(m.codeLanguage); - if (m.codeBlocks != null && m.codeBlocks.length) { - for (var i = 0; i < m.codeBlocks.length; ++i) - $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.encode(m.codeBlocks[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_messageType", { + get: $util.oneOfGetter($oneOfFields = ["messageType"]), + set: $util.oneOfSetter($oneOfFields) + }); - AIRichResponseCodeMetadata.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.codeLanguage = r.string(); - break; - } - case 2: { - if (!(m.codeBlocks && m.codeBlocks.length)) - m.codeBlocks = []; - m.codeBlocks.push($root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.decode(r, r.uint32())); - break; - } - default: - r.skipType(t & 7); + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_gridImageMetadata", { + get: $util.oneOfGetter($oneOfFields = ["gridImageMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_messageText", { + get: $util.oneOfGetter($oneOfFields = ["messageText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_imageMetadata", { + get: $util.oneOfGetter($oneOfFields = ["imageMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_codeMetadata", { + get: $util.oneOfGetter($oneOfFields = ["codeMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_tableMetadata", { + get: $util.oneOfGetter($oneOfFields = ["tableMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_dynamicMetadata", { + get: $util.oneOfGetter($oneOfFields = ["dynamicMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_latexMetadata", { + get: $util.oneOfGetter($oneOfFields = ["latexMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_mapMetadata", { + get: $util.oneOfGetter($oneOfFields = ["mapMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseSubMessage.prototype, "_contentItemsMetadata", { + get: $util.oneOfGetter($oneOfFields = ["contentItemsMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseSubMessage.create = function create(properties) { + return new AIRichResponseSubMessage(properties); + }; + + AIRichResponseSubMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.messageType != null && Object.hasOwnProperty.call(m, "messageType")) + w.uint32(8).int32(m.messageType); + if (m.gridImageMetadata != null && Object.hasOwnProperty.call(m, "gridImageMetadata")) + $root.proto.AIRichResponseGridImageMetadata.encode(m.gridImageMetadata, w.uint32(18).fork()).ldelim(); + if (m.messageText != null && Object.hasOwnProperty.call(m, "messageText")) + w.uint32(26).string(m.messageText); + if (m.imageMetadata != null && Object.hasOwnProperty.call(m, "imageMetadata")) + $root.proto.AIRichResponseInlineImageMetadata.encode(m.imageMetadata, w.uint32(34).fork()).ldelim(); + if (m.codeMetadata != null && Object.hasOwnProperty.call(m, "codeMetadata")) + $root.proto.AIRichResponseCodeMetadata.encode(m.codeMetadata, w.uint32(42).fork()).ldelim(); + if (m.tableMetadata != null && Object.hasOwnProperty.call(m, "tableMetadata")) + $root.proto.AIRichResponseTableMetadata.encode(m.tableMetadata, w.uint32(50).fork()).ldelim(); + if (m.dynamicMetadata != null && Object.hasOwnProperty.call(m, "dynamicMetadata")) + $root.proto.AIRichResponseDynamicMetadata.encode(m.dynamicMetadata, w.uint32(58).fork()).ldelim(); + if (m.latexMetadata != null && Object.hasOwnProperty.call(m, "latexMetadata")) + $root.proto.AIRichResponseLatexMetadata.encode(m.latexMetadata, w.uint32(66).fork()).ldelim(); + if (m.mapMetadata != null && Object.hasOwnProperty.call(m, "mapMetadata")) + $root.proto.AIRichResponseMapMetadata.encode(m.mapMetadata, w.uint32(74).fork()).ldelim(); + if (m.contentItemsMetadata != null && Object.hasOwnProperty.call(m, "contentItemsMetadata")) + $root.proto.AIRichResponseContentItemsMetadata.encode(m.contentItemsMetadata, w.uint32(82).fork()).ldelim(); + return w; + }; + + AIRichResponseSubMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseSubMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.messageType = r.int32(); break; } - } - return m; - }; - - AIRichResponseCodeMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata(); - if (d.codeLanguage != null) { - m.codeLanguage = String(d.codeLanguage); - } - if (d.codeBlocks) { - if (!Array.isArray(d.codeBlocks)) - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseCodeMetadata.codeBlocks: array expected"); - m.codeBlocks = []; - for (var i = 0; i < d.codeBlocks.length; ++i) { - if (typeof d.codeBlocks[i] !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseCodeMetadata.codeBlocks: object expected"); - m.codeBlocks[i] = $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.fromObject(d.codeBlocks[i]); - } - } - return m; - }; - - AIRichResponseCodeMetadata.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (o.arrays || o.defaults) { - d.codeBlocks = []; - } - if (m.codeLanguage != null && m.hasOwnProperty("codeLanguage")) { - d.codeLanguage = m.codeLanguage; - if (o.oneofs) - d._codeLanguage = "codeLanguage"; - } - if (m.codeBlocks && m.codeBlocks.length) { - d.codeBlocks = []; - for (var j = 0; j < m.codeBlocks.length; ++j) { - d.codeBlocks[j] = $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.toObject(m.codeBlocks[j], o); - } - } - return d; - }; - - AIRichResponseCodeMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseCodeMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseCodeMetadata"; - }; - - AIRichResponseCodeMetadata.AIRichResponseCodeBlock = (function() { - - function AIRichResponseCodeBlock(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseCodeBlock.prototype.highlightType = null; - AIRichResponseCodeBlock.prototype.codeContent = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseCodeBlock.prototype, "_highlightType", { - get: $util.oneOfGetter($oneOfFields = ["highlightType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseCodeBlock.prototype, "_codeContent", { - get: $util.oneOfGetter($oneOfFields = ["codeContent"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseCodeBlock.create = function create(properties) { - return new AIRichResponseCodeBlock(properties); - }; - - AIRichResponseCodeBlock.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.highlightType != null && Object.hasOwnProperty.call(m, "highlightType")) - w.uint32(8).int32(m.highlightType); - if (m.codeContent != null && Object.hasOwnProperty.call(m, "codeContent")) - w.uint32(18).string(m.codeContent); - return w; - }; - - AIRichResponseCodeBlock.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.highlightType = r.int32(); - break; - } - case 2: { - m.codeContent = r.string(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseCodeBlock.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock(); - switch (d.highlightType) { - default: - if (typeof d.highlightType === "number") { - m.highlightType = d.highlightType; - break; - } - break; - case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT": - case 0: - m.highlightType = 0; - break; - case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD": - case 1: - m.highlightType = 1; - break; - case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD": - case 2: - m.highlightType = 2; - break; - case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING": - case 3: - m.highlightType = 3; - break; - case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER": - case 4: - m.highlightType = 4; - break; - case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT": - case 5: - m.highlightType = 5; + case 2: { + m.gridImageMetadata = $root.proto.AIRichResponseGridImageMetadata.decode(r, r.uint32()); break; } - if (d.codeContent != null) { - m.codeContent = String(d.codeContent); - } - return m; - }; - - AIRichResponseCodeBlock.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.highlightType != null && m.hasOwnProperty("highlightType")) { - d.highlightType = o.enums === String ? $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType[m.highlightType] === undefined ? m.highlightType : $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType[m.highlightType] : m.highlightType; - if (o.oneofs) - d._highlightType = "highlightType"; - } - if (m.codeContent != null && m.hasOwnProperty("codeContent")) { - d.codeContent = m.codeContent; - if (o.oneofs) - d._codeContent = "codeContent"; - } - return d; - }; - - AIRichResponseCodeBlock.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseCodeBlock.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock"; - }; - - return AIRichResponseCodeBlock; - })(); - - AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT"] = 0; - values[valuesById[1] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD"] = 1; - values[valuesById[2] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD"] = 2; - values[valuesById[3] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING"] = 3; - values[valuesById[4] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER"] = 4; - values[valuesById[5] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT"] = 5; - return values; - })(); - - return AIRichResponseCodeMetadata; - })(); - - AIRichResponseMessage.AIRichResponseContentItemsMetadata = (function() { - - function AIRichResponseContentItemsMetadata(p) { - this.itemsMetadata = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseContentItemsMetadata.prototype.itemsMetadata = $util.emptyArray; - AIRichResponseContentItemsMetadata.prototype.contentType = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseContentItemsMetadata.prototype, "_contentType", { - get: $util.oneOfGetter($oneOfFields = ["contentType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseContentItemsMetadata.create = function create(properties) { - return new AIRichResponseContentItemsMetadata(properties); - }; - - AIRichResponseContentItemsMetadata.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.itemsMetadata != null && m.itemsMetadata.length) { - for (var i = 0; i < m.itemsMetadata.length; ++i) - $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.encode(m.itemsMetadata[i], w.uint32(10).fork()).ldelim(); - } - if (m.contentType != null && Object.hasOwnProperty.call(m, "contentType")) - w.uint32(16).int32(m.contentType); - return w; - }; - - AIRichResponseContentItemsMetadata.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - if (!(m.itemsMetadata && m.itemsMetadata.length)) - m.itemsMetadata = []; - m.itemsMetadata.push($root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.decode(r, r.uint32())); - break; - } - case 2: { - m.contentType = r.int32(); - break; - } - default: - r.skipType(t & 7); + case 3: { + m.messageText = r.string(); break; } - } - return m; - }; - - AIRichResponseContentItemsMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata(); - if (d.itemsMetadata) { - if (!Array.isArray(d.itemsMetadata)) - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.itemsMetadata: array expected"); - m.itemsMetadata = []; - for (var i = 0; i < d.itemsMetadata.length; ++i) { - if (typeof d.itemsMetadata[i] !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.itemsMetadata: object expected"); - m.itemsMetadata[i] = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.fromObject(d.itemsMetadata[i]); + case 4: { + m.imageMetadata = $root.proto.AIRichResponseInlineImageMetadata.decode(r, r.uint32()); + break; + } + case 5: { + m.codeMetadata = $root.proto.AIRichResponseCodeMetadata.decode(r, r.uint32()); + break; + } + case 6: { + m.tableMetadata = $root.proto.AIRichResponseTableMetadata.decode(r, r.uint32()); + break; + } + case 7: { + m.dynamicMetadata = $root.proto.AIRichResponseDynamicMetadata.decode(r, r.uint32()); + break; + } + case 8: { + m.latexMetadata = $root.proto.AIRichResponseLatexMetadata.decode(r, r.uint32()); + break; + } + case 9: { + m.mapMetadata = $root.proto.AIRichResponseMapMetadata.decode(r, r.uint32()); + break; + } + case 10: { + m.contentItemsMetadata = $root.proto.AIRichResponseContentItemsMetadata.decode(r, r.uint32()); + break; } - } - switch (d.contentType) { default: - if (typeof d.contentType === "number") { - m.contentType = d.contentType; + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseSubMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseSubMessage) + return d; + var m = new $root.proto.AIRichResponseSubMessage(); + switch (d.messageType) { + default: + if (typeof d.messageType === "number") { + m.messageType = d.messageType; + break; + } + break; + case "AI_RICH_RESPONSE_UNKNOWN": + case 0: + m.messageType = 0; + break; + case "AI_RICH_RESPONSE_GRID_IMAGE": + case 1: + m.messageType = 1; + break; + case "AI_RICH_RESPONSE_TEXT": + case 2: + m.messageType = 2; + break; + case "AI_RICH_RESPONSE_INLINE_IMAGE": + case 3: + m.messageType = 3; + break; + case "AI_RICH_RESPONSE_TABLE": + case 4: + m.messageType = 4; + break; + case "AI_RICH_RESPONSE_CODE": + case 5: + m.messageType = 5; + break; + case "AI_RICH_RESPONSE_DYNAMIC": + case 6: + m.messageType = 6; + break; + case "AI_RICH_RESPONSE_MAP": + case 7: + m.messageType = 7; + break; + case "AI_RICH_RESPONSE_LATEX": + case 8: + m.messageType = 8; + break; + case "AI_RICH_RESPONSE_CONTENT_ITEMS": + case 9: + m.messageType = 9; + break; + } + if (d.gridImageMetadata != null) { + if (typeof d.gridImageMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.gridImageMetadata: object expected"); + m.gridImageMetadata = $root.proto.AIRichResponseGridImageMetadata.fromObject(d.gridImageMetadata); + } + if (d.messageText != null) { + m.messageText = String(d.messageText); + } + if (d.imageMetadata != null) { + if (typeof d.imageMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.imageMetadata: object expected"); + m.imageMetadata = $root.proto.AIRichResponseInlineImageMetadata.fromObject(d.imageMetadata); + } + if (d.codeMetadata != null) { + if (typeof d.codeMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.codeMetadata: object expected"); + m.codeMetadata = $root.proto.AIRichResponseCodeMetadata.fromObject(d.codeMetadata); + } + if (d.tableMetadata != null) { + if (typeof d.tableMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.tableMetadata: object expected"); + m.tableMetadata = $root.proto.AIRichResponseTableMetadata.fromObject(d.tableMetadata); + } + if (d.dynamicMetadata != null) { + if (typeof d.dynamicMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.dynamicMetadata: object expected"); + m.dynamicMetadata = $root.proto.AIRichResponseDynamicMetadata.fromObject(d.dynamicMetadata); + } + if (d.latexMetadata != null) { + if (typeof d.latexMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.latexMetadata: object expected"); + m.latexMetadata = $root.proto.AIRichResponseLatexMetadata.fromObject(d.latexMetadata); + } + if (d.mapMetadata != null) { + if (typeof d.mapMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.mapMetadata: object expected"); + m.mapMetadata = $root.proto.AIRichResponseMapMetadata.fromObject(d.mapMetadata); + } + if (d.contentItemsMetadata != null) { + if (typeof d.contentItemsMetadata !== "object") + throw TypeError(".proto.AIRichResponseSubMessage.contentItemsMetadata: object expected"); + m.contentItemsMetadata = $root.proto.AIRichResponseContentItemsMetadata.fromObject(d.contentItemsMetadata); + } + return m; + }; + + AIRichResponseSubMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.messageType != null && m.hasOwnProperty("messageType")) { + d.messageType = o.enums === String ? $root.proto.AIRichResponseSubMessageType[m.messageType] === undefined ? m.messageType : $root.proto.AIRichResponseSubMessageType[m.messageType] : m.messageType; + if (o.oneofs) + d._messageType = "messageType"; + } + if (m.gridImageMetadata != null && m.hasOwnProperty("gridImageMetadata")) { + d.gridImageMetadata = $root.proto.AIRichResponseGridImageMetadata.toObject(m.gridImageMetadata, o); + if (o.oneofs) + d._gridImageMetadata = "gridImageMetadata"; + } + if (m.messageText != null && m.hasOwnProperty("messageText")) { + d.messageText = m.messageText; + if (o.oneofs) + d._messageText = "messageText"; + } + if (m.imageMetadata != null && m.hasOwnProperty("imageMetadata")) { + d.imageMetadata = $root.proto.AIRichResponseInlineImageMetadata.toObject(m.imageMetadata, o); + if (o.oneofs) + d._imageMetadata = "imageMetadata"; + } + if (m.codeMetadata != null && m.hasOwnProperty("codeMetadata")) { + d.codeMetadata = $root.proto.AIRichResponseCodeMetadata.toObject(m.codeMetadata, o); + if (o.oneofs) + d._codeMetadata = "codeMetadata"; + } + if (m.tableMetadata != null && m.hasOwnProperty("tableMetadata")) { + d.tableMetadata = $root.proto.AIRichResponseTableMetadata.toObject(m.tableMetadata, o); + if (o.oneofs) + d._tableMetadata = "tableMetadata"; + } + if (m.dynamicMetadata != null && m.hasOwnProperty("dynamicMetadata")) { + d.dynamicMetadata = $root.proto.AIRichResponseDynamicMetadata.toObject(m.dynamicMetadata, o); + if (o.oneofs) + d._dynamicMetadata = "dynamicMetadata"; + } + if (m.latexMetadata != null && m.hasOwnProperty("latexMetadata")) { + d.latexMetadata = $root.proto.AIRichResponseLatexMetadata.toObject(m.latexMetadata, o); + if (o.oneofs) + d._latexMetadata = "latexMetadata"; + } + if (m.mapMetadata != null && m.hasOwnProperty("mapMetadata")) { + d.mapMetadata = $root.proto.AIRichResponseMapMetadata.toObject(m.mapMetadata, o); + if (o.oneofs) + d._mapMetadata = "mapMetadata"; + } + if (m.contentItemsMetadata != null && m.hasOwnProperty("contentItemsMetadata")) { + d.contentItemsMetadata = $root.proto.AIRichResponseContentItemsMetadata.toObject(m.contentItemsMetadata, o); + if (o.oneofs) + d._contentItemsMetadata = "contentItemsMetadata"; + } + return d; + }; + + AIRichResponseSubMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseSubMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseSubMessage"; + }; + + return AIRichResponseSubMessage; + })(); + + proto.AIRichResponseSubMessageType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AI_RICH_RESPONSE_UNKNOWN"] = 0; + values[valuesById[1] = "AI_RICH_RESPONSE_GRID_IMAGE"] = 1; + values[valuesById[2] = "AI_RICH_RESPONSE_TEXT"] = 2; + values[valuesById[3] = "AI_RICH_RESPONSE_INLINE_IMAGE"] = 3; + values[valuesById[4] = "AI_RICH_RESPONSE_TABLE"] = 4; + values[valuesById[5] = "AI_RICH_RESPONSE_CODE"] = 5; + values[valuesById[6] = "AI_RICH_RESPONSE_DYNAMIC"] = 6; + values[valuesById[7] = "AI_RICH_RESPONSE_MAP"] = 7; + values[valuesById[8] = "AI_RICH_RESPONSE_LATEX"] = 8; + values[valuesById[9] = "AI_RICH_RESPONSE_CONTENT_ITEMS"] = 9; + return values; + })(); + + proto.AIRichResponseTableMetadata = (function() { + + function AIRichResponseTableMetadata(p) { + this.rows = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseTableMetadata.prototype.rows = $util.emptyArray; + AIRichResponseTableMetadata.prototype.title = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseTableMetadata.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseTableMetadata.create = function create(properties) { + return new AIRichResponseTableMetadata(properties); + }; + + AIRichResponseTableMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.rows != null && m.rows.length) { + for (var i = 0; i < m.rows.length; ++i) + $root.proto.AIRichResponseTableMetadata.AIRichResponseTableRow.encode(m.rows[i], w.uint32(10).fork()).ldelim(); + } + if (m.title != null && Object.hasOwnProperty.call(m, "title")) + w.uint32(18).string(m.title); + return w; + }; + + AIRichResponseTableMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseTableMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + if (!(m.rows && m.rows.length)) + m.rows = []; + m.rows.push($root.proto.AIRichResponseTableMetadata.AIRichResponseTableRow.decode(r, r.uint32())); break; } - break; - case "DEFAULT": - case 0: - m.contentType = 0; - break; - case "CAROUSEL": - case 1: - m.contentType = 1; - break; - } - return m; - }; - - AIRichResponseContentItemsMetadata.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (o.arrays || o.defaults) { - d.itemsMetadata = []; - } - if (m.itemsMetadata && m.itemsMetadata.length) { - d.itemsMetadata = []; - for (var j = 0; j < m.itemsMetadata.length; ++j) { - d.itemsMetadata[j] = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.toObject(m.itemsMetadata[j], o); + case 2: { + m.title = r.string(); + break; } + default: + r.skipType(t & 7); + break; } - if (m.contentType != null && m.hasOwnProperty("contentType")) { - d.contentType = o.enums === String ? $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType[m.contentType] === undefined ? m.contentType : $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType[m.contentType] : m.contentType; - if (o.oneofs) - d._contentType = "contentType"; - } + } + return m; + }; + + AIRichResponseTableMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseTableMetadata) return d; - }; - - AIRichResponseContentItemsMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseContentItemsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + var m = new $root.proto.AIRichResponseTableMetadata(); + if (d.rows) { + if (!Array.isArray(d.rows)) + throw TypeError(".proto.AIRichResponseTableMetadata.rows: array expected"); + m.rows = []; + for (var i = 0; i < d.rows.length; ++i) { + if (typeof d.rows[i] !== "object") + throw TypeError(".proto.AIRichResponseTableMetadata.rows: object expected"); + m.rows[i] = $root.proto.AIRichResponseTableMetadata.AIRichResponseTableRow.fromObject(d.rows[i]); } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata"; - }; + } + if (d.title != null) { + m.title = String(d.title); + } + return m; + }; - AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata = (function() { - - function AIRichResponseContentItemMetadata(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; + AIRichResponseTableMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.rows = []; + } + if (m.rows && m.rows.length) { + d.rows = []; + for (var j = 0; j < m.rows.length; ++j) { + d.rows[j] = $root.proto.AIRichResponseTableMetadata.AIRichResponseTableRow.toObject(m.rows[j], o); } + } + if (m.title != null && m.hasOwnProperty("title")) { + d.title = m.title; + if (o.oneofs) + d._title = "title"; + } + return d; + }; - AIRichResponseContentItemMetadata.prototype.reelItem = null; + AIRichResponseTableMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - let $oneOfFields; + AIRichResponseTableMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseTableMetadata"; + }; - Object.defineProperty(AIRichResponseContentItemMetadata.prototype, "aIRichResponseContentItem", { - get: $util.oneOfGetter($oneOfFields = ["reelItem"]), - set: $util.oneOfSetter($oneOfFields) - }); + AIRichResponseTableMetadata.AIRichResponseTableRow = (function() { - AIRichResponseContentItemMetadata.create = function create(properties) { - return new AIRichResponseContentItemMetadata(properties); - }; - - AIRichResponseContentItemMetadata.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.reelItem != null && Object.hasOwnProperty.call(m, "reelItem")) - $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.encode(m.reelItem, w.uint32(10).fork()).ldelim(); - return w; - }; - - AIRichResponseContentItemMetadata.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.reelItem = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.decode(r, r.uint32()); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseContentItemMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata(); - if (d.reelItem != null) { - if (typeof d.reelItem !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.reelItem: object expected"); - m.reelItem = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.fromObject(d.reelItem); - } - return m; - }; - - AIRichResponseContentItemMetadata.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.reelItem != null && m.hasOwnProperty("reelItem")) { - d.reelItem = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.toObject(m.reelItem, o); - if (o.oneofs) - d.aIRichResponseContentItem = "reelItem"; - } - return d; - }; - - AIRichResponseContentItemMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseContentItemMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata"; - }; - - return AIRichResponseContentItemMetadata; - })(); - - AIRichResponseContentItemsMetadata.AIRichResponseReelItem = (function() { - - function AIRichResponseReelItem(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseReelItem.prototype.title = null; - AIRichResponseReelItem.prototype.profileIconUrl = null; - AIRichResponseReelItem.prototype.thumbnailUrl = null; - AIRichResponseReelItem.prototype.videoUrl = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseReelItem.prototype, "_title", { - get: $util.oneOfGetter($oneOfFields = ["title"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseReelItem.prototype, "_profileIconUrl", { - get: $util.oneOfGetter($oneOfFields = ["profileIconUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseReelItem.prototype, "_thumbnailUrl", { - get: $util.oneOfGetter($oneOfFields = ["thumbnailUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseReelItem.prototype, "_videoUrl", { - get: $util.oneOfGetter($oneOfFields = ["videoUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseReelItem.create = function create(properties) { - return new AIRichResponseReelItem(properties); - }; - - AIRichResponseReelItem.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.title != null && Object.hasOwnProperty.call(m, "title")) - w.uint32(10).string(m.title); - if (m.profileIconUrl != null && Object.hasOwnProperty.call(m, "profileIconUrl")) - w.uint32(18).string(m.profileIconUrl); - if (m.thumbnailUrl != null && Object.hasOwnProperty.call(m, "thumbnailUrl")) - w.uint32(26).string(m.thumbnailUrl); - if (m.videoUrl != null && Object.hasOwnProperty.call(m, "videoUrl")) - w.uint32(34).string(m.videoUrl); - return w; - }; - - AIRichResponseReelItem.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.title = r.string(); - break; - } - case 2: { - m.profileIconUrl = r.string(); - break; - } - case 3: { - m.thumbnailUrl = r.string(); - break; - } - case 4: { - m.videoUrl = r.string(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseReelItem.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem(); - if (d.title != null) { - m.title = String(d.title); - } - if (d.profileIconUrl != null) { - m.profileIconUrl = String(d.profileIconUrl); - } - if (d.thumbnailUrl != null) { - m.thumbnailUrl = String(d.thumbnailUrl); - } - if (d.videoUrl != null) { - m.videoUrl = String(d.videoUrl); - } - return m; - }; - - AIRichResponseReelItem.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.title != null && m.hasOwnProperty("title")) { - d.title = m.title; - if (o.oneofs) - d._title = "title"; - } - if (m.profileIconUrl != null && m.hasOwnProperty("profileIconUrl")) { - d.profileIconUrl = m.profileIconUrl; - if (o.oneofs) - d._profileIconUrl = "profileIconUrl"; - } - if (m.thumbnailUrl != null && m.hasOwnProperty("thumbnailUrl")) { - d.thumbnailUrl = m.thumbnailUrl; - if (o.oneofs) - d._thumbnailUrl = "thumbnailUrl"; - } - if (m.videoUrl != null && m.hasOwnProperty("videoUrl")) { - d.videoUrl = m.videoUrl; - if (o.oneofs) - d._videoUrl = "videoUrl"; - } - return d; - }; - - AIRichResponseReelItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseReelItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem"; - }; - - return AIRichResponseReelItem; - })(); - - AIRichResponseContentItemsMetadata.ContentType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT"] = 0; - values[valuesById[1] = "CAROUSEL"] = 1; - return values; - })(); - - return AIRichResponseContentItemsMetadata; - })(); - - AIRichResponseMessage.AIRichResponseDynamicMetadata = (function() { - - function AIRichResponseDynamicMetadata(p) { + function AIRichResponseTableRow(p) { + this.items = []; if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; } - AIRichResponseDynamicMetadata.prototype.type = null; - AIRichResponseDynamicMetadata.prototype.version = null; - AIRichResponseDynamicMetadata.prototype.url = null; - AIRichResponseDynamicMetadata.prototype.loopCount = null; + AIRichResponseTableRow.prototype.items = $util.emptyArray; + AIRichResponseTableRow.prototype.isHeading = null; let $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_type", { + Object.defineProperty(AIRichResponseTableRow.prototype, "_isHeading", { + get: $util.oneOfGetter($oneOfFields = ["isHeading"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseTableRow.create = function create(properties) { + return new AIRichResponseTableRow(properties); + }; + + AIRichResponseTableRow.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.items != null && m.items.length) { + for (var i = 0; i < m.items.length; ++i) + w.uint32(10).string(m.items[i]); + } + if (m.isHeading != null && Object.hasOwnProperty.call(m, "isHeading")) + w.uint32(16).bool(m.isHeading); + return w; + }; + + AIRichResponseTableRow.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseTableMetadata.AIRichResponseTableRow(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + if (!(m.items && m.items.length)) + m.items = []; + m.items.push(r.string()); + break; + } + case 2: { + m.isHeading = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseTableRow.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseTableMetadata.AIRichResponseTableRow) + return d; + var m = new $root.proto.AIRichResponseTableMetadata.AIRichResponseTableRow(); + if (d.items) { + if (!Array.isArray(d.items)) + throw TypeError(".proto.AIRichResponseTableMetadata.AIRichResponseTableRow.items: array expected"); + m.items = []; + for (var i = 0; i < d.items.length; ++i) { + m.items[i] = String(d.items[i]); + } + } + if (d.isHeading != null) { + m.isHeading = Boolean(d.isHeading); + } + return m; + }; + + AIRichResponseTableRow.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.items = []; + } + if (m.items && m.items.length) { + d.items = []; + for (var j = 0; j < m.items.length; ++j) { + d.items[j] = m.items[j]; + } + } + if (m.isHeading != null && m.hasOwnProperty("isHeading")) { + d.isHeading = m.isHeading; + if (o.oneofs) + d._isHeading = "isHeading"; + } + return d; + }; + + AIRichResponseTableRow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseTableRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseTableMetadata.AIRichResponseTableRow"; + }; + + return AIRichResponseTableRow; + })(); + + return AIRichResponseTableMetadata; + })(); + + proto.AIRichResponseUnifiedResponse = (function() { + + function AIRichResponseUnifiedResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIRichResponseUnifiedResponse.prototype.data = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIRichResponseUnifiedResponse.prototype, "_data", { + get: $util.oneOfGetter($oneOfFields = ["data"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIRichResponseUnifiedResponse.create = function create(properties) { + return new AIRichResponseUnifiedResponse(properties); + }; + + AIRichResponseUnifiedResponse.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) + w.uint32(10).bytes(m.data); + return w; + }; + + AIRichResponseUnifiedResponse.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseUnifiedResponse(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.data = r.bytes(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIRichResponseUnifiedResponse.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIRichResponseUnifiedResponse) + return d; + var m = new $root.proto.AIRichResponseUnifiedResponse(); + if (d.data != null) { + if (typeof d.data === "string") + $util.base64.decode(d.data, m.data = $util.newBuffer($util.base64.length(d.data)), 0); + else if (d.data.length >= 0) + m.data = d.data; + } + return m; + }; + + AIRichResponseUnifiedResponse.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.data != null && m.hasOwnProperty("data")) { + d.data = o.bytes === String ? $util.base64.encode(m.data, 0, m.data.length) : o.bytes === Array ? Array.prototype.slice.call(m.data) : m.data; + if (o.oneofs) + d._data = "data"; + } + return d; + }; + + AIRichResponseUnifiedResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIRichResponseUnifiedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIRichResponseUnifiedResponse"; + }; + + return AIRichResponseUnifiedResponse; + })(); + + proto.AIThreadInfo = (function() { + + function AIThreadInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIThreadInfo.prototype.serverInfo = null; + AIThreadInfo.prototype.clientInfo = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIThreadInfo.prototype, "_serverInfo", { + get: $util.oneOfGetter($oneOfFields = ["serverInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIThreadInfo.prototype, "_clientInfo", { + get: $util.oneOfGetter($oneOfFields = ["clientInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AIThreadInfo.create = function create(properties) { + return new AIThreadInfo(properties); + }; + + AIThreadInfo.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.serverInfo != null && Object.hasOwnProperty.call(m, "serverInfo")) + $root.proto.AIThreadInfo.AIThreadServerInfo.encode(m.serverInfo, w.uint32(10).fork()).ldelim(); + if (m.clientInfo != null && Object.hasOwnProperty.call(m, "clientInfo")) + $root.proto.AIThreadInfo.AIThreadClientInfo.encode(m.clientInfo, w.uint32(18).fork()).ldelim(); + return w; + }; + + AIThreadInfo.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIThreadInfo(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.serverInfo = $root.proto.AIThreadInfo.AIThreadServerInfo.decode(r, r.uint32()); + break; + } + case 2: { + m.clientInfo = $root.proto.AIThreadInfo.AIThreadClientInfo.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AIThreadInfo.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIThreadInfo) + return d; + var m = new $root.proto.AIThreadInfo(); + if (d.serverInfo != null) { + if (typeof d.serverInfo !== "object") + throw TypeError(".proto.AIThreadInfo.serverInfo: object expected"); + m.serverInfo = $root.proto.AIThreadInfo.AIThreadServerInfo.fromObject(d.serverInfo); + } + if (d.clientInfo != null) { + if (typeof d.clientInfo !== "object") + throw TypeError(".proto.AIThreadInfo.clientInfo: object expected"); + m.clientInfo = $root.proto.AIThreadInfo.AIThreadClientInfo.fromObject(d.clientInfo); + } + return m; + }; + + AIThreadInfo.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.serverInfo != null && m.hasOwnProperty("serverInfo")) { + d.serverInfo = $root.proto.AIThreadInfo.AIThreadServerInfo.toObject(m.serverInfo, o); + if (o.oneofs) + d._serverInfo = "serverInfo"; + } + if (m.clientInfo != null && m.hasOwnProperty("clientInfo")) { + d.clientInfo = $root.proto.AIThreadInfo.AIThreadClientInfo.toObject(m.clientInfo, o); + if (o.oneofs) + d._clientInfo = "clientInfo"; + } + return d; + }; + + AIThreadInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AIThreadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.AIThreadInfo"; + }; + + AIThreadInfo.AIThreadClientInfo = (function() { + + function AIThreadClientInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AIThreadClientInfo.prototype.type = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AIThreadClientInfo.prototype, "_type", { get: $util.oneOfGetter($oneOfFields = ["type"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_version", { - get: $util.oneOfGetter($oneOfFields = ["version"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_url", { - get: $util.oneOfGetter($oneOfFields = ["url"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseDynamicMetadata.prototype, "_loopCount", { - get: $util.oneOfGetter($oneOfFields = ["loopCount"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseDynamicMetadata.create = function create(properties) { - return new AIRichResponseDynamicMetadata(properties); + AIThreadClientInfo.create = function create(properties) { + return new AIThreadClientInfo(properties); }; - AIRichResponseDynamicMetadata.encode = function encode(m, w) { + AIThreadClientInfo.encode = function encode(m, w) { if (!w) w = $Writer.create(); if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(8).int32(m.type); - if (m.version != null && Object.hasOwnProperty.call(m, "version")) - w.uint32(16).uint64(m.version); - if (m.url != null && Object.hasOwnProperty.call(m, "url")) - w.uint32(26).string(m.url); - if (m.loopCount != null && Object.hasOwnProperty.call(m, "loopCount")) - w.uint32(32).uint32(m.loopCount); return w; }; - AIRichResponseDynamicMetadata.decode = function decode(r, l, e) { + AIThreadClientInfo.decode = function decode(r, l, e) { if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata(); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIThreadInfo.AIThreadClientInfo(); while (r.pos < c) { var t = r.uint32(); if (t === e) @@ -1899,18 +4583,6 @@ export const proto = $root.proto = (() => { m.type = r.int32(); break; } - case 2: { - m.version = r.uint64(); - break; - } - case 3: { - m.url = r.string(); - break; - } - case 4: { - m.loopCount = r.uint32(); - break; - } default: r.skipType(t & 7); break; @@ -1919,10 +4591,10 @@ export const proto = $root.proto = (() => { return m; }; - AIRichResponseDynamicMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata) + AIThreadClientInfo.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIThreadInfo.AIThreadClientInfo) return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata(); + var m = new $root.proto.AIThreadInfo.AIThreadClientInfo(); switch (d.type) { default: if (typeof d.type === "number") { @@ -1930,144 +4602,98 @@ export const proto = $root.proto = (() => { break; } break; - case "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN": + case "UNKNOWN": case 0: m.type = 0; break; - case "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE": + case "DEFAULT": case 1: m.type = 1; break; - case "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF": + case "INCOGNITO": case 2: m.type = 2; break; } - if (d.version != null) { - if ($util.Long) - (m.version = $util.Long.fromValue(d.version)).unsigned = true; - else if (typeof d.version === "string") - m.version = parseInt(d.version, 10); - else if (typeof d.version === "number") - m.version = d.version; - else if (typeof d.version === "object") - m.version = new $util.LongBits(d.version.low >>> 0, d.version.high >>> 0).toNumber(true); - } - if (d.url != null) { - m.url = String(d.url); - } - if (d.loopCount != null) { - m.loopCount = d.loopCount >>> 0; - } return m; }; - AIRichResponseDynamicMetadata.toObject = function toObject(m, o) { + AIThreadClientInfo.toObject = function toObject(m, o) { if (!o) o = {}; var d = {}; if (m.type != null && m.hasOwnProperty("type")) { - d.type = o.enums === String ? $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType[m.type] === undefined ? m.type : $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType[m.type] : m.type; + d.type = o.enums === String ? $root.proto.AIThreadInfo.AIThreadClientInfo.AIThreadType[m.type] === undefined ? m.type : $root.proto.AIThreadInfo.AIThreadClientInfo.AIThreadType[m.type] : m.type; if (o.oneofs) d._type = "type"; } - if (m.version != null && m.hasOwnProperty("version")) { - if (typeof m.version === "number") - d.version = o.longs === String ? String(m.version) : m.version; - else - d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version; - if (o.oneofs) - d._version = "version"; - } - if (m.url != null && m.hasOwnProperty("url")) { - d.url = m.url; - if (o.oneofs) - d._url = "url"; - } - if (m.loopCount != null && m.hasOwnProperty("loopCount")) { - d.loopCount = m.loopCount; - if (o.oneofs) - d._loopCount = "loopCount"; - } return d; }; - AIRichResponseDynamicMetadata.prototype.toJSON = function toJSON() { + AIThreadClientInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - AIRichResponseDynamicMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AIThreadClientInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseDynamicMetadata"; + return typeUrlPrefix + "/proto.AIThreadInfo.AIThreadClientInfo"; }; - AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType = (function() { + AIThreadClientInfo.AIThreadType = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE"] = 1; - values[valuesById[2] = "AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF"] = 2; + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "DEFAULT"] = 1; + values[valuesById[2] = "INCOGNITO"] = 2; return values; })(); - return AIRichResponseDynamicMetadata; + return AIThreadClientInfo; })(); - AIRichResponseMessage.AIRichResponseGridImageMetadata = (function() { + AIThreadInfo.AIThreadServerInfo = (function() { - function AIRichResponseGridImageMetadata(p) { - this.imageUrls = []; + function AIThreadServerInfo(p) { if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; } - AIRichResponseGridImageMetadata.prototype.gridImageUrl = null; - AIRichResponseGridImageMetadata.prototype.imageUrls = $util.emptyArray; + AIThreadServerInfo.prototype.title = null; let $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseGridImageMetadata.prototype, "_gridImageUrl", { - get: $util.oneOfGetter($oneOfFields = ["gridImageUrl"]), + Object.defineProperty(AIThreadServerInfo.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), set: $util.oneOfSetter($oneOfFields) }); - AIRichResponseGridImageMetadata.create = function create(properties) { - return new AIRichResponseGridImageMetadata(properties); + AIThreadServerInfo.create = function create(properties) { + return new AIThreadServerInfo(properties); }; - AIRichResponseGridImageMetadata.encode = function encode(m, w) { + AIThreadServerInfo.encode = function encode(m, w) { if (!w) w = $Writer.create(); - if (m.gridImageUrl != null && Object.hasOwnProperty.call(m, "gridImageUrl")) - $root.proto.AIRichResponseMessage.AIRichResponseImageURL.encode(m.gridImageUrl, w.uint32(10).fork()).ldelim(); - if (m.imageUrls != null && m.imageUrls.length) { - for (var i = 0; i < m.imageUrls.length; ++i) - $root.proto.AIRichResponseMessage.AIRichResponseImageURL.encode(m.imageUrls[i], w.uint32(18).fork()).ldelim(); - } + if (m.title != null && Object.hasOwnProperty.call(m, "title")) + w.uint32(10).string(m.title); return w; }; - AIRichResponseGridImageMetadata.decode = function decode(r, l, e) { + AIThreadServerInfo.decode = function decode(r, l, e) { if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseGridImageMetadata(); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIThreadInfo.AIThreadServerInfo(); while (r.pos < c) { var t = r.uint32(); if (t === e) break; switch (t >>> 3) { case 1: { - m.gridImageUrl = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.decode(r, r.uint32()); - break; - } - case 2: { - if (!(m.imageUrls && m.imageUrls.length)) - m.imageUrls = []; - m.imageUrls.push($root.proto.AIRichResponseMessage.AIRichResponseImageURL.decode(r, r.uint32())); + m.title = r.string(); break; } default: @@ -2078,1786 +4704,43 @@ export const proto = $root.proto = (() => { return m; }; - AIRichResponseGridImageMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseGridImageMetadata) + AIThreadServerInfo.fromObject = function fromObject(d) { + if (d instanceof $root.proto.AIThreadInfo.AIThreadServerInfo) return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseGridImageMetadata(); - if (d.gridImageUrl != null) { - if (typeof d.gridImageUrl !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.gridImageUrl: object expected"); - m.gridImageUrl = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.fromObject(d.gridImageUrl); - } - if (d.imageUrls) { - if (!Array.isArray(d.imageUrls)) - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.imageUrls: array expected"); - m.imageUrls = []; - for (var i = 0; i < d.imageUrls.length; ++i) { - if (typeof d.imageUrls[i] !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.imageUrls: object expected"); - m.imageUrls[i] = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.fromObject(d.imageUrls[i]); - } + var m = new $root.proto.AIThreadInfo.AIThreadServerInfo(); + if (d.title != null) { + m.title = String(d.title); } return m; }; - AIRichResponseGridImageMetadata.toObject = function toObject(m, o) { + AIThreadServerInfo.toObject = function toObject(m, o) { if (!o) o = {}; var d = {}; - if (o.arrays || o.defaults) { - d.imageUrls = []; - } - if (m.gridImageUrl != null && m.hasOwnProperty("gridImageUrl")) { - d.gridImageUrl = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.toObject(m.gridImageUrl, o); + if (m.title != null && m.hasOwnProperty("title")) { + d.title = m.title; if (o.oneofs) - d._gridImageUrl = "gridImageUrl"; - } - if (m.imageUrls && m.imageUrls.length) { - d.imageUrls = []; - for (var j = 0; j < m.imageUrls.length; ++j) { - d.imageUrls[j] = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.toObject(m.imageUrls[j], o); - } + d._title = "title"; } return d; }; - AIRichResponseGridImageMetadata.prototype.toJSON = function toJSON() { + AIThreadServerInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - AIRichResponseGridImageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AIThreadServerInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseGridImageMetadata"; + return typeUrlPrefix + "/proto.AIThreadInfo.AIThreadServerInfo"; }; - return AIRichResponseGridImageMetadata; + return AIThreadServerInfo; })(); - AIRichResponseMessage.AIRichResponseImageURL = (function() { - - function AIRichResponseImageURL(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseImageURL.prototype.imagePreviewUrl = null; - AIRichResponseImageURL.prototype.imageHighResUrl = null; - AIRichResponseImageURL.prototype.sourceUrl = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseImageURL.prototype, "_imagePreviewUrl", { - get: $util.oneOfGetter($oneOfFields = ["imagePreviewUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseImageURL.prototype, "_imageHighResUrl", { - get: $util.oneOfGetter($oneOfFields = ["imageHighResUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseImageURL.prototype, "_sourceUrl", { - get: $util.oneOfGetter($oneOfFields = ["sourceUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseImageURL.create = function create(properties) { - return new AIRichResponseImageURL(properties); - }; - - AIRichResponseImageURL.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.imagePreviewUrl != null && Object.hasOwnProperty.call(m, "imagePreviewUrl")) - w.uint32(10).string(m.imagePreviewUrl); - if (m.imageHighResUrl != null && Object.hasOwnProperty.call(m, "imageHighResUrl")) - w.uint32(18).string(m.imageHighResUrl); - if (m.sourceUrl != null && Object.hasOwnProperty.call(m, "sourceUrl")) - w.uint32(26).string(m.sourceUrl); - return w; - }; - - AIRichResponseImageURL.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseImageURL(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.imagePreviewUrl = r.string(); - break; - } - case 2: { - m.imageHighResUrl = r.string(); - break; - } - case 3: { - m.sourceUrl = r.string(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseImageURL.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseImageURL) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseImageURL(); - if (d.imagePreviewUrl != null) { - m.imagePreviewUrl = String(d.imagePreviewUrl); - } - if (d.imageHighResUrl != null) { - m.imageHighResUrl = String(d.imageHighResUrl); - } - if (d.sourceUrl != null) { - m.sourceUrl = String(d.sourceUrl); - } - return m; - }; - - AIRichResponseImageURL.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.imagePreviewUrl != null && m.hasOwnProperty("imagePreviewUrl")) { - d.imagePreviewUrl = m.imagePreviewUrl; - if (o.oneofs) - d._imagePreviewUrl = "imagePreviewUrl"; - } - if (m.imageHighResUrl != null && m.hasOwnProperty("imageHighResUrl")) { - d.imageHighResUrl = m.imageHighResUrl; - if (o.oneofs) - d._imageHighResUrl = "imageHighResUrl"; - } - if (m.sourceUrl != null && m.hasOwnProperty("sourceUrl")) { - d.sourceUrl = m.sourceUrl; - if (o.oneofs) - d._sourceUrl = "sourceUrl"; - } - return d; - }; - - AIRichResponseImageURL.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseImageURL.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseImageURL"; - }; - - return AIRichResponseImageURL; - })(); - - AIRichResponseMessage.AIRichResponseInlineImageMetadata = (function() { - - function AIRichResponseInlineImageMetadata(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseInlineImageMetadata.prototype.imageUrl = null; - AIRichResponseInlineImageMetadata.prototype.imageText = null; - AIRichResponseInlineImageMetadata.prototype.alignment = null; - AIRichResponseInlineImageMetadata.prototype.tapLinkUrl = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_imageUrl", { - get: $util.oneOfGetter($oneOfFields = ["imageUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_imageText", { - get: $util.oneOfGetter($oneOfFields = ["imageText"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_alignment", { - get: $util.oneOfGetter($oneOfFields = ["alignment"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseInlineImageMetadata.prototype, "_tapLinkUrl", { - get: $util.oneOfGetter($oneOfFields = ["tapLinkUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseInlineImageMetadata.create = function create(properties) { - return new AIRichResponseInlineImageMetadata(properties); - }; - - AIRichResponseInlineImageMetadata.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.imageUrl != null && Object.hasOwnProperty.call(m, "imageUrl")) - $root.proto.AIRichResponseMessage.AIRichResponseImageURL.encode(m.imageUrl, w.uint32(10).fork()).ldelim(); - if (m.imageText != null && Object.hasOwnProperty.call(m, "imageText")) - w.uint32(18).string(m.imageText); - if (m.alignment != null && Object.hasOwnProperty.call(m, "alignment")) - w.uint32(24).int32(m.alignment); - if (m.tapLinkUrl != null && Object.hasOwnProperty.call(m, "tapLinkUrl")) - w.uint32(34).string(m.tapLinkUrl); - return w; - }; - - AIRichResponseInlineImageMetadata.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.imageUrl = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.decode(r, r.uint32()); - break; - } - case 2: { - m.imageText = r.string(); - break; - } - case 3: { - m.alignment = r.int32(); - break; - } - case 4: { - m.tapLinkUrl = r.string(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseInlineImageMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata(); - if (d.imageUrl != null) { - if (typeof d.imageUrl !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.imageUrl: object expected"); - m.imageUrl = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.fromObject(d.imageUrl); - } - if (d.imageText != null) { - m.imageText = String(d.imageText); - } - switch (d.alignment) { - default: - if (typeof d.alignment === "number") { - m.alignment = d.alignment; - break; - } - break; - case "AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED": - case 0: - m.alignment = 0; - break; - case "AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED": - case 1: - m.alignment = 1; - break; - case "AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED": - case 2: - m.alignment = 2; - break; - } - if (d.tapLinkUrl != null) { - m.tapLinkUrl = String(d.tapLinkUrl); - } - return m; - }; - - AIRichResponseInlineImageMetadata.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.imageUrl != null && m.hasOwnProperty("imageUrl")) { - d.imageUrl = $root.proto.AIRichResponseMessage.AIRichResponseImageURL.toObject(m.imageUrl, o); - if (o.oneofs) - d._imageUrl = "imageUrl"; - } - if (m.imageText != null && m.hasOwnProperty("imageText")) { - d.imageText = m.imageText; - if (o.oneofs) - d._imageText = "imageText"; - } - if (m.alignment != null && m.hasOwnProperty("alignment")) { - d.alignment = o.enums === String ? $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment[m.alignment] === undefined ? m.alignment : $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment[m.alignment] : m.alignment; - if (o.oneofs) - d._alignment = "alignment"; - } - if (m.tapLinkUrl != null && m.hasOwnProperty("tapLinkUrl")) { - d.tapLinkUrl = m.tapLinkUrl; - if (o.oneofs) - d._tapLinkUrl = "tapLinkUrl"; - } - return d; - }; - - AIRichResponseInlineImageMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseInlineImageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata"; - }; - - AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED"] = 0; - values[valuesById[1] = "AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED"] = 1; - values[valuesById[2] = "AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED"] = 2; - return values; - })(); - - return AIRichResponseInlineImageMetadata; - })(); - - AIRichResponseMessage.AIRichResponseLatexMetadata = (function() { - - function AIRichResponseLatexMetadata(p) { - this.expressions = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseLatexMetadata.prototype.text = null; - AIRichResponseLatexMetadata.prototype.expressions = $util.emptyArray; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexMetadata.prototype, "_text", { - get: $util.oneOfGetter($oneOfFields = ["text"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseLatexMetadata.create = function create(properties) { - return new AIRichResponseLatexMetadata(properties); - }; - - AIRichResponseLatexMetadata.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.text != null && Object.hasOwnProperty.call(m, "text")) - w.uint32(10).string(m.text); - if (m.expressions != null && m.expressions.length) { - for (var i = 0; i < m.expressions.length; ++i) - $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.encode(m.expressions[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - - AIRichResponseLatexMetadata.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.text = r.string(); - break; - } - case 2: { - if (!(m.expressions && m.expressions.length)) - m.expressions = []; - m.expressions.push($root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.decode(r, r.uint32())); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseLatexMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata(); - if (d.text != null) { - m.text = String(d.text); - } - if (d.expressions) { - if (!Array.isArray(d.expressions)) - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseLatexMetadata.expressions: array expected"); - m.expressions = []; - for (var i = 0; i < d.expressions.length; ++i) { - if (typeof d.expressions[i] !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseLatexMetadata.expressions: object expected"); - m.expressions[i] = $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.fromObject(d.expressions[i]); - } - } - return m; - }; - - AIRichResponseLatexMetadata.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (o.arrays || o.defaults) { - d.expressions = []; - } - if (m.text != null && m.hasOwnProperty("text")) { - d.text = m.text; - if (o.oneofs) - d._text = "text"; - } - if (m.expressions && m.expressions.length) { - d.expressions = []; - for (var j = 0; j < m.expressions.length; ++j) { - d.expressions[j] = $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression.toObject(m.expressions[j], o); - } - } - return d; - }; - - AIRichResponseLatexMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseLatexMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseLatexMetadata"; - }; - - AIRichResponseLatexMetadata.AIRichResponseLatexExpression = (function() { - - function AIRichResponseLatexExpression(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseLatexExpression.prototype.latexExpression = null; - AIRichResponseLatexExpression.prototype.url = null; - AIRichResponseLatexExpression.prototype.width = null; - AIRichResponseLatexExpression.prototype.height = null; - AIRichResponseLatexExpression.prototype.fontHeight = null; - AIRichResponseLatexExpression.prototype.imageTopPadding = null; - AIRichResponseLatexExpression.prototype.imageLeadingPadding = null; - AIRichResponseLatexExpression.prototype.imageBottomPadding = null; - AIRichResponseLatexExpression.prototype.imageTrailingPadding = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_latexExpression", { - get: $util.oneOfGetter($oneOfFields = ["latexExpression"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_url", { - get: $util.oneOfGetter($oneOfFields = ["url"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_width", { - get: $util.oneOfGetter($oneOfFields = ["width"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_height", { - get: $util.oneOfGetter($oneOfFields = ["height"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_fontHeight", { - get: $util.oneOfGetter($oneOfFields = ["fontHeight"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageTopPadding", { - get: $util.oneOfGetter($oneOfFields = ["imageTopPadding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageLeadingPadding", { - get: $util.oneOfGetter($oneOfFields = ["imageLeadingPadding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageBottomPadding", { - get: $util.oneOfGetter($oneOfFields = ["imageBottomPadding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseLatexExpression.prototype, "_imageTrailingPadding", { - get: $util.oneOfGetter($oneOfFields = ["imageTrailingPadding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseLatexExpression.create = function create(properties) { - return new AIRichResponseLatexExpression(properties); - }; - - AIRichResponseLatexExpression.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.latexExpression != null && Object.hasOwnProperty.call(m, "latexExpression")) - w.uint32(10).string(m.latexExpression); - if (m.url != null && Object.hasOwnProperty.call(m, "url")) - w.uint32(18).string(m.url); - if (m.width != null && Object.hasOwnProperty.call(m, "width")) - w.uint32(25).double(m.width); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) - w.uint32(33).double(m.height); - if (m.fontHeight != null && Object.hasOwnProperty.call(m, "fontHeight")) - w.uint32(41).double(m.fontHeight); - if (m.imageTopPadding != null && Object.hasOwnProperty.call(m, "imageTopPadding")) - w.uint32(49).double(m.imageTopPadding); - if (m.imageLeadingPadding != null && Object.hasOwnProperty.call(m, "imageLeadingPadding")) - w.uint32(57).double(m.imageLeadingPadding); - if (m.imageBottomPadding != null && Object.hasOwnProperty.call(m, "imageBottomPadding")) - w.uint32(65).double(m.imageBottomPadding); - if (m.imageTrailingPadding != null && Object.hasOwnProperty.call(m, "imageTrailingPadding")) - w.uint32(73).double(m.imageTrailingPadding); - return w; - }; - - AIRichResponseLatexExpression.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.latexExpression = r.string(); - break; - } - case 2: { - m.url = r.string(); - break; - } - case 3: { - m.width = r.double(); - break; - } - case 4: { - m.height = r.double(); - break; - } - case 5: { - m.fontHeight = r.double(); - break; - } - case 6: { - m.imageTopPadding = r.double(); - break; - } - case 7: { - m.imageLeadingPadding = r.double(); - break; - } - case 8: { - m.imageBottomPadding = r.double(); - break; - } - case 9: { - m.imageTrailingPadding = r.double(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseLatexExpression.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression(); - if (d.latexExpression != null) { - m.latexExpression = String(d.latexExpression); - } - if (d.url != null) { - m.url = String(d.url); - } - if (d.width != null) { - m.width = Number(d.width); - } - if (d.height != null) { - m.height = Number(d.height); - } - if (d.fontHeight != null) { - m.fontHeight = Number(d.fontHeight); - } - if (d.imageTopPadding != null) { - m.imageTopPadding = Number(d.imageTopPadding); - } - if (d.imageLeadingPadding != null) { - m.imageLeadingPadding = Number(d.imageLeadingPadding); - } - if (d.imageBottomPadding != null) { - m.imageBottomPadding = Number(d.imageBottomPadding); - } - if (d.imageTrailingPadding != null) { - m.imageTrailingPadding = Number(d.imageTrailingPadding); - } - return m; - }; - - AIRichResponseLatexExpression.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.latexExpression != null && m.hasOwnProperty("latexExpression")) { - d.latexExpression = m.latexExpression; - if (o.oneofs) - d._latexExpression = "latexExpression"; - } - if (m.url != null && m.hasOwnProperty("url")) { - d.url = m.url; - if (o.oneofs) - d._url = "url"; - } - if (m.width != null && m.hasOwnProperty("width")) { - d.width = o.json && !isFinite(m.width) ? String(m.width) : m.width; - if (o.oneofs) - d._width = "width"; - } - if (m.height != null && m.hasOwnProperty("height")) { - d.height = o.json && !isFinite(m.height) ? String(m.height) : m.height; - if (o.oneofs) - d._height = "height"; - } - if (m.fontHeight != null && m.hasOwnProperty("fontHeight")) { - d.fontHeight = o.json && !isFinite(m.fontHeight) ? String(m.fontHeight) : m.fontHeight; - if (o.oneofs) - d._fontHeight = "fontHeight"; - } - if (m.imageTopPadding != null && m.hasOwnProperty("imageTopPadding")) { - d.imageTopPadding = o.json && !isFinite(m.imageTopPadding) ? String(m.imageTopPadding) : m.imageTopPadding; - if (o.oneofs) - d._imageTopPadding = "imageTopPadding"; - } - if (m.imageLeadingPadding != null && m.hasOwnProperty("imageLeadingPadding")) { - d.imageLeadingPadding = o.json && !isFinite(m.imageLeadingPadding) ? String(m.imageLeadingPadding) : m.imageLeadingPadding; - if (o.oneofs) - d._imageLeadingPadding = "imageLeadingPadding"; - } - if (m.imageBottomPadding != null && m.hasOwnProperty("imageBottomPadding")) { - d.imageBottomPadding = o.json && !isFinite(m.imageBottomPadding) ? String(m.imageBottomPadding) : m.imageBottomPadding; - if (o.oneofs) - d._imageBottomPadding = "imageBottomPadding"; - } - if (m.imageTrailingPadding != null && m.hasOwnProperty("imageTrailingPadding")) { - d.imageTrailingPadding = o.json && !isFinite(m.imageTrailingPadding) ? String(m.imageTrailingPadding) : m.imageTrailingPadding; - if (o.oneofs) - d._imageTrailingPadding = "imageTrailingPadding"; - } - return d; - }; - - AIRichResponseLatexExpression.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseLatexExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseLatexMetadata.AIRichResponseLatexExpression"; - }; - - return AIRichResponseLatexExpression; - })(); - - return AIRichResponseLatexMetadata; - })(); - - AIRichResponseMessage.AIRichResponseMapMetadata = (function() { - - function AIRichResponseMapMetadata(p) { - this.annotations = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseMapMetadata.prototype.centerLatitude = null; - AIRichResponseMapMetadata.prototype.centerLongitude = null; - AIRichResponseMapMetadata.prototype.latitudeDelta = null; - AIRichResponseMapMetadata.prototype.longitudeDelta = null; - AIRichResponseMapMetadata.prototype.annotations = $util.emptyArray; - AIRichResponseMapMetadata.prototype.showInfoList = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapMetadata.prototype, "_centerLatitude", { - get: $util.oneOfGetter($oneOfFields = ["centerLatitude"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapMetadata.prototype, "_centerLongitude", { - get: $util.oneOfGetter($oneOfFields = ["centerLongitude"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapMetadata.prototype, "_latitudeDelta", { - get: $util.oneOfGetter($oneOfFields = ["latitudeDelta"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapMetadata.prototype, "_longitudeDelta", { - get: $util.oneOfGetter($oneOfFields = ["longitudeDelta"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapMetadata.prototype, "_showInfoList", { - get: $util.oneOfGetter($oneOfFields = ["showInfoList"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseMapMetadata.create = function create(properties) { - return new AIRichResponseMapMetadata(properties); - }; - - AIRichResponseMapMetadata.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.centerLatitude != null && Object.hasOwnProperty.call(m, "centerLatitude")) - w.uint32(9).double(m.centerLatitude); - if (m.centerLongitude != null && Object.hasOwnProperty.call(m, "centerLongitude")) - w.uint32(17).double(m.centerLongitude); - if (m.latitudeDelta != null && Object.hasOwnProperty.call(m, "latitudeDelta")) - w.uint32(25).double(m.latitudeDelta); - if (m.longitudeDelta != null && Object.hasOwnProperty.call(m, "longitudeDelta")) - w.uint32(33).double(m.longitudeDelta); - if (m.annotations != null && m.annotations.length) { - for (var i = 0; i < m.annotations.length; ++i) - $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.encode(m.annotations[i], w.uint32(42).fork()).ldelim(); - } - if (m.showInfoList != null && Object.hasOwnProperty.call(m, "showInfoList")) - w.uint32(48).bool(m.showInfoList); - return w; - }; - - AIRichResponseMapMetadata.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.centerLatitude = r.double(); - break; - } - case 2: { - m.centerLongitude = r.double(); - break; - } - case 3: { - m.latitudeDelta = r.double(); - break; - } - case 4: { - m.longitudeDelta = r.double(); - break; - } - case 5: { - if (!(m.annotations && m.annotations.length)) - m.annotations = []; - m.annotations.push($root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.decode(r, r.uint32())); - break; - } - case 6: { - m.showInfoList = r.bool(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseMapMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata(); - if (d.centerLatitude != null) { - m.centerLatitude = Number(d.centerLatitude); - } - if (d.centerLongitude != null) { - m.centerLongitude = Number(d.centerLongitude); - } - if (d.latitudeDelta != null) { - m.latitudeDelta = Number(d.latitudeDelta); - } - if (d.longitudeDelta != null) { - m.longitudeDelta = Number(d.longitudeDelta); - } - if (d.annotations) { - if (!Array.isArray(d.annotations)) - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseMapMetadata.annotations: array expected"); - m.annotations = []; - for (var i = 0; i < d.annotations.length; ++i) { - if (typeof d.annotations[i] !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseMapMetadata.annotations: object expected"); - m.annotations[i] = $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.fromObject(d.annotations[i]); - } - } - if (d.showInfoList != null) { - m.showInfoList = Boolean(d.showInfoList); - } - return m; - }; - - AIRichResponseMapMetadata.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (o.arrays || o.defaults) { - d.annotations = []; - } - if (m.centerLatitude != null && m.hasOwnProperty("centerLatitude")) { - d.centerLatitude = o.json && !isFinite(m.centerLatitude) ? String(m.centerLatitude) : m.centerLatitude; - if (o.oneofs) - d._centerLatitude = "centerLatitude"; - } - if (m.centerLongitude != null && m.hasOwnProperty("centerLongitude")) { - d.centerLongitude = o.json && !isFinite(m.centerLongitude) ? String(m.centerLongitude) : m.centerLongitude; - if (o.oneofs) - d._centerLongitude = "centerLongitude"; - } - if (m.latitudeDelta != null && m.hasOwnProperty("latitudeDelta")) { - d.latitudeDelta = o.json && !isFinite(m.latitudeDelta) ? String(m.latitudeDelta) : m.latitudeDelta; - if (o.oneofs) - d._latitudeDelta = "latitudeDelta"; - } - if (m.longitudeDelta != null && m.hasOwnProperty("longitudeDelta")) { - d.longitudeDelta = o.json && !isFinite(m.longitudeDelta) ? String(m.longitudeDelta) : m.longitudeDelta; - if (o.oneofs) - d._longitudeDelta = "longitudeDelta"; - } - if (m.annotations && m.annotations.length) { - d.annotations = []; - for (var j = 0; j < m.annotations.length; ++j) { - d.annotations[j] = $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.toObject(m.annotations[j], o); - } - } - if (m.showInfoList != null && m.hasOwnProperty("showInfoList")) { - d.showInfoList = m.showInfoList; - if (o.oneofs) - d._showInfoList = "showInfoList"; - } - return d; - }; - - AIRichResponseMapMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseMapMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseMapMetadata"; - }; - - AIRichResponseMapMetadata.AIRichResponseMapAnnotation = (function() { - - function AIRichResponseMapAnnotation(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseMapAnnotation.prototype.annotationNumber = null; - AIRichResponseMapAnnotation.prototype.latitude = null; - AIRichResponseMapAnnotation.prototype.longitude = null; - AIRichResponseMapAnnotation.prototype.title = null; - AIRichResponseMapAnnotation.prototype.body = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_annotationNumber", { - get: $util.oneOfGetter($oneOfFields = ["annotationNumber"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_latitude", { - get: $util.oneOfGetter($oneOfFields = ["latitude"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_longitude", { - get: $util.oneOfGetter($oneOfFields = ["longitude"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_title", { - get: $util.oneOfGetter($oneOfFields = ["title"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_body", { - get: $util.oneOfGetter($oneOfFields = ["body"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseMapAnnotation.create = function create(properties) { - return new AIRichResponseMapAnnotation(properties); - }; - - AIRichResponseMapAnnotation.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.annotationNumber != null && Object.hasOwnProperty.call(m, "annotationNumber")) - w.uint32(8).uint32(m.annotationNumber); - if (m.latitude != null && Object.hasOwnProperty.call(m, "latitude")) - w.uint32(17).double(m.latitude); - if (m.longitude != null && Object.hasOwnProperty.call(m, "longitude")) - w.uint32(25).double(m.longitude); - if (m.title != null && Object.hasOwnProperty.call(m, "title")) - w.uint32(34).string(m.title); - if (m.body != null && Object.hasOwnProperty.call(m, "body")) - w.uint32(42).string(m.body); - return w; - }; - - AIRichResponseMapAnnotation.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.annotationNumber = r.uint32(); - break; - } - case 2: { - m.latitude = r.double(); - break; - } - case 3: { - m.longitude = r.double(); - break; - } - case 4: { - m.title = r.string(); - break; - } - case 5: { - m.body = r.string(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseMapAnnotation.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation(); - if (d.annotationNumber != null) { - m.annotationNumber = d.annotationNumber >>> 0; - } - if (d.latitude != null) { - m.latitude = Number(d.latitude); - } - if (d.longitude != null) { - m.longitude = Number(d.longitude); - } - if (d.title != null) { - m.title = String(d.title); - } - if (d.body != null) { - m.body = String(d.body); - } - return m; - }; - - AIRichResponseMapAnnotation.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.annotationNumber != null && m.hasOwnProperty("annotationNumber")) { - d.annotationNumber = m.annotationNumber; - if (o.oneofs) - d._annotationNumber = "annotationNumber"; - } - if (m.latitude != null && m.hasOwnProperty("latitude")) { - d.latitude = o.json && !isFinite(m.latitude) ? String(m.latitude) : m.latitude; - if (o.oneofs) - d._latitude = "latitude"; - } - if (m.longitude != null && m.hasOwnProperty("longitude")) { - d.longitude = o.json && !isFinite(m.longitude) ? String(m.longitude) : m.longitude; - if (o.oneofs) - d._longitude = "longitude"; - } - if (m.title != null && m.hasOwnProperty("title")) { - d.title = m.title; - if (o.oneofs) - d._title = "title"; - } - if (m.body != null && m.hasOwnProperty("body")) { - d.body = m.body; - if (o.oneofs) - d._body = "body"; - } - return d; - }; - - AIRichResponseMapAnnotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseMapAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation"; - }; - - return AIRichResponseMapAnnotation; - })(); - - return AIRichResponseMapMetadata; - })(); - - AIRichResponseMessage.AIRichResponseMessageType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AI_RICH_RESPONSE_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "AI_RICH_RESPONSE_TYPE_STANDARD"] = 1; - return values; - })(); - - AIRichResponseMessage.AIRichResponseSubMessage = (function() { - - function AIRichResponseSubMessage(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseSubMessage.prototype.messageType = null; - AIRichResponseSubMessage.prototype.gridImageMetadata = null; - AIRichResponseSubMessage.prototype.messageText = null; - AIRichResponseSubMessage.prototype.imageMetadata = null; - AIRichResponseSubMessage.prototype.codeMetadata = null; - AIRichResponseSubMessage.prototype.tableMetadata = null; - AIRichResponseSubMessage.prototype.dynamicMetadata = null; - AIRichResponseSubMessage.prototype.latexMetadata = null; - AIRichResponseSubMessage.prototype.mapMetadata = null; - AIRichResponseSubMessage.prototype.contentItemsMetadata = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_messageType", { - get: $util.oneOfGetter($oneOfFields = ["messageType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_gridImageMetadata", { - get: $util.oneOfGetter($oneOfFields = ["gridImageMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_messageText", { - get: $util.oneOfGetter($oneOfFields = ["messageText"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_imageMetadata", { - get: $util.oneOfGetter($oneOfFields = ["imageMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_codeMetadata", { - get: $util.oneOfGetter($oneOfFields = ["codeMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_tableMetadata", { - get: $util.oneOfGetter($oneOfFields = ["tableMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_dynamicMetadata", { - get: $util.oneOfGetter($oneOfFields = ["dynamicMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_latexMetadata", { - get: $util.oneOfGetter($oneOfFields = ["latexMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_mapMetadata", { - get: $util.oneOfGetter($oneOfFields = ["mapMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseSubMessage.prototype, "_contentItemsMetadata", { - get: $util.oneOfGetter($oneOfFields = ["contentItemsMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseSubMessage.create = function create(properties) { - return new AIRichResponseSubMessage(properties); - }; - - AIRichResponseSubMessage.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.messageType != null && Object.hasOwnProperty.call(m, "messageType")) - w.uint32(8).int32(m.messageType); - if (m.gridImageMetadata != null && Object.hasOwnProperty.call(m, "gridImageMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.encode(m.gridImageMetadata, w.uint32(18).fork()).ldelim(); - if (m.messageText != null && Object.hasOwnProperty.call(m, "messageText")) - w.uint32(26).string(m.messageText); - if (m.imageMetadata != null && Object.hasOwnProperty.call(m, "imageMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.encode(m.imageMetadata, w.uint32(34).fork()).ldelim(); - if (m.codeMetadata != null && Object.hasOwnProperty.call(m, "codeMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.encode(m.codeMetadata, w.uint32(42).fork()).ldelim(); - if (m.tableMetadata != null && Object.hasOwnProperty.call(m, "tableMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.encode(m.tableMetadata, w.uint32(50).fork()).ldelim(); - if (m.dynamicMetadata != null && Object.hasOwnProperty.call(m, "dynamicMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.encode(m.dynamicMetadata, w.uint32(58).fork()).ldelim(); - if (m.latexMetadata != null && Object.hasOwnProperty.call(m, "latexMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.encode(m.latexMetadata, w.uint32(66).fork()).ldelim(); - if (m.mapMetadata != null && Object.hasOwnProperty.call(m, "mapMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.encode(m.mapMetadata, w.uint32(74).fork()).ldelim(); - if (m.contentItemsMetadata != null && Object.hasOwnProperty.call(m, "contentItemsMetadata")) - $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.encode(m.contentItemsMetadata, w.uint32(82).fork()).ldelim(); - return w; - }; - - AIRichResponseSubMessage.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseSubMessage(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.messageType = r.int32(); - break; - } - case 2: { - m.gridImageMetadata = $root.proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.decode(r, r.uint32()); - break; - } - case 3: { - m.messageText = r.string(); - break; - } - case 4: { - m.imageMetadata = $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.decode(r, r.uint32()); - break; - } - case 5: { - m.codeMetadata = $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.decode(r, r.uint32()); - break; - } - case 6: { - m.tableMetadata = $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.decode(r, r.uint32()); - break; - } - case 7: { - m.dynamicMetadata = $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.decode(r, r.uint32()); - break; - } - case 8: { - m.latexMetadata = $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.decode(r, r.uint32()); - break; - } - case 9: { - m.mapMetadata = $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.decode(r, r.uint32()); - break; - } - case 10: { - m.contentItemsMetadata = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.decode(r, r.uint32()); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseSubMessage.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseSubMessage) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseSubMessage(); - switch (d.messageType) { - default: - if (typeof d.messageType === "number") { - m.messageType = d.messageType; - break; - } - break; - case "AI_RICH_RESPONSE_UNKNOWN": - case 0: - m.messageType = 0; - break; - case "AI_RICH_RESPONSE_GRID_IMAGE": - case 1: - m.messageType = 1; - break; - case "AI_RICH_RESPONSE_TEXT": - case 2: - m.messageType = 2; - break; - case "AI_RICH_RESPONSE_INLINE_IMAGE": - case 3: - m.messageType = 3; - break; - case "AI_RICH_RESPONSE_TABLE": - case 4: - m.messageType = 4; - break; - case "AI_RICH_RESPONSE_CODE": - case 5: - m.messageType = 5; - break; - case "AI_RICH_RESPONSE_DYNAMIC": - case 6: - m.messageType = 6; - break; - case "AI_RICH_RESPONSE_MAP": - case 7: - m.messageType = 7; - break; - case "AI_RICH_RESPONSE_LATEX": - case 8: - m.messageType = 8; - break; - case "AI_RICH_RESPONSE_CONTENT_ITEMS": - case 9: - m.messageType = 9; - break; - } - if (d.gridImageMetadata != null) { - if (typeof d.gridImageMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.gridImageMetadata: object expected"); - m.gridImageMetadata = $root.proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.fromObject(d.gridImageMetadata); - } - if (d.messageText != null) { - m.messageText = String(d.messageText); - } - if (d.imageMetadata != null) { - if (typeof d.imageMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.imageMetadata: object expected"); - m.imageMetadata = $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.fromObject(d.imageMetadata); - } - if (d.codeMetadata != null) { - if (typeof d.codeMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.codeMetadata: object expected"); - m.codeMetadata = $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.fromObject(d.codeMetadata); - } - if (d.tableMetadata != null) { - if (typeof d.tableMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.tableMetadata: object expected"); - m.tableMetadata = $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.fromObject(d.tableMetadata); - } - if (d.dynamicMetadata != null) { - if (typeof d.dynamicMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.dynamicMetadata: object expected"); - m.dynamicMetadata = $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.fromObject(d.dynamicMetadata); - } - if (d.latexMetadata != null) { - if (typeof d.latexMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.latexMetadata: object expected"); - m.latexMetadata = $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.fromObject(d.latexMetadata); - } - if (d.mapMetadata != null) { - if (typeof d.mapMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.mapMetadata: object expected"); - m.mapMetadata = $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.fromObject(d.mapMetadata); - } - if (d.contentItemsMetadata != null) { - if (typeof d.contentItemsMetadata !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseSubMessage.contentItemsMetadata: object expected"); - m.contentItemsMetadata = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.fromObject(d.contentItemsMetadata); - } - return m; - }; - - AIRichResponseSubMessage.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.messageType != null && m.hasOwnProperty("messageType")) { - d.messageType = o.enums === String ? $root.proto.AIRichResponseMessage.AIRichResponseSubMessageType[m.messageType] === undefined ? m.messageType : $root.proto.AIRichResponseMessage.AIRichResponseSubMessageType[m.messageType] : m.messageType; - if (o.oneofs) - d._messageType = "messageType"; - } - if (m.gridImageMetadata != null && m.hasOwnProperty("gridImageMetadata")) { - d.gridImageMetadata = $root.proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.toObject(m.gridImageMetadata, o); - if (o.oneofs) - d._gridImageMetadata = "gridImageMetadata"; - } - if (m.messageText != null && m.hasOwnProperty("messageText")) { - d.messageText = m.messageText; - if (o.oneofs) - d._messageText = "messageText"; - } - if (m.imageMetadata != null && m.hasOwnProperty("imageMetadata")) { - d.imageMetadata = $root.proto.AIRichResponseMessage.AIRichResponseInlineImageMetadata.toObject(m.imageMetadata, o); - if (o.oneofs) - d._imageMetadata = "imageMetadata"; - } - if (m.codeMetadata != null && m.hasOwnProperty("codeMetadata")) { - d.codeMetadata = $root.proto.AIRichResponseMessage.AIRichResponseCodeMetadata.toObject(m.codeMetadata, o); - if (o.oneofs) - d._codeMetadata = "codeMetadata"; - } - if (m.tableMetadata != null && m.hasOwnProperty("tableMetadata")) { - d.tableMetadata = $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.toObject(m.tableMetadata, o); - if (o.oneofs) - d._tableMetadata = "tableMetadata"; - } - if (m.dynamicMetadata != null && m.hasOwnProperty("dynamicMetadata")) { - d.dynamicMetadata = $root.proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.toObject(m.dynamicMetadata, o); - if (o.oneofs) - d._dynamicMetadata = "dynamicMetadata"; - } - if (m.latexMetadata != null && m.hasOwnProperty("latexMetadata")) { - d.latexMetadata = $root.proto.AIRichResponseMessage.AIRichResponseLatexMetadata.toObject(m.latexMetadata, o); - if (o.oneofs) - d._latexMetadata = "latexMetadata"; - } - if (m.mapMetadata != null && m.hasOwnProperty("mapMetadata")) { - d.mapMetadata = $root.proto.AIRichResponseMessage.AIRichResponseMapMetadata.toObject(m.mapMetadata, o); - if (o.oneofs) - d._mapMetadata = "mapMetadata"; - } - if (m.contentItemsMetadata != null && m.hasOwnProperty("contentItemsMetadata")) { - d.contentItemsMetadata = $root.proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.toObject(m.contentItemsMetadata, o); - if (o.oneofs) - d._contentItemsMetadata = "contentItemsMetadata"; - } - return d; - }; - - AIRichResponseSubMessage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseSubMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseSubMessage"; - }; - - return AIRichResponseSubMessage; - })(); - - AIRichResponseMessage.AIRichResponseSubMessageType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AI_RICH_RESPONSE_UNKNOWN"] = 0; - values[valuesById[1] = "AI_RICH_RESPONSE_GRID_IMAGE"] = 1; - values[valuesById[2] = "AI_RICH_RESPONSE_TEXT"] = 2; - values[valuesById[3] = "AI_RICH_RESPONSE_INLINE_IMAGE"] = 3; - values[valuesById[4] = "AI_RICH_RESPONSE_TABLE"] = 4; - values[valuesById[5] = "AI_RICH_RESPONSE_CODE"] = 5; - values[valuesById[6] = "AI_RICH_RESPONSE_DYNAMIC"] = 6; - values[valuesById[7] = "AI_RICH_RESPONSE_MAP"] = 7; - values[valuesById[8] = "AI_RICH_RESPONSE_LATEX"] = 8; - values[valuesById[9] = "AI_RICH_RESPONSE_CONTENT_ITEMS"] = 9; - return values; - })(); - - AIRichResponseMessage.AIRichResponseTableMetadata = (function() { - - function AIRichResponseTableMetadata(p) { - this.rows = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseTableMetadata.prototype.rows = $util.emptyArray; - - AIRichResponseTableMetadata.create = function create(properties) { - return new AIRichResponseTableMetadata(properties); - }; - - AIRichResponseTableMetadata.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.rows != null && m.rows.length) { - for (var i = 0; i < m.rows.length; ++i) - $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.encode(m.rows[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - AIRichResponseTableMetadata.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - if (!(m.rows && m.rows.length)) - m.rows = []; - m.rows.push($root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.decode(r, r.uint32())); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseTableMetadata.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata(); - if (d.rows) { - if (!Array.isArray(d.rows)) - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseTableMetadata.rows: array expected"); - m.rows = []; - for (var i = 0; i < d.rows.length; ++i) { - if (typeof d.rows[i] !== "object") - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseTableMetadata.rows: object expected"); - m.rows[i] = $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.fromObject(d.rows[i]); - } - } - return m; - }; - - AIRichResponseTableMetadata.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (o.arrays || o.defaults) { - d.rows = []; - } - if (m.rows && m.rows.length) { - d.rows = []; - for (var j = 0; j < m.rows.length; ++j) { - d.rows[j] = $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.toObject(m.rows[j], o); - } - } - return d; - }; - - AIRichResponseTableMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseTableMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseTableMetadata"; - }; - - AIRichResponseTableMetadata.AIRichResponseTableRow = (function() { - - function AIRichResponseTableRow(p) { - this.items = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseTableRow.prototype.items = $util.emptyArray; - AIRichResponseTableRow.prototype.isHeading = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseTableRow.prototype, "_isHeading", { - get: $util.oneOfGetter($oneOfFields = ["isHeading"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseTableRow.create = function create(properties) { - return new AIRichResponseTableRow(properties); - }; - - AIRichResponseTableRow.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.items != null && m.items.length) { - for (var i = 0; i < m.items.length; ++i) - w.uint32(10).string(m.items[i]); - } - if (m.isHeading != null && Object.hasOwnProperty.call(m, "isHeading")) - w.uint32(16).bool(m.isHeading); - return w; - }; - - AIRichResponseTableRow.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - if (!(m.items && m.items.length)) - m.items = []; - m.items.push(r.string()); - break; - } - case 2: { - m.isHeading = r.bool(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseTableRow.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow(); - if (d.items) { - if (!Array.isArray(d.items)) - throw TypeError(".proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.items: array expected"); - m.items = []; - for (var i = 0; i < d.items.length; ++i) { - m.items[i] = String(d.items[i]); - } - } - if (d.isHeading != null) { - m.isHeading = Boolean(d.isHeading); - } - return m; - }; - - AIRichResponseTableRow.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (o.arrays || o.defaults) { - d.items = []; - } - if (m.items && m.items.length) { - d.items = []; - for (var j = 0; j < m.items.length; ++j) { - d.items[j] = m.items[j]; - } - } - if (m.isHeading != null && m.hasOwnProperty("isHeading")) { - d.isHeading = m.isHeading; - if (o.oneofs) - d._isHeading = "isHeading"; - } - return d; - }; - - AIRichResponseTableRow.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseTableRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow"; - }; - - return AIRichResponseTableRow; - })(); - - return AIRichResponseTableMetadata; - })(); - - AIRichResponseMessage.AIRichResponseUnifiedResponse = (function() { - - function AIRichResponseUnifiedResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - AIRichResponseUnifiedResponse.prototype.data = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(AIRichResponseUnifiedResponse.prototype, "_data", { - get: $util.oneOfGetter($oneOfFields = ["data"]), - set: $util.oneOfSetter($oneOfFields) - }); - - AIRichResponseUnifiedResponse.create = function create(properties) { - return new AIRichResponseUnifiedResponse(properties); - }; - - AIRichResponseUnifiedResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) - w.uint32(10).bytes(m.data); - return w; - }; - - AIRichResponseUnifiedResponse.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseMessage.AIRichResponseUnifiedResponse(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.data = r.bytes(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - AIRichResponseUnifiedResponse.fromObject = function fromObject(d) { - if (d instanceof $root.proto.AIRichResponseMessage.AIRichResponseUnifiedResponse) - return d; - var m = new $root.proto.AIRichResponseMessage.AIRichResponseUnifiedResponse(); - if (d.data != null) { - if (typeof d.data === "string") - $util.base64.decode(d.data, m.data = $util.newBuffer($util.base64.length(d.data)), 0); - else if (d.data.length >= 0) - m.data = d.data; - } - return m; - }; - - AIRichResponseUnifiedResponse.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.data != null && m.hasOwnProperty("data")) { - d.data = o.bytes === String ? $util.base64.encode(m.data, 0, m.data.length) : o.bytes === Array ? Array.prototype.slice.call(m.data) : m.data; - if (o.oneofs) - d._data = "data"; - } - return d; - }; - - AIRichResponseUnifiedResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - AIRichResponseUnifiedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.AIRichResponseMessage.AIRichResponseUnifiedResponse"; - }; - - return AIRichResponseUnifiedResponse; - })(); - - return AIRichResponseMessage; + return AIThreadInfo; })(); proto.Account = (function() { @@ -5054,6 +5937,7 @@ export const proto = $root.proto = (() => { BotAgeCollectionMetadata.prototype.ageCollectionEligible = null; BotAgeCollectionMetadata.prototype.shouldTriggerAgeCollectionOnClient = null; + BotAgeCollectionMetadata.prototype.ageCollectionType = null; let $oneOfFields; @@ -5069,6 +5953,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotAgeCollectionMetadata.prototype, "_ageCollectionType", { + get: $util.oneOfGetter($oneOfFields = ["ageCollectionType"]), + set: $util.oneOfSetter($oneOfFields) + }); + BotAgeCollectionMetadata.create = function create(properties) { return new BotAgeCollectionMetadata(properties); }; @@ -5080,6 +5970,8 @@ export const proto = $root.proto = (() => { w.uint32(8).bool(m.ageCollectionEligible); if (m.shouldTriggerAgeCollectionOnClient != null && Object.hasOwnProperty.call(m, "shouldTriggerAgeCollectionOnClient")) w.uint32(16).bool(m.shouldTriggerAgeCollectionOnClient); + if (m.ageCollectionType != null && Object.hasOwnProperty.call(m, "ageCollectionType")) + w.uint32(24).int32(m.ageCollectionType); return w; }; @@ -5100,6 +5992,10 @@ export const proto = $root.proto = (() => { m.shouldTriggerAgeCollectionOnClient = r.bool(); break; } + case 3: { + m.ageCollectionType = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -5118,6 +6014,22 @@ export const proto = $root.proto = (() => { if (d.shouldTriggerAgeCollectionOnClient != null) { m.shouldTriggerAgeCollectionOnClient = Boolean(d.shouldTriggerAgeCollectionOnClient); } + switch (d.ageCollectionType) { + default: + if (typeof d.ageCollectionType === "number") { + m.ageCollectionType = d.ageCollectionType; + break; + } + break; + case "O18_BINARY": + case 0: + m.ageCollectionType = 0; + break; + case "WAFFLE": + case 1: + m.ageCollectionType = 1; + break; + } return m; }; @@ -5135,6 +6047,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._shouldTriggerAgeCollectionOnClient = "shouldTriggerAgeCollectionOnClient"; } + if (m.ageCollectionType != null && m.hasOwnProperty("ageCollectionType")) { + d.ageCollectionType = o.enums === String ? $root.proto.BotAgeCollectionMetadata.AgeCollectionType[m.ageCollectionType] === undefined ? m.ageCollectionType : $root.proto.BotAgeCollectionMetadata.AgeCollectionType[m.ageCollectionType] : m.ageCollectionType; + if (o.oneofs) + d._ageCollectionType = "ageCollectionType"; + } return d; }; @@ -5149,6 +6066,13 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.BotAgeCollectionMetadata"; }; + BotAgeCollectionMetadata.AgeCollectionType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "O18_BINARY"] = 0; + values[valuesById[1] = "WAFFLE"] = 1; + return values; + })(); + return BotAgeCollectionMetadata; })(); @@ -5539,6 +6463,62 @@ export const proto = $root.proto = (() => { case 35: m.capabilities[i] = 35; break; + case "SIMPLIFIED_PROFILE_PAGE": + case 36: + m.capabilities[i] = 36; + break; + case "RICH_RESPONSE_SOURCES_IN_MESSAGE": + case 37: + m.capabilities[i] = 37; + break; + case "RICH_RESPONSE_SIDE_BY_SIDE_SURVEY": + case 38: + m.capabilities[i] = 38; + break; + case "RICH_RESPONSE_UNIFIED_TEXT_COMPONENT": + case 39: + m.capabilities[i] = 39; + break; + case "AI_SHARED_MEMORY": + case 40: + m.capabilities[i] = 40; + break; + case "RICH_RESPONSE_UNIFIED_SOURCES": + case 41: + m.capabilities[i] = 41; + break; + case "RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS": + case 42: + m.capabilities[i] = 42; + break; + case "RICH_RESPONSE_UR_INLINE_REELS_ENABLED": + case 43: + m.capabilities[i] = 43; + break; + case "RICH_RESPONSE_UR_MEDIA_GRID_ENABLED": + case 44: + m.capabilities[i] = 44; + break; + case "RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER": + case 45: + m.capabilities[i] = 45; + break; + case "RICH_RESPONSE_IN_APP_SURVEY": + case 46: + m.capabilities[i] = 46; + break; + case "AI_RESPONSE_MODEL_BRANDING": + case 47: + m.capabilities[i] = 47; + break; + case "SESSION_TRANSPARENCY_SYSTEM_MESSAGE": + case 48: + m.capabilities[i] = 48; + break; + case "RICH_RESPONSE_UR_REASONING": + case 49: + m.capabilities[i] = 49; + break; } } } @@ -5610,12 +6590,1499 @@ export const proto = $root.proto = (() => { values[valuesById[33] = "PROACTIVE_MESSAGE"] = 33; values[valuesById[34] = "RICH_RESPONSE_UNIFIED_RESPONSE"] = 34; values[valuesById[35] = "PROMOTION_MESSAGE"] = 35; + values[valuesById[36] = "SIMPLIFIED_PROFILE_PAGE"] = 36; + values[valuesById[37] = "RICH_RESPONSE_SOURCES_IN_MESSAGE"] = 37; + values[valuesById[38] = "RICH_RESPONSE_SIDE_BY_SIDE_SURVEY"] = 38; + values[valuesById[39] = "RICH_RESPONSE_UNIFIED_TEXT_COMPONENT"] = 39; + values[valuesById[40] = "AI_SHARED_MEMORY"] = 40; + values[valuesById[41] = "RICH_RESPONSE_UNIFIED_SOURCES"] = 41; + values[valuesById[42] = "RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS"] = 42; + values[valuesById[43] = "RICH_RESPONSE_UR_INLINE_REELS_ENABLED"] = 43; + values[valuesById[44] = "RICH_RESPONSE_UR_MEDIA_GRID_ENABLED"] = 44; + values[valuesById[45] = "RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER"] = 45; + values[valuesById[46] = "RICH_RESPONSE_IN_APP_SURVEY"] = 46; + values[valuesById[47] = "AI_RESPONSE_MODEL_BRANDING"] = 47; + values[valuesById[48] = "SESSION_TRANSPARENCY_SYSTEM_MESSAGE"] = 48; + values[valuesById[49] = "RICH_RESPONSE_UR_REASONING"] = 49; return values; })(); return BotCapabilityMetadata; })(); + proto.BotFeedbackMessage = (function() { + + function BotFeedbackMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BotFeedbackMessage.prototype.messageKey = null; + BotFeedbackMessage.prototype.kind = null; + BotFeedbackMessage.prototype.text = null; + BotFeedbackMessage.prototype.kindNegative = null; + BotFeedbackMessage.prototype.kindPositive = null; + BotFeedbackMessage.prototype.kindReport = null; + BotFeedbackMessage.prototype.sideBySideSurveyMetadata = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotFeedbackMessage.prototype, "_messageKey", { + get: $util.oneOfGetter($oneOfFields = ["messageKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotFeedbackMessage.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotFeedbackMessage.prototype, "_text", { + get: $util.oneOfGetter($oneOfFields = ["text"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotFeedbackMessage.prototype, "_kindNegative", { + get: $util.oneOfGetter($oneOfFields = ["kindNegative"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotFeedbackMessage.prototype, "_kindPositive", { + get: $util.oneOfGetter($oneOfFields = ["kindPositive"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotFeedbackMessage.prototype, "_kindReport", { + get: $util.oneOfGetter($oneOfFields = ["kindReport"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotFeedbackMessage.prototype, "_sideBySideSurveyMetadata", { + get: $util.oneOfGetter($oneOfFields = ["sideBySideSurveyMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BotFeedbackMessage.create = function create(properties) { + return new BotFeedbackMessage(properties); + }; + + BotFeedbackMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.messageKey != null && Object.hasOwnProperty.call(m, "messageKey")) + $root.proto.MessageKey.encode(m.messageKey, w.uint32(10).fork()).ldelim(); + if (m.kind != null && Object.hasOwnProperty.call(m, "kind")) + w.uint32(16).int32(m.kind); + if (m.text != null && Object.hasOwnProperty.call(m, "text")) + w.uint32(26).string(m.text); + if (m.kindNegative != null && Object.hasOwnProperty.call(m, "kindNegative")) + w.uint32(32).uint64(m.kindNegative); + if (m.kindPositive != null && Object.hasOwnProperty.call(m, "kindPositive")) + w.uint32(40).uint64(m.kindPositive); + if (m.kindReport != null && Object.hasOwnProperty.call(m, "kindReport")) + w.uint32(48).int32(m.kindReport); + if (m.sideBySideSurveyMetadata != null && Object.hasOwnProperty.call(m, "sideBySideSurveyMetadata")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.encode(m.sideBySideSurveyMetadata, w.uint32(58).fork()).ldelim(); + return w; + }; + + BotFeedbackMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.messageKey = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + case 2: { + m.kind = r.int32(); + break; + } + case 3: { + m.text = r.string(); + break; + } + case 4: { + m.kindNegative = r.uint64(); + break; + } + case 5: { + m.kindPositive = r.uint64(); + break; + } + case 6: { + m.kindReport = r.int32(); + break; + } + case 7: { + m.sideBySideSurveyMetadata = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BotFeedbackMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage) + return d; + var m = new $root.proto.BotFeedbackMessage(); + if (d.messageKey != null) { + if (typeof d.messageKey !== "object") + throw TypeError(".proto.BotFeedbackMessage.messageKey: object expected"); + m.messageKey = $root.proto.MessageKey.fromObject(d.messageKey); + } + switch (d.kind) { + default: + if (typeof d.kind === "number") { + m.kind = d.kind; + break; + } + break; + case "BOT_FEEDBACK_POSITIVE": + case 0: + m.kind = 0; + break; + case "BOT_FEEDBACK_NEGATIVE_GENERIC": + case 1: + m.kind = 1; + break; + case "BOT_FEEDBACK_NEGATIVE_HELPFUL": + case 2: + m.kind = 2; + break; + case "BOT_FEEDBACK_NEGATIVE_INTERESTING": + case 3: + m.kind = 3; + break; + case "BOT_FEEDBACK_NEGATIVE_ACCURATE": + case 4: + m.kind = 4; + break; + case "BOT_FEEDBACK_NEGATIVE_SAFE": + case 5: + m.kind = 5; + break; + case "BOT_FEEDBACK_NEGATIVE_OTHER": + case 6: + m.kind = 6; + break; + case "BOT_FEEDBACK_NEGATIVE_REFUSED": + case 7: + m.kind = 7; + break; + case "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING": + case 8: + m.kind = 8; + break; + case "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT": + case 9: + m.kind = 9; + break; + case "BOT_FEEDBACK_NEGATIVE_PERSONALIZED": + case 10: + m.kind = 10; + break; + case "BOT_FEEDBACK_NEGATIVE_CLARITY": + case 11: + m.kind = 11; + break; + case "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON": + case 12: + m.kind = 12; + break; + case "BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY": + case 13: + m.kind = 13; + break; + case "BOT_FEEDBACK_NEGATIVE": + case 14: + m.kind = 14; + break; + } + if (d.text != null) { + m.text = String(d.text); + } + if (d.kindNegative != null) { + if ($util.Long) + (m.kindNegative = $util.Long.fromValue(d.kindNegative)).unsigned = true; + else if (typeof d.kindNegative === "string") + m.kindNegative = parseInt(d.kindNegative, 10); + else if (typeof d.kindNegative === "number") + m.kindNegative = d.kindNegative; + else if (typeof d.kindNegative === "object") + m.kindNegative = new $util.LongBits(d.kindNegative.low >>> 0, d.kindNegative.high >>> 0).toNumber(true); + } + if (d.kindPositive != null) { + if ($util.Long) + (m.kindPositive = $util.Long.fromValue(d.kindPositive)).unsigned = true; + else if (typeof d.kindPositive === "string") + m.kindPositive = parseInt(d.kindPositive, 10); + else if (typeof d.kindPositive === "number") + m.kindPositive = d.kindPositive; + else if (typeof d.kindPositive === "object") + m.kindPositive = new $util.LongBits(d.kindPositive.low >>> 0, d.kindPositive.high >>> 0).toNumber(true); + } + switch (d.kindReport) { + default: + if (typeof d.kindReport === "number") { + m.kindReport = d.kindReport; + break; + } + break; + case "NONE": + case 0: + m.kindReport = 0; + break; + case "GENERIC": + case 1: + m.kindReport = 1; + break; + } + if (d.sideBySideSurveyMetadata != null) { + if (typeof d.sideBySideSurveyMetadata !== "object") + throw TypeError(".proto.BotFeedbackMessage.sideBySideSurveyMetadata: object expected"); + m.sideBySideSurveyMetadata = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.fromObject(d.sideBySideSurveyMetadata); + } + return m; + }; + + BotFeedbackMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.messageKey != null && m.hasOwnProperty("messageKey")) { + d.messageKey = $root.proto.MessageKey.toObject(m.messageKey, o); + if (o.oneofs) + d._messageKey = "messageKey"; + } + if (m.kind != null && m.hasOwnProperty("kind")) { + d.kind = o.enums === String ? $root.proto.BotFeedbackMessage.BotFeedbackKind[m.kind] === undefined ? m.kind : $root.proto.BotFeedbackMessage.BotFeedbackKind[m.kind] : m.kind; + if (o.oneofs) + d._kind = "kind"; + } + if (m.text != null && m.hasOwnProperty("text")) { + d.text = m.text; + if (o.oneofs) + d._text = "text"; + } + if (m.kindNegative != null && m.hasOwnProperty("kindNegative")) { + if (typeof m.kindNegative === "number") + d.kindNegative = o.longs === String ? String(m.kindNegative) : m.kindNegative; + else + d.kindNegative = o.longs === String ? $util.Long.prototype.toString.call(m.kindNegative) : o.longs === Number ? new $util.LongBits(m.kindNegative.low >>> 0, m.kindNegative.high >>> 0).toNumber(true) : m.kindNegative; + if (o.oneofs) + d._kindNegative = "kindNegative"; + } + if (m.kindPositive != null && m.hasOwnProperty("kindPositive")) { + if (typeof m.kindPositive === "number") + d.kindPositive = o.longs === String ? String(m.kindPositive) : m.kindPositive; + else + d.kindPositive = o.longs === String ? $util.Long.prototype.toString.call(m.kindPositive) : o.longs === Number ? new $util.LongBits(m.kindPositive.low >>> 0, m.kindPositive.high >>> 0).toNumber(true) : m.kindPositive; + if (o.oneofs) + d._kindPositive = "kindPositive"; + } + if (m.kindReport != null && m.hasOwnProperty("kindReport")) { + d.kindReport = o.enums === String ? $root.proto.BotFeedbackMessage.ReportKind[m.kindReport] === undefined ? m.kindReport : $root.proto.BotFeedbackMessage.ReportKind[m.kindReport] : m.kindReport; + if (o.oneofs) + d._kindReport = "kindReport"; + } + if (m.sideBySideSurveyMetadata != null && m.hasOwnProperty("sideBySideSurveyMetadata")) { + d.sideBySideSurveyMetadata = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.toObject(m.sideBySideSurveyMetadata, o); + if (o.oneofs) + d._sideBySideSurveyMetadata = "sideBySideSurveyMetadata"; + } + return d; + }; + + BotFeedbackMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BotFeedbackMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage"; + }; + + BotFeedbackMessage.BotFeedbackKind = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BOT_FEEDBACK_POSITIVE"] = 0; + values[valuesById[1] = "BOT_FEEDBACK_NEGATIVE_GENERIC"] = 1; + values[valuesById[2] = "BOT_FEEDBACK_NEGATIVE_HELPFUL"] = 2; + values[valuesById[3] = "BOT_FEEDBACK_NEGATIVE_INTERESTING"] = 3; + values[valuesById[4] = "BOT_FEEDBACK_NEGATIVE_ACCURATE"] = 4; + values[valuesById[5] = "BOT_FEEDBACK_NEGATIVE_SAFE"] = 5; + values[valuesById[6] = "BOT_FEEDBACK_NEGATIVE_OTHER"] = 6; + values[valuesById[7] = "BOT_FEEDBACK_NEGATIVE_REFUSED"] = 7; + values[valuesById[8] = "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING"] = 8; + values[valuesById[9] = "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 9; + values[valuesById[10] = "BOT_FEEDBACK_NEGATIVE_PERSONALIZED"] = 10; + values[valuesById[11] = "BOT_FEEDBACK_NEGATIVE_CLARITY"] = 11; + values[valuesById[12] = "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON"] = 12; + values[valuesById[13] = "BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY"] = 13; + values[valuesById[14] = "BOT_FEEDBACK_NEGATIVE"] = 14; + return values; + })(); + + BotFeedbackMessage.BotFeedbackKindMultipleNegative = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC"] = 1; + values[valuesById[2] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL"] = 2; + values[valuesById[4] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING"] = 4; + values[valuesById[8] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE"] = 8; + values[valuesById[16] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE"] = 16; + values[valuesById[32] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER"] = 32; + values[valuesById[64] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED"] = 64; + values[valuesById[128] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING"] = 128; + values[valuesById[256] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 256; + return values; + })(); + + BotFeedbackMessage.BotFeedbackKindMultiplePositive = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC"] = 1; + return values; + })(); + + BotFeedbackMessage.ReportKind = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "GENERIC"] = 1; + return values; + })(); + + BotFeedbackMessage.SideBySideSurveyMetadata = (function() { + + function SideBySideSurveyMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideSurveyMetadata.prototype.selectedRequestId = null; + SideBySideSurveyMetadata.prototype.surveyId = null; + SideBySideSurveyMetadata.prototype.simonSessionFbid = null; + SideBySideSurveyMetadata.prototype.responseOtid = null; + SideBySideSurveyMetadata.prototype.responseTimestampMsString = null; + SideBySideSurveyMetadata.prototype.isSelectedResponsePrimary = null; + SideBySideSurveyMetadata.prototype.messageIdToEdit = null; + SideBySideSurveyMetadata.prototype.analyticsData = null; + SideBySideSurveyMetadata.prototype.metaAiAnalyticsData = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_selectedRequestId", { + get: $util.oneOfGetter($oneOfFields = ["selectedRequestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_surveyId", { + get: $util.oneOfGetter($oneOfFields = ["surveyId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_simonSessionFbid", { + get: $util.oneOfGetter($oneOfFields = ["simonSessionFbid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_responseOtid", { + get: $util.oneOfGetter($oneOfFields = ["responseOtid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_responseTimestampMsString", { + get: $util.oneOfGetter($oneOfFields = ["responseTimestampMsString"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_isSelectedResponsePrimary", { + get: $util.oneOfGetter($oneOfFields = ["isSelectedResponsePrimary"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_messageIdToEdit", { + get: $util.oneOfGetter($oneOfFields = ["messageIdToEdit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_analyticsData", { + get: $util.oneOfGetter($oneOfFields = ["analyticsData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyMetadata.prototype, "_metaAiAnalyticsData", { + get: $util.oneOfGetter($oneOfFields = ["metaAiAnalyticsData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SideBySideSurveyMetadata.create = function create(properties) { + return new SideBySideSurveyMetadata(properties); + }; + + SideBySideSurveyMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.selectedRequestId != null && Object.hasOwnProperty.call(m, "selectedRequestId")) + w.uint32(10).string(m.selectedRequestId); + if (m.surveyId != null && Object.hasOwnProperty.call(m, "surveyId")) + w.uint32(16).uint32(m.surveyId); + if (m.simonSessionFbid != null && Object.hasOwnProperty.call(m, "simonSessionFbid")) + w.uint32(26).string(m.simonSessionFbid); + if (m.responseOtid != null && Object.hasOwnProperty.call(m, "responseOtid")) + w.uint32(34).string(m.responseOtid); + if (m.responseTimestampMsString != null && Object.hasOwnProperty.call(m, "responseTimestampMsString")) + w.uint32(42).string(m.responseTimestampMsString); + if (m.isSelectedResponsePrimary != null && Object.hasOwnProperty.call(m, "isSelectedResponsePrimary")) + w.uint32(48).bool(m.isSelectedResponsePrimary); + if (m.messageIdToEdit != null && Object.hasOwnProperty.call(m, "messageIdToEdit")) + w.uint32(58).string(m.messageIdToEdit); + if (m.analyticsData != null && Object.hasOwnProperty.call(m, "analyticsData")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.encode(m.analyticsData, w.uint32(66).fork()).ldelim(); + if (m.metaAiAnalyticsData != null && Object.hasOwnProperty.call(m, "metaAiAnalyticsData")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.encode(m.metaAiAnalyticsData, w.uint32(74).fork()).ldelim(); + return w; + }; + + SideBySideSurveyMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.selectedRequestId = r.string(); + break; + } + case 2: { + m.surveyId = r.uint32(); + break; + } + case 3: { + m.simonSessionFbid = r.string(); + break; + } + case 4: { + m.responseOtid = r.string(); + break; + } + case 5: { + m.responseTimestampMsString = r.string(); + break; + } + case 6: { + m.isSelectedResponsePrimary = r.bool(); + break; + } + case 7: { + m.messageIdToEdit = r.string(); + break; + } + case 8: { + m.analyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.decode(r, r.uint32()); + break; + } + case 9: { + m.metaAiAnalyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideSurveyMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata) + return d; + var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata(); + if (d.selectedRequestId != null) { + m.selectedRequestId = String(d.selectedRequestId); + } + if (d.surveyId != null) { + m.surveyId = d.surveyId >>> 0; + } + if (d.simonSessionFbid != null) { + m.simonSessionFbid = String(d.simonSessionFbid); + } + if (d.responseOtid != null) { + m.responseOtid = String(d.responseOtid); + } + if (d.responseTimestampMsString != null) { + m.responseTimestampMsString = String(d.responseTimestampMsString); + } + if (d.isSelectedResponsePrimary != null) { + m.isSelectedResponsePrimary = Boolean(d.isSelectedResponsePrimary); + } + if (d.messageIdToEdit != null) { + m.messageIdToEdit = String(d.messageIdToEdit); + } + if (d.analyticsData != null) { + if (typeof d.analyticsData !== "object") + throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.analyticsData: object expected"); + m.analyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.fromObject(d.analyticsData); + } + if (d.metaAiAnalyticsData != null) { + if (typeof d.metaAiAnalyticsData !== "object") + throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.metaAiAnalyticsData: object expected"); + m.metaAiAnalyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.fromObject(d.metaAiAnalyticsData); + } + return m; + }; + + SideBySideSurveyMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.selectedRequestId != null && m.hasOwnProperty("selectedRequestId")) { + d.selectedRequestId = m.selectedRequestId; + if (o.oneofs) + d._selectedRequestId = "selectedRequestId"; + } + if (m.surveyId != null && m.hasOwnProperty("surveyId")) { + d.surveyId = m.surveyId; + if (o.oneofs) + d._surveyId = "surveyId"; + } + if (m.simonSessionFbid != null && m.hasOwnProperty("simonSessionFbid")) { + d.simonSessionFbid = m.simonSessionFbid; + if (o.oneofs) + d._simonSessionFbid = "simonSessionFbid"; + } + if (m.responseOtid != null && m.hasOwnProperty("responseOtid")) { + d.responseOtid = m.responseOtid; + if (o.oneofs) + d._responseOtid = "responseOtid"; + } + if (m.responseTimestampMsString != null && m.hasOwnProperty("responseTimestampMsString")) { + d.responseTimestampMsString = m.responseTimestampMsString; + if (o.oneofs) + d._responseTimestampMsString = "responseTimestampMsString"; + } + if (m.isSelectedResponsePrimary != null && m.hasOwnProperty("isSelectedResponsePrimary")) { + d.isSelectedResponsePrimary = m.isSelectedResponsePrimary; + if (o.oneofs) + d._isSelectedResponsePrimary = "isSelectedResponsePrimary"; + } + if (m.messageIdToEdit != null && m.hasOwnProperty("messageIdToEdit")) { + d.messageIdToEdit = m.messageIdToEdit; + if (o.oneofs) + d._messageIdToEdit = "messageIdToEdit"; + } + if (m.analyticsData != null && m.hasOwnProperty("analyticsData")) { + d.analyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.toObject(m.analyticsData, o); + if (o.oneofs) + d._analyticsData = "analyticsData"; + } + if (m.metaAiAnalyticsData != null && m.hasOwnProperty("metaAiAnalyticsData")) { + d.metaAiAnalyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.toObject(m.metaAiAnalyticsData, o); + if (o.oneofs) + d._metaAiAnalyticsData = "metaAiAnalyticsData"; + } + return d; + }; + + SideBySideSurveyMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideSurveyMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata"; + }; + + SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData = (function() { + + function SideBySideSurveyAnalyticsData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideSurveyAnalyticsData.prototype.tessaEvent = null; + SideBySideSurveyAnalyticsData.prototype.tessaSessionFbid = null; + SideBySideSurveyAnalyticsData.prototype.simonSessionFbid = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyAnalyticsData.prototype, "_tessaEvent", { + get: $util.oneOfGetter($oneOfFields = ["tessaEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyAnalyticsData.prototype, "_tessaSessionFbid", { + get: $util.oneOfGetter($oneOfFields = ["tessaSessionFbid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyAnalyticsData.prototype, "_simonSessionFbid", { + get: $util.oneOfGetter($oneOfFields = ["simonSessionFbid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SideBySideSurveyAnalyticsData.create = function create(properties) { + return new SideBySideSurveyAnalyticsData(properties); + }; + + SideBySideSurveyAnalyticsData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.tessaEvent != null && Object.hasOwnProperty.call(m, "tessaEvent")) + w.uint32(10).string(m.tessaEvent); + if (m.tessaSessionFbid != null && Object.hasOwnProperty.call(m, "tessaSessionFbid")) + w.uint32(18).string(m.tessaSessionFbid); + if (m.simonSessionFbid != null && Object.hasOwnProperty.call(m, "simonSessionFbid")) + w.uint32(26).string(m.simonSessionFbid); + return w; + }; + + SideBySideSurveyAnalyticsData.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.tessaEvent = r.string(); + break; + } + case 2: { + m.tessaSessionFbid = r.string(); + break; + } + case 3: { + m.simonSessionFbid = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideSurveyAnalyticsData.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData) + return d; + var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData(); + if (d.tessaEvent != null) { + m.tessaEvent = String(d.tessaEvent); + } + if (d.tessaSessionFbid != null) { + m.tessaSessionFbid = String(d.tessaSessionFbid); + } + if (d.simonSessionFbid != null) { + m.simonSessionFbid = String(d.simonSessionFbid); + } + return m; + }; + + SideBySideSurveyAnalyticsData.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.tessaEvent != null && m.hasOwnProperty("tessaEvent")) { + d.tessaEvent = m.tessaEvent; + if (o.oneofs) + d._tessaEvent = "tessaEvent"; + } + if (m.tessaSessionFbid != null && m.hasOwnProperty("tessaSessionFbid")) { + d.tessaSessionFbid = m.tessaSessionFbid; + if (o.oneofs) + d._tessaSessionFbid = "tessaSessionFbid"; + } + if (m.simonSessionFbid != null && m.hasOwnProperty("simonSessionFbid")) { + d.simonSessionFbid = m.simonSessionFbid; + if (o.oneofs) + d._simonSessionFbid = "simonSessionFbid"; + } + return d; + }; + + SideBySideSurveyAnalyticsData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideSurveyAnalyticsData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData"; + }; + + return SideBySideSurveyAnalyticsData; + })(); + + SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData = (function() { + + function SidebySideSurveyMetaAiAnalyticsData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SidebySideSurveyMetaAiAnalyticsData.prototype.surveyId = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.primaryResponseId = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.testArmName = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.timestampMsString = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.ctaImpressionEvent = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.ctaClickEvent = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.cardImpressionEvent = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.responseEvent = null; + SidebySideSurveyMetaAiAnalyticsData.prototype.abandonEvent = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_surveyId", { + get: $util.oneOfGetter($oneOfFields = ["surveyId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_primaryResponseId", { + get: $util.oneOfGetter($oneOfFields = ["primaryResponseId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_testArmName", { + get: $util.oneOfGetter($oneOfFields = ["testArmName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_timestampMsString", { + get: $util.oneOfGetter($oneOfFields = ["timestampMsString"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_ctaImpressionEvent", { + get: $util.oneOfGetter($oneOfFields = ["ctaImpressionEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_ctaClickEvent", { + get: $util.oneOfGetter($oneOfFields = ["ctaClickEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_cardImpressionEvent", { + get: $util.oneOfGetter($oneOfFields = ["cardImpressionEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_responseEvent", { + get: $util.oneOfGetter($oneOfFields = ["responseEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_abandonEvent", { + get: $util.oneOfGetter($oneOfFields = ["abandonEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SidebySideSurveyMetaAiAnalyticsData.create = function create(properties) { + return new SidebySideSurveyMetaAiAnalyticsData(properties); + }; + + SidebySideSurveyMetaAiAnalyticsData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.surveyId != null && Object.hasOwnProperty.call(m, "surveyId")) + w.uint32(8).uint32(m.surveyId); + if (m.primaryResponseId != null && Object.hasOwnProperty.call(m, "primaryResponseId")) + w.uint32(18).string(m.primaryResponseId); + if (m.testArmName != null && Object.hasOwnProperty.call(m, "testArmName")) + w.uint32(26).string(m.testArmName); + if (m.timestampMsString != null && Object.hasOwnProperty.call(m, "timestampMsString")) + w.uint32(34).string(m.timestampMsString); + if (m.ctaImpressionEvent != null && Object.hasOwnProperty.call(m, "ctaImpressionEvent")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.encode(m.ctaImpressionEvent, w.uint32(42).fork()).ldelim(); + if (m.ctaClickEvent != null && Object.hasOwnProperty.call(m, "ctaClickEvent")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.encode(m.ctaClickEvent, w.uint32(50).fork()).ldelim(); + if (m.cardImpressionEvent != null && Object.hasOwnProperty.call(m, "cardImpressionEvent")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.encode(m.cardImpressionEvent, w.uint32(58).fork()).ldelim(); + if (m.responseEvent != null && Object.hasOwnProperty.call(m, "responseEvent")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.encode(m.responseEvent, w.uint32(66).fork()).ldelim(); + if (m.abandonEvent != null && Object.hasOwnProperty.call(m, "abandonEvent")) + $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.encode(m.abandonEvent, w.uint32(74).fork()).ldelim(); + return w; + }; + + SidebySideSurveyMetaAiAnalyticsData.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.surveyId = r.uint32(); + break; + } + case 2: { + m.primaryResponseId = r.string(); + break; + } + case 3: { + m.testArmName = r.string(); + break; + } + case 4: { + m.timestampMsString = r.string(); + break; + } + case 5: { + m.ctaImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.decode(r, r.uint32()); + break; + } + case 6: { + m.ctaClickEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.decode(r, r.uint32()); + break; + } + case 7: { + m.cardImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.decode(r, r.uint32()); + break; + } + case 8: { + m.responseEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.decode(r, r.uint32()); + break; + } + case 9: { + m.abandonEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SidebySideSurveyMetaAiAnalyticsData.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData) + return d; + var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData(); + if (d.surveyId != null) { + m.surveyId = d.surveyId >>> 0; + } + if (d.primaryResponseId != null) { + m.primaryResponseId = String(d.primaryResponseId); + } + if (d.testArmName != null) { + m.testArmName = String(d.testArmName); + } + if (d.timestampMsString != null) { + m.timestampMsString = String(d.timestampMsString); + } + if (d.ctaImpressionEvent != null) { + if (typeof d.ctaImpressionEvent !== "object") + throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ctaImpressionEvent: object expected"); + m.ctaImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.fromObject(d.ctaImpressionEvent); + } + if (d.ctaClickEvent != null) { + if (typeof d.ctaClickEvent !== "object") + throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ctaClickEvent: object expected"); + m.ctaClickEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.fromObject(d.ctaClickEvent); + } + if (d.cardImpressionEvent != null) { + if (typeof d.cardImpressionEvent !== "object") + throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.cardImpressionEvent: object expected"); + m.cardImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.fromObject(d.cardImpressionEvent); + } + if (d.responseEvent != null) { + if (typeof d.responseEvent !== "object") + throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.responseEvent: object expected"); + m.responseEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.fromObject(d.responseEvent); + } + if (d.abandonEvent != null) { + if (typeof d.abandonEvent !== "object") + throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.abandonEvent: object expected"); + m.abandonEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.fromObject(d.abandonEvent); + } + return m; + }; + + SidebySideSurveyMetaAiAnalyticsData.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.surveyId != null && m.hasOwnProperty("surveyId")) { + d.surveyId = m.surveyId; + if (o.oneofs) + d._surveyId = "surveyId"; + } + if (m.primaryResponseId != null && m.hasOwnProperty("primaryResponseId")) { + d.primaryResponseId = m.primaryResponseId; + if (o.oneofs) + d._primaryResponseId = "primaryResponseId"; + } + if (m.testArmName != null && m.hasOwnProperty("testArmName")) { + d.testArmName = m.testArmName; + if (o.oneofs) + d._testArmName = "testArmName"; + } + if (m.timestampMsString != null && m.hasOwnProperty("timestampMsString")) { + d.timestampMsString = m.timestampMsString; + if (o.oneofs) + d._timestampMsString = "timestampMsString"; + } + if (m.ctaImpressionEvent != null && m.hasOwnProperty("ctaImpressionEvent")) { + d.ctaImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.toObject(m.ctaImpressionEvent, o); + if (o.oneofs) + d._ctaImpressionEvent = "ctaImpressionEvent"; + } + if (m.ctaClickEvent != null && m.hasOwnProperty("ctaClickEvent")) { + d.ctaClickEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.toObject(m.ctaClickEvent, o); + if (o.oneofs) + d._ctaClickEvent = "ctaClickEvent"; + } + if (m.cardImpressionEvent != null && m.hasOwnProperty("cardImpressionEvent")) { + d.cardImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.toObject(m.cardImpressionEvent, o); + if (o.oneofs) + d._cardImpressionEvent = "cardImpressionEvent"; + } + if (m.responseEvent != null && m.hasOwnProperty("responseEvent")) { + d.responseEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.toObject(m.responseEvent, o); + if (o.oneofs) + d._responseEvent = "responseEvent"; + } + if (m.abandonEvent != null && m.hasOwnProperty("abandonEvent")) { + d.abandonEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.toObject(m.abandonEvent, o); + if (o.oneofs) + d._abandonEvent = "abandonEvent"; + } + return d; + }; + + SidebySideSurveyMetaAiAnalyticsData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SidebySideSurveyMetaAiAnalyticsData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData"; + }; + + SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData = (function() { + + function SideBySideSurveyAbandonEventData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideSurveyAbandonEventData.prototype.abandonDwellTimeMsString = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyAbandonEventData.prototype, "_abandonDwellTimeMsString", { + get: $util.oneOfGetter($oneOfFields = ["abandonDwellTimeMsString"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SideBySideSurveyAbandonEventData.create = function create(properties) { + return new SideBySideSurveyAbandonEventData(properties); + }; + + SideBySideSurveyAbandonEventData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.abandonDwellTimeMsString != null && Object.hasOwnProperty.call(m, "abandonDwellTimeMsString")) + w.uint32(10).string(m.abandonDwellTimeMsString); + return w; + }; + + SideBySideSurveyAbandonEventData.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.abandonDwellTimeMsString = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideSurveyAbandonEventData.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData) + return d; + var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData(); + if (d.abandonDwellTimeMsString != null) { + m.abandonDwellTimeMsString = String(d.abandonDwellTimeMsString); + } + return m; + }; + + SideBySideSurveyAbandonEventData.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.abandonDwellTimeMsString != null && m.hasOwnProperty("abandonDwellTimeMsString")) { + d.abandonDwellTimeMsString = m.abandonDwellTimeMsString; + if (o.oneofs) + d._abandonDwellTimeMsString = "abandonDwellTimeMsString"; + } + return d; + }; + + SideBySideSurveyAbandonEventData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideSurveyAbandonEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData"; + }; + + return SideBySideSurveyAbandonEventData; + })(); + + SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData = (function() { + + function SideBySideSurveyCTAClickEventData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideSurveyCTAClickEventData.prototype.isSurveyExpired = null; + SideBySideSurveyCTAClickEventData.prototype.clickDwellTimeMsString = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyCTAClickEventData.prototype, "_isSurveyExpired", { + get: $util.oneOfGetter($oneOfFields = ["isSurveyExpired"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyCTAClickEventData.prototype, "_clickDwellTimeMsString", { + get: $util.oneOfGetter($oneOfFields = ["clickDwellTimeMsString"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SideBySideSurveyCTAClickEventData.create = function create(properties) { + return new SideBySideSurveyCTAClickEventData(properties); + }; + + SideBySideSurveyCTAClickEventData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.isSurveyExpired != null && Object.hasOwnProperty.call(m, "isSurveyExpired")) + w.uint32(8).bool(m.isSurveyExpired); + if (m.clickDwellTimeMsString != null && Object.hasOwnProperty.call(m, "clickDwellTimeMsString")) + w.uint32(18).string(m.clickDwellTimeMsString); + return w; + }; + + SideBySideSurveyCTAClickEventData.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.isSurveyExpired = r.bool(); + break; + } + case 2: { + m.clickDwellTimeMsString = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideSurveyCTAClickEventData.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData) + return d; + var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData(); + if (d.isSurveyExpired != null) { + m.isSurveyExpired = Boolean(d.isSurveyExpired); + } + if (d.clickDwellTimeMsString != null) { + m.clickDwellTimeMsString = String(d.clickDwellTimeMsString); + } + return m; + }; + + SideBySideSurveyCTAClickEventData.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.isSurveyExpired != null && m.hasOwnProperty("isSurveyExpired")) { + d.isSurveyExpired = m.isSurveyExpired; + if (o.oneofs) + d._isSurveyExpired = "isSurveyExpired"; + } + if (m.clickDwellTimeMsString != null && m.hasOwnProperty("clickDwellTimeMsString")) { + d.clickDwellTimeMsString = m.clickDwellTimeMsString; + if (o.oneofs) + d._clickDwellTimeMsString = "clickDwellTimeMsString"; + } + return d; + }; + + SideBySideSurveyCTAClickEventData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideSurveyCTAClickEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData"; + }; + + return SideBySideSurveyCTAClickEventData; + })(); + + SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData = (function() { + + function SideBySideSurveyCTAImpressionEventData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideSurveyCTAImpressionEventData.prototype.isSurveyExpired = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyCTAImpressionEventData.prototype, "_isSurveyExpired", { + get: $util.oneOfGetter($oneOfFields = ["isSurveyExpired"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SideBySideSurveyCTAImpressionEventData.create = function create(properties) { + return new SideBySideSurveyCTAImpressionEventData(properties); + }; + + SideBySideSurveyCTAImpressionEventData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.isSurveyExpired != null && Object.hasOwnProperty.call(m, "isSurveyExpired")) + w.uint32(8).bool(m.isSurveyExpired); + return w; + }; + + SideBySideSurveyCTAImpressionEventData.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.isSurveyExpired = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideSurveyCTAImpressionEventData.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData) + return d; + var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData(); + if (d.isSurveyExpired != null) { + m.isSurveyExpired = Boolean(d.isSurveyExpired); + } + return m; + }; + + SideBySideSurveyCTAImpressionEventData.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.isSurveyExpired != null && m.hasOwnProperty("isSurveyExpired")) { + d.isSurveyExpired = m.isSurveyExpired; + if (o.oneofs) + d._isSurveyExpired = "isSurveyExpired"; + } + return d; + }; + + SideBySideSurveyCTAImpressionEventData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideSurveyCTAImpressionEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData"; + }; + + return SideBySideSurveyCTAImpressionEventData; + })(); + + SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData = (function() { + + function SideBySideSurveyCardImpressionEventData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideSurveyCardImpressionEventData.create = function create(properties) { + return new SideBySideSurveyCardImpressionEventData(properties); + }; + + SideBySideSurveyCardImpressionEventData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + return w; + }; + + SideBySideSurveyCardImpressionEventData.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideSurveyCardImpressionEventData.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData) + return d; + return new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData(); + }; + + SideBySideSurveyCardImpressionEventData.toObject = function toObject() { + return {}; + }; + + SideBySideSurveyCardImpressionEventData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideSurveyCardImpressionEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData"; + }; + + return SideBySideSurveyCardImpressionEventData; + })(); + + SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData = (function() { + + function SideBySideSurveyResponseEventData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideSurveyResponseEventData.prototype.responseDwellTimeMsString = null; + SideBySideSurveyResponseEventData.prototype.selectedResponseId = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyResponseEventData.prototype, "_responseDwellTimeMsString", { + get: $util.oneOfGetter($oneOfFields = ["responseDwellTimeMsString"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideSurveyResponseEventData.prototype, "_selectedResponseId", { + get: $util.oneOfGetter($oneOfFields = ["selectedResponseId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SideBySideSurveyResponseEventData.create = function create(properties) { + return new SideBySideSurveyResponseEventData(properties); + }; + + SideBySideSurveyResponseEventData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.responseDwellTimeMsString != null && Object.hasOwnProperty.call(m, "responseDwellTimeMsString")) + w.uint32(10).string(m.responseDwellTimeMsString); + if (m.selectedResponseId != null && Object.hasOwnProperty.call(m, "selectedResponseId")) + w.uint32(18).string(m.selectedResponseId); + return w; + }; + + SideBySideSurveyResponseEventData.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.responseDwellTimeMsString = r.string(); + break; + } + case 2: { + m.selectedResponseId = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideSurveyResponseEventData.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData) + return d; + var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData(); + if (d.responseDwellTimeMsString != null) { + m.responseDwellTimeMsString = String(d.responseDwellTimeMsString); + } + if (d.selectedResponseId != null) { + m.selectedResponseId = String(d.selectedResponseId); + } + return m; + }; + + SideBySideSurveyResponseEventData.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.responseDwellTimeMsString != null && m.hasOwnProperty("responseDwellTimeMsString")) { + d.responseDwellTimeMsString = m.responseDwellTimeMsString; + if (o.oneofs) + d._responseDwellTimeMsString = "responseDwellTimeMsString"; + } + if (m.selectedResponseId != null && m.hasOwnProperty("selectedResponseId")) { + d.selectedResponseId = m.selectedResponseId; + if (o.oneofs) + d._selectedResponseId = "selectedResponseId"; + } + return d; + }; + + SideBySideSurveyResponseEventData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideSurveyResponseEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData"; + }; + + return SideBySideSurveyResponseEventData; + })(); + + return SidebySideSurveyMetaAiAnalyticsData; + })(); + + return SideBySideSurveyMetadata; + })(); + + return BotFeedbackMessage; + })(); + proto.BotImagineMetadata = (function() { function BotImagineMetadata(p) { @@ -6587,6 +9054,475 @@ export const proto = $root.proto = (() => { return BotMemuMetadata; })(); + proto.BotMessageOrigin = (function() { + + function BotMessageOrigin(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BotMessageOrigin.prototype.type = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMessageOrigin.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BotMessageOrigin.create = function create(properties) { + return new BotMessageOrigin(properties); + }; + + BotMessageOrigin.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).int32(m.type); + return w; + }; + + BotMessageOrigin.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotMessageOrigin(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BotMessageOrigin.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotMessageOrigin) + return d; + var m = new $root.proto.BotMessageOrigin(); + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED": + case 0: + m.type = 0; + break; + } + return m; + }; + + BotMessageOrigin.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.BotMessageOrigin.BotMessageOriginType[m.type] === undefined ? m.type : $root.proto.BotMessageOrigin.BotMessageOriginType[m.type] : m.type; + if (o.oneofs) + d._type = "type"; + } + return d; + }; + + BotMessageOrigin.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BotMessageOrigin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotMessageOrigin"; + }; + + BotMessageOrigin.BotMessageOriginType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED"] = 0; + return values; + })(); + + return BotMessageOrigin; + })(); + + proto.BotMessageOriginMetadata = (function() { + + function BotMessageOriginMetadata(p) { + this.origins = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BotMessageOriginMetadata.prototype.origins = $util.emptyArray; + + BotMessageOriginMetadata.create = function create(properties) { + return new BotMessageOriginMetadata(properties); + }; + + BotMessageOriginMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.origins != null && m.origins.length) { + for (var i = 0; i < m.origins.length; ++i) + $root.proto.BotMessageOrigin.encode(m.origins[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + + BotMessageOriginMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotMessageOriginMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + if (!(m.origins && m.origins.length)) + m.origins = []; + m.origins.push($root.proto.BotMessageOrigin.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BotMessageOriginMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotMessageOriginMetadata) + return d; + var m = new $root.proto.BotMessageOriginMetadata(); + if (d.origins) { + if (!Array.isArray(d.origins)) + throw TypeError(".proto.BotMessageOriginMetadata.origins: array expected"); + m.origins = []; + for (var i = 0; i < d.origins.length; ++i) { + if (typeof d.origins[i] !== "object") + throw TypeError(".proto.BotMessageOriginMetadata.origins: object expected"); + m.origins[i] = $root.proto.BotMessageOrigin.fromObject(d.origins[i]); + } + } + return m; + }; + + BotMessageOriginMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.origins = []; + } + if (m.origins && m.origins.length) { + d.origins = []; + for (var j = 0; j < m.origins.length; ++j) { + d.origins[j] = $root.proto.BotMessageOrigin.toObject(m.origins[j], o); + } + } + return d; + }; + + BotMessageOriginMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BotMessageOriginMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotMessageOriginMetadata"; + }; + + return BotMessageOriginMetadata; + })(); + + proto.BotMessageSharingInfo = (function() { + + function BotMessageSharingInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BotMessageSharingInfo.prototype.botEntryPointOrigin = null; + BotMessageSharingInfo.prototype.forwardScore = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMessageSharingInfo.prototype, "_botEntryPointOrigin", { + get: $util.oneOfGetter($oneOfFields = ["botEntryPointOrigin"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMessageSharingInfo.prototype, "_forwardScore", { + get: $util.oneOfGetter($oneOfFields = ["forwardScore"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BotMessageSharingInfo.create = function create(properties) { + return new BotMessageSharingInfo(properties); + }; + + BotMessageSharingInfo.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.botEntryPointOrigin != null && Object.hasOwnProperty.call(m, "botEntryPointOrigin")) + w.uint32(8).int32(m.botEntryPointOrigin); + if (m.forwardScore != null && Object.hasOwnProperty.call(m, "forwardScore")) + w.uint32(16).uint32(m.forwardScore); + return w; + }; + + BotMessageSharingInfo.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotMessageSharingInfo(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.botEntryPointOrigin = r.int32(); + break; + } + case 2: { + m.forwardScore = r.uint32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BotMessageSharingInfo.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotMessageSharingInfo) + return d; + var m = new $root.proto.BotMessageSharingInfo(); + switch (d.botEntryPointOrigin) { + default: + if (typeof d.botEntryPointOrigin === "number") { + m.botEntryPointOrigin = d.botEntryPointOrigin; + break; + } + break; + case "UNDEFINED_ENTRY_POINT": + case 0: + m.botEntryPointOrigin = 0; + break; + case "FAVICON": + case 1: + m.botEntryPointOrigin = 1; + break; + case "CHATLIST": + case 2: + m.botEntryPointOrigin = 2; + break; + case "AISEARCH_NULL_STATE_PAPER_PLANE": + case 3: + m.botEntryPointOrigin = 3; + break; + case "AISEARCH_NULL_STATE_SUGGESTION": + case 4: + m.botEntryPointOrigin = 4; + break; + case "AISEARCH_TYPE_AHEAD_SUGGESTION": + case 5: + m.botEntryPointOrigin = 5; + break; + case "AISEARCH_TYPE_AHEAD_PAPER_PLANE": + case 6: + m.botEntryPointOrigin = 6; + break; + case "AISEARCH_TYPE_AHEAD_RESULT_CHATLIST": + case 7: + m.botEntryPointOrigin = 7; + break; + case "AISEARCH_TYPE_AHEAD_RESULT_MESSAGES": + case 8: + m.botEntryPointOrigin = 8; + break; + case "AIVOICE_SEARCH_BAR": + case 9: + m.botEntryPointOrigin = 9; + break; + case "AIVOICE_FAVICON": + case 10: + m.botEntryPointOrigin = 10; + break; + case "AISTUDIO": + case 11: + m.botEntryPointOrigin = 11; + break; + case "DEEPLINK": + case 12: + m.botEntryPointOrigin = 12; + break; + case "NOTIFICATION": + case 13: + m.botEntryPointOrigin = 13; + break; + case "PROFILE_MESSAGE_BUTTON": + case 14: + m.botEntryPointOrigin = 14; + break; + case "FORWARD": + case 15: + m.botEntryPointOrigin = 15; + break; + case "APP_SHORTCUT": + case 16: + m.botEntryPointOrigin = 16; + break; + case "FF_FAMILY": + case 17: + m.botEntryPointOrigin = 17; + break; + case "AI_TAB": + case 18: + m.botEntryPointOrigin = 18; + break; + case "AI_HOME": + case 19: + m.botEntryPointOrigin = 19; + break; + case "AI_DEEPLINK_IMMERSIVE": + case 20: + m.botEntryPointOrigin = 20; + break; + case "AI_DEEPLINK": + case 21: + m.botEntryPointOrigin = 21; + break; + case "META_AI_CHAT_SHORTCUT_AI_STUDIO": + case 22: + m.botEntryPointOrigin = 22; + break; + case "UGC_CHAT_SHORTCUT_AI_STUDIO": + case 23: + m.botEntryPointOrigin = 23; + break; + case "NEW_CHAT_AI_STUDIO": + case 24: + m.botEntryPointOrigin = 24; + break; + case "AIVOICE_FAVICON_CALL_HISTORY": + case 25: + m.botEntryPointOrigin = 25; + break; + case "ASK_META_AI_CONTEXT_MENU": + case 26: + m.botEntryPointOrigin = 26; + break; + case "ASK_META_AI_CONTEXT_MENU_1ON1": + case 27: + m.botEntryPointOrigin = 27; + break; + case "ASK_META_AI_CONTEXT_MENU_GROUP": + case 28: + m.botEntryPointOrigin = 28; + break; + case "INVOKE_META_AI_1ON1": + case 29: + m.botEntryPointOrigin = 29; + break; + case "INVOKE_META_AI_GROUP": + case 30: + m.botEntryPointOrigin = 30; + break; + case "META_AI_FORWARD": + case 31: + m.botEntryPointOrigin = 31; + break; + case "NEW_CHAT_AI_CONTACT": + case 32: + m.botEntryPointOrigin = 32; + break; + case "MESSAGE_QUICK_ACTION_1_ON_1_CHAT": + case 33: + m.botEntryPointOrigin = 33; + break; + case "MESSAGE_QUICK_ACTION_GROUP_CHAT": + case 34: + m.botEntryPointOrigin = 34; + break; + case "ATTACHMENT_TRAY_1_ON_1_CHAT": + case 35: + m.botEntryPointOrigin = 35; + break; + case "ATTACHMENT_TRAY_GROUP_CHAT": + case 36: + m.botEntryPointOrigin = 36; + break; + case "ASK_META_AI_MEDIA_VIEWER_1ON1": + case 37: + m.botEntryPointOrigin = 37; + break; + case "ASK_META_AI_MEDIA_VIEWER_GROUP": + case 38: + m.botEntryPointOrigin = 38; + break; + } + if (d.forwardScore != null) { + m.forwardScore = d.forwardScore >>> 0; + } + return m; + }; + + BotMessageSharingInfo.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.botEntryPointOrigin != null && m.hasOwnProperty("botEntryPointOrigin")) { + d.botEntryPointOrigin = o.enums === String ? $root.proto.BotMetricsEntryPoint[m.botEntryPointOrigin] === undefined ? m.botEntryPointOrigin : $root.proto.BotMetricsEntryPoint[m.botEntryPointOrigin] : m.botEntryPointOrigin; + if (o.oneofs) + d._botEntryPointOrigin = "botEntryPointOrigin"; + } + if (m.forwardScore != null && m.hasOwnProperty("forwardScore")) { + d.forwardScore = m.forwardScore; + if (o.oneofs) + d._forwardScore = "forwardScore"; + } + return d; + }; + + BotMessageSharingInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BotMessageSharingInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotMessageSharingInfo"; + }; + + return BotMessageSharingInfo; + })(); + proto.BotMetadata = (function() { function BotMetadata(p) { @@ -6620,6 +9556,16 @@ export const proto = $root.proto = (() => { BotMetadata.prototype.botModeSelectionMetadata = null; BotMetadata.prototype.botQuotaMetadata = null; BotMetadata.prototype.botAgeCollectionMetadata = null; + BotMetadata.prototype.conversationStarterPromptId = null; + BotMetadata.prototype.botResponseId = null; + BotMetadata.prototype.verificationMetadata = null; + BotMetadata.prototype.unifiedResponseMutation = null; + BotMetadata.prototype.botMessageOriginMetadata = null; + BotMetadata.prototype.inThreadSurveyMetadata = null; + BotMetadata.prototype.botThreadInfo = null; + BotMetadata.prototype.regenerateMetadata = null; + BotMetadata.prototype.sessionTransparencyMetadata = null; + BotMetadata.prototype.internalMetadata = null; let $oneOfFields; @@ -6767,6 +9713,66 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_conversationStarterPromptId", { + get: $util.oneOfGetter($oneOfFields = ["conversationStarterPromptId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_botResponseId", { + get: $util.oneOfGetter($oneOfFields = ["botResponseId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_verificationMetadata", { + get: $util.oneOfGetter($oneOfFields = ["verificationMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_unifiedResponseMutation", { + get: $util.oneOfGetter($oneOfFields = ["unifiedResponseMutation"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_botMessageOriginMetadata", { + get: $util.oneOfGetter($oneOfFields = ["botMessageOriginMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_inThreadSurveyMetadata", { + get: $util.oneOfGetter($oneOfFields = ["inThreadSurveyMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_botThreadInfo", { + get: $util.oneOfGetter($oneOfFields = ["botThreadInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_regenerateMetadata", { + get: $util.oneOfGetter($oneOfFields = ["regenerateMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_sessionTransparencyMetadata", { + get: $util.oneOfGetter($oneOfFields = ["sessionTransparencyMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotMetadata.prototype, "_internalMetadata", { + get: $util.oneOfGetter($oneOfFields = ["internalMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + BotMetadata.create = function create(properties) { return new BotMetadata(properties); }; @@ -6822,6 +9828,26 @@ export const proto = $root.proto = (() => { $root.proto.BotQuotaMetadata.encode(m.botQuotaMetadata, w.uint32(186).fork()).ldelim(); if (m.botAgeCollectionMetadata != null && Object.hasOwnProperty.call(m, "botAgeCollectionMetadata")) $root.proto.BotAgeCollectionMetadata.encode(m.botAgeCollectionMetadata, w.uint32(194).fork()).ldelim(); + if (m.conversationStarterPromptId != null && Object.hasOwnProperty.call(m, "conversationStarterPromptId")) + w.uint32(202).string(m.conversationStarterPromptId); + if (m.botResponseId != null && Object.hasOwnProperty.call(m, "botResponseId")) + w.uint32(210).string(m.botResponseId); + if (m.verificationMetadata != null && Object.hasOwnProperty.call(m, "verificationMetadata")) + $root.proto.BotSignatureVerificationMetadata.encode(m.verificationMetadata, w.uint32(218).fork()).ldelim(); + if (m.unifiedResponseMutation != null && Object.hasOwnProperty.call(m, "unifiedResponseMutation")) + $root.proto.BotUnifiedResponseMutation.encode(m.unifiedResponseMutation, w.uint32(226).fork()).ldelim(); + if (m.botMessageOriginMetadata != null && Object.hasOwnProperty.call(m, "botMessageOriginMetadata")) + $root.proto.BotMessageOriginMetadata.encode(m.botMessageOriginMetadata, w.uint32(234).fork()).ldelim(); + if (m.inThreadSurveyMetadata != null && Object.hasOwnProperty.call(m, "inThreadSurveyMetadata")) + $root.proto.InThreadSurveyMetadata.encode(m.inThreadSurveyMetadata, w.uint32(242).fork()).ldelim(); + if (m.botThreadInfo != null && Object.hasOwnProperty.call(m, "botThreadInfo")) + $root.proto.AIThreadInfo.encode(m.botThreadInfo, w.uint32(250).fork()).ldelim(); + if (m.regenerateMetadata != null && Object.hasOwnProperty.call(m, "regenerateMetadata")) + $root.proto.AIRegenerateMetadata.encode(m.regenerateMetadata, w.uint32(258).fork()).ldelim(); + if (m.sessionTransparencyMetadata != null && Object.hasOwnProperty.call(m, "sessionTransparencyMetadata")) + $root.proto.SessionTransparencyMetadata.encode(m.sessionTransparencyMetadata, w.uint32(266).fork()).ldelim(); + if (m.internalMetadata != null && Object.hasOwnProperty.call(m, "internalMetadata")) + w.uint32(7994).bytes(m.internalMetadata); return w; }; @@ -6930,6 +9956,46 @@ export const proto = $root.proto = (() => { m.botAgeCollectionMetadata = $root.proto.BotAgeCollectionMetadata.decode(r, r.uint32()); break; } + case 25: { + m.conversationStarterPromptId = r.string(); + break; + } + case 26: { + m.botResponseId = r.string(); + break; + } + case 27: { + m.verificationMetadata = $root.proto.BotSignatureVerificationMetadata.decode(r, r.uint32()); + break; + } + case 28: { + m.unifiedResponseMutation = $root.proto.BotUnifiedResponseMutation.decode(r, r.uint32()); + break; + } + case 29: { + m.botMessageOriginMetadata = $root.proto.BotMessageOriginMetadata.decode(r, r.uint32()); + break; + } + case 30: { + m.inThreadSurveyMetadata = $root.proto.InThreadSurveyMetadata.decode(r, r.uint32()); + break; + } + case 31: { + m.botThreadInfo = $root.proto.AIThreadInfo.decode(r, r.uint32()); + break; + } + case 32: { + m.regenerateMetadata = $root.proto.AIRegenerateMetadata.decode(r, r.uint32()); + break; + } + case 33: { + m.sessionTransparencyMetadata = $root.proto.SessionTransparencyMetadata.decode(r, r.uint32()); + break; + } + case 999: { + m.internalMetadata = r.bytes(); + break; + } default: r.skipType(t & 7); break; @@ -7055,6 +10121,53 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.BotMetadata.botAgeCollectionMetadata: object expected"); m.botAgeCollectionMetadata = $root.proto.BotAgeCollectionMetadata.fromObject(d.botAgeCollectionMetadata); } + if (d.conversationStarterPromptId != null) { + m.conversationStarterPromptId = String(d.conversationStarterPromptId); + } + if (d.botResponseId != null) { + m.botResponseId = String(d.botResponseId); + } + if (d.verificationMetadata != null) { + if (typeof d.verificationMetadata !== "object") + throw TypeError(".proto.BotMetadata.verificationMetadata: object expected"); + m.verificationMetadata = $root.proto.BotSignatureVerificationMetadata.fromObject(d.verificationMetadata); + } + if (d.unifiedResponseMutation != null) { + if (typeof d.unifiedResponseMutation !== "object") + throw TypeError(".proto.BotMetadata.unifiedResponseMutation: object expected"); + m.unifiedResponseMutation = $root.proto.BotUnifiedResponseMutation.fromObject(d.unifiedResponseMutation); + } + if (d.botMessageOriginMetadata != null) { + if (typeof d.botMessageOriginMetadata !== "object") + throw TypeError(".proto.BotMetadata.botMessageOriginMetadata: object expected"); + m.botMessageOriginMetadata = $root.proto.BotMessageOriginMetadata.fromObject(d.botMessageOriginMetadata); + } + if (d.inThreadSurveyMetadata != null) { + if (typeof d.inThreadSurveyMetadata !== "object") + throw TypeError(".proto.BotMetadata.inThreadSurveyMetadata: object expected"); + m.inThreadSurveyMetadata = $root.proto.InThreadSurveyMetadata.fromObject(d.inThreadSurveyMetadata); + } + if (d.botThreadInfo != null) { + if (typeof d.botThreadInfo !== "object") + throw TypeError(".proto.BotMetadata.botThreadInfo: object expected"); + m.botThreadInfo = $root.proto.AIThreadInfo.fromObject(d.botThreadInfo); + } + if (d.regenerateMetadata != null) { + if (typeof d.regenerateMetadata !== "object") + throw TypeError(".proto.BotMetadata.regenerateMetadata: object expected"); + m.regenerateMetadata = $root.proto.AIRegenerateMetadata.fromObject(d.regenerateMetadata); + } + if (d.sessionTransparencyMetadata != null) { + if (typeof d.sessionTransparencyMetadata !== "object") + throw TypeError(".proto.BotMetadata.sessionTransparencyMetadata: object expected"); + m.sessionTransparencyMetadata = $root.proto.SessionTransparencyMetadata.fromObject(d.sessionTransparencyMetadata); + } + if (d.internalMetadata != null) { + if (typeof d.internalMetadata === "string") + $util.base64.decode(d.internalMetadata, m.internalMetadata = $util.newBuffer($util.base64.length(d.internalMetadata)), 0); + else if (d.internalMetadata.length >= 0) + m.internalMetadata = d.internalMetadata; + } return m; }; @@ -7182,6 +10295,56 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._botAgeCollectionMetadata = "botAgeCollectionMetadata"; } + if (m.conversationStarterPromptId != null && m.hasOwnProperty("conversationStarterPromptId")) { + d.conversationStarterPromptId = m.conversationStarterPromptId; + if (o.oneofs) + d._conversationStarterPromptId = "conversationStarterPromptId"; + } + if (m.botResponseId != null && m.hasOwnProperty("botResponseId")) { + d.botResponseId = m.botResponseId; + if (o.oneofs) + d._botResponseId = "botResponseId"; + } + if (m.verificationMetadata != null && m.hasOwnProperty("verificationMetadata")) { + d.verificationMetadata = $root.proto.BotSignatureVerificationMetadata.toObject(m.verificationMetadata, o); + if (o.oneofs) + d._verificationMetadata = "verificationMetadata"; + } + if (m.unifiedResponseMutation != null && m.hasOwnProperty("unifiedResponseMutation")) { + d.unifiedResponseMutation = $root.proto.BotUnifiedResponseMutation.toObject(m.unifiedResponseMutation, o); + if (o.oneofs) + d._unifiedResponseMutation = "unifiedResponseMutation"; + } + if (m.botMessageOriginMetadata != null && m.hasOwnProperty("botMessageOriginMetadata")) { + d.botMessageOriginMetadata = $root.proto.BotMessageOriginMetadata.toObject(m.botMessageOriginMetadata, o); + if (o.oneofs) + d._botMessageOriginMetadata = "botMessageOriginMetadata"; + } + if (m.inThreadSurveyMetadata != null && m.hasOwnProperty("inThreadSurveyMetadata")) { + d.inThreadSurveyMetadata = $root.proto.InThreadSurveyMetadata.toObject(m.inThreadSurveyMetadata, o); + if (o.oneofs) + d._inThreadSurveyMetadata = "inThreadSurveyMetadata"; + } + if (m.botThreadInfo != null && m.hasOwnProperty("botThreadInfo")) { + d.botThreadInfo = $root.proto.AIThreadInfo.toObject(m.botThreadInfo, o); + if (o.oneofs) + d._botThreadInfo = "botThreadInfo"; + } + if (m.regenerateMetadata != null && m.hasOwnProperty("regenerateMetadata")) { + d.regenerateMetadata = $root.proto.AIRegenerateMetadata.toObject(m.regenerateMetadata, o); + if (o.oneofs) + d._regenerateMetadata = "regenerateMetadata"; + } + if (m.sessionTransparencyMetadata != null && m.hasOwnProperty("sessionTransparencyMetadata")) { + d.sessionTransparencyMetadata = $root.proto.SessionTransparencyMetadata.toObject(m.sessionTransparencyMetadata, o); + if (o.oneofs) + d._sessionTransparencyMetadata = "sessionTransparencyMetadata"; + } + if (m.internalMetadata != null && m.hasOwnProperty("internalMetadata")) { + d.internalMetadata = o.bytes === String ? $util.base64.encode(m.internalMetadata, 0, m.internalMetadata.length) : o.bytes === Array ? Array.prototype.slice.call(m.internalMetadata) : m.internalMetadata; + if (o.oneofs) + d._internalMetadata = "internalMetadata"; + } return d; }; @@ -7201,6 +10364,7 @@ export const proto = $root.proto = (() => { proto.BotMetricsEntryPoint = (function() { const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ENTRY_POINT"] = 0; values[valuesById[1] = "FAVICON"] = 1; values[valuesById[2] = "CHATLIST"] = 2; values[valuesById[3] = "AISEARCH_NULL_STATE_PAPER_PLANE"] = 3; @@ -7225,6 +10389,20 @@ export const proto = $root.proto = (() => { values[valuesById[22] = "META_AI_CHAT_SHORTCUT_AI_STUDIO"] = 22; values[valuesById[23] = "UGC_CHAT_SHORTCUT_AI_STUDIO"] = 23; values[valuesById[24] = "NEW_CHAT_AI_STUDIO"] = 24; + values[valuesById[25] = "AIVOICE_FAVICON_CALL_HISTORY"] = 25; + values[valuesById[26] = "ASK_META_AI_CONTEXT_MENU"] = 26; + values[valuesById[27] = "ASK_META_AI_CONTEXT_MENU_1ON1"] = 27; + values[valuesById[28] = "ASK_META_AI_CONTEXT_MENU_GROUP"] = 28; + values[valuesById[29] = "INVOKE_META_AI_1ON1"] = 29; + values[valuesById[30] = "INVOKE_META_AI_GROUP"] = 30; + values[valuesById[31] = "META_AI_FORWARD"] = 31; + values[valuesById[32] = "NEW_CHAT_AI_CONTACT"] = 32; + values[valuesById[33] = "MESSAGE_QUICK_ACTION_1_ON_1_CHAT"] = 33; + values[valuesById[34] = "MESSAGE_QUICK_ACTION_GROUP_CHAT"] = 34; + values[valuesById[35] = "ATTACHMENT_TRAY_1_ON_1_CHAT"] = 35; + values[valuesById[36] = "ATTACHMENT_TRAY_GROUP_CHAT"] = 36; + values[valuesById[37] = "ASK_META_AI_MEDIA_VIEWER_1ON1"] = 37; + values[valuesById[38] = "ASK_META_AI_MEDIA_VIEWER_GROUP"] = 38; return values; })(); @@ -7320,6 +10498,10 @@ export const proto = $root.proto = (() => { break; } break; + case "UNDEFINED_ENTRY_POINT": + case 0: + m.destinationEntryPoint = 0; + break; case "FAVICON": case 1: m.destinationEntryPoint = 1; @@ -7416,6 +10598,62 @@ export const proto = $root.proto = (() => { case 24: m.destinationEntryPoint = 24; break; + case "AIVOICE_FAVICON_CALL_HISTORY": + case 25: + m.destinationEntryPoint = 25; + break; + case "ASK_META_AI_CONTEXT_MENU": + case 26: + m.destinationEntryPoint = 26; + break; + case "ASK_META_AI_CONTEXT_MENU_1ON1": + case 27: + m.destinationEntryPoint = 27; + break; + case "ASK_META_AI_CONTEXT_MENU_GROUP": + case 28: + m.destinationEntryPoint = 28; + break; + case "INVOKE_META_AI_1ON1": + case 29: + m.destinationEntryPoint = 29; + break; + case "INVOKE_META_AI_GROUP": + case 30: + m.destinationEntryPoint = 30; + break; + case "META_AI_FORWARD": + case 31: + m.destinationEntryPoint = 31; + break; + case "NEW_CHAT_AI_CONTACT": + case 32: + m.destinationEntryPoint = 32; + break; + case "MESSAGE_QUICK_ACTION_1_ON_1_CHAT": + case 33: + m.destinationEntryPoint = 33; + break; + case "MESSAGE_QUICK_ACTION_GROUP_CHAT": + case 34: + m.destinationEntryPoint = 34; + break; + case "ATTACHMENT_TRAY_1_ON_1_CHAT": + case 35: + m.destinationEntryPoint = 35; + break; + case "ATTACHMENT_TRAY_GROUP_CHAT": + case 36: + m.destinationEntryPoint = 36; + break; + case "ASK_META_AI_MEDIA_VIEWER_1ON1": + case 37: + m.destinationEntryPoint = 37; + break; + case "ASK_META_AI_MEDIA_VIEWER_GROUP": + case 38: + m.destinationEntryPoint = 38; + break; } switch (d.threadOrigin) { default: @@ -7440,6 +10678,10 @@ export const proto = $root.proto = (() => { case 4: m.threadOrigin = 4; break; + case "ASK_META_AI_CONTEXT_MENU_THREAD": + case 5: + m.threadOrigin = 5; + break; } return m; }; @@ -7486,6 +10728,7 @@ export const proto = $root.proto = (() => { values[valuesById[2] = "AI_HOME_THREAD"] = 2; values[valuesById[3] = "AI_DEEPLINK_IMMERSIVE_THREAD"] = 3; values[valuesById[4] = "AI_DEEPLINK_THREAD"] = 4; + values[valuesById[5] = "ASK_META_AI_CONTEXT_MENU_THREAD"] = 5; return values; })(); @@ -7622,6 +10865,7 @@ export const proto = $root.proto = (() => { BotModelMetadata.prototype.modelType = null; BotModelMetadata.prototype.premiumModelStatus = null; + BotModelMetadata.prototype.modelNameOverride = null; let $oneOfFields; @@ -7637,6 +10881,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotModelMetadata.prototype, "_modelNameOverride", { + get: $util.oneOfGetter($oneOfFields = ["modelNameOverride"]), + set: $util.oneOfSetter($oneOfFields) + }); + BotModelMetadata.create = function create(properties) { return new BotModelMetadata(properties); }; @@ -7648,6 +10898,8 @@ export const proto = $root.proto = (() => { w.uint32(8).int32(m.modelType); if (m.premiumModelStatus != null && Object.hasOwnProperty.call(m, "premiumModelStatus")) w.uint32(16).int32(m.premiumModelStatus); + if (m.modelNameOverride != null && Object.hasOwnProperty.call(m, "modelNameOverride")) + w.uint32(26).string(m.modelNameOverride); return w; }; @@ -7668,6 +10920,10 @@ export const proto = $root.proto = (() => { m.premiumModelStatus = r.int32(); break; } + case 3: { + m.modelNameOverride = r.string(); + break; + } default: r.skipType(t & 7); break; @@ -7720,6 +10976,9 @@ export const proto = $root.proto = (() => { m.premiumModelStatus = 2; break; } + if (d.modelNameOverride != null) { + m.modelNameOverride = String(d.modelNameOverride); + } return m; }; @@ -7737,6 +10996,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._premiumModelStatus = "premiumModelStatus"; } + if (m.modelNameOverride != null && m.hasOwnProperty("modelNameOverride")) { + d.modelNameOverride = m.modelNameOverride; + if (o.oneofs) + d._modelNameOverride = "modelNameOverride"; + } return d; }; @@ -9126,6 +12390,10 @@ export const proto = $root.proto = (() => { case 1: m.promotionType = 1; break; + case "SURVEY_PLATFORM": + case 2: + m.promotionType = 2; + break; } if (d.buttonTitle != null) { m.buttonTitle = String(d.buttonTitle); @@ -9165,6 +12433,7 @@ export const proto = $root.proto = (() => { const valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNKNOWN_TYPE"] = 0; values[valuesById[1] = "C50"] = 1; + values[valuesById[2] = "SURVEY_PLATFORM"] = 2; return values; })(); @@ -10248,6 +13517,287 @@ export const proto = $root.proto = (() => { return values; })(); + proto.BotSignatureVerificationMetadata = (function() { + + function BotSignatureVerificationMetadata(p) { + this.proofs = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BotSignatureVerificationMetadata.prototype.proofs = $util.emptyArray; + + BotSignatureVerificationMetadata.create = function create(properties) { + return new BotSignatureVerificationMetadata(properties); + }; + + BotSignatureVerificationMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.proofs != null && m.proofs.length) { + for (var i = 0; i < m.proofs.length; ++i) + $root.proto.BotSignatureVerificationUseCaseProof.encode(m.proofs[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + + BotSignatureVerificationMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotSignatureVerificationMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + if (!(m.proofs && m.proofs.length)) + m.proofs = []; + m.proofs.push($root.proto.BotSignatureVerificationUseCaseProof.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BotSignatureVerificationMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotSignatureVerificationMetadata) + return d; + var m = new $root.proto.BotSignatureVerificationMetadata(); + if (d.proofs) { + if (!Array.isArray(d.proofs)) + throw TypeError(".proto.BotSignatureVerificationMetadata.proofs: array expected"); + m.proofs = []; + for (var i = 0; i < d.proofs.length; ++i) { + if (typeof d.proofs[i] !== "object") + throw TypeError(".proto.BotSignatureVerificationMetadata.proofs: object expected"); + m.proofs[i] = $root.proto.BotSignatureVerificationUseCaseProof.fromObject(d.proofs[i]); + } + } + return m; + }; + + BotSignatureVerificationMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.proofs = []; + } + if (m.proofs && m.proofs.length) { + d.proofs = []; + for (var j = 0; j < m.proofs.length; ++j) { + d.proofs[j] = $root.proto.BotSignatureVerificationUseCaseProof.toObject(m.proofs[j], o); + } + } + return d; + }; + + BotSignatureVerificationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BotSignatureVerificationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotSignatureVerificationMetadata"; + }; + + return BotSignatureVerificationMetadata; + })(); + + proto.BotSignatureVerificationUseCaseProof = (function() { + + function BotSignatureVerificationUseCaseProof(p) { + this.certificateChain = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BotSignatureVerificationUseCaseProof.prototype.version = null; + BotSignatureVerificationUseCaseProof.prototype.useCase = null; + BotSignatureVerificationUseCaseProof.prototype.signature = null; + BotSignatureVerificationUseCaseProof.prototype.certificateChain = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_version", { + get: $util.oneOfGetter($oneOfFields = ["version"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_useCase", { + get: $util.oneOfGetter($oneOfFields = ["useCase"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_signature", { + get: $util.oneOfGetter($oneOfFields = ["signature"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BotSignatureVerificationUseCaseProof.create = function create(properties) { + return new BotSignatureVerificationUseCaseProof(properties); + }; + + BotSignatureVerificationUseCaseProof.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) + w.uint32(8).int32(m.version); + if (m.useCase != null && Object.hasOwnProperty.call(m, "useCase")) + w.uint32(16).int32(m.useCase); + if (m.signature != null && Object.hasOwnProperty.call(m, "signature")) + w.uint32(26).bytes(m.signature); + if (m.certificateChain != null && m.certificateChain.length) { + for (var i = 0; i < m.certificateChain.length; ++i) + w.uint32(34).bytes(m.certificateChain[i]); + } + return w; + }; + + BotSignatureVerificationUseCaseProof.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotSignatureVerificationUseCaseProof(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.version = r.int32(); + break; + } + case 2: { + m.useCase = r.int32(); + break; + } + case 3: { + m.signature = r.bytes(); + break; + } + case 4: { + if (!(m.certificateChain && m.certificateChain.length)) + m.certificateChain = []; + m.certificateChain.push(r.bytes()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BotSignatureVerificationUseCaseProof.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotSignatureVerificationUseCaseProof) + return d; + var m = new $root.proto.BotSignatureVerificationUseCaseProof(); + if (d.version != null) { + m.version = d.version | 0; + } + switch (d.useCase) { + default: + if (typeof d.useCase === "number") { + m.useCase = d.useCase; + break; + } + break; + case "UNSPECIFIED": + case 0: + m.useCase = 0; + break; + case "WA_BOT_MSG": + case 1: + m.useCase = 1; + break; + } + if (d.signature != null) { + if (typeof d.signature === "string") + $util.base64.decode(d.signature, m.signature = $util.newBuffer($util.base64.length(d.signature)), 0); + else if (d.signature.length >= 0) + m.signature = d.signature; + } + if (d.certificateChain) { + if (!Array.isArray(d.certificateChain)) + throw TypeError(".proto.BotSignatureVerificationUseCaseProof.certificateChain: array expected"); + m.certificateChain = []; + for (var i = 0; i < d.certificateChain.length; ++i) { + if (typeof d.certificateChain[i] === "string") + $util.base64.decode(d.certificateChain[i], m.certificateChain[i] = $util.newBuffer($util.base64.length(d.certificateChain[i])), 0); + else if (d.certificateChain[i].length >= 0) + m.certificateChain[i] = d.certificateChain[i]; + } + } + return m; + }; + + BotSignatureVerificationUseCaseProof.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.certificateChain = []; + } + if (m.version != null && m.hasOwnProperty("version")) { + d.version = m.version; + if (o.oneofs) + d._version = "version"; + } + if (m.useCase != null && m.hasOwnProperty("useCase")) { + d.useCase = o.enums === String ? $root.proto.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[m.useCase] === undefined ? m.useCase : $root.proto.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[m.useCase] : m.useCase; + if (o.oneofs) + d._useCase = "useCase"; + } + if (m.signature != null && m.hasOwnProperty("signature")) { + d.signature = o.bytes === String ? $util.base64.encode(m.signature, 0, m.signature.length) : o.bytes === Array ? Array.prototype.slice.call(m.signature) : m.signature; + if (o.oneofs) + d._signature = "signature"; + } + if (m.certificateChain && m.certificateChain.length) { + d.certificateChain = []; + for (var j = 0; j < m.certificateChain.length; ++j) { + d.certificateChain[j] = o.bytes === String ? $util.base64.encode(m.certificateChain[j], 0, m.certificateChain[j].length) : o.bytes === Array ? Array.prototype.slice.call(m.certificateChain[j]) : m.certificateChain[j]; + } + } + return d; + }; + + BotSignatureVerificationUseCaseProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BotSignatureVerificationUseCaseProof.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotSignatureVerificationUseCaseProof"; + }; + + BotSignatureVerificationUseCaseProof.BotSignatureUseCase = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "WA_BOT_MSG"] = 1; + return values; + })(); + + return BotSignatureVerificationUseCaseProof; + })(); + proto.BotSourcesMetadata = (function() { function BotSourcesMetadata(p) { @@ -10356,6 +13906,7 @@ export const proto = $root.proto = (() => { BotSourceItem.prototype.sourceQuery = null; BotSourceItem.prototype.faviconCdnUrl = null; BotSourceItem.prototype.citationNumber = null; + BotSourceItem.prototype.sourceTitle = null; let $oneOfFields; @@ -10395,6 +13946,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotSourceItem.prototype, "_sourceTitle", { + get: $util.oneOfGetter($oneOfFields = ["sourceTitle"]), + set: $util.oneOfSetter($oneOfFields) + }); + BotSourceItem.create = function create(properties) { return new BotSourceItem(properties); }; @@ -10414,6 +13971,8 @@ export const proto = $root.proto = (() => { w.uint32(42).string(m.faviconCdnUrl); if (m.citationNumber != null && Object.hasOwnProperty.call(m, "citationNumber")) w.uint32(48).uint32(m.citationNumber); + if (m.sourceTitle != null && Object.hasOwnProperty.call(m, "sourceTitle")) + w.uint32(58).string(m.sourceTitle); return w; }; @@ -10450,6 +14009,10 @@ export const proto = $root.proto = (() => { m.citationNumber = r.uint32(); break; } + case 7: { + m.sourceTitle = r.string(); + break; + } default: r.skipType(t & 7); break; @@ -10485,6 +14048,10 @@ export const proto = $root.proto = (() => { case 3: m.provider = 3; break; + case "OTHER": + case 4: + m.provider = 4; + break; } if (d.thumbnailCdnUrl != null) { m.thumbnailCdnUrl = String(d.thumbnailCdnUrl); @@ -10501,6 +14068,9 @@ export const proto = $root.proto = (() => { if (d.citationNumber != null) { m.citationNumber = d.citationNumber >>> 0; } + if (d.sourceTitle != null) { + m.sourceTitle = String(d.sourceTitle); + } return m; }; @@ -10538,6 +14108,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._citationNumber = "citationNumber"; } + if (m.sourceTitle != null && m.hasOwnProperty("sourceTitle")) { + d.sourceTitle = m.sourceTitle; + if (o.oneofs) + d._sourceTitle = "sourceTitle"; + } return d; }; @@ -10558,6 +14133,7 @@ export const proto = $root.proto = (() => { values[valuesById[1] = "BING"] = 1; values[valuesById[2] = "GOOGLE"] = 2; values[valuesById[3] = "SUPPORT"] = 3; + values[valuesById[4] = "OTHER"] = 4; return values; })(); @@ -10728,6 +14304,370 @@ export const proto = $root.proto = (() => { return BotSuggestedPromptMetadata; })(); + proto.BotUnifiedResponseMutation = (function() { + + function BotUnifiedResponseMutation(p) { + this.mediaDetailsMetadataList = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BotUnifiedResponseMutation.prototype.sbsMetadata = null; + BotUnifiedResponseMutation.prototype.mediaDetailsMetadataList = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BotUnifiedResponseMutation.prototype, "_sbsMetadata", { + get: $util.oneOfGetter($oneOfFields = ["sbsMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BotUnifiedResponseMutation.create = function create(properties) { + return new BotUnifiedResponseMutation(properties); + }; + + BotUnifiedResponseMutation.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.sbsMetadata != null && Object.hasOwnProperty.call(m, "sbsMetadata")) + $root.proto.BotUnifiedResponseMutation.SideBySideMetadata.encode(m.sbsMetadata, w.uint32(10).fork()).ldelim(); + if (m.mediaDetailsMetadataList != null && m.mediaDetailsMetadataList.length) { + for (var i = 0; i < m.mediaDetailsMetadataList.length; ++i) + $root.proto.BotUnifiedResponseMutation.MediaDetailsMetadata.encode(m.mediaDetailsMetadataList[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + + BotUnifiedResponseMutation.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotUnifiedResponseMutation(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.sbsMetadata = $root.proto.BotUnifiedResponseMutation.SideBySideMetadata.decode(r, r.uint32()); + break; + } + case 2: { + if (!(m.mediaDetailsMetadataList && m.mediaDetailsMetadataList.length)) + m.mediaDetailsMetadataList = []; + m.mediaDetailsMetadataList.push($root.proto.BotUnifiedResponseMutation.MediaDetailsMetadata.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BotUnifiedResponseMutation.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotUnifiedResponseMutation) + return d; + var m = new $root.proto.BotUnifiedResponseMutation(); + if (d.sbsMetadata != null) { + if (typeof d.sbsMetadata !== "object") + throw TypeError(".proto.BotUnifiedResponseMutation.sbsMetadata: object expected"); + m.sbsMetadata = $root.proto.BotUnifiedResponseMutation.SideBySideMetadata.fromObject(d.sbsMetadata); + } + if (d.mediaDetailsMetadataList) { + if (!Array.isArray(d.mediaDetailsMetadataList)) + throw TypeError(".proto.BotUnifiedResponseMutation.mediaDetailsMetadataList: array expected"); + m.mediaDetailsMetadataList = []; + for (var i = 0; i < d.mediaDetailsMetadataList.length; ++i) { + if (typeof d.mediaDetailsMetadataList[i] !== "object") + throw TypeError(".proto.BotUnifiedResponseMutation.mediaDetailsMetadataList: object expected"); + m.mediaDetailsMetadataList[i] = $root.proto.BotUnifiedResponseMutation.MediaDetailsMetadata.fromObject(d.mediaDetailsMetadataList[i]); + } + } + return m; + }; + + BotUnifiedResponseMutation.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.mediaDetailsMetadataList = []; + } + if (m.sbsMetadata != null && m.hasOwnProperty("sbsMetadata")) { + d.sbsMetadata = $root.proto.BotUnifiedResponseMutation.SideBySideMetadata.toObject(m.sbsMetadata, o); + if (o.oneofs) + d._sbsMetadata = "sbsMetadata"; + } + if (m.mediaDetailsMetadataList && m.mediaDetailsMetadataList.length) { + d.mediaDetailsMetadataList = []; + for (var j = 0; j < m.mediaDetailsMetadataList.length; ++j) { + d.mediaDetailsMetadataList[j] = $root.proto.BotUnifiedResponseMutation.MediaDetailsMetadata.toObject(m.mediaDetailsMetadataList[j], o); + } + } + return d; + }; + + BotUnifiedResponseMutation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BotUnifiedResponseMutation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotUnifiedResponseMutation"; + }; + + BotUnifiedResponseMutation.MediaDetailsMetadata = (function() { + + function MediaDetailsMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + MediaDetailsMetadata.prototype.id = null; + MediaDetailsMetadata.prototype.highResMedia = null; + MediaDetailsMetadata.prototype.previewMedia = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MediaDetailsMetadata.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MediaDetailsMetadata.prototype, "_highResMedia", { + get: $util.oneOfGetter($oneOfFields = ["highResMedia"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MediaDetailsMetadata.prototype, "_previewMedia", { + get: $util.oneOfGetter($oneOfFields = ["previewMedia"]), + set: $util.oneOfSetter($oneOfFields) + }); + + MediaDetailsMetadata.create = function create(properties) { + return new MediaDetailsMetadata(properties); + }; + + MediaDetailsMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.id != null && Object.hasOwnProperty.call(m, "id")) + w.uint32(10).string(m.id); + if (m.highResMedia != null && Object.hasOwnProperty.call(m, "highResMedia")) + $root.proto.BotMediaMetadata.encode(m.highResMedia, w.uint32(18).fork()).ldelim(); + if (m.previewMedia != null && Object.hasOwnProperty.call(m, "previewMedia")) + $root.proto.BotMediaMetadata.encode(m.previewMedia, w.uint32(26).fork()).ldelim(); + return w; + }; + + MediaDetailsMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotUnifiedResponseMutation.MediaDetailsMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.id = r.string(); + break; + } + case 2: { + m.highResMedia = $root.proto.BotMediaMetadata.decode(r, r.uint32()); + break; + } + case 3: { + m.previewMedia = $root.proto.BotMediaMetadata.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + MediaDetailsMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotUnifiedResponseMutation.MediaDetailsMetadata) + return d; + var m = new $root.proto.BotUnifiedResponseMutation.MediaDetailsMetadata(); + if (d.id != null) { + m.id = String(d.id); + } + if (d.highResMedia != null) { + if (typeof d.highResMedia !== "object") + throw TypeError(".proto.BotUnifiedResponseMutation.MediaDetailsMetadata.highResMedia: object expected"); + m.highResMedia = $root.proto.BotMediaMetadata.fromObject(d.highResMedia); + } + if (d.previewMedia != null) { + if (typeof d.previewMedia !== "object") + throw TypeError(".proto.BotUnifiedResponseMutation.MediaDetailsMetadata.previewMedia: object expected"); + m.previewMedia = $root.proto.BotMediaMetadata.fromObject(d.previewMedia); + } + return m; + }; + + MediaDetailsMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.id != null && m.hasOwnProperty("id")) { + d.id = m.id; + if (o.oneofs) + d._id = "id"; + } + if (m.highResMedia != null && m.hasOwnProperty("highResMedia")) { + d.highResMedia = $root.proto.BotMediaMetadata.toObject(m.highResMedia, o); + if (o.oneofs) + d._highResMedia = "highResMedia"; + } + if (m.previewMedia != null && m.hasOwnProperty("previewMedia")) { + d.previewMedia = $root.proto.BotMediaMetadata.toObject(m.previewMedia, o); + if (o.oneofs) + d._previewMedia = "previewMedia"; + } + return d; + }; + + MediaDetailsMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + MediaDetailsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotUnifiedResponseMutation.MediaDetailsMetadata"; + }; + + return MediaDetailsMetadata; + })(); + + BotUnifiedResponseMutation.SideBySideMetadata = (function() { + + function SideBySideMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SideBySideMetadata.prototype.primaryResponseId = null; + SideBySideMetadata.prototype.surveyCtaHasRendered = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideMetadata.prototype, "_primaryResponseId", { + get: $util.oneOfGetter($oneOfFields = ["primaryResponseId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SideBySideMetadata.prototype, "_surveyCtaHasRendered", { + get: $util.oneOfGetter($oneOfFields = ["surveyCtaHasRendered"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SideBySideMetadata.create = function create(properties) { + return new SideBySideMetadata(properties); + }; + + SideBySideMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.primaryResponseId != null && Object.hasOwnProperty.call(m, "primaryResponseId")) + w.uint32(10).string(m.primaryResponseId); + if (m.surveyCtaHasRendered != null && Object.hasOwnProperty.call(m, "surveyCtaHasRendered")) + w.uint32(16).bool(m.surveyCtaHasRendered); + return w; + }; + + SideBySideMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotUnifiedResponseMutation.SideBySideMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.primaryResponseId = r.string(); + break; + } + case 2: { + m.surveyCtaHasRendered = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SideBySideMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.BotUnifiedResponseMutation.SideBySideMetadata) + return d; + var m = new $root.proto.BotUnifiedResponseMutation.SideBySideMetadata(); + if (d.primaryResponseId != null) { + m.primaryResponseId = String(d.primaryResponseId); + } + if (d.surveyCtaHasRendered != null) { + m.surveyCtaHasRendered = Boolean(d.surveyCtaHasRendered); + } + return m; + }; + + SideBySideMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.primaryResponseId != null && m.hasOwnProperty("primaryResponseId")) { + d.primaryResponseId = m.primaryResponseId; + if (o.oneofs) + d._primaryResponseId = "primaryResponseId"; + } + if (m.surveyCtaHasRendered != null && m.hasOwnProperty("surveyCtaHasRendered")) { + d.surveyCtaHasRendered = m.surveyCtaHasRendered; + if (o.oneofs) + d._surveyCtaHasRendered = "surveyCtaHasRendered"; + } + return d; + }; + + SideBySideMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SideBySideMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.BotUnifiedResponseMutation.SideBySideMetadata"; + }; + + return SideBySideMetadata; + })(); + + return BotUnifiedResponseMutation; + })(); + proto.CallLogRecord = (function() { function CallLogRecord(p) { @@ -12860,6 +16800,7 @@ export const proto = $root.proto = (() => { ClientPairingProps.prototype.isChatDbLidMigrated = null; ClientPairingProps.prototype.isSyncdPureLidSession = null; + ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null; let $oneOfFields; @@ -12875,6 +16816,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientPairingProps.prototype, "_isSyncdSnapshotRecoveryEnabled", { + get: $util.oneOfGetter($oneOfFields = ["isSyncdSnapshotRecoveryEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + ClientPairingProps.create = function create(properties) { return new ClientPairingProps(properties); }; @@ -12886,6 +16833,8 @@ export const proto = $root.proto = (() => { w.uint32(8).bool(m.isChatDbLidMigrated); if (m.isSyncdPureLidSession != null && Object.hasOwnProperty.call(m, "isSyncdPureLidSession")) w.uint32(16).bool(m.isSyncdPureLidSession); + if (m.isSyncdSnapshotRecoveryEnabled != null && Object.hasOwnProperty.call(m, "isSyncdSnapshotRecoveryEnabled")) + w.uint32(24).bool(m.isSyncdSnapshotRecoveryEnabled); return w; }; @@ -12906,6 +16855,10 @@ export const proto = $root.proto = (() => { m.isSyncdPureLidSession = r.bool(); break; } + case 3: { + m.isSyncdSnapshotRecoveryEnabled = r.bool(); + break; + } default: r.skipType(t & 7); break; @@ -12924,6 +16877,9 @@ export const proto = $root.proto = (() => { if (d.isSyncdPureLidSession != null) { m.isSyncdPureLidSession = Boolean(d.isSyncdPureLidSession); } + if (d.isSyncdSnapshotRecoveryEnabled != null) { + m.isSyncdSnapshotRecoveryEnabled = Boolean(d.isSyncdSnapshotRecoveryEnabled); + } return m; }; @@ -12941,6 +16897,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._isSyncdPureLidSession = "isSyncdPureLidSession"; } + if (m.isSyncdSnapshotRecoveryEnabled != null && m.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) { + d.isSyncdSnapshotRecoveryEnabled = m.isSyncdSnapshotRecoveryEnabled; + if (o.oneofs) + d._isSyncdSnapshotRecoveryEnabled = "isSyncdSnapshotRecoveryEnabled"; + } return d; }; @@ -12998,6 +16959,10 @@ export const proto = $root.proto = (() => { ClientPayload.prototype.trafficAnonymization = null; ClientPayload.prototype.lidDbMigrated = null; ClientPayload.prototype.accountType = null; + ClientPayload.prototype.connectionSequenceInfo = null; + ClientPayload.prototype.paaLink = null; + ClientPayload.prototype.preacksCount = null; + ClientPayload.prototype.processingQueueSize = null; let $oneOfFields; @@ -13175,6 +17140,30 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientPayload.prototype, "_connectionSequenceInfo", { + get: $util.oneOfGetter($oneOfFields = ["connectionSequenceInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientPayload.prototype, "_paaLink", { + get: $util.oneOfGetter($oneOfFields = ["paaLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientPayload.prototype, "_preacksCount", { + get: $util.oneOfGetter($oneOfFields = ["preacksCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientPayload.prototype, "_processingQueueSize", { + get: $util.oneOfGetter($oneOfFields = ["processingQueueSize"]), + set: $util.oneOfSetter($oneOfFields) + }); + ClientPayload.create = function create(properties) { return new ClientPayload(properties); }; @@ -13246,6 +17235,14 @@ export const proto = $root.proto = (() => { w.uint32(328).bool(m.lidDbMigrated); if (m.accountType != null && Object.hasOwnProperty.call(m, "accountType")) w.uint32(336).int32(m.accountType); + if (m.connectionSequenceInfo != null && Object.hasOwnProperty.call(m, "connectionSequenceInfo")) + w.uint32(349).sfixed32(m.connectionSequenceInfo); + if (m.paaLink != null && Object.hasOwnProperty.call(m, "paaLink")) + w.uint32(352).bool(m.paaLink); + if (m.preacksCount != null && Object.hasOwnProperty.call(m, "preacksCount")) + w.uint32(360).int32(m.preacksCount); + if (m.processingQueueSize != null && Object.hasOwnProperty.call(m, "processingQueueSize")) + w.uint32(368).int32(m.processingQueueSize); return w; }; @@ -13385,6 +17382,22 @@ export const proto = $root.proto = (() => { m.accountType = r.int32(); break; } + case 43: { + m.connectionSequenceInfo = r.sfixed32(); + break; + } + case 44: { + m.paaLink = r.bool(); + break; + } + case 45: { + m.preacksCount = r.int32(); + break; + } + case 46: { + m.processingQueueSize = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -13694,6 +17707,18 @@ export const proto = $root.proto = (() => { m.accountType = 1; break; } + if (d.connectionSequenceInfo != null) { + m.connectionSequenceInfo = d.connectionSequenceInfo | 0; + } + if (d.paaLink != null) { + m.paaLink = Boolean(d.paaLink); + } + if (d.preacksCount != null) { + m.preacksCount = d.preacksCount | 0; + } + if (d.processingQueueSize != null) { + m.processingQueueSize = d.processingQueueSize | 0; + } return m; }; @@ -13861,6 +17886,26 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._accountType = "accountType"; } + if (m.connectionSequenceInfo != null && m.hasOwnProperty("connectionSequenceInfo")) { + d.connectionSequenceInfo = m.connectionSequenceInfo; + if (o.oneofs) + d._connectionSequenceInfo = "connectionSequenceInfo"; + } + if (m.paaLink != null && m.hasOwnProperty("paaLink")) { + d.paaLink = m.paaLink; + if (o.oneofs) + d._paaLink = "paaLink"; + } + if (m.preacksCount != null && m.hasOwnProperty("preacksCount")) { + d.preacksCount = m.preacksCount; + if (o.oneofs) + d._preacksCount = "preacksCount"; + } + if (m.processingQueueSize != null && m.hasOwnProperty("processingQueueSize")) { + d.processingQueueSize = m.processingQueueSize; + if (o.oneofs) + d._processingQueueSize = "processingQueueSize"; + } return d; }; @@ -14892,6 +18937,14 @@ export const proto = $root.proto = (() => { case 35: m.platform = 35; break; + case "BLUE_VR": + case 36: + m.platform = 36; + break; + case "AR_WRIST": + case 37: + m.platform = 37; + break; } if (d.appVersion != null) { if (typeof d.appVersion !== "object") @@ -15307,6 +19360,8 @@ export const proto = $root.proto = (() => { values[valuesById[33] = "IPAD"] = 33; values[valuesById[34] = "TEST"] = 34; values[valuesById[35] = "SMART_GLASSES"] = 35; + values[valuesById[36] = "BLUE_VR"] = 36; + values[valuesById[37] = "AR_WRIST"] = 37; return values; })(); @@ -15819,6 +19874,17 @@ export const proto = $root.proto = (() => { return ClientPayload; })(); + proto.CollectionName = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COLLECTION_NAME_UNKNOWN"] = 0; + values[valuesById[1] = "REGULAR"] = 1; + values[valuesById[2] = "REGULAR_LOW"] = 2; + values[valuesById[3] = "REGULAR_HIGH"] = 3; + values[valuesById[4] = "CRITICAL_BLOCK"] = 4; + values[valuesById[5] = "CRITICAL_UNBLOCK_LOW"] = 5; + return values; + })(); + proto.CommentMetadata = (function() { function CommentMetadata(p) { @@ -16403,6 +20469,7 @@ export const proto = $root.proto = (() => { function ContextInfo(p) { this.mentionedJid = []; this.groupMentions = []; + this.statusAttributions = []; if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) @@ -16456,6 +20523,14 @@ export const proto = $root.proto = (() => { ContextInfo.prototype.memberLabel = null; ContextInfo.prototype.isQuestion = null; ContextInfo.prototype.statusSourceType = null; + ContextInfo.prototype.statusAttributions = $util.emptyArray; + ContextInfo.prototype.isGroupStatus = null; + ContextInfo.prototype.forwardOrigin = null; + ContextInfo.prototype.questionReplyQuotedMessage = null; + ContextInfo.prototype.statusAudienceMetadata = null; + ContextInfo.prototype.nonJidMentions = null; + ContextInfo.prototype.quotedType = null; + ContextInfo.prototype.botMessageSharingInfo = null; let $oneOfFields; @@ -16729,6 +20804,48 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_isGroupStatus", { + get: $util.oneOfGetter($oneOfFields = ["isGroupStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_forwardOrigin", { + get: $util.oneOfGetter($oneOfFields = ["forwardOrigin"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_questionReplyQuotedMessage", { + get: $util.oneOfGetter($oneOfFields = ["questionReplyQuotedMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_statusAudienceMetadata", { + get: $util.oneOfGetter($oneOfFields = ["statusAudienceMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_nonJidMentions", { + get: $util.oneOfGetter($oneOfFields = ["nonJidMentions"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_quotedType", { + get: $util.oneOfGetter($oneOfFields = ["quotedType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_botMessageSharingInfo", { + get: $util.oneOfGetter($oneOfFields = ["botMessageSharingInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + ContextInfo.create = function create(properties) { return new ContextInfo(properties); }; @@ -16819,7 +20936,7 @@ export const proto = $root.proto = (() => { if (m.ctwaPayload != null && Object.hasOwnProperty.call(m, "ctwaPayload")) w.uint32(442).bytes(m.ctwaPayload); if (m.forwardedAiBotMessageInfo != null && Object.hasOwnProperty.call(m, "forwardedAiBotMessageInfo")) - $root.proto.ContextInfo.ForwardedAIBotMessageInfo.encode(m.forwardedAiBotMessageInfo, w.uint32(450).fork()).ldelim(); + $root.proto.ForwardedAIBotMessageInfo.encode(m.forwardedAiBotMessageInfo, w.uint32(450).fork()).ldelim(); if (m.statusAttributionType != null && Object.hasOwnProperty.call(m, "statusAttributionType")) w.uint32(456).int32(m.statusAttributionType); if (m.urlTrackingMap != null && Object.hasOwnProperty.call(m, "urlTrackingMap")) @@ -16834,6 +20951,24 @@ export const proto = $root.proto = (() => { w.uint32(504).bool(m.isQuestion); if (m.statusSourceType != null && Object.hasOwnProperty.call(m, "statusSourceType")) w.uint32(512).int32(m.statusSourceType); + if (m.statusAttributions != null && m.statusAttributions.length) { + for (var i = 0; i < m.statusAttributions.length; ++i) + $root.proto.StatusAttribution.encode(m.statusAttributions[i], w.uint32(522).fork()).ldelim(); + } + if (m.isGroupStatus != null && Object.hasOwnProperty.call(m, "isGroupStatus")) + w.uint32(528).bool(m.isGroupStatus); + if (m.forwardOrigin != null && Object.hasOwnProperty.call(m, "forwardOrigin")) + w.uint32(536).int32(m.forwardOrigin); + if (m.questionReplyQuotedMessage != null && Object.hasOwnProperty.call(m, "questionReplyQuotedMessage")) + $root.proto.ContextInfo.QuestionReplyQuotedMessage.encode(m.questionReplyQuotedMessage, w.uint32(546).fork()).ldelim(); + if (m.statusAudienceMetadata != null && Object.hasOwnProperty.call(m, "statusAudienceMetadata")) + $root.proto.ContextInfo.StatusAudienceMetadata.encode(m.statusAudienceMetadata, w.uint32(554).fork()).ldelim(); + if (m.nonJidMentions != null && Object.hasOwnProperty.call(m, "nonJidMentions")) + w.uint32(560).uint32(m.nonJidMentions); + if (m.quotedType != null && Object.hasOwnProperty.call(m, "quotedType")) + w.uint32(568).int32(m.quotedType); + if (m.botMessageSharingInfo != null && Object.hasOwnProperty.call(m, "botMessageSharingInfo")) + $root.proto.BotMessageSharingInfo.encode(m.botMessageSharingInfo, w.uint32(578).fork()).ldelim(); return w; }; @@ -17007,7 +21142,7 @@ export const proto = $root.proto = (() => { break; } case 56: { - m.forwardedAiBotMessageInfo = $root.proto.ContextInfo.ForwardedAIBotMessageInfo.decode(r, r.uint32()); + m.forwardedAiBotMessageInfo = $root.proto.ForwardedAIBotMessageInfo.decode(r, r.uint32()); break; } case 57: { @@ -17038,6 +21173,40 @@ export const proto = $root.proto = (() => { m.statusSourceType = r.int32(); break; } + case 65: { + if (!(m.statusAttributions && m.statusAttributions.length)) + m.statusAttributions = []; + m.statusAttributions.push($root.proto.StatusAttribution.decode(r, r.uint32())); + break; + } + case 66: { + m.isGroupStatus = r.bool(); + break; + } + case 67: { + m.forwardOrigin = r.int32(); + break; + } + case 68: { + m.questionReplyQuotedMessage = $root.proto.ContextInfo.QuestionReplyQuotedMessage.decode(r, r.uint32()); + break; + } + case 69: { + m.statusAudienceMetadata = $root.proto.ContextInfo.StatusAudienceMetadata.decode(r, r.uint32()); + break; + } + case 70: { + m.nonJidMentions = r.uint32(); + break; + } + case 71: { + m.quotedType = r.int32(); + break; + } + case 72: { + m.botMessageSharingInfo = $root.proto.BotMessageSharingInfo.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -17220,7 +21389,7 @@ export const proto = $root.proto = (() => { if (d.forwardedAiBotMessageInfo != null) { if (typeof d.forwardedAiBotMessageInfo !== "object") throw TypeError(".proto.ContextInfo.forwardedAiBotMessageInfo: object expected"); - m.forwardedAiBotMessageInfo = $root.proto.ContextInfo.ForwardedAIBotMessageInfo.fromObject(d.forwardedAiBotMessageInfo); + m.forwardedAiBotMessageInfo = $root.proto.ForwardedAIBotMessageInfo.fromObject(d.forwardedAiBotMessageInfo); } switch (d.statusAttributionType) { default: @@ -17241,6 +21410,14 @@ export const proto = $root.proto = (() => { case 2: m.statusAttributionType = 2; break; + case "RESHARED_FROM_POST_MANY_TIMES": + case 3: + m.statusAttributionType = 3; + break; + case "FORWARDED_FROM_STATUS": + case 4: + m.statusAttributionType = 4; + break; } if (d.urlTrackingMap != null) { if (typeof d.urlTrackingMap !== "object") @@ -17282,6 +21459,14 @@ export const proto = $root.proto = (() => { case 6: m.pairedMediaType = 6; break; + case "HEVC_VIDEO_PARENT": + case 7: + m.pairedMediaType = 7; + break; + case "HEVC_VIDEO_CHILD": + case 8: + m.pairedMediaType = 8; + break; } if (d.rankingVersion != null) { m.rankingVersion = d.rankingVersion >>> 0; @@ -17326,6 +21511,85 @@ export const proto = $root.proto = (() => { m.statusSourceType = 5; break; } + if (d.statusAttributions) { + if (!Array.isArray(d.statusAttributions)) + throw TypeError(".proto.ContextInfo.statusAttributions: array expected"); + m.statusAttributions = []; + for (var i = 0; i < d.statusAttributions.length; ++i) { + if (typeof d.statusAttributions[i] !== "object") + throw TypeError(".proto.ContextInfo.statusAttributions: object expected"); + m.statusAttributions[i] = $root.proto.StatusAttribution.fromObject(d.statusAttributions[i]); + } + } + if (d.isGroupStatus != null) { + m.isGroupStatus = Boolean(d.isGroupStatus); + } + switch (d.forwardOrigin) { + default: + if (typeof d.forwardOrigin === "number") { + m.forwardOrigin = d.forwardOrigin; + break; + } + break; + case "UNKNOWN": + case 0: + m.forwardOrigin = 0; + break; + case "CHAT": + case 1: + m.forwardOrigin = 1; + break; + case "STATUS": + case 2: + m.forwardOrigin = 2; + break; + case "CHANNELS": + case 3: + m.forwardOrigin = 3; + break; + case "META_AI": + case 4: + m.forwardOrigin = 4; + break; + case "UGC": + case 5: + m.forwardOrigin = 5; + break; + } + if (d.questionReplyQuotedMessage != null) { + if (typeof d.questionReplyQuotedMessage !== "object") + throw TypeError(".proto.ContextInfo.questionReplyQuotedMessage: object expected"); + m.questionReplyQuotedMessage = $root.proto.ContextInfo.QuestionReplyQuotedMessage.fromObject(d.questionReplyQuotedMessage); + } + if (d.statusAudienceMetadata != null) { + if (typeof d.statusAudienceMetadata !== "object") + throw TypeError(".proto.ContextInfo.statusAudienceMetadata: object expected"); + m.statusAudienceMetadata = $root.proto.ContextInfo.StatusAudienceMetadata.fromObject(d.statusAudienceMetadata); + } + if (d.nonJidMentions != null) { + m.nonJidMentions = d.nonJidMentions >>> 0; + } + switch (d.quotedType) { + default: + if (typeof d.quotedType === "number") { + m.quotedType = d.quotedType; + break; + } + break; + case "EXPLICIT": + case 0: + m.quotedType = 0; + break; + case "AUTO": + case 1: + m.quotedType = 1; + break; + } + if (d.botMessageSharingInfo != null) { + if (typeof d.botMessageSharingInfo !== "object") + throw TypeError(".proto.ContextInfo.botMessageSharingInfo: object expected"); + m.botMessageSharingInfo = $root.proto.BotMessageSharingInfo.fromObject(d.botMessageSharingInfo); + } return m; }; @@ -17336,6 +21600,7 @@ export const proto = $root.proto = (() => { if (o.arrays || o.defaults) { d.mentionedJid = []; d.groupMentions = []; + d.statusAttributions = []; } if (m.stanzaId != null && m.hasOwnProperty("stanzaId")) { d.stanzaId = m.stanzaId; @@ -17538,7 +21803,7 @@ export const proto = $root.proto = (() => { d._ctwaPayload = "ctwaPayload"; } if (m.forwardedAiBotMessageInfo != null && m.hasOwnProperty("forwardedAiBotMessageInfo")) { - d.forwardedAiBotMessageInfo = $root.proto.ContextInfo.ForwardedAIBotMessageInfo.toObject(m.forwardedAiBotMessageInfo, o); + d.forwardedAiBotMessageInfo = $root.proto.ForwardedAIBotMessageInfo.toObject(m.forwardedAiBotMessageInfo, o); if (o.oneofs) d._forwardedAiBotMessageInfo = "forwardedAiBotMessageInfo"; } @@ -17577,6 +21842,47 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._statusSourceType = "statusSourceType"; } + if (m.statusAttributions && m.statusAttributions.length) { + d.statusAttributions = []; + for (var j = 0; j < m.statusAttributions.length; ++j) { + d.statusAttributions[j] = $root.proto.StatusAttribution.toObject(m.statusAttributions[j], o); + } + } + if (m.isGroupStatus != null && m.hasOwnProperty("isGroupStatus")) { + d.isGroupStatus = m.isGroupStatus; + if (o.oneofs) + d._isGroupStatus = "isGroupStatus"; + } + if (m.forwardOrigin != null && m.hasOwnProperty("forwardOrigin")) { + d.forwardOrigin = o.enums === String ? $root.proto.ContextInfo.ForwardOrigin[m.forwardOrigin] === undefined ? m.forwardOrigin : $root.proto.ContextInfo.ForwardOrigin[m.forwardOrigin] : m.forwardOrigin; + if (o.oneofs) + d._forwardOrigin = "forwardOrigin"; + } + if (m.questionReplyQuotedMessage != null && m.hasOwnProperty("questionReplyQuotedMessage")) { + d.questionReplyQuotedMessage = $root.proto.ContextInfo.QuestionReplyQuotedMessage.toObject(m.questionReplyQuotedMessage, o); + if (o.oneofs) + d._questionReplyQuotedMessage = "questionReplyQuotedMessage"; + } + if (m.statusAudienceMetadata != null && m.hasOwnProperty("statusAudienceMetadata")) { + d.statusAudienceMetadata = $root.proto.ContextInfo.StatusAudienceMetadata.toObject(m.statusAudienceMetadata, o); + if (o.oneofs) + d._statusAudienceMetadata = "statusAudienceMetadata"; + } + if (m.nonJidMentions != null && m.hasOwnProperty("nonJidMentions")) { + d.nonJidMentions = m.nonJidMentions; + if (o.oneofs) + d._nonJidMentions = "nonJidMentions"; + } + if (m.quotedType != null && m.hasOwnProperty("quotedType")) { + d.quotedType = o.enums === String ? $root.proto.ContextInfo.QuotedType[m.quotedType] === undefined ? m.quotedType : $root.proto.ContextInfo.QuotedType[m.quotedType] : m.quotedType; + if (o.oneofs) + d._quotedType = "quotedType"; + } + if (m.botMessageSharingInfo != null && m.hasOwnProperty("botMessageSharingInfo")) { + d.botMessageSharingInfo = $root.proto.BotMessageSharingInfo.toObject(m.botMessageSharingInfo, o); + if (o.oneofs) + d._botMessageSharingInfo = "botMessageSharingInfo"; + } return d; }; @@ -17871,6 +22177,7 @@ export const proto = $root.proto = (() => { DataSharingContext.prototype.showMmDisclosure = null; DataSharingContext.prototype.encryptedSignalTokenConsented = null; DataSharingContext.prototype.parameters = $util.emptyArray; + DataSharingContext.prototype.dataSharingFlags = null; let $oneOfFields; @@ -17886,6 +22193,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(DataSharingContext.prototype, "_dataSharingFlags", { + get: $util.oneOfGetter($oneOfFields = ["dataSharingFlags"]), + set: $util.oneOfSetter($oneOfFields) + }); + DataSharingContext.create = function create(properties) { return new DataSharingContext(properties); }; @@ -17901,6 +22214,8 @@ export const proto = $root.proto = (() => { for (var i = 0; i < m.parameters.length; ++i) $root.proto.ContextInfo.DataSharingContext.Parameters.encode(m.parameters[i], w.uint32(26).fork()).ldelim(); } + if (m.dataSharingFlags != null && Object.hasOwnProperty.call(m, "dataSharingFlags")) + w.uint32(32).int32(m.dataSharingFlags); return w; }; @@ -17927,6 +22242,10 @@ export const proto = $root.proto = (() => { m.parameters.push($root.proto.ContextInfo.DataSharingContext.Parameters.decode(r, r.uint32())); break; } + case 4: { + m.dataSharingFlags = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -17955,6 +22274,9 @@ export const proto = $root.proto = (() => { m.parameters[i] = $root.proto.ContextInfo.DataSharingContext.Parameters.fromObject(d.parameters[i]); } } + if (d.dataSharingFlags != null) { + m.dataSharingFlags = d.dataSharingFlags | 0; + } return m; }; @@ -17981,6 +22303,11 @@ export const proto = $root.proto = (() => { d.parameters[j] = $root.proto.ContextInfo.DataSharingContext.Parameters.toObject(m.parameters[j], o); } } + if (m.dataSharingFlags != null && m.hasOwnProperty("dataSharingFlags")) { + d.dataSharingFlags = m.dataSharingFlags; + if (o.oneofs) + d._dataSharingFlags = "dataSharingFlags"; + } return d; }; @@ -17995,6 +22322,13 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.ContextInfo.DataSharingContext"; }; + DataSharingContext.DataSharingFlags = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SHOW_MM_DISCLOSURE_ON_CLICK"] = 1; + values[valuesById[2] = "SHOW_MM_DISCLOSURE_ON_READ"] = 2; + return values; + })(); + DataSharingContext.Parameters = (function() { function Parameters(p) { @@ -18216,6 +22550,8 @@ export const proto = $root.proto = (() => { ExternalAdReplyInfo.prototype.automatedGreetingMessageCtaType = null; ExternalAdReplyInfo.prototype.wtwaAdFormat = null; ExternalAdReplyInfo.prototype.adType = null; + ExternalAdReplyInfo.prototype.wtwaWebsiteUrl = null; + ExternalAdReplyInfo.prototype.adPreviewUrl = null; let $oneOfFields; @@ -18369,6 +22705,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalAdReplyInfo.prototype, "_wtwaWebsiteUrl", { + get: $util.oneOfGetter($oneOfFields = ["wtwaWebsiteUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalAdReplyInfo.prototype, "_adPreviewUrl", { + get: $util.oneOfGetter($oneOfFields = ["adPreviewUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + ExternalAdReplyInfo.create = function create(properties) { return new ExternalAdReplyInfo(properties); }; @@ -18426,6 +22774,10 @@ export const proto = $root.proto = (() => { w.uint32(192).bool(m.wtwaAdFormat); if (m.adType != null && Object.hasOwnProperty.call(m, "adType")) w.uint32(200).int32(m.adType); + if (m.wtwaWebsiteUrl != null && Object.hasOwnProperty.call(m, "wtwaWebsiteUrl")) + w.uint32(210).string(m.wtwaWebsiteUrl); + if (m.adPreviewUrl != null && Object.hasOwnProperty.call(m, "adPreviewUrl")) + w.uint32(218).string(m.adPreviewUrl); return w; }; @@ -18538,6 +22890,14 @@ export const proto = $root.proto = (() => { m.adType = r.int32(); break; } + case 26: { + m.wtwaWebsiteUrl = r.string(); + break; + } + case 27: { + m.adPreviewUrl = r.string(); + break; + } default: r.skipType(t & 7); break; @@ -18658,6 +23018,12 @@ export const proto = $root.proto = (() => { m.adType = 1; break; } + if (d.wtwaWebsiteUrl != null) { + m.wtwaWebsiteUrl = String(d.wtwaWebsiteUrl); + } + if (d.adPreviewUrl != null) { + m.adPreviewUrl = String(d.adPreviewUrl); + } return m; }; @@ -18790,6 +23156,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._adType = "adType"; } + if (m.wtwaWebsiteUrl != null && m.hasOwnProperty("wtwaWebsiteUrl")) { + d.wtwaWebsiteUrl = m.wtwaWebsiteUrl; + if (o.oneofs) + d._wtwaWebsiteUrl = "wtwaWebsiteUrl"; + } + if (m.adPreviewUrl != null && m.hasOwnProperty("adPreviewUrl")) { + d.adPreviewUrl = m.adPreviewUrl; + if (o.oneofs) + d._adPreviewUrl = "adPreviewUrl"; + } return d; }; @@ -18835,6 +23211,7 @@ export const proto = $root.proto = (() => { FeatureEligibilities.prototype.cannotBeRanked = null; FeatureEligibilities.prototype.canRequestFeedback = null; FeatureEligibilities.prototype.canBeReshared = null; + FeatureEligibilities.prototype.canReceiveMultiReact = null; let $oneOfFields; @@ -18862,6 +23239,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(FeatureEligibilities.prototype, "_canReceiveMultiReact", { + get: $util.oneOfGetter($oneOfFields = ["canReceiveMultiReact"]), + set: $util.oneOfSetter($oneOfFields) + }); + FeatureEligibilities.create = function create(properties) { return new FeatureEligibilities(properties); }; @@ -18877,6 +23260,8 @@ export const proto = $root.proto = (() => { w.uint32(24).bool(m.canRequestFeedback); if (m.canBeReshared != null && Object.hasOwnProperty.call(m, "canBeReshared")) w.uint32(32).bool(m.canBeReshared); + if (m.canReceiveMultiReact != null && Object.hasOwnProperty.call(m, "canReceiveMultiReact")) + w.uint32(40).bool(m.canReceiveMultiReact); return w; }; @@ -18905,6 +23290,10 @@ export const proto = $root.proto = (() => { m.canBeReshared = r.bool(); break; } + case 5: { + m.canReceiveMultiReact = r.bool(); + break; + } default: r.skipType(t & 7); break; @@ -18929,6 +23318,9 @@ export const proto = $root.proto = (() => { if (d.canBeReshared != null) { m.canBeReshared = Boolean(d.canBeReshared); } + if (d.canReceiveMultiReact != null) { + m.canReceiveMultiReact = Boolean(d.canReceiveMultiReact); + } return m; }; @@ -18956,6 +23348,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._canBeReshared = "canBeReshared"; } + if (m.canReceiveMultiReact != null && m.hasOwnProperty("canReceiveMultiReact")) { + d.canReceiveMultiReact = m.canReceiveMultiReact; + if (o.oneofs) + d._canReceiveMultiReact = "canReceiveMultiReact"; + } return d; }; @@ -18973,134 +23370,15 @@ export const proto = $root.proto = (() => { return FeatureEligibilities; })(); - ContextInfo.ForwardedAIBotMessageInfo = (function() { - - function ForwardedAIBotMessageInfo(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - ForwardedAIBotMessageInfo.prototype.botName = null; - ForwardedAIBotMessageInfo.prototype.botJid = null; - ForwardedAIBotMessageInfo.prototype.creatorName = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ForwardedAIBotMessageInfo.prototype, "_botName", { - get: $util.oneOfGetter($oneOfFields = ["botName"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ForwardedAIBotMessageInfo.prototype, "_botJid", { - get: $util.oneOfGetter($oneOfFields = ["botJid"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ForwardedAIBotMessageInfo.prototype, "_creatorName", { - get: $util.oneOfGetter($oneOfFields = ["creatorName"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ForwardedAIBotMessageInfo.create = function create(properties) { - return new ForwardedAIBotMessageInfo(properties); - }; - - ForwardedAIBotMessageInfo.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.botName != null && Object.hasOwnProperty.call(m, "botName")) - w.uint32(10).string(m.botName); - if (m.botJid != null && Object.hasOwnProperty.call(m, "botJid")) - w.uint32(18).string(m.botJid); - if (m.creatorName != null && Object.hasOwnProperty.call(m, "creatorName")) - w.uint32(26).string(m.creatorName); - return w; - }; - - ForwardedAIBotMessageInfo.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.ForwardedAIBotMessageInfo(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.botName = r.string(); - break; - } - case 2: { - m.botJid = r.string(); - break; - } - case 3: { - m.creatorName = r.string(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - ForwardedAIBotMessageInfo.fromObject = function fromObject(d) { - if (d instanceof $root.proto.ContextInfo.ForwardedAIBotMessageInfo) - return d; - var m = new $root.proto.ContextInfo.ForwardedAIBotMessageInfo(); - if (d.botName != null) { - m.botName = String(d.botName); - } - if (d.botJid != null) { - m.botJid = String(d.botJid); - } - if (d.creatorName != null) { - m.creatorName = String(d.creatorName); - } - return m; - }; - - ForwardedAIBotMessageInfo.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.botName != null && m.hasOwnProperty("botName")) { - d.botName = m.botName; - if (o.oneofs) - d._botName = "botName"; - } - if (m.botJid != null && m.hasOwnProperty("botJid")) { - d.botJid = m.botJid; - if (o.oneofs) - d._botJid = "botJid"; - } - if (m.creatorName != null && m.hasOwnProperty("creatorName")) { - d.creatorName = m.creatorName; - if (o.oneofs) - d._creatorName = "creatorName"; - } - return d; - }; - - ForwardedAIBotMessageInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ForwardedAIBotMessageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.ContextInfo.ForwardedAIBotMessageInfo"; - }; - - return ForwardedAIBotMessageInfo; + ContextInfo.ForwardOrigin = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CHAT"] = 1; + values[valuesById[2] = "STATUS"] = 2; + values[valuesById[3] = "CHANNELS"] = 3; + values[valuesById[4] = "META_AI"] = 4; + values[valuesById[5] = "UGC"] = 5; + return values; })(); ContextInfo.ForwardedNewsletterMessageInfo = (function() { @@ -19309,6 +23587,149 @@ export const proto = $root.proto = (() => { values[valuesById[4] = "HD_IMAGE_CHILD"] = 4; values[valuesById[5] = "MOTION_PHOTO_PARENT"] = 5; values[valuesById[6] = "MOTION_PHOTO_CHILD"] = 6; + values[valuesById[7] = "HEVC_VIDEO_PARENT"] = 7; + values[valuesById[8] = "HEVC_VIDEO_CHILD"] = 8; + return values; + })(); + + ContextInfo.QuestionReplyQuotedMessage = (function() { + + function QuestionReplyQuotedMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + QuestionReplyQuotedMessage.prototype.serverQuestionId = null; + QuestionReplyQuotedMessage.prototype.quotedQuestion = null; + QuestionReplyQuotedMessage.prototype.quotedResponse = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(QuestionReplyQuotedMessage.prototype, "_serverQuestionId", { + get: $util.oneOfGetter($oneOfFields = ["serverQuestionId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(QuestionReplyQuotedMessage.prototype, "_quotedQuestion", { + get: $util.oneOfGetter($oneOfFields = ["quotedQuestion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(QuestionReplyQuotedMessage.prototype, "_quotedResponse", { + get: $util.oneOfGetter($oneOfFields = ["quotedResponse"]), + set: $util.oneOfSetter($oneOfFields) + }); + + QuestionReplyQuotedMessage.create = function create(properties) { + return new QuestionReplyQuotedMessage(properties); + }; + + QuestionReplyQuotedMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.serverQuestionId != null && Object.hasOwnProperty.call(m, "serverQuestionId")) + w.uint32(8).int32(m.serverQuestionId); + if (m.quotedQuestion != null && Object.hasOwnProperty.call(m, "quotedQuestion")) + $root.proto.Message.encode(m.quotedQuestion, w.uint32(18).fork()).ldelim(); + if (m.quotedResponse != null && Object.hasOwnProperty.call(m, "quotedResponse")) + $root.proto.Message.encode(m.quotedResponse, w.uint32(26).fork()).ldelim(); + return w; + }; + + QuestionReplyQuotedMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.QuestionReplyQuotedMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.serverQuestionId = r.int32(); + break; + } + case 2: { + m.quotedQuestion = $root.proto.Message.decode(r, r.uint32()); + break; + } + case 3: { + m.quotedResponse = $root.proto.Message.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + QuestionReplyQuotedMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.ContextInfo.QuestionReplyQuotedMessage) + return d; + var m = new $root.proto.ContextInfo.QuestionReplyQuotedMessage(); + if (d.serverQuestionId != null) { + m.serverQuestionId = d.serverQuestionId | 0; + } + if (d.quotedQuestion != null) { + if (typeof d.quotedQuestion !== "object") + throw TypeError(".proto.ContextInfo.QuestionReplyQuotedMessage.quotedQuestion: object expected"); + m.quotedQuestion = $root.proto.Message.fromObject(d.quotedQuestion); + } + if (d.quotedResponse != null) { + if (typeof d.quotedResponse !== "object") + throw TypeError(".proto.ContextInfo.QuestionReplyQuotedMessage.quotedResponse: object expected"); + m.quotedResponse = $root.proto.Message.fromObject(d.quotedResponse); + } + return m; + }; + + QuestionReplyQuotedMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.serverQuestionId != null && m.hasOwnProperty("serverQuestionId")) { + d.serverQuestionId = m.serverQuestionId; + if (o.oneofs) + d._serverQuestionId = "serverQuestionId"; + } + if (m.quotedQuestion != null && m.hasOwnProperty("quotedQuestion")) { + d.quotedQuestion = $root.proto.Message.toObject(m.quotedQuestion, o); + if (o.oneofs) + d._quotedQuestion = "quotedQuestion"; + } + if (m.quotedResponse != null && m.hasOwnProperty("quotedResponse")) { + d.quotedResponse = $root.proto.Message.toObject(m.quotedResponse, o); + if (o.oneofs) + d._quotedResponse = "quotedResponse"; + } + return d; + }; + + QuestionReplyQuotedMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + QuestionReplyQuotedMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.ContextInfo.QuestionReplyQuotedMessage"; + }; + + return QuestionReplyQuotedMessage; + })(); + + ContextInfo.QuotedType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EXPLICIT"] = 0; + values[valuesById[1] = "AUTO"] = 1; return values; })(); @@ -19317,9 +23738,119 @@ export const proto = $root.proto = (() => { values[valuesById[0] = "NONE"] = 0; values[valuesById[1] = "RESHARED_FROM_MENTION"] = 1; values[valuesById[2] = "RESHARED_FROM_POST"] = 2; + values[valuesById[3] = "RESHARED_FROM_POST_MANY_TIMES"] = 3; + values[valuesById[4] = "FORWARDED_FROM_STATUS"] = 4; return values; })(); + ContextInfo.StatusAudienceMetadata = (function() { + + function StatusAudienceMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + StatusAudienceMetadata.prototype.audienceType = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusAudienceMetadata.prototype, "_audienceType", { + get: $util.oneOfGetter($oneOfFields = ["audienceType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + StatusAudienceMetadata.create = function create(properties) { + return new StatusAudienceMetadata(properties); + }; + + StatusAudienceMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.audienceType != null && Object.hasOwnProperty.call(m, "audienceType")) + w.uint32(8).int32(m.audienceType); + return w; + }; + + StatusAudienceMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.StatusAudienceMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.audienceType = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + StatusAudienceMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.ContextInfo.StatusAudienceMetadata) + return d; + var m = new $root.proto.ContextInfo.StatusAudienceMetadata(); + switch (d.audienceType) { + default: + if (typeof d.audienceType === "number") { + m.audienceType = d.audienceType; + break; + } + break; + case "UNKNOWN": + case 0: + m.audienceType = 0; + break; + case "CLOSE_FRIENDS": + case 1: + m.audienceType = 1; + break; + } + return m; + }; + + StatusAudienceMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.audienceType != null && m.hasOwnProperty("audienceType")) { + d.audienceType = o.enums === String ? $root.proto.ContextInfo.StatusAudienceMetadata.AudienceType[m.audienceType] === undefined ? m.audienceType : $root.proto.ContextInfo.StatusAudienceMetadata.AudienceType[m.audienceType] : m.audienceType; + if (o.oneofs) + d._audienceType = "audienceType"; + } + return d; + }; + + StatusAudienceMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StatusAudienceMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.ContextInfo.StatusAudienceMetadata"; + }; + + StatusAudienceMetadata.AudienceType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CLOSE_FRIENDS"] = 1; + return values; + })(); + + return StatusAudienceMetadata; + })(); + ContextInfo.StatusSourceType = (function() { const valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "IMAGE"] = 0; @@ -19507,6 +24038,7 @@ export const proto = $root.proto = (() => { Conversation.prototype.limitSharingSettingTimestamp = null; Conversation.prototype.limitSharingTrigger = null; Conversation.prototype.limitSharingInitiatedByMe = null; + Conversation.prototype.maibaAiThreadEnabled = null; let $oneOfFields; @@ -19810,6 +24342,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Conversation.prototype, "_maibaAiThreadEnabled", { + get: $util.oneOfGetter($oneOfFields = ["maibaAiThreadEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + Conversation.create = function create(properties) { return new Conversation(properties); }; @@ -19927,6 +24465,8 @@ export const proto = $root.proto = (() => { w.uint32(416).int32(m.limitSharingTrigger); if (m.limitSharingInitiatedByMe != null && Object.hasOwnProperty.call(m, "limitSharingInitiatedByMe")) w.uint32(424).bool(m.limitSharingInitiatedByMe); + if (m.maibaAiThreadEnabled != null && Object.hasOwnProperty.call(m, "maibaAiThreadEnabled")) + w.uint32(432).bool(m.maibaAiThreadEnabled); return w; }; @@ -20155,6 +24695,10 @@ export const proto = $root.proto = (() => { m.limitSharingInitiatedByMe = r.bool(); break; } + case 54: { + m.maibaAiThreadEnabled = r.bool(); + break; + } default: r.skipType(t & 7); break; @@ -20478,6 +25022,9 @@ export const proto = $root.proto = (() => { if (d.limitSharingInitiatedByMe != null) { m.limitSharingInitiatedByMe = Boolean(d.limitSharingInitiatedByMe); } + if (d.maibaAiThreadEnabled != null) { + m.maibaAiThreadEnabled = Boolean(d.maibaAiThreadEnabled); + } return m; }; @@ -20781,6 +25328,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._limitSharingInitiatedByMe = "limitSharingInitiatedByMe"; } + if (m.maibaAiThreadEnabled != null && m.hasOwnProperty("maibaAiThreadEnabled")) { + d.maibaAiThreadEnabled = m.maibaAiThreadEnabled; + if (o.oneofs) + d._maibaAiThreadEnabled = "maibaAiThreadEnabled"; + } return d; }; @@ -20817,6 +25369,9 @@ export const proto = $root.proto = (() => { DeviceCapabilities.prototype.chatLockSupportLevel = null; DeviceCapabilities.prototype.lidMigration = null; + DeviceCapabilities.prototype.businessBroadcast = null; + DeviceCapabilities.prototype.userHasAvatar = null; + DeviceCapabilities.prototype.memberNameTagPrimarySupport = null; let $oneOfFields; @@ -20832,6 +25387,24 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeviceCapabilities.prototype, "_businessBroadcast", { + get: $util.oneOfGetter($oneOfFields = ["businessBroadcast"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeviceCapabilities.prototype, "_userHasAvatar", { + get: $util.oneOfGetter($oneOfFields = ["userHasAvatar"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeviceCapabilities.prototype, "_memberNameTagPrimarySupport", { + get: $util.oneOfGetter($oneOfFields = ["memberNameTagPrimarySupport"]), + set: $util.oneOfSetter($oneOfFields) + }); + DeviceCapabilities.create = function create(properties) { return new DeviceCapabilities(properties); }; @@ -20843,6 +25416,12 @@ export const proto = $root.proto = (() => { w.uint32(8).int32(m.chatLockSupportLevel); if (m.lidMigration != null && Object.hasOwnProperty.call(m, "lidMigration")) $root.proto.DeviceCapabilities.LIDMigration.encode(m.lidMigration, w.uint32(18).fork()).ldelim(); + if (m.businessBroadcast != null && Object.hasOwnProperty.call(m, "businessBroadcast")) + $root.proto.DeviceCapabilities.BusinessBroadcast.encode(m.businessBroadcast, w.uint32(26).fork()).ldelim(); + if (m.userHasAvatar != null && Object.hasOwnProperty.call(m, "userHasAvatar")) + $root.proto.DeviceCapabilities.UserHasAvatar.encode(m.userHasAvatar, w.uint32(34).fork()).ldelim(); + if (m.memberNameTagPrimarySupport != null && Object.hasOwnProperty.call(m, "memberNameTagPrimarySupport")) + w.uint32(40).int32(m.memberNameTagPrimarySupport); return w; }; @@ -20863,6 +25442,18 @@ export const proto = $root.proto = (() => { m.lidMigration = $root.proto.DeviceCapabilities.LIDMigration.decode(r, r.uint32()); break; } + case 3: { + m.businessBroadcast = $root.proto.DeviceCapabilities.BusinessBroadcast.decode(r, r.uint32()); + break; + } + case 4: { + m.userHasAvatar = $root.proto.DeviceCapabilities.UserHasAvatar.decode(r, r.uint32()); + break; + } + case 5: { + m.memberNameTagPrimarySupport = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -20900,6 +25491,36 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.DeviceCapabilities.lidMigration: object expected"); m.lidMigration = $root.proto.DeviceCapabilities.LIDMigration.fromObject(d.lidMigration); } + if (d.businessBroadcast != null) { + if (typeof d.businessBroadcast !== "object") + throw TypeError(".proto.DeviceCapabilities.businessBroadcast: object expected"); + m.businessBroadcast = $root.proto.DeviceCapabilities.BusinessBroadcast.fromObject(d.businessBroadcast); + } + if (d.userHasAvatar != null) { + if (typeof d.userHasAvatar !== "object") + throw TypeError(".proto.DeviceCapabilities.userHasAvatar: object expected"); + m.userHasAvatar = $root.proto.DeviceCapabilities.UserHasAvatar.fromObject(d.userHasAvatar); + } + switch (d.memberNameTagPrimarySupport) { + default: + if (typeof d.memberNameTagPrimarySupport === "number") { + m.memberNameTagPrimarySupport = d.memberNameTagPrimarySupport; + break; + } + break; + case "DISABLED": + case 0: + m.memberNameTagPrimarySupport = 0; + break; + case "RECEIVER_ENABLED": + case 1: + m.memberNameTagPrimarySupport = 1; + break; + case "SENDER_ENABLED": + case 2: + m.memberNameTagPrimarySupport = 2; + break; + } return m; }; @@ -20917,6 +25538,21 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._lidMigration = "lidMigration"; } + if (m.businessBroadcast != null && m.hasOwnProperty("businessBroadcast")) { + d.businessBroadcast = $root.proto.DeviceCapabilities.BusinessBroadcast.toObject(m.businessBroadcast, o); + if (o.oneofs) + d._businessBroadcast = "businessBroadcast"; + } + if (m.userHasAvatar != null && m.hasOwnProperty("userHasAvatar")) { + d.userHasAvatar = $root.proto.DeviceCapabilities.UserHasAvatar.toObject(m.userHasAvatar, o); + if (o.oneofs) + d._userHasAvatar = "userHasAvatar"; + } + if (m.memberNameTagPrimarySupport != null && m.hasOwnProperty("memberNameTagPrimarySupport")) { + d.memberNameTagPrimarySupport = o.enums === String ? $root.proto.DeviceCapabilities.MemberNameTagPrimarySupport[m.memberNameTagPrimarySupport] === undefined ? m.memberNameTagPrimarySupport : $root.proto.DeviceCapabilities.MemberNameTagPrimarySupport[m.memberNameTagPrimarySupport] : m.memberNameTagPrimarySupport; + if (o.oneofs) + d._memberNameTagPrimarySupport = "memberNameTagPrimarySupport"; + } return d; }; @@ -20931,6 +25567,94 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.DeviceCapabilities"; }; + DeviceCapabilities.BusinessBroadcast = (function() { + + function BusinessBroadcast(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BusinessBroadcast.prototype.importListEnabled = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BusinessBroadcast.prototype, "_importListEnabled", { + get: $util.oneOfGetter($oneOfFields = ["importListEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BusinessBroadcast.create = function create(properties) { + return new BusinessBroadcast(properties); + }; + + BusinessBroadcast.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.importListEnabled != null && Object.hasOwnProperty.call(m, "importListEnabled")) + w.uint32(8).bool(m.importListEnabled); + return w; + }; + + BusinessBroadcast.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.DeviceCapabilities.BusinessBroadcast(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.importListEnabled = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BusinessBroadcast.fromObject = function fromObject(d) { + if (d instanceof $root.proto.DeviceCapabilities.BusinessBroadcast) + return d; + var m = new $root.proto.DeviceCapabilities.BusinessBroadcast(); + if (d.importListEnabled != null) { + m.importListEnabled = Boolean(d.importListEnabled); + } + return m; + }; + + BusinessBroadcast.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.importListEnabled != null && m.hasOwnProperty("importListEnabled")) { + d.importListEnabled = m.importListEnabled; + if (o.oneofs) + d._importListEnabled = "importListEnabled"; + } + return d; + }; + + BusinessBroadcast.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BusinessBroadcast.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.DeviceCapabilities.BusinessBroadcast"; + }; + + return BusinessBroadcast; + })(); + DeviceCapabilities.ChatLockSupportLevel = (function() { const valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "NONE"] = 0; @@ -21037,6 +25761,102 @@ export const proto = $root.proto = (() => { return LIDMigration; })(); + DeviceCapabilities.MemberNameTagPrimarySupport = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DISABLED"] = 0; + values[valuesById[1] = "RECEIVER_ENABLED"] = 1; + values[valuesById[2] = "SENDER_ENABLED"] = 2; + return values; + })(); + + DeviceCapabilities.UserHasAvatar = (function() { + + function UserHasAvatar(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + UserHasAvatar.prototype.userHasAvatar = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UserHasAvatar.prototype, "_userHasAvatar", { + get: $util.oneOfGetter($oneOfFields = ["userHasAvatar"]), + set: $util.oneOfSetter($oneOfFields) + }); + + UserHasAvatar.create = function create(properties) { + return new UserHasAvatar(properties); + }; + + UserHasAvatar.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.userHasAvatar != null && Object.hasOwnProperty.call(m, "userHasAvatar")) + w.uint32(8).bool(m.userHasAvatar); + return w; + }; + + UserHasAvatar.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.DeviceCapabilities.UserHasAvatar(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.userHasAvatar = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + UserHasAvatar.fromObject = function fromObject(d) { + if (d instanceof $root.proto.DeviceCapabilities.UserHasAvatar) + return d; + var m = new $root.proto.DeviceCapabilities.UserHasAvatar(); + if (d.userHasAvatar != null) { + m.userHasAvatar = Boolean(d.userHasAvatar); + } + return m; + }; + + UserHasAvatar.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.userHasAvatar != null && m.hasOwnProperty("userHasAvatar")) { + d.userHasAvatar = m.userHasAvatar; + if (o.oneofs) + d._userHasAvatar = "userHasAvatar"; + } + return d; + }; + + UserHasAvatar.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + UserHasAvatar.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.DeviceCapabilities.UserHasAvatar"; + }; + + return UserHasAvatar; + })(); + return DeviceCapabilities; })(); @@ -21940,6 +26760,11 @@ export const proto = $root.proto = (() => { HistorySyncConfig.prototype.supportFbidBotChatHistory = null; HistorySyncConfig.prototype.supportAddOnHistorySyncMigration = null; HistorySyncConfig.prototype.supportMessageAssociation = null; + HistorySyncConfig.prototype.supportGroupHistory = null; + HistorySyncConfig.prototype.onDemandReady = null; + HistorySyncConfig.prototype.supportGuestChat = null; + HistorySyncConfig.prototype.completeOnDemandReady = null; + HistorySyncConfig.prototype.thumbnailSyncDaysLimit = null; let $oneOfFields; @@ -22027,6 +26852,36 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncConfig.prototype, "_supportGroupHistory", { + get: $util.oneOfGetter($oneOfFields = ["supportGroupHistory"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncConfig.prototype, "_onDemandReady", { + get: $util.oneOfGetter($oneOfFields = ["onDemandReady"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncConfig.prototype, "_supportGuestChat", { + get: $util.oneOfGetter($oneOfFields = ["supportGuestChat"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncConfig.prototype, "_completeOnDemandReady", { + get: $util.oneOfGetter($oneOfFields = ["completeOnDemandReady"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncConfig.prototype, "_thumbnailSyncDaysLimit", { + get: $util.oneOfGetter($oneOfFields = ["thumbnailSyncDaysLimit"]), + set: $util.oneOfSetter($oneOfFields) + }); + HistorySyncConfig.create = function create(properties) { return new HistorySyncConfig(properties); }; @@ -22062,6 +26917,16 @@ export const proto = $root.proto = (() => { w.uint32(104).bool(m.supportAddOnHistorySyncMigration); if (m.supportMessageAssociation != null && Object.hasOwnProperty.call(m, "supportMessageAssociation")) w.uint32(112).bool(m.supportMessageAssociation); + if (m.supportGroupHistory != null && Object.hasOwnProperty.call(m, "supportGroupHistory")) + w.uint32(120).bool(m.supportGroupHistory); + if (m.onDemandReady != null && Object.hasOwnProperty.call(m, "onDemandReady")) + w.uint32(128).bool(m.onDemandReady); + if (m.supportGuestChat != null && Object.hasOwnProperty.call(m, "supportGuestChat")) + w.uint32(136).bool(m.supportGuestChat); + if (m.completeOnDemandReady != null && Object.hasOwnProperty.call(m, "completeOnDemandReady")) + w.uint32(144).bool(m.completeOnDemandReady); + if (m.thumbnailSyncDaysLimit != null && Object.hasOwnProperty.call(m, "thumbnailSyncDaysLimit")) + w.uint32(152).uint32(m.thumbnailSyncDaysLimit); return w; }; @@ -22130,6 +26995,26 @@ export const proto = $root.proto = (() => { m.supportMessageAssociation = r.bool(); break; } + case 15: { + m.supportGroupHistory = r.bool(); + break; + } + case 16: { + m.onDemandReady = r.bool(); + break; + } + case 17: { + m.supportGuestChat = r.bool(); + break; + } + case 18: { + m.completeOnDemandReady = r.bool(); + break; + } + case 19: { + m.thumbnailSyncDaysLimit = r.uint32(); + break; + } default: r.skipType(t & 7); break; @@ -22184,6 +27069,21 @@ export const proto = $root.proto = (() => { if (d.supportMessageAssociation != null) { m.supportMessageAssociation = Boolean(d.supportMessageAssociation); } + if (d.supportGroupHistory != null) { + m.supportGroupHistory = Boolean(d.supportGroupHistory); + } + if (d.onDemandReady != null) { + m.onDemandReady = Boolean(d.onDemandReady); + } + if (d.supportGuestChat != null) { + m.supportGuestChat = Boolean(d.supportGuestChat); + } + if (d.completeOnDemandReady != null) { + m.completeOnDemandReady = Boolean(d.completeOnDemandReady); + } + if (d.thumbnailSyncDaysLimit != null) { + m.thumbnailSyncDaysLimit = d.thumbnailSyncDaysLimit >>> 0; + } return m; }; @@ -22261,6 +27161,31 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._supportMessageAssociation = "supportMessageAssociation"; } + if (m.supportGroupHistory != null && m.hasOwnProperty("supportGroupHistory")) { + d.supportGroupHistory = m.supportGroupHistory; + if (o.oneofs) + d._supportGroupHistory = "supportGroupHistory"; + } + if (m.onDemandReady != null && m.hasOwnProperty("onDemandReady")) { + d.onDemandReady = m.onDemandReady; + if (o.oneofs) + d._onDemandReady = "onDemandReady"; + } + if (m.supportGuestChat != null && m.hasOwnProperty("supportGuestChat")) { + d.supportGuestChat = m.supportGuestChat; + if (o.oneofs) + d._supportGuestChat = "supportGuestChat"; + } + if (m.completeOnDemandReady != null && m.hasOwnProperty("completeOnDemandReady")) { + d.completeOnDemandReady = m.completeOnDemandReady; + if (o.oneofs) + d._completeOnDemandReady = "completeOnDemandReady"; + } + if (m.thumbnailSyncDaysLimit != null && m.hasOwnProperty("thumbnailSyncDaysLimit")) { + d.thumbnailSyncDaysLimit = m.thumbnailSyncDaysLimit; + if (o.oneofs) + d._thumbnailSyncDaysLimit = "thumbnailSyncDaysLimit"; + } return d; }; @@ -22765,10 +27690,13 @@ export const proto = $root.proto = (() => { EmbeddedMusic.prototype.artworkDirectPath = null; EmbeddedMusic.prototype.artworkSha256 = null; EmbeddedMusic.prototype.artworkEncSha256 = null; - EmbeddedMusic.prototype.artworkMediaKey = null; EmbeddedMusic.prototype.artistAttribution = null; EmbeddedMusic.prototype.countryBlocklist = null; EmbeddedMusic.prototype.isExplicit = null; + EmbeddedMusic.prototype.artworkMediaKey = null; + EmbeddedMusic.prototype.musicSongStartTimeInMs = null; + EmbeddedMusic.prototype.derivedContentStartTimeInMs = null; + EmbeddedMusic.prototype.overlapDurationInMs = null; let $oneOfFields; @@ -22814,12 +27742,6 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(EmbeddedMusic.prototype, "_artworkMediaKey", { - get: $util.oneOfGetter($oneOfFields = ["artworkMediaKey"]), - set: $util.oneOfSetter($oneOfFields) - }); - // Virtual OneOf for proto3 optional field Object.defineProperty(EmbeddedMusic.prototype, "_artistAttribution", { get: $util.oneOfGetter($oneOfFields = ["artistAttribution"]), @@ -22838,6 +27760,30 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(EmbeddedMusic.prototype, "_artworkMediaKey", { + get: $util.oneOfGetter($oneOfFields = ["artworkMediaKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(EmbeddedMusic.prototype, "_musicSongStartTimeInMs", { + get: $util.oneOfGetter($oneOfFields = ["musicSongStartTimeInMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(EmbeddedMusic.prototype, "_derivedContentStartTimeInMs", { + get: $util.oneOfGetter($oneOfFields = ["derivedContentStartTimeInMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(EmbeddedMusic.prototype, "_overlapDurationInMs", { + get: $util.oneOfGetter($oneOfFields = ["overlapDurationInMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + EmbeddedMusic.create = function create(properties) { return new EmbeddedMusic(properties); }; @@ -22867,6 +27813,12 @@ export const proto = $root.proto = (() => { w.uint32(80).bool(m.isExplicit); if (m.artworkMediaKey != null && Object.hasOwnProperty.call(m, "artworkMediaKey")) w.uint32(90).bytes(m.artworkMediaKey); + if (m.musicSongStartTimeInMs != null && Object.hasOwnProperty.call(m, "musicSongStartTimeInMs")) + w.uint32(96).int64(m.musicSongStartTimeInMs); + if (m.derivedContentStartTimeInMs != null && Object.hasOwnProperty.call(m, "derivedContentStartTimeInMs")) + w.uint32(104).int64(m.derivedContentStartTimeInMs); + if (m.overlapDurationInMs != null && Object.hasOwnProperty.call(m, "overlapDurationInMs")) + w.uint32(112).int64(m.overlapDurationInMs); return w; }; @@ -22907,10 +27859,6 @@ export const proto = $root.proto = (() => { m.artworkEncSha256 = r.bytes(); break; } - case 11: { - m.artworkMediaKey = r.bytes(); - break; - } case 8: { m.artistAttribution = r.string(); break; @@ -22923,6 +27871,22 @@ export const proto = $root.proto = (() => { m.isExplicit = r.bool(); break; } + case 11: { + m.artworkMediaKey = r.bytes(); + break; + } + case 12: { + m.musicSongStartTimeInMs = r.int64(); + break; + } + case 13: { + m.derivedContentStartTimeInMs = r.int64(); + break; + } + case 14: { + m.overlapDurationInMs = r.int64(); + break; + } default: r.skipType(t & 7); break; @@ -22962,12 +27926,6 @@ export const proto = $root.proto = (() => { else if (d.artworkEncSha256.length >= 0) m.artworkEncSha256 = d.artworkEncSha256; } - if (d.artworkMediaKey != null) { - if (typeof d.artworkMediaKey === "string") - $util.base64.decode(d.artworkMediaKey, m.artworkMediaKey = $util.newBuffer($util.base64.length(d.artworkMediaKey)), 0); - else if (d.artworkMediaKey.length >= 0) - m.artworkMediaKey = d.artworkMediaKey; - } if (d.artistAttribution != null) { m.artistAttribution = String(d.artistAttribution); } @@ -22980,6 +27938,42 @@ export const proto = $root.proto = (() => { if (d.isExplicit != null) { m.isExplicit = Boolean(d.isExplicit); } + if (d.artworkMediaKey != null) { + if (typeof d.artworkMediaKey === "string") + $util.base64.decode(d.artworkMediaKey, m.artworkMediaKey = $util.newBuffer($util.base64.length(d.artworkMediaKey)), 0); + else if (d.artworkMediaKey.length >= 0) + m.artworkMediaKey = d.artworkMediaKey; + } + if (d.musicSongStartTimeInMs != null) { + if ($util.Long) + (m.musicSongStartTimeInMs = $util.Long.fromValue(d.musicSongStartTimeInMs)).unsigned = false; + else if (typeof d.musicSongStartTimeInMs === "string") + m.musicSongStartTimeInMs = parseInt(d.musicSongStartTimeInMs, 10); + else if (typeof d.musicSongStartTimeInMs === "number") + m.musicSongStartTimeInMs = d.musicSongStartTimeInMs; + else if (typeof d.musicSongStartTimeInMs === "object") + m.musicSongStartTimeInMs = new $util.LongBits(d.musicSongStartTimeInMs.low >>> 0, d.musicSongStartTimeInMs.high >>> 0).toNumber(); + } + if (d.derivedContentStartTimeInMs != null) { + if ($util.Long) + (m.derivedContentStartTimeInMs = $util.Long.fromValue(d.derivedContentStartTimeInMs)).unsigned = false; + else if (typeof d.derivedContentStartTimeInMs === "string") + m.derivedContentStartTimeInMs = parseInt(d.derivedContentStartTimeInMs, 10); + else if (typeof d.derivedContentStartTimeInMs === "number") + m.derivedContentStartTimeInMs = d.derivedContentStartTimeInMs; + else if (typeof d.derivedContentStartTimeInMs === "object") + m.derivedContentStartTimeInMs = new $util.LongBits(d.derivedContentStartTimeInMs.low >>> 0, d.derivedContentStartTimeInMs.high >>> 0).toNumber(); + } + if (d.overlapDurationInMs != null) { + if ($util.Long) + (m.overlapDurationInMs = $util.Long.fromValue(d.overlapDurationInMs)).unsigned = false; + else if (typeof d.overlapDurationInMs === "string") + m.overlapDurationInMs = parseInt(d.overlapDurationInMs, 10); + else if (typeof d.overlapDurationInMs === "number") + m.overlapDurationInMs = d.overlapDurationInMs; + else if (typeof d.overlapDurationInMs === "object") + m.overlapDurationInMs = new $util.LongBits(d.overlapDurationInMs.low >>> 0, d.overlapDurationInMs.high >>> 0).toNumber(); + } return m; }; @@ -23042,6 +28036,30 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._artworkMediaKey = "artworkMediaKey"; } + if (m.musicSongStartTimeInMs != null && m.hasOwnProperty("musicSongStartTimeInMs")) { + if (typeof m.musicSongStartTimeInMs === "number") + d.musicSongStartTimeInMs = o.longs === String ? String(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs; + else + d.musicSongStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.musicSongStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.musicSongStartTimeInMs.low >>> 0, m.musicSongStartTimeInMs.high >>> 0).toNumber() : m.musicSongStartTimeInMs; + if (o.oneofs) + d._musicSongStartTimeInMs = "musicSongStartTimeInMs"; + } + if (m.derivedContentStartTimeInMs != null && m.hasOwnProperty("derivedContentStartTimeInMs")) { + if (typeof m.derivedContentStartTimeInMs === "number") + d.derivedContentStartTimeInMs = o.longs === String ? String(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs; + else + d.derivedContentStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.derivedContentStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.derivedContentStartTimeInMs.low >>> 0, m.derivedContentStartTimeInMs.high >>> 0).toNumber() : m.derivedContentStartTimeInMs; + if (o.oneofs) + d._derivedContentStartTimeInMs = "derivedContentStartTimeInMs"; + } + if (m.overlapDurationInMs != null && m.hasOwnProperty("overlapDurationInMs")) { + if (typeof m.overlapDurationInMs === "number") + d.overlapDurationInMs = o.longs === String ? String(m.overlapDurationInMs) : m.overlapDurationInMs; + else + d.overlapDurationInMs = o.longs === String ? $util.Long.prototype.toString.call(m.overlapDurationInMs) : o.longs === Number ? new $util.LongBits(m.overlapDurationInMs.low >>> 0, m.overlapDurationInMs.high >>> 0).toNumber() : m.overlapDurationInMs; + if (o.oneofs) + d._overlapDurationInMs = "overlapDurationInMs"; + } return d; }; @@ -24079,6 +29097,136 @@ export const proto = $root.proto = (() => { return Field; })(); + proto.ForwardedAIBotMessageInfo = (function() { + + function ForwardedAIBotMessageInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + ForwardedAIBotMessageInfo.prototype.botName = null; + ForwardedAIBotMessageInfo.prototype.botJid = null; + ForwardedAIBotMessageInfo.prototype.creatorName = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ForwardedAIBotMessageInfo.prototype, "_botName", { + get: $util.oneOfGetter($oneOfFields = ["botName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ForwardedAIBotMessageInfo.prototype, "_botJid", { + get: $util.oneOfGetter($oneOfFields = ["botJid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ForwardedAIBotMessageInfo.prototype, "_creatorName", { + get: $util.oneOfGetter($oneOfFields = ["creatorName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + ForwardedAIBotMessageInfo.create = function create(properties) { + return new ForwardedAIBotMessageInfo(properties); + }; + + ForwardedAIBotMessageInfo.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.botName != null && Object.hasOwnProperty.call(m, "botName")) + w.uint32(10).string(m.botName); + if (m.botJid != null && Object.hasOwnProperty.call(m, "botJid")) + w.uint32(18).string(m.botJid); + if (m.creatorName != null && Object.hasOwnProperty.call(m, "creatorName")) + w.uint32(26).string(m.creatorName); + return w; + }; + + ForwardedAIBotMessageInfo.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ForwardedAIBotMessageInfo(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.botName = r.string(); + break; + } + case 2: { + m.botJid = r.string(); + break; + } + case 3: { + m.creatorName = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + ForwardedAIBotMessageInfo.fromObject = function fromObject(d) { + if (d instanceof $root.proto.ForwardedAIBotMessageInfo) + return d; + var m = new $root.proto.ForwardedAIBotMessageInfo(); + if (d.botName != null) { + m.botName = String(d.botName); + } + if (d.botJid != null) { + m.botJid = String(d.botJid); + } + if (d.creatorName != null) { + m.creatorName = String(d.creatorName); + } + return m; + }; + + ForwardedAIBotMessageInfo.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.botName != null && m.hasOwnProperty("botName")) { + d.botName = m.botName; + if (o.oneofs) + d._botName = "botName"; + } + if (m.botJid != null && m.hasOwnProperty("botJid")) { + d.botJid = m.botJid; + if (o.oneofs) + d._botJid = "botJid"; + } + if (m.creatorName != null && m.hasOwnProperty("creatorName")) { + d.creatorName = m.creatorName; + if (o.oneofs) + d._creatorName = "creatorName"; + } + return d; + }; + + ForwardedAIBotMessageInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ForwardedAIBotMessageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.ForwardedAIBotMessageInfo"; + }; + + return ForwardedAIBotMessageInfo; + })(); + proto.GlobalSettings = (function() { function GlobalSettings(p) { @@ -24621,6 +29769,263 @@ export const proto = $root.proto = (() => { return GlobalSettings; })(); + proto.GroupHistoryBundleInfo = (function() { + + function GroupHistoryBundleInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + GroupHistoryBundleInfo.prototype.deprecatedMessageHistoryBundle = null; + GroupHistoryBundleInfo.prototype.processState = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GroupHistoryBundleInfo.prototype, "_deprecatedMessageHistoryBundle", { + get: $util.oneOfGetter($oneOfFields = ["deprecatedMessageHistoryBundle"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GroupHistoryBundleInfo.prototype, "_processState", { + get: $util.oneOfGetter($oneOfFields = ["processState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + GroupHistoryBundleInfo.create = function create(properties) { + return new GroupHistoryBundleInfo(properties); + }; + + GroupHistoryBundleInfo.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.deprecatedMessageHistoryBundle != null && Object.hasOwnProperty.call(m, "deprecatedMessageHistoryBundle")) + $root.proto.Message.MessageHistoryBundle.encode(m.deprecatedMessageHistoryBundle, w.uint32(10).fork()).ldelim(); + if (m.processState != null && Object.hasOwnProperty.call(m, "processState")) + w.uint32(16).int32(m.processState); + return w; + }; + + GroupHistoryBundleInfo.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.GroupHistoryBundleInfo(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.deprecatedMessageHistoryBundle = $root.proto.Message.MessageHistoryBundle.decode(r, r.uint32()); + break; + } + case 2: { + m.processState = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + GroupHistoryBundleInfo.fromObject = function fromObject(d) { + if (d instanceof $root.proto.GroupHistoryBundleInfo) + return d; + var m = new $root.proto.GroupHistoryBundleInfo(); + if (d.deprecatedMessageHistoryBundle != null) { + if (typeof d.deprecatedMessageHistoryBundle !== "object") + throw TypeError(".proto.GroupHistoryBundleInfo.deprecatedMessageHistoryBundle: object expected"); + m.deprecatedMessageHistoryBundle = $root.proto.Message.MessageHistoryBundle.fromObject(d.deprecatedMessageHistoryBundle); + } + switch (d.processState) { + default: + if (typeof d.processState === "number") { + m.processState = d.processState; + break; + } + break; + case "NOT_INJECTED": + case 0: + m.processState = 0; + break; + case "INJECTED": + case 1: + m.processState = 1; + break; + case "INJECTED_PARTIAL": + case 2: + m.processState = 2; + break; + case "INJECTION_FAILED": + case 3: + m.processState = 3; + break; + case "INJECTION_FAILED_NO_RETRY": + case 4: + m.processState = 4; + break; + } + return m; + }; + + GroupHistoryBundleInfo.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.deprecatedMessageHistoryBundle != null && m.hasOwnProperty("deprecatedMessageHistoryBundle")) { + d.deprecatedMessageHistoryBundle = $root.proto.Message.MessageHistoryBundle.toObject(m.deprecatedMessageHistoryBundle, o); + if (o.oneofs) + d._deprecatedMessageHistoryBundle = "deprecatedMessageHistoryBundle"; + } + if (m.processState != null && m.hasOwnProperty("processState")) { + d.processState = o.enums === String ? $root.proto.GroupHistoryBundleInfo.ProcessState[m.processState] === undefined ? m.processState : $root.proto.GroupHistoryBundleInfo.ProcessState[m.processState] : m.processState; + if (o.oneofs) + d._processState = "processState"; + } + return d; + }; + + GroupHistoryBundleInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + GroupHistoryBundleInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.GroupHistoryBundleInfo"; + }; + + GroupHistoryBundleInfo.ProcessState = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NOT_INJECTED"] = 0; + values[valuesById[1] = "INJECTED"] = 1; + values[valuesById[2] = "INJECTED_PARTIAL"] = 2; + values[valuesById[3] = "INJECTION_FAILED"] = 3; + values[valuesById[4] = "INJECTION_FAILED_NO_RETRY"] = 4; + return values; + })(); + + return GroupHistoryBundleInfo; + })(); + + proto.GroupHistoryIndividualMessageInfo = (function() { + + function GroupHistoryIndividualMessageInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + GroupHistoryIndividualMessageInfo.prototype.bundleMessageKey = null; + GroupHistoryIndividualMessageInfo.prototype.editedAfterReceivedAsHistory = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GroupHistoryIndividualMessageInfo.prototype, "_bundleMessageKey", { + get: $util.oneOfGetter($oneOfFields = ["bundleMessageKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GroupHistoryIndividualMessageInfo.prototype, "_editedAfterReceivedAsHistory", { + get: $util.oneOfGetter($oneOfFields = ["editedAfterReceivedAsHistory"]), + set: $util.oneOfSetter($oneOfFields) + }); + + GroupHistoryIndividualMessageInfo.create = function create(properties) { + return new GroupHistoryIndividualMessageInfo(properties); + }; + + GroupHistoryIndividualMessageInfo.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.bundleMessageKey != null && Object.hasOwnProperty.call(m, "bundleMessageKey")) + $root.proto.MessageKey.encode(m.bundleMessageKey, w.uint32(10).fork()).ldelim(); + if (m.editedAfterReceivedAsHistory != null && Object.hasOwnProperty.call(m, "editedAfterReceivedAsHistory")) + w.uint32(16).bool(m.editedAfterReceivedAsHistory); + return w; + }; + + GroupHistoryIndividualMessageInfo.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.GroupHistoryIndividualMessageInfo(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.bundleMessageKey = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + case 2: { + m.editedAfterReceivedAsHistory = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + GroupHistoryIndividualMessageInfo.fromObject = function fromObject(d) { + if (d instanceof $root.proto.GroupHistoryIndividualMessageInfo) + return d; + var m = new $root.proto.GroupHistoryIndividualMessageInfo(); + if (d.bundleMessageKey != null) { + if (typeof d.bundleMessageKey !== "object") + throw TypeError(".proto.GroupHistoryIndividualMessageInfo.bundleMessageKey: object expected"); + m.bundleMessageKey = $root.proto.MessageKey.fromObject(d.bundleMessageKey); + } + if (d.editedAfterReceivedAsHistory != null) { + m.editedAfterReceivedAsHistory = Boolean(d.editedAfterReceivedAsHistory); + } + return m; + }; + + GroupHistoryIndividualMessageInfo.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.bundleMessageKey != null && m.hasOwnProperty("bundleMessageKey")) { + d.bundleMessageKey = $root.proto.MessageKey.toObject(m.bundleMessageKey, o); + if (o.oneofs) + d._bundleMessageKey = "bundleMessageKey"; + } + if (m.editedAfterReceivedAsHistory != null && m.hasOwnProperty("editedAfterReceivedAsHistory")) { + d.editedAfterReceivedAsHistory = m.editedAfterReceivedAsHistory; + if (o.oneofs) + d._editedAfterReceivedAsHistory = "editedAfterReceivedAsHistory"; + } + return d; + }; + + GroupHistoryIndividualMessageInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + GroupHistoryIndividualMessageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.GroupHistoryIndividualMessageInfo"; + }; + + return GroupHistoryIndividualMessageInfo; + })(); + proto.GroupMention = (function() { function GroupMention(p) { @@ -24741,6 +30146,7 @@ export const proto = $root.proto = (() => { GroupParticipant.prototype.userJid = ""; GroupParticipant.prototype.rank = null; + GroupParticipant.prototype.memberLabel = null; let $oneOfFields; @@ -24750,6 +30156,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(GroupParticipant.prototype, "_memberLabel", { + get: $util.oneOfGetter($oneOfFields = ["memberLabel"]), + set: $util.oneOfSetter($oneOfFields) + }); + GroupParticipant.create = function create(properties) { return new GroupParticipant(properties); }; @@ -24761,6 +30173,8 @@ export const proto = $root.proto = (() => { w.uint32(10).string(m.userJid); if (m.rank != null && Object.hasOwnProperty.call(m, "rank")) w.uint32(16).int32(m.rank); + if (m.memberLabel != null && Object.hasOwnProperty.call(m, "memberLabel")) + $root.proto.MemberLabel.encode(m.memberLabel, w.uint32(26).fork()).ldelim(); return w; }; @@ -24781,6 +30195,10 @@ export const proto = $root.proto = (() => { m.rank = r.int32(); break; } + case 3: { + m.memberLabel = $root.proto.MemberLabel.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -24816,6 +30234,11 @@ export const proto = $root.proto = (() => { m.rank = 2; break; } + if (d.memberLabel != null) { + if (typeof d.memberLabel !== "object") + throw TypeError(".proto.GroupParticipant.memberLabel: object expected"); + m.memberLabel = $root.proto.MemberLabel.fromObject(d.memberLabel); + } return m; }; @@ -24834,6 +30257,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._rank = "rank"; } + if (m.memberLabel != null && m.hasOwnProperty("memberLabel")) { + d.memberLabel = $root.proto.MemberLabel.toObject(m.memberLabel, o); + if (o.oneofs) + d._memberLabel = "memberLabel"; + } return d; }; @@ -25003,6 +30431,7 @@ export const proto = $root.proto = (() => { ClientFinish.prototype["static"] = null; ClientFinish.prototype.payload = null; + ClientFinish.prototype.extendedCiphertext = null; let $oneOfFields; @@ -25018,6 +30447,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientFinish.prototype, "_extendedCiphertext", { + get: $util.oneOfGetter($oneOfFields = ["extendedCiphertext"]), + set: $util.oneOfSetter($oneOfFields) + }); + ClientFinish.create = function create(properties) { return new ClientFinish(properties); }; @@ -25029,6 +30464,8 @@ export const proto = $root.proto = (() => { w.uint32(10).bytes(m["static"]); if (m.payload != null && Object.hasOwnProperty.call(m, "payload")) w.uint32(18).bytes(m.payload); + if (m.extendedCiphertext != null && Object.hasOwnProperty.call(m, "extendedCiphertext")) + w.uint32(26).bytes(m.extendedCiphertext); return w; }; @@ -25049,6 +30486,10 @@ export const proto = $root.proto = (() => { m.payload = r.bytes(); break; } + case 3: { + m.extendedCiphertext = r.bytes(); + break; + } default: r.skipType(t & 7); break; @@ -25073,6 +30514,12 @@ export const proto = $root.proto = (() => { else if (d.payload.length >= 0) m.payload = d.payload; } + if (d.extendedCiphertext != null) { + if (typeof d.extendedCiphertext === "string") + $util.base64.decode(d.extendedCiphertext, m.extendedCiphertext = $util.newBuffer($util.base64.length(d.extendedCiphertext)), 0); + else if (d.extendedCiphertext.length >= 0) + m.extendedCiphertext = d.extendedCiphertext; + } return m; }; @@ -25090,6 +30537,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._payload = "payload"; } + if (m.extendedCiphertext != null && m.hasOwnProperty("extendedCiphertext")) { + d.extendedCiphertext = o.bytes === String ? $util.base64.encode(m.extendedCiphertext, 0, m.extendedCiphertext.length) : o.bytes === Array ? Array.prototype.slice.call(m.extendedCiphertext) : m.extendedCiphertext; + if (o.oneofs) + d._extendedCiphertext = "extendedCiphertext"; + } return d; }; @@ -25119,6 +30571,8 @@ export const proto = $root.proto = (() => { ClientHello.prototype.ephemeral = null; ClientHello.prototype["static"] = null; ClientHello.prototype.payload = null; + ClientHello.prototype.useExtended = null; + ClientHello.prototype.extendedCiphertext = null; let $oneOfFields; @@ -25140,6 +30594,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientHello.prototype, "_useExtended", { + get: $util.oneOfGetter($oneOfFields = ["useExtended"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientHello.prototype, "_extendedCiphertext", { + get: $util.oneOfGetter($oneOfFields = ["extendedCiphertext"]), + set: $util.oneOfSetter($oneOfFields) + }); + ClientHello.create = function create(properties) { return new ClientHello(properties); }; @@ -25153,6 +30619,10 @@ export const proto = $root.proto = (() => { w.uint32(18).bytes(m["static"]); if (m.payload != null && Object.hasOwnProperty.call(m, "payload")) w.uint32(26).bytes(m.payload); + if (m.useExtended != null && Object.hasOwnProperty.call(m, "useExtended")) + w.uint32(32).bool(m.useExtended); + if (m.extendedCiphertext != null && Object.hasOwnProperty.call(m, "extendedCiphertext")) + w.uint32(42).bytes(m.extendedCiphertext); return w; }; @@ -25177,6 +30647,14 @@ export const proto = $root.proto = (() => { m.payload = r.bytes(); break; } + case 4: { + m.useExtended = r.bool(); + break; + } + case 5: { + m.extendedCiphertext = r.bytes(); + break; + } default: r.skipType(t & 7); break; @@ -25207,6 +30685,15 @@ export const proto = $root.proto = (() => { else if (d.payload.length >= 0) m.payload = d.payload; } + if (d.useExtended != null) { + m.useExtended = Boolean(d.useExtended); + } + if (d.extendedCiphertext != null) { + if (typeof d.extendedCiphertext === "string") + $util.base64.decode(d.extendedCiphertext, m.extendedCiphertext = $util.newBuffer($util.base64.length(d.extendedCiphertext)), 0); + else if (d.extendedCiphertext.length >= 0) + m.extendedCiphertext = d.extendedCiphertext; + } return m; }; @@ -25229,6 +30716,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._payload = "payload"; } + if (m.useExtended != null && m.hasOwnProperty("useExtended")) { + d.useExtended = m.useExtended; + if (o.oneofs) + d._useExtended = "useExtended"; + } + if (m.extendedCiphertext != null && m.hasOwnProperty("extendedCiphertext")) { + d.extendedCiphertext = o.bytes === String ? $util.base64.encode(m.extendedCiphertext, 0, m.extendedCiphertext.length) : o.bytes === Array ? Array.prototype.slice.call(m.extendedCiphertext) : m.extendedCiphertext; + if (o.oneofs) + d._extendedCiphertext = "extendedCiphertext"; + } return d; }; @@ -25258,6 +30755,7 @@ export const proto = $root.proto = (() => { ServerHello.prototype.ephemeral = null; ServerHello.prototype["static"] = null; ServerHello.prototype.payload = null; + ServerHello.prototype.extendedStatic = null; let $oneOfFields; @@ -25279,6 +30777,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ServerHello.prototype, "_extendedStatic", { + get: $util.oneOfGetter($oneOfFields = ["extendedStatic"]), + set: $util.oneOfSetter($oneOfFields) + }); + ServerHello.create = function create(properties) { return new ServerHello(properties); }; @@ -25292,6 +30796,8 @@ export const proto = $root.proto = (() => { w.uint32(18).bytes(m["static"]); if (m.payload != null && Object.hasOwnProperty.call(m, "payload")) w.uint32(26).bytes(m.payload); + if (m.extendedStatic != null && Object.hasOwnProperty.call(m, "extendedStatic")) + w.uint32(34).bytes(m.extendedStatic); return w; }; @@ -25316,6 +30822,10 @@ export const proto = $root.proto = (() => { m.payload = r.bytes(); break; } + case 4: { + m.extendedStatic = r.bytes(); + break; + } default: r.skipType(t & 7); break; @@ -25346,6 +30856,12 @@ export const proto = $root.proto = (() => { else if (d.payload.length >= 0) m.payload = d.payload; } + if (d.extendedStatic != null) { + if (typeof d.extendedStatic === "string") + $util.base64.decode(d.extendedStatic, m.extendedStatic = $util.newBuffer($util.base64.length(d.extendedStatic)), 0); + else if (d.extendedStatic.length >= 0) + m.extendedStatic = d.extendedStatic; + } return m; }; @@ -25368,6 +30884,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._payload = "payload"; } + if (m.extendedStatic != null && m.hasOwnProperty("extendedStatic")) { + d.extendedStatic = o.bytes === String ? $util.base64.encode(m.extendedStatic, 0, m.extendedStatic.length) : o.bytes === Array ? Array.prototype.slice.call(m.extendedStatic) : m.extendedStatic; + if (o.oneofs) + d._extendedStatic = "extendedStatic"; + } return d; }; @@ -26720,6 +32241,827 @@ export const proto = $root.proto = (() => { return IdentityKeyPairStructure; })(); + proto.InThreadSurveyMetadata = (function() { + + function InThreadSurveyMetadata(p) { + this.questions = []; + this.privacyStatementParts = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + InThreadSurveyMetadata.prototype.tessaSessionId = null; + InThreadSurveyMetadata.prototype.simonSessionId = null; + InThreadSurveyMetadata.prototype.simonSurveyId = null; + InThreadSurveyMetadata.prototype.tessaRootId = null; + InThreadSurveyMetadata.prototype.requestId = null; + InThreadSurveyMetadata.prototype.tessaEvent = null; + InThreadSurveyMetadata.prototype.invitationHeaderText = null; + InThreadSurveyMetadata.prototype.invitationBodyText = null; + InThreadSurveyMetadata.prototype.invitationCtaText = null; + InThreadSurveyMetadata.prototype.invitationCtaUrl = null; + InThreadSurveyMetadata.prototype.surveyTitle = null; + InThreadSurveyMetadata.prototype.questions = $util.emptyArray; + InThreadSurveyMetadata.prototype.surveyContinueButtonText = null; + InThreadSurveyMetadata.prototype.surveySubmitButtonText = null; + InThreadSurveyMetadata.prototype.privacyStatementFull = null; + InThreadSurveyMetadata.prototype.privacyStatementParts = $util.emptyArray; + InThreadSurveyMetadata.prototype.feedbackToastText = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_tessaSessionId", { + get: $util.oneOfGetter($oneOfFields = ["tessaSessionId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_simonSessionId", { + get: $util.oneOfGetter($oneOfFields = ["simonSessionId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_simonSurveyId", { + get: $util.oneOfGetter($oneOfFields = ["simonSurveyId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_tessaRootId", { + get: $util.oneOfGetter($oneOfFields = ["tessaRootId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_tessaEvent", { + get: $util.oneOfGetter($oneOfFields = ["tessaEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_invitationHeaderText", { + get: $util.oneOfGetter($oneOfFields = ["invitationHeaderText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_invitationBodyText", { + get: $util.oneOfGetter($oneOfFields = ["invitationBodyText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_invitationCtaText", { + get: $util.oneOfGetter($oneOfFields = ["invitationCtaText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_invitationCtaUrl", { + get: $util.oneOfGetter($oneOfFields = ["invitationCtaUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_surveyTitle", { + get: $util.oneOfGetter($oneOfFields = ["surveyTitle"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_surveyContinueButtonText", { + get: $util.oneOfGetter($oneOfFields = ["surveyContinueButtonText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_surveySubmitButtonText", { + get: $util.oneOfGetter($oneOfFields = ["surveySubmitButtonText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_privacyStatementFull", { + get: $util.oneOfGetter($oneOfFields = ["privacyStatementFull"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyMetadata.prototype, "_feedbackToastText", { + get: $util.oneOfGetter($oneOfFields = ["feedbackToastText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + InThreadSurveyMetadata.create = function create(properties) { + return new InThreadSurveyMetadata(properties); + }; + + InThreadSurveyMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.tessaSessionId != null && Object.hasOwnProperty.call(m, "tessaSessionId")) + w.uint32(10).string(m.tessaSessionId); + if (m.simonSessionId != null && Object.hasOwnProperty.call(m, "simonSessionId")) + w.uint32(18).string(m.simonSessionId); + if (m.simonSurveyId != null && Object.hasOwnProperty.call(m, "simonSurveyId")) + w.uint32(26).string(m.simonSurveyId); + if (m.tessaRootId != null && Object.hasOwnProperty.call(m, "tessaRootId")) + w.uint32(34).string(m.tessaRootId); + if (m.requestId != null && Object.hasOwnProperty.call(m, "requestId")) + w.uint32(42).string(m.requestId); + if (m.tessaEvent != null && Object.hasOwnProperty.call(m, "tessaEvent")) + w.uint32(50).string(m.tessaEvent); + if (m.invitationHeaderText != null && Object.hasOwnProperty.call(m, "invitationHeaderText")) + w.uint32(58).string(m.invitationHeaderText); + if (m.invitationBodyText != null && Object.hasOwnProperty.call(m, "invitationBodyText")) + w.uint32(66).string(m.invitationBodyText); + if (m.invitationCtaText != null && Object.hasOwnProperty.call(m, "invitationCtaText")) + w.uint32(74).string(m.invitationCtaText); + if (m.invitationCtaUrl != null && Object.hasOwnProperty.call(m, "invitationCtaUrl")) + w.uint32(82).string(m.invitationCtaUrl); + if (m.surveyTitle != null && Object.hasOwnProperty.call(m, "surveyTitle")) + w.uint32(90).string(m.surveyTitle); + if (m.questions != null && m.questions.length) { + for (var i = 0; i < m.questions.length; ++i) + $root.proto.InThreadSurveyMetadata.InThreadSurveyQuestion.encode(m.questions[i], w.uint32(98).fork()).ldelim(); + } + if (m.surveyContinueButtonText != null && Object.hasOwnProperty.call(m, "surveyContinueButtonText")) + w.uint32(106).string(m.surveyContinueButtonText); + if (m.surveySubmitButtonText != null && Object.hasOwnProperty.call(m, "surveySubmitButtonText")) + w.uint32(114).string(m.surveySubmitButtonText); + if (m.privacyStatementFull != null && Object.hasOwnProperty.call(m, "privacyStatementFull")) + w.uint32(122).string(m.privacyStatementFull); + if (m.privacyStatementParts != null && m.privacyStatementParts.length) { + for (var i = 0; i < m.privacyStatementParts.length; ++i) + $root.proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.encode(m.privacyStatementParts[i], w.uint32(130).fork()).ldelim(); + } + if (m.feedbackToastText != null && Object.hasOwnProperty.call(m, "feedbackToastText")) + w.uint32(138).string(m.feedbackToastText); + return w; + }; + + InThreadSurveyMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InThreadSurveyMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.tessaSessionId = r.string(); + break; + } + case 2: { + m.simonSessionId = r.string(); + break; + } + case 3: { + m.simonSurveyId = r.string(); + break; + } + case 4: { + m.tessaRootId = r.string(); + break; + } + case 5: { + m.requestId = r.string(); + break; + } + case 6: { + m.tessaEvent = r.string(); + break; + } + case 7: { + m.invitationHeaderText = r.string(); + break; + } + case 8: { + m.invitationBodyText = r.string(); + break; + } + case 9: { + m.invitationCtaText = r.string(); + break; + } + case 10: { + m.invitationCtaUrl = r.string(); + break; + } + case 11: { + m.surveyTitle = r.string(); + break; + } + case 12: { + if (!(m.questions && m.questions.length)) + m.questions = []; + m.questions.push($root.proto.InThreadSurveyMetadata.InThreadSurveyQuestion.decode(r, r.uint32())); + break; + } + case 13: { + m.surveyContinueButtonText = r.string(); + break; + } + case 14: { + m.surveySubmitButtonText = r.string(); + break; + } + case 15: { + m.privacyStatementFull = r.string(); + break; + } + case 16: { + if (!(m.privacyStatementParts && m.privacyStatementParts.length)) + m.privacyStatementParts = []; + m.privacyStatementParts.push($root.proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.decode(r, r.uint32())); + break; + } + case 17: { + m.feedbackToastText = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + InThreadSurveyMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.InThreadSurveyMetadata) + return d; + var m = new $root.proto.InThreadSurveyMetadata(); + if (d.tessaSessionId != null) { + m.tessaSessionId = String(d.tessaSessionId); + } + if (d.simonSessionId != null) { + m.simonSessionId = String(d.simonSessionId); + } + if (d.simonSurveyId != null) { + m.simonSurveyId = String(d.simonSurveyId); + } + if (d.tessaRootId != null) { + m.tessaRootId = String(d.tessaRootId); + } + if (d.requestId != null) { + m.requestId = String(d.requestId); + } + if (d.tessaEvent != null) { + m.tessaEvent = String(d.tessaEvent); + } + if (d.invitationHeaderText != null) { + m.invitationHeaderText = String(d.invitationHeaderText); + } + if (d.invitationBodyText != null) { + m.invitationBodyText = String(d.invitationBodyText); + } + if (d.invitationCtaText != null) { + m.invitationCtaText = String(d.invitationCtaText); + } + if (d.invitationCtaUrl != null) { + m.invitationCtaUrl = String(d.invitationCtaUrl); + } + if (d.surveyTitle != null) { + m.surveyTitle = String(d.surveyTitle); + } + if (d.questions) { + if (!Array.isArray(d.questions)) + throw TypeError(".proto.InThreadSurveyMetadata.questions: array expected"); + m.questions = []; + for (var i = 0; i < d.questions.length; ++i) { + if (typeof d.questions[i] !== "object") + throw TypeError(".proto.InThreadSurveyMetadata.questions: object expected"); + m.questions[i] = $root.proto.InThreadSurveyMetadata.InThreadSurveyQuestion.fromObject(d.questions[i]); + } + } + if (d.surveyContinueButtonText != null) { + m.surveyContinueButtonText = String(d.surveyContinueButtonText); + } + if (d.surveySubmitButtonText != null) { + m.surveySubmitButtonText = String(d.surveySubmitButtonText); + } + if (d.privacyStatementFull != null) { + m.privacyStatementFull = String(d.privacyStatementFull); + } + if (d.privacyStatementParts) { + if (!Array.isArray(d.privacyStatementParts)) + throw TypeError(".proto.InThreadSurveyMetadata.privacyStatementParts: array expected"); + m.privacyStatementParts = []; + for (var i = 0; i < d.privacyStatementParts.length; ++i) { + if (typeof d.privacyStatementParts[i] !== "object") + throw TypeError(".proto.InThreadSurveyMetadata.privacyStatementParts: object expected"); + m.privacyStatementParts[i] = $root.proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.fromObject(d.privacyStatementParts[i]); + } + } + if (d.feedbackToastText != null) { + m.feedbackToastText = String(d.feedbackToastText); + } + return m; + }; + + InThreadSurveyMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.questions = []; + d.privacyStatementParts = []; + } + if (m.tessaSessionId != null && m.hasOwnProperty("tessaSessionId")) { + d.tessaSessionId = m.tessaSessionId; + if (o.oneofs) + d._tessaSessionId = "tessaSessionId"; + } + if (m.simonSessionId != null && m.hasOwnProperty("simonSessionId")) { + d.simonSessionId = m.simonSessionId; + if (o.oneofs) + d._simonSessionId = "simonSessionId"; + } + if (m.simonSurveyId != null && m.hasOwnProperty("simonSurveyId")) { + d.simonSurveyId = m.simonSurveyId; + if (o.oneofs) + d._simonSurveyId = "simonSurveyId"; + } + if (m.tessaRootId != null && m.hasOwnProperty("tessaRootId")) { + d.tessaRootId = m.tessaRootId; + if (o.oneofs) + d._tessaRootId = "tessaRootId"; + } + if (m.requestId != null && m.hasOwnProperty("requestId")) { + d.requestId = m.requestId; + if (o.oneofs) + d._requestId = "requestId"; + } + if (m.tessaEvent != null && m.hasOwnProperty("tessaEvent")) { + d.tessaEvent = m.tessaEvent; + if (o.oneofs) + d._tessaEvent = "tessaEvent"; + } + if (m.invitationHeaderText != null && m.hasOwnProperty("invitationHeaderText")) { + d.invitationHeaderText = m.invitationHeaderText; + if (o.oneofs) + d._invitationHeaderText = "invitationHeaderText"; + } + if (m.invitationBodyText != null && m.hasOwnProperty("invitationBodyText")) { + d.invitationBodyText = m.invitationBodyText; + if (o.oneofs) + d._invitationBodyText = "invitationBodyText"; + } + if (m.invitationCtaText != null && m.hasOwnProperty("invitationCtaText")) { + d.invitationCtaText = m.invitationCtaText; + if (o.oneofs) + d._invitationCtaText = "invitationCtaText"; + } + if (m.invitationCtaUrl != null && m.hasOwnProperty("invitationCtaUrl")) { + d.invitationCtaUrl = m.invitationCtaUrl; + if (o.oneofs) + d._invitationCtaUrl = "invitationCtaUrl"; + } + if (m.surveyTitle != null && m.hasOwnProperty("surveyTitle")) { + d.surveyTitle = m.surveyTitle; + if (o.oneofs) + d._surveyTitle = "surveyTitle"; + } + if (m.questions && m.questions.length) { + d.questions = []; + for (var j = 0; j < m.questions.length; ++j) { + d.questions[j] = $root.proto.InThreadSurveyMetadata.InThreadSurveyQuestion.toObject(m.questions[j], o); + } + } + if (m.surveyContinueButtonText != null && m.hasOwnProperty("surveyContinueButtonText")) { + d.surveyContinueButtonText = m.surveyContinueButtonText; + if (o.oneofs) + d._surveyContinueButtonText = "surveyContinueButtonText"; + } + if (m.surveySubmitButtonText != null && m.hasOwnProperty("surveySubmitButtonText")) { + d.surveySubmitButtonText = m.surveySubmitButtonText; + if (o.oneofs) + d._surveySubmitButtonText = "surveySubmitButtonText"; + } + if (m.privacyStatementFull != null && m.hasOwnProperty("privacyStatementFull")) { + d.privacyStatementFull = m.privacyStatementFull; + if (o.oneofs) + d._privacyStatementFull = "privacyStatementFull"; + } + if (m.privacyStatementParts && m.privacyStatementParts.length) { + d.privacyStatementParts = []; + for (var j = 0; j < m.privacyStatementParts.length; ++j) { + d.privacyStatementParts[j] = $root.proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.toObject(m.privacyStatementParts[j], o); + } + } + if (m.feedbackToastText != null && m.hasOwnProperty("feedbackToastText")) { + d.feedbackToastText = m.feedbackToastText; + if (o.oneofs) + d._feedbackToastText = "feedbackToastText"; + } + return d; + }; + + InThreadSurveyMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + InThreadSurveyMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.InThreadSurveyMetadata"; + }; + + InThreadSurveyMetadata.InThreadSurveyOption = (function() { + + function InThreadSurveyOption(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + InThreadSurveyOption.prototype.stringValue = null; + InThreadSurveyOption.prototype.numericValue = null; + InThreadSurveyOption.prototype.textTranslated = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyOption.prototype, "_stringValue", { + get: $util.oneOfGetter($oneOfFields = ["stringValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyOption.prototype, "_numericValue", { + get: $util.oneOfGetter($oneOfFields = ["numericValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyOption.prototype, "_textTranslated", { + get: $util.oneOfGetter($oneOfFields = ["textTranslated"]), + set: $util.oneOfSetter($oneOfFields) + }); + + InThreadSurveyOption.create = function create(properties) { + return new InThreadSurveyOption(properties); + }; + + InThreadSurveyOption.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.stringValue != null && Object.hasOwnProperty.call(m, "stringValue")) + w.uint32(10).string(m.stringValue); + if (m.numericValue != null && Object.hasOwnProperty.call(m, "numericValue")) + w.uint32(16).uint32(m.numericValue); + if (m.textTranslated != null && Object.hasOwnProperty.call(m, "textTranslated")) + w.uint32(26).string(m.textTranslated); + return w; + }; + + InThreadSurveyOption.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InThreadSurveyMetadata.InThreadSurveyOption(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.stringValue = r.string(); + break; + } + case 2: { + m.numericValue = r.uint32(); + break; + } + case 3: { + m.textTranslated = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + InThreadSurveyOption.fromObject = function fromObject(d) { + if (d instanceof $root.proto.InThreadSurveyMetadata.InThreadSurveyOption) + return d; + var m = new $root.proto.InThreadSurveyMetadata.InThreadSurveyOption(); + if (d.stringValue != null) { + m.stringValue = String(d.stringValue); + } + if (d.numericValue != null) { + m.numericValue = d.numericValue >>> 0; + } + if (d.textTranslated != null) { + m.textTranslated = String(d.textTranslated); + } + return m; + }; + + InThreadSurveyOption.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.stringValue != null && m.hasOwnProperty("stringValue")) { + d.stringValue = m.stringValue; + if (o.oneofs) + d._stringValue = "stringValue"; + } + if (m.numericValue != null && m.hasOwnProperty("numericValue")) { + d.numericValue = m.numericValue; + if (o.oneofs) + d._numericValue = "numericValue"; + } + if (m.textTranslated != null && m.hasOwnProperty("textTranslated")) { + d.textTranslated = m.textTranslated; + if (o.oneofs) + d._textTranslated = "textTranslated"; + } + return d; + }; + + InThreadSurveyOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + InThreadSurveyOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.InThreadSurveyMetadata.InThreadSurveyOption"; + }; + + return InThreadSurveyOption; + })(); + + InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart = (function() { + + function InThreadSurveyPrivacyStatementPart(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + InThreadSurveyPrivacyStatementPart.prototype.text = null; + InThreadSurveyPrivacyStatementPart.prototype.url = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyPrivacyStatementPart.prototype, "_text", { + get: $util.oneOfGetter($oneOfFields = ["text"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyPrivacyStatementPart.prototype, "_url", { + get: $util.oneOfGetter($oneOfFields = ["url"]), + set: $util.oneOfSetter($oneOfFields) + }); + + InThreadSurveyPrivacyStatementPart.create = function create(properties) { + return new InThreadSurveyPrivacyStatementPart(properties); + }; + + InThreadSurveyPrivacyStatementPart.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.text != null && Object.hasOwnProperty.call(m, "text")) + w.uint32(10).string(m.text); + if (m.url != null && Object.hasOwnProperty.call(m, "url")) + w.uint32(18).string(m.url); + return w; + }; + + InThreadSurveyPrivacyStatementPart.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.text = r.string(); + break; + } + case 2: { + m.url = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + InThreadSurveyPrivacyStatementPart.fromObject = function fromObject(d) { + if (d instanceof $root.proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart) + return d; + var m = new $root.proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart(); + if (d.text != null) { + m.text = String(d.text); + } + if (d.url != null) { + m.url = String(d.url); + } + return m; + }; + + InThreadSurveyPrivacyStatementPart.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.text != null && m.hasOwnProperty("text")) { + d.text = m.text; + if (o.oneofs) + d._text = "text"; + } + if (m.url != null && m.hasOwnProperty("url")) { + d.url = m.url; + if (o.oneofs) + d._url = "url"; + } + return d; + }; + + InThreadSurveyPrivacyStatementPart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + InThreadSurveyPrivacyStatementPart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart"; + }; + + return InThreadSurveyPrivacyStatementPart; + })(); + + InThreadSurveyMetadata.InThreadSurveyQuestion = (function() { + + function InThreadSurveyQuestion(p) { + this.questionOptions = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + InThreadSurveyQuestion.prototype.questionText = null; + InThreadSurveyQuestion.prototype.questionId = null; + InThreadSurveyQuestion.prototype.questionOptions = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyQuestion.prototype, "_questionText", { + get: $util.oneOfGetter($oneOfFields = ["questionText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InThreadSurveyQuestion.prototype, "_questionId", { + get: $util.oneOfGetter($oneOfFields = ["questionId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + InThreadSurveyQuestion.create = function create(properties) { + return new InThreadSurveyQuestion(properties); + }; + + InThreadSurveyQuestion.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.questionText != null && Object.hasOwnProperty.call(m, "questionText")) + w.uint32(10).string(m.questionText); + if (m.questionId != null && Object.hasOwnProperty.call(m, "questionId")) + w.uint32(18).string(m.questionId); + if (m.questionOptions != null && m.questionOptions.length) { + for (var i = 0; i < m.questionOptions.length; ++i) + $root.proto.InThreadSurveyMetadata.InThreadSurveyOption.encode(m.questionOptions[i], w.uint32(26).fork()).ldelim(); + } + return w; + }; + + InThreadSurveyQuestion.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InThreadSurveyMetadata.InThreadSurveyQuestion(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.questionText = r.string(); + break; + } + case 2: { + m.questionId = r.string(); + break; + } + case 3: { + if (!(m.questionOptions && m.questionOptions.length)) + m.questionOptions = []; + m.questionOptions.push($root.proto.InThreadSurveyMetadata.InThreadSurveyOption.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + InThreadSurveyQuestion.fromObject = function fromObject(d) { + if (d instanceof $root.proto.InThreadSurveyMetadata.InThreadSurveyQuestion) + return d; + var m = new $root.proto.InThreadSurveyMetadata.InThreadSurveyQuestion(); + if (d.questionText != null) { + m.questionText = String(d.questionText); + } + if (d.questionId != null) { + m.questionId = String(d.questionId); + } + if (d.questionOptions) { + if (!Array.isArray(d.questionOptions)) + throw TypeError(".proto.InThreadSurveyMetadata.InThreadSurveyQuestion.questionOptions: array expected"); + m.questionOptions = []; + for (var i = 0; i < d.questionOptions.length; ++i) { + if (typeof d.questionOptions[i] !== "object") + throw TypeError(".proto.InThreadSurveyMetadata.InThreadSurveyQuestion.questionOptions: object expected"); + m.questionOptions[i] = $root.proto.InThreadSurveyMetadata.InThreadSurveyOption.fromObject(d.questionOptions[i]); + } + } + return m; + }; + + InThreadSurveyQuestion.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.questionOptions = []; + } + if (m.questionText != null && m.hasOwnProperty("questionText")) { + d.questionText = m.questionText; + if (o.oneofs) + d._questionText = "questionText"; + } + if (m.questionId != null && m.hasOwnProperty("questionId")) { + d.questionId = m.questionId; + if (o.oneofs) + d._questionId = "questionId"; + } + if (m.questionOptions && m.questionOptions.length) { + d.questionOptions = []; + for (var j = 0; j < m.questionOptions.length; ++j) { + d.questionOptions[j] = $root.proto.InThreadSurveyMetadata.InThreadSurveyOption.toObject(m.questionOptions[j], o); + } + } + return d; + }; + + InThreadSurveyQuestion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + InThreadSurveyQuestion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.InThreadSurveyMetadata.InThreadSurveyQuestion"; + }; + + return InThreadSurveyQuestion; + })(); + + return InThreadSurveyMetadata; + })(); + proto.InteractiveAnnotation = (function() { function InteractiveAnnotation(p) { @@ -26979,6 +33321,94 @@ export const proto = $root.proto = (() => { return InteractiveAnnotation; })(); + proto.InteractiveMessageAdditionalMetadata = (function() { + + function InteractiveMessageAdditionalMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + InteractiveMessageAdditionalMetadata.prototype.isGalaxyFlowCompleted = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InteractiveMessageAdditionalMetadata.prototype, "_isGalaxyFlowCompleted", { + get: $util.oneOfGetter($oneOfFields = ["isGalaxyFlowCompleted"]), + set: $util.oneOfSetter($oneOfFields) + }); + + InteractiveMessageAdditionalMetadata.create = function create(properties) { + return new InteractiveMessageAdditionalMetadata(properties); + }; + + InteractiveMessageAdditionalMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.isGalaxyFlowCompleted != null && Object.hasOwnProperty.call(m, "isGalaxyFlowCompleted")) + w.uint32(8).bool(m.isGalaxyFlowCompleted); + return w; + }; + + InteractiveMessageAdditionalMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InteractiveMessageAdditionalMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.isGalaxyFlowCompleted = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + InteractiveMessageAdditionalMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.InteractiveMessageAdditionalMetadata) + return d; + var m = new $root.proto.InteractiveMessageAdditionalMetadata(); + if (d.isGalaxyFlowCompleted != null) { + m.isGalaxyFlowCompleted = Boolean(d.isGalaxyFlowCompleted); + } + return m; + }; + + InteractiveMessageAdditionalMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.isGalaxyFlowCompleted != null && m.hasOwnProperty("isGalaxyFlowCompleted")) { + d.isGalaxyFlowCompleted = m.isGalaxyFlowCompleted; + if (o.oneofs) + d._isGalaxyFlowCompleted = "isGalaxyFlowCompleted"; + } + return d; + }; + + InteractiveMessageAdditionalMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + InteractiveMessageAdditionalMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.InteractiveMessageAdditionalMetadata"; + }; + + return InteractiveMessageAdditionalMetadata; + })(); + proto.KeepInChat = (function() { function KeepInChat(p) { @@ -29072,7 +35502,6 @@ export const proto = $root.proto = (() => { Message.prototype.associatedChildMessage = null; Message.prototype.groupStatusMentionMessage = null; Message.prototype.pollCreationMessageV4 = null; - Message.prototype.pollCreationMessageV5 = null; Message.prototype.statusAddYours = null; Message.prototype.groupStatusMessage = null; Message.prototype.richResponseMessage = null; @@ -29081,6 +35510,16 @@ export const proto = $root.proto = (() => { Message.prototype.botTaskMessage = null; Message.prototype.questionMessage = null; Message.prototype.messageHistoryNotice = null; + Message.prototype.groupStatusMessageV2 = null; + Message.prototype.botForwardedMessage = null; + Message.prototype.statusQuestionAnswerMessage = null; + Message.prototype.questionReplyMessage = null; + Message.prototype.questionResponseMessage = null; + Message.prototype.statusQuotedMessage = null; + Message.prototype.statusStickerInteractionMessage = null; + Message.prototype.pollCreationMessageV5 = null; + Message.prototype.newsletterFollowerInviteMessageV2 = null; + Message.prototype.pollResultSnapshotMessageV3 = null; let $oneOfFields; @@ -29546,12 +35985,6 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(Message.prototype, "_pollCreationMessageV5", { - get: $util.oneOfGetter($oneOfFields = ["pollCreationMessageV5"]), - set: $util.oneOfSetter($oneOfFields) - }); - // Virtual OneOf for proto3 optional field Object.defineProperty(Message.prototype, "_statusAddYours", { get: $util.oneOfGetter($oneOfFields = ["statusAddYours"]), @@ -29600,6 +36033,66 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_groupStatusMessageV2", { + get: $util.oneOfGetter($oneOfFields = ["groupStatusMessageV2"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_botForwardedMessage", { + get: $util.oneOfGetter($oneOfFields = ["botForwardedMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_statusQuestionAnswerMessage", { + get: $util.oneOfGetter($oneOfFields = ["statusQuestionAnswerMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_questionReplyMessage", { + get: $util.oneOfGetter($oneOfFields = ["questionReplyMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_questionResponseMessage", { + get: $util.oneOfGetter($oneOfFields = ["questionResponseMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_statusQuotedMessage", { + get: $util.oneOfGetter($oneOfFields = ["statusQuotedMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_statusStickerInteractionMessage", { + get: $util.oneOfGetter($oneOfFields = ["statusStickerInteractionMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_pollCreationMessageV5", { + get: $util.oneOfGetter($oneOfFields = ["pollCreationMessageV5"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_newsletterFollowerInviteMessageV2", { + get: $util.oneOfGetter($oneOfFields = ["newsletterFollowerInviteMessageV2"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Message.prototype, "_pollResultSnapshotMessageV3", { + get: $util.oneOfGetter($oneOfFields = ["pollResultSnapshotMessageV3"]), + set: $util.oneOfSetter($oneOfFields) + }); + Message.create = function create(properties) { return new Message(properties); }; @@ -29761,8 +36254,6 @@ export const proto = $root.proto = (() => { $root.proto.Message.FutureProofMessage.encode(m.groupStatusMentionMessage, w.uint32(738).fork()).ldelim(); if (m.pollCreationMessageV4 != null && Object.hasOwnProperty.call(m, "pollCreationMessageV4")) $root.proto.Message.FutureProofMessage.encode(m.pollCreationMessageV4, w.uint32(746).fork()).ldelim(); - if (m.pollCreationMessageV5 != null && Object.hasOwnProperty.call(m, "pollCreationMessageV5")) - $root.proto.Message.FutureProofMessage.encode(m.pollCreationMessageV5, w.uint32(754).fork()).ldelim(); if (m.statusAddYours != null && Object.hasOwnProperty.call(m, "statusAddYours")) $root.proto.Message.FutureProofMessage.encode(m.statusAddYours, w.uint32(762).fork()).ldelim(); if (m.groupStatusMessage != null && Object.hasOwnProperty.call(m, "groupStatusMessage")) @@ -29779,6 +36270,26 @@ export const proto = $root.proto = (() => { $root.proto.Message.FutureProofMessage.encode(m.questionMessage, w.uint32(810).fork()).ldelim(); if (m.messageHistoryNotice != null && Object.hasOwnProperty.call(m, "messageHistoryNotice")) $root.proto.Message.MessageHistoryNotice.encode(m.messageHistoryNotice, w.uint32(818).fork()).ldelim(); + if (m.groupStatusMessageV2 != null && Object.hasOwnProperty.call(m, "groupStatusMessageV2")) + $root.proto.Message.FutureProofMessage.encode(m.groupStatusMessageV2, w.uint32(826).fork()).ldelim(); + if (m.botForwardedMessage != null && Object.hasOwnProperty.call(m, "botForwardedMessage")) + $root.proto.Message.FutureProofMessage.encode(m.botForwardedMessage, w.uint32(834).fork()).ldelim(); + if (m.statusQuestionAnswerMessage != null && Object.hasOwnProperty.call(m, "statusQuestionAnswerMessage")) + $root.proto.Message.StatusQuestionAnswerMessage.encode(m.statusQuestionAnswerMessage, w.uint32(842).fork()).ldelim(); + if (m.questionReplyMessage != null && Object.hasOwnProperty.call(m, "questionReplyMessage")) + $root.proto.Message.FutureProofMessage.encode(m.questionReplyMessage, w.uint32(850).fork()).ldelim(); + if (m.questionResponseMessage != null && Object.hasOwnProperty.call(m, "questionResponseMessage")) + $root.proto.Message.QuestionResponseMessage.encode(m.questionResponseMessage, w.uint32(858).fork()).ldelim(); + if (m.statusQuotedMessage != null && Object.hasOwnProperty.call(m, "statusQuotedMessage")) + $root.proto.Message.StatusQuotedMessage.encode(m.statusQuotedMessage, w.uint32(874).fork()).ldelim(); + if (m.statusStickerInteractionMessage != null && Object.hasOwnProperty.call(m, "statusStickerInteractionMessage")) + $root.proto.Message.StatusStickerInteractionMessage.encode(m.statusStickerInteractionMessage, w.uint32(882).fork()).ldelim(); + if (m.pollCreationMessageV5 != null && Object.hasOwnProperty.call(m, "pollCreationMessageV5")) + $root.proto.Message.PollCreationMessage.encode(m.pollCreationMessageV5, w.uint32(890).fork()).ldelim(); + if (m.newsletterFollowerInviteMessageV2 != null && Object.hasOwnProperty.call(m, "newsletterFollowerInviteMessageV2")) + $root.proto.Message.NewsletterFollowerInviteMessage.encode(m.newsletterFollowerInviteMessageV2, w.uint32(906).fork()).ldelim(); + if (m.pollResultSnapshotMessageV3 != null && Object.hasOwnProperty.call(m, "pollResultSnapshotMessageV3")) + $root.proto.Message.PollResultSnapshotMessage.encode(m.pollResultSnapshotMessageV3, w.uint32(914).fork()).ldelim(); return w; }; @@ -30099,10 +36610,6 @@ export const proto = $root.proto = (() => { m.pollCreationMessageV4 = $root.proto.Message.FutureProofMessage.decode(r, r.uint32()); break; } - case 94: { - m.pollCreationMessageV5 = $root.proto.Message.FutureProofMessage.decode(r, r.uint32()); - break; - } case 95: { m.statusAddYours = $root.proto.Message.FutureProofMessage.decode(r, r.uint32()); break; @@ -30135,6 +36642,46 @@ export const proto = $root.proto = (() => { m.messageHistoryNotice = $root.proto.Message.MessageHistoryNotice.decode(r, r.uint32()); break; } + case 103: { + m.groupStatusMessageV2 = $root.proto.Message.FutureProofMessage.decode(r, r.uint32()); + break; + } + case 104: { + m.botForwardedMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32()); + break; + } + case 105: { + m.statusQuestionAnswerMessage = $root.proto.Message.StatusQuestionAnswerMessage.decode(r, r.uint32()); + break; + } + case 106: { + m.questionReplyMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32()); + break; + } + case 107: { + m.questionResponseMessage = $root.proto.Message.QuestionResponseMessage.decode(r, r.uint32()); + break; + } + case 109: { + m.statusQuotedMessage = $root.proto.Message.StatusQuotedMessage.decode(r, r.uint32()); + break; + } + case 110: { + m.statusStickerInteractionMessage = $root.proto.Message.StatusStickerInteractionMessage.decode(r, r.uint32()); + break; + } + case 111: { + m.pollCreationMessageV5 = $root.proto.Message.PollCreationMessage.decode(r, r.uint32()); + break; + } + case 113: { + m.newsletterFollowerInviteMessageV2 = $root.proto.Message.NewsletterFollowerInviteMessage.decode(r, r.uint32()); + break; + } + case 114: { + m.pollResultSnapshotMessageV3 = $root.proto.Message.PollResultSnapshotMessage.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -30530,11 +37077,6 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.pollCreationMessageV4: object expected"); m.pollCreationMessageV4 = $root.proto.Message.FutureProofMessage.fromObject(d.pollCreationMessageV4); } - if (d.pollCreationMessageV5 != null) { - if (typeof d.pollCreationMessageV5 !== "object") - throw TypeError(".proto.Message.pollCreationMessageV5: object expected"); - m.pollCreationMessageV5 = $root.proto.Message.FutureProofMessage.fromObject(d.pollCreationMessageV5); - } if (d.statusAddYours != null) { if (typeof d.statusAddYours !== "object") throw TypeError(".proto.Message.statusAddYours: object expected"); @@ -30575,6 +37117,56 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.messageHistoryNotice: object expected"); m.messageHistoryNotice = $root.proto.Message.MessageHistoryNotice.fromObject(d.messageHistoryNotice); } + if (d.groupStatusMessageV2 != null) { + if (typeof d.groupStatusMessageV2 !== "object") + throw TypeError(".proto.Message.groupStatusMessageV2: object expected"); + m.groupStatusMessageV2 = $root.proto.Message.FutureProofMessage.fromObject(d.groupStatusMessageV2); + } + if (d.botForwardedMessage != null) { + if (typeof d.botForwardedMessage !== "object") + throw TypeError(".proto.Message.botForwardedMessage: object expected"); + m.botForwardedMessage = $root.proto.Message.FutureProofMessage.fromObject(d.botForwardedMessage); + } + if (d.statusQuestionAnswerMessage != null) { + if (typeof d.statusQuestionAnswerMessage !== "object") + throw TypeError(".proto.Message.statusQuestionAnswerMessage: object expected"); + m.statusQuestionAnswerMessage = $root.proto.Message.StatusQuestionAnswerMessage.fromObject(d.statusQuestionAnswerMessage); + } + if (d.questionReplyMessage != null) { + if (typeof d.questionReplyMessage !== "object") + throw TypeError(".proto.Message.questionReplyMessage: object expected"); + m.questionReplyMessage = $root.proto.Message.FutureProofMessage.fromObject(d.questionReplyMessage); + } + if (d.questionResponseMessage != null) { + if (typeof d.questionResponseMessage !== "object") + throw TypeError(".proto.Message.questionResponseMessage: object expected"); + m.questionResponseMessage = $root.proto.Message.QuestionResponseMessage.fromObject(d.questionResponseMessage); + } + if (d.statusQuotedMessage != null) { + if (typeof d.statusQuotedMessage !== "object") + throw TypeError(".proto.Message.statusQuotedMessage: object expected"); + m.statusQuotedMessage = $root.proto.Message.StatusQuotedMessage.fromObject(d.statusQuotedMessage); + } + if (d.statusStickerInteractionMessage != null) { + if (typeof d.statusStickerInteractionMessage !== "object") + throw TypeError(".proto.Message.statusStickerInteractionMessage: object expected"); + m.statusStickerInteractionMessage = $root.proto.Message.StatusStickerInteractionMessage.fromObject(d.statusStickerInteractionMessage); + } + if (d.pollCreationMessageV5 != null) { + if (typeof d.pollCreationMessageV5 !== "object") + throw TypeError(".proto.Message.pollCreationMessageV5: object expected"); + m.pollCreationMessageV5 = $root.proto.Message.PollCreationMessage.fromObject(d.pollCreationMessageV5); + } + if (d.newsletterFollowerInviteMessageV2 != null) { + if (typeof d.newsletterFollowerInviteMessageV2 !== "object") + throw TypeError(".proto.Message.newsletterFollowerInviteMessageV2: object expected"); + m.newsletterFollowerInviteMessageV2 = $root.proto.Message.NewsletterFollowerInviteMessage.fromObject(d.newsletterFollowerInviteMessageV2); + } + if (d.pollResultSnapshotMessageV3 != null) { + if (typeof d.pollResultSnapshotMessageV3 !== "object") + throw TypeError(".proto.Message.pollResultSnapshotMessageV3: object expected"); + m.pollResultSnapshotMessageV3 = $root.proto.Message.PollResultSnapshotMessage.fromObject(d.pollResultSnapshotMessageV3); + } return m; }; @@ -30967,11 +37559,6 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._pollCreationMessageV4 = "pollCreationMessageV4"; } - if (m.pollCreationMessageV5 != null && m.hasOwnProperty("pollCreationMessageV5")) { - d.pollCreationMessageV5 = $root.proto.Message.FutureProofMessage.toObject(m.pollCreationMessageV5, o); - if (o.oneofs) - d._pollCreationMessageV5 = "pollCreationMessageV5"; - } if (m.statusAddYours != null && m.hasOwnProperty("statusAddYours")) { d.statusAddYours = $root.proto.Message.FutureProofMessage.toObject(m.statusAddYours, o); if (o.oneofs) @@ -31012,6 +37599,56 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._messageHistoryNotice = "messageHistoryNotice"; } + if (m.groupStatusMessageV2 != null && m.hasOwnProperty("groupStatusMessageV2")) { + d.groupStatusMessageV2 = $root.proto.Message.FutureProofMessage.toObject(m.groupStatusMessageV2, o); + if (o.oneofs) + d._groupStatusMessageV2 = "groupStatusMessageV2"; + } + if (m.botForwardedMessage != null && m.hasOwnProperty("botForwardedMessage")) { + d.botForwardedMessage = $root.proto.Message.FutureProofMessage.toObject(m.botForwardedMessage, o); + if (o.oneofs) + d._botForwardedMessage = "botForwardedMessage"; + } + if (m.statusQuestionAnswerMessage != null && m.hasOwnProperty("statusQuestionAnswerMessage")) { + d.statusQuestionAnswerMessage = $root.proto.Message.StatusQuestionAnswerMessage.toObject(m.statusQuestionAnswerMessage, o); + if (o.oneofs) + d._statusQuestionAnswerMessage = "statusQuestionAnswerMessage"; + } + if (m.questionReplyMessage != null && m.hasOwnProperty("questionReplyMessage")) { + d.questionReplyMessage = $root.proto.Message.FutureProofMessage.toObject(m.questionReplyMessage, o); + if (o.oneofs) + d._questionReplyMessage = "questionReplyMessage"; + } + if (m.questionResponseMessage != null && m.hasOwnProperty("questionResponseMessage")) { + d.questionResponseMessage = $root.proto.Message.QuestionResponseMessage.toObject(m.questionResponseMessage, o); + if (o.oneofs) + d._questionResponseMessage = "questionResponseMessage"; + } + if (m.statusQuotedMessage != null && m.hasOwnProperty("statusQuotedMessage")) { + d.statusQuotedMessage = $root.proto.Message.StatusQuotedMessage.toObject(m.statusQuotedMessage, o); + if (o.oneofs) + d._statusQuotedMessage = "statusQuotedMessage"; + } + if (m.statusStickerInteractionMessage != null && m.hasOwnProperty("statusStickerInteractionMessage")) { + d.statusStickerInteractionMessage = $root.proto.Message.StatusStickerInteractionMessage.toObject(m.statusStickerInteractionMessage, o); + if (o.oneofs) + d._statusStickerInteractionMessage = "statusStickerInteractionMessage"; + } + if (m.pollCreationMessageV5 != null && m.hasOwnProperty("pollCreationMessageV5")) { + d.pollCreationMessageV5 = $root.proto.Message.PollCreationMessage.toObject(m.pollCreationMessageV5, o); + if (o.oneofs) + d._pollCreationMessageV5 = "pollCreationMessageV5"; + } + if (m.newsletterFollowerInviteMessageV2 != null && m.hasOwnProperty("newsletterFollowerInviteMessageV2")) { + d.newsletterFollowerInviteMessageV2 = $root.proto.Message.NewsletterFollowerInviteMessage.toObject(m.newsletterFollowerInviteMessageV2, o); + if (o.oneofs) + d._newsletterFollowerInviteMessageV2 = "newsletterFollowerInviteMessageV2"; + } + if (m.pollResultSnapshotMessageV3 != null && m.hasOwnProperty("pollResultSnapshotMessageV3")) { + d.pollResultSnapshotMessageV3 = $root.proto.Message.PollResultSnapshotMessage.toObject(m.pollResultSnapshotMessageV3, o); + if (o.oneofs) + d._pollResultSnapshotMessageV3 = "pollResultSnapshotMessageV3"; + } return d; }; @@ -31996,6 +38633,7 @@ export const proto = $root.proto = (() => { AudioMessage.prototype.backgroundArgb = null; AudioMessage.prototype.viewOnce = null; AudioMessage.prototype.accessibilityLabel = null; + AudioMessage.prototype.mediaKeyDomain = null; let $oneOfFields; @@ -32095,6 +38733,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(AudioMessage.prototype, "_mediaKeyDomain", { + get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + AudioMessage.create = function create(properties) { return new AudioMessage(properties); }; @@ -32134,6 +38778,8 @@ export const proto = $root.proto = (() => { w.uint32(168).bool(m.viewOnce); if (m.accessibilityLabel != null && Object.hasOwnProperty.call(m, "accessibilityLabel")) w.uint32(178).string(m.accessibilityLabel); + if (m.mediaKeyDomain != null && Object.hasOwnProperty.call(m, "mediaKeyDomain")) + w.uint32(184).int32(m.mediaKeyDomain); return w; }; @@ -32210,6 +38856,10 @@ export const proto = $root.proto = (() => { m.accessibilityLabel = r.string(); break; } + case 23: { + m.mediaKeyDomain = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -32301,6 +38951,34 @@ export const proto = $root.proto = (() => { if (d.accessibilityLabel != null) { m.accessibilityLabel = String(d.accessibilityLabel); } + switch (d.mediaKeyDomain) { + default: + if (typeof d.mediaKeyDomain === "number") { + m.mediaKeyDomain = d.mediaKeyDomain; + break; + } + break; + case "UNSET": + case 0: + m.mediaKeyDomain = 0; + break; + case "E2EE_CHAT": + case 1: + m.mediaKeyDomain = 1; + break; + case "STATUS": + case 2: + m.mediaKeyDomain = 2; + break; + case "CAPI": + case 3: + m.mediaKeyDomain = 3; + break; + case "BOT": + case 4: + m.mediaKeyDomain = 4; + break; + } return m; }; @@ -32394,6 +39072,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._accessibilityLabel = "accessibilityLabel"; } + if (m.mediaKeyDomain != null && m.hasOwnProperty("mediaKeyDomain")) { + d.mediaKeyDomain = o.enums === String ? $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] === undefined ? m.mediaKeyDomain : $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] : m.mediaKeyDomain; + if (o.oneofs) + d._mediaKeyDomain = "mediaKeyDomain"; + } return d; }; @@ -32590,331 +39273,6 @@ export const proto = $root.proto = (() => { return BCallMessage; })(); - Message.BotFeedbackMessage = (function() { - - function BotFeedbackMessage(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - BotFeedbackMessage.prototype.messageKey = null; - BotFeedbackMessage.prototype.kind = null; - BotFeedbackMessage.prototype.text = null; - BotFeedbackMessage.prototype.kindNegative = null; - BotFeedbackMessage.prototype.kindPositive = null; - BotFeedbackMessage.prototype.kindReport = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BotFeedbackMessage.prototype, "_messageKey", { - get: $util.oneOfGetter($oneOfFields = ["messageKey"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BotFeedbackMessage.prototype, "_kind", { - get: $util.oneOfGetter($oneOfFields = ["kind"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BotFeedbackMessage.prototype, "_text", { - get: $util.oneOfGetter($oneOfFields = ["text"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BotFeedbackMessage.prototype, "_kindNegative", { - get: $util.oneOfGetter($oneOfFields = ["kindNegative"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BotFeedbackMessage.prototype, "_kindPositive", { - get: $util.oneOfGetter($oneOfFields = ["kindPositive"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BotFeedbackMessage.prototype, "_kindReport", { - get: $util.oneOfGetter($oneOfFields = ["kindReport"]), - set: $util.oneOfSetter($oneOfFields) - }); - - BotFeedbackMessage.create = function create(properties) { - return new BotFeedbackMessage(properties); - }; - - BotFeedbackMessage.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.messageKey != null && Object.hasOwnProperty.call(m, "messageKey")) - $root.proto.MessageKey.encode(m.messageKey, w.uint32(10).fork()).ldelim(); - if (m.kind != null && Object.hasOwnProperty.call(m, "kind")) - w.uint32(16).int32(m.kind); - if (m.text != null && Object.hasOwnProperty.call(m, "text")) - w.uint32(26).string(m.text); - if (m.kindNegative != null && Object.hasOwnProperty.call(m, "kindNegative")) - w.uint32(32).uint64(m.kindNegative); - if (m.kindPositive != null && Object.hasOwnProperty.call(m, "kindPositive")) - w.uint32(40).uint64(m.kindPositive); - if (m.kindReport != null && Object.hasOwnProperty.call(m, "kindReport")) - w.uint32(48).int32(m.kindReport); - return w; - }; - - BotFeedbackMessage.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.BotFeedbackMessage(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.messageKey = $root.proto.MessageKey.decode(r, r.uint32()); - break; - } - case 2: { - m.kind = r.int32(); - break; - } - case 3: { - m.text = r.string(); - break; - } - case 4: { - m.kindNegative = r.uint64(); - break; - } - case 5: { - m.kindPositive = r.uint64(); - break; - } - case 6: { - m.kindReport = r.int32(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - BotFeedbackMessage.fromObject = function fromObject(d) { - if (d instanceof $root.proto.Message.BotFeedbackMessage) - return d; - var m = new $root.proto.Message.BotFeedbackMessage(); - if (d.messageKey != null) { - if (typeof d.messageKey !== "object") - throw TypeError(".proto.Message.BotFeedbackMessage.messageKey: object expected"); - m.messageKey = $root.proto.MessageKey.fromObject(d.messageKey); - } - switch (d.kind) { - default: - if (typeof d.kind === "number") { - m.kind = d.kind; - break; - } - break; - case "BOT_FEEDBACK_POSITIVE": - case 0: - m.kind = 0; - break; - case "BOT_FEEDBACK_NEGATIVE_GENERIC": - case 1: - m.kind = 1; - break; - case "BOT_FEEDBACK_NEGATIVE_HELPFUL": - case 2: - m.kind = 2; - break; - case "BOT_FEEDBACK_NEGATIVE_INTERESTING": - case 3: - m.kind = 3; - break; - case "BOT_FEEDBACK_NEGATIVE_ACCURATE": - case 4: - m.kind = 4; - break; - case "BOT_FEEDBACK_NEGATIVE_SAFE": - case 5: - m.kind = 5; - break; - case "BOT_FEEDBACK_NEGATIVE_OTHER": - case 6: - m.kind = 6; - break; - case "BOT_FEEDBACK_NEGATIVE_REFUSED": - case 7: - m.kind = 7; - break; - case "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING": - case 8: - m.kind = 8; - break; - case "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT": - case 9: - m.kind = 9; - break; - case "BOT_FEEDBACK_NEGATIVE_PERSONALIZED": - case 10: - m.kind = 10; - break; - case "BOT_FEEDBACK_NEGATIVE_CLARITY": - case 11: - m.kind = 11; - break; - case "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON": - case 12: - m.kind = 12; - break; - } - if (d.text != null) { - m.text = String(d.text); - } - if (d.kindNegative != null) { - if ($util.Long) - (m.kindNegative = $util.Long.fromValue(d.kindNegative)).unsigned = true; - else if (typeof d.kindNegative === "string") - m.kindNegative = parseInt(d.kindNegative, 10); - else if (typeof d.kindNegative === "number") - m.kindNegative = d.kindNegative; - else if (typeof d.kindNegative === "object") - m.kindNegative = new $util.LongBits(d.kindNegative.low >>> 0, d.kindNegative.high >>> 0).toNumber(true); - } - if (d.kindPositive != null) { - if ($util.Long) - (m.kindPositive = $util.Long.fromValue(d.kindPositive)).unsigned = true; - else if (typeof d.kindPositive === "string") - m.kindPositive = parseInt(d.kindPositive, 10); - else if (typeof d.kindPositive === "number") - m.kindPositive = d.kindPositive; - else if (typeof d.kindPositive === "object") - m.kindPositive = new $util.LongBits(d.kindPositive.low >>> 0, d.kindPositive.high >>> 0).toNumber(true); - } - switch (d.kindReport) { - default: - if (typeof d.kindReport === "number") { - m.kindReport = d.kindReport; - break; - } - break; - case "GENERIC": - case 0: - m.kindReport = 0; - break; - } - return m; - }; - - BotFeedbackMessage.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.messageKey != null && m.hasOwnProperty("messageKey")) { - d.messageKey = $root.proto.MessageKey.toObject(m.messageKey, o); - if (o.oneofs) - d._messageKey = "messageKey"; - } - if (m.kind != null && m.hasOwnProperty("kind")) { - d.kind = o.enums === String ? $root.proto.Message.BotFeedbackMessage.BotFeedbackKind[m.kind] === undefined ? m.kind : $root.proto.Message.BotFeedbackMessage.BotFeedbackKind[m.kind] : m.kind; - if (o.oneofs) - d._kind = "kind"; - } - if (m.text != null && m.hasOwnProperty("text")) { - d.text = m.text; - if (o.oneofs) - d._text = "text"; - } - if (m.kindNegative != null && m.hasOwnProperty("kindNegative")) { - if (typeof m.kindNegative === "number") - d.kindNegative = o.longs === String ? String(m.kindNegative) : m.kindNegative; - else - d.kindNegative = o.longs === String ? $util.Long.prototype.toString.call(m.kindNegative) : o.longs === Number ? new $util.LongBits(m.kindNegative.low >>> 0, m.kindNegative.high >>> 0).toNumber(true) : m.kindNegative; - if (o.oneofs) - d._kindNegative = "kindNegative"; - } - if (m.kindPositive != null && m.hasOwnProperty("kindPositive")) { - if (typeof m.kindPositive === "number") - d.kindPositive = o.longs === String ? String(m.kindPositive) : m.kindPositive; - else - d.kindPositive = o.longs === String ? $util.Long.prototype.toString.call(m.kindPositive) : o.longs === Number ? new $util.LongBits(m.kindPositive.low >>> 0, m.kindPositive.high >>> 0).toNumber(true) : m.kindPositive; - if (o.oneofs) - d._kindPositive = "kindPositive"; - } - if (m.kindReport != null && m.hasOwnProperty("kindReport")) { - d.kindReport = o.enums === String ? $root.proto.Message.BotFeedbackMessage.ReportKind[m.kindReport] === undefined ? m.kindReport : $root.proto.Message.BotFeedbackMessage.ReportKind[m.kindReport] : m.kindReport; - if (o.oneofs) - d._kindReport = "kindReport"; - } - return d; - }; - - BotFeedbackMessage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - BotFeedbackMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.Message.BotFeedbackMessage"; - }; - - BotFeedbackMessage.BotFeedbackKind = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BOT_FEEDBACK_POSITIVE"] = 0; - values[valuesById[1] = "BOT_FEEDBACK_NEGATIVE_GENERIC"] = 1; - values[valuesById[2] = "BOT_FEEDBACK_NEGATIVE_HELPFUL"] = 2; - values[valuesById[3] = "BOT_FEEDBACK_NEGATIVE_INTERESTING"] = 3; - values[valuesById[4] = "BOT_FEEDBACK_NEGATIVE_ACCURATE"] = 4; - values[valuesById[5] = "BOT_FEEDBACK_NEGATIVE_SAFE"] = 5; - values[valuesById[6] = "BOT_FEEDBACK_NEGATIVE_OTHER"] = 6; - values[valuesById[7] = "BOT_FEEDBACK_NEGATIVE_REFUSED"] = 7; - values[valuesById[8] = "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING"] = 8; - values[valuesById[9] = "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 9; - values[valuesById[10] = "BOT_FEEDBACK_NEGATIVE_PERSONALIZED"] = 10; - values[valuesById[11] = "BOT_FEEDBACK_NEGATIVE_CLARITY"] = 11; - values[valuesById[12] = "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON"] = 12; - return values; - })(); - - BotFeedbackMessage.BotFeedbackKindMultipleNegative = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC"] = 1; - values[valuesById[2] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL"] = 2; - values[valuesById[4] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING"] = 4; - values[valuesById[8] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE"] = 8; - values[valuesById[16] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE"] = 16; - values[valuesById[32] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER"] = 32; - values[valuesById[64] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED"] = 64; - values[valuesById[128] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING"] = 128; - values[valuesById[256] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 256; - return values; - })(); - - BotFeedbackMessage.BotFeedbackKindMultiplePositive = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC"] = 1; - return values; - })(); - - BotFeedbackMessage.ReportKind = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GENERIC"] = 0; - return values; - })(); - - return BotFeedbackMessage; - })(); - Message.ButtonsMessage = (function() { function ButtonsMessage(p) { @@ -33797,6 +40155,8 @@ export const proto = $root.proto = (() => { Call.prototype.ctwaSignals = null; Call.prototype.ctwaPayload = null; Call.prototype.contextInfo = null; + Call.prototype.nativeFlowCallButtonPayload = null; + Call.prototype.deeplinkPayload = null; let $oneOfFields; @@ -33842,6 +40202,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Call.prototype, "_nativeFlowCallButtonPayload", { + get: $util.oneOfGetter($oneOfFields = ["nativeFlowCallButtonPayload"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Call.prototype, "_deeplinkPayload", { + get: $util.oneOfGetter($oneOfFields = ["deeplinkPayload"]), + set: $util.oneOfSetter($oneOfFields) + }); + Call.create = function create(properties) { return new Call(properties); }; @@ -33863,6 +40235,10 @@ export const proto = $root.proto = (() => { w.uint32(50).bytes(m.ctwaPayload); if (m.contextInfo != null && Object.hasOwnProperty.call(m, "contextInfo")) $root.proto.ContextInfo.encode(m.contextInfo, w.uint32(58).fork()).ldelim(); + if (m.nativeFlowCallButtonPayload != null && Object.hasOwnProperty.call(m, "nativeFlowCallButtonPayload")) + w.uint32(66).string(m.nativeFlowCallButtonPayload); + if (m.deeplinkPayload != null && Object.hasOwnProperty.call(m, "deeplinkPayload")) + w.uint32(74).string(m.deeplinkPayload); return w; }; @@ -33903,6 +40279,14 @@ export const proto = $root.proto = (() => { m.contextInfo = $root.proto.ContextInfo.decode(r, r.uint32()); break; } + case 8: { + m.nativeFlowCallButtonPayload = r.string(); + break; + } + case 9: { + m.deeplinkPayload = r.string(); + break; + } default: r.skipType(t & 7); break; @@ -33947,6 +40331,12 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.Call.contextInfo: object expected"); m.contextInfo = $root.proto.ContextInfo.fromObject(d.contextInfo); } + if (d.nativeFlowCallButtonPayload != null) { + m.nativeFlowCallButtonPayload = String(d.nativeFlowCallButtonPayload); + } + if (d.deeplinkPayload != null) { + m.deeplinkPayload = String(d.deeplinkPayload); + } return m; }; @@ -33989,6 +40379,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._contextInfo = "contextInfo"; } + if (m.nativeFlowCallButtonPayload != null && m.hasOwnProperty("nativeFlowCallButtonPayload")) { + d.nativeFlowCallButtonPayload = m.nativeFlowCallButtonPayload; + if (o.oneofs) + d._nativeFlowCallButtonPayload = "nativeFlowCallButtonPayload"; + } + if (m.deeplinkPayload != null && m.hasOwnProperty("deeplinkPayload")) { + d.deeplinkPayload = m.deeplinkPayload; + if (o.oneofs) + d._deeplinkPayload = "deeplinkPayload"; + } return d; }; @@ -34632,6 +41032,7 @@ export const proto = $root.proto = (() => { CloudAPIThreadControlNotification.prototype.consumerLid = null; CloudAPIThreadControlNotification.prototype.consumerPhoneNumber = null; CloudAPIThreadControlNotification.prototype.notificationContent = null; + CloudAPIThreadControlNotification.prototype.shouldSuppressNotification = null; let $oneOfFields; @@ -34665,6 +41066,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(CloudAPIThreadControlNotification.prototype, "_shouldSuppressNotification", { + get: $util.oneOfGetter($oneOfFields = ["shouldSuppressNotification"]), + set: $util.oneOfSetter($oneOfFields) + }); + CloudAPIThreadControlNotification.create = function create(properties) { return new CloudAPIThreadControlNotification(properties); }; @@ -34682,6 +41089,8 @@ export const proto = $root.proto = (() => { w.uint32(34).string(m.consumerPhoneNumber); if (m.notificationContent != null && Object.hasOwnProperty.call(m, "notificationContent")) $root.proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControlNotificationContent.encode(m.notificationContent, w.uint32(42).fork()).ldelim(); + if (m.shouldSuppressNotification != null && Object.hasOwnProperty.call(m, "shouldSuppressNotification")) + w.uint32(48).bool(m.shouldSuppressNotification); return w; }; @@ -34714,6 +41123,10 @@ export const proto = $root.proto = (() => { m.notificationContent = $root.proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControlNotificationContent.decode(r, r.uint32()); break; } + case 6: { + m.shouldSuppressNotification = r.bool(); + break; + } default: r.skipType(t & 7); break; @@ -34767,6 +41180,9 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.CloudAPIThreadControlNotification.notificationContent: object expected"); m.notificationContent = $root.proto.Message.CloudAPIThreadControlNotification.CloudAPIThreadControlNotificationContent.fromObject(d.notificationContent); } + if (d.shouldSuppressNotification != null) { + m.shouldSuppressNotification = Boolean(d.shouldSuppressNotification); + } return m; }; @@ -34802,6 +41218,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._notificationContent = "notificationContent"; } + if (m.shouldSuppressNotification != null && m.hasOwnProperty("shouldSuppressNotification")) { + d.shouldSuppressNotification = m.shouldSuppressNotification; + if (o.oneofs) + d._shouldSuppressNotification = "shouldSuppressNotification"; + } return d; }; @@ -35575,6 +41996,7 @@ export const proto = $root.proto = (() => { DocumentMessage.prototype.thumbnailWidth = null; DocumentMessage.prototype.caption = null; DocumentMessage.prototype.accessibilityLabel = null; + DocumentMessage.prototype.mediaKeyDomain = null; let $oneOfFields; @@ -35704,6 +42126,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(DocumentMessage.prototype, "_mediaKeyDomain", { + get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + DocumentMessage.create = function create(properties) { return new DocumentMessage(properties); }; @@ -35753,6 +42181,8 @@ export const proto = $root.proto = (() => { w.uint32(162).string(m.caption); if (m.accessibilityLabel != null && Object.hasOwnProperty.call(m, "accessibilityLabel")) w.uint32(170).string(m.accessibilityLabel); + if (m.mediaKeyDomain != null && Object.hasOwnProperty.call(m, "mediaKeyDomain")) + w.uint32(176).int32(m.mediaKeyDomain); return w; }; @@ -35849,6 +42279,10 @@ export const proto = $root.proto = (() => { m.accessibilityLabel = r.string(); break; } + case 22: { + m.mediaKeyDomain = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -35958,6 +42392,34 @@ export const proto = $root.proto = (() => { if (d.accessibilityLabel != null) { m.accessibilityLabel = String(d.accessibilityLabel); } + switch (d.mediaKeyDomain) { + default: + if (typeof d.mediaKeyDomain === "number") { + m.mediaKeyDomain = d.mediaKeyDomain; + break; + } + break; + case "UNSET": + case 0: + m.mediaKeyDomain = 0; + break; + case "E2EE_CHAT": + case 1: + m.mediaKeyDomain = 1; + break; + case "STATUS": + case 2: + m.mediaKeyDomain = 2; + break; + case "CAPI": + case 3: + m.mediaKeyDomain = 3; + break; + case "BOT": + case 4: + m.mediaKeyDomain = 4; + break; + } return m; }; @@ -36076,6 +42538,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._accessibilityLabel = "accessibilityLabel"; } + if (m.mediaKeyDomain != null && m.hasOwnProperty("mediaKeyDomain")) { + d.mediaKeyDomain = o.enums === String ? $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] === undefined ? m.mediaKeyDomain : $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] : m.mediaKeyDomain; + if (o.oneofs) + d._mediaKeyDomain = "mediaKeyDomain"; + } return d; }; @@ -36526,6 +42993,8 @@ export const proto = $root.proto = (() => { EventMessage.prototype.endTime = null; EventMessage.prototype.extraGuestsAllowed = null; EventMessage.prototype.isScheduleCall = null; + EventMessage.prototype.hasReminder = null; + EventMessage.prototype.reminderOffsetSec = null; let $oneOfFields; @@ -36589,6 +43058,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(EventMessage.prototype, "_hasReminder", { + get: $util.oneOfGetter($oneOfFields = ["hasReminder"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(EventMessage.prototype, "_reminderOffsetSec", { + get: $util.oneOfGetter($oneOfFields = ["reminderOffsetSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + EventMessage.create = function create(properties) { return new EventMessage(properties); }; @@ -36616,6 +43097,10 @@ export const proto = $root.proto = (() => { w.uint32(72).bool(m.extraGuestsAllowed); if (m.isScheduleCall != null && Object.hasOwnProperty.call(m, "isScheduleCall")) w.uint32(80).bool(m.isScheduleCall); + if (m.hasReminder != null && Object.hasOwnProperty.call(m, "hasReminder")) + w.uint32(88).bool(m.hasReminder); + if (m.reminderOffsetSec != null && Object.hasOwnProperty.call(m, "reminderOffsetSec")) + w.uint32(96).int64(m.reminderOffsetSec); return w; }; @@ -36668,6 +43153,14 @@ export const proto = $root.proto = (() => { m.isScheduleCall = r.bool(); break; } + case 11: { + m.hasReminder = r.bool(); + break; + } + case 12: { + m.reminderOffsetSec = r.int64(); + break; + } default: r.skipType(t & 7); break; @@ -36728,6 +43221,19 @@ export const proto = $root.proto = (() => { if (d.isScheduleCall != null) { m.isScheduleCall = Boolean(d.isScheduleCall); } + if (d.hasReminder != null) { + m.hasReminder = Boolean(d.hasReminder); + } + if (d.reminderOffsetSec != null) { + if ($util.Long) + (m.reminderOffsetSec = $util.Long.fromValue(d.reminderOffsetSec)).unsigned = false; + else if (typeof d.reminderOffsetSec === "string") + m.reminderOffsetSec = parseInt(d.reminderOffsetSec, 10); + else if (typeof d.reminderOffsetSec === "number") + m.reminderOffsetSec = d.reminderOffsetSec; + else if (typeof d.reminderOffsetSec === "object") + m.reminderOffsetSec = new $util.LongBits(d.reminderOffsetSec.low >>> 0, d.reminderOffsetSec.high >>> 0).toNumber(); + } return m; }; @@ -36791,6 +43297,19 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._isScheduleCall = "isScheduleCall"; } + if (m.hasReminder != null && m.hasOwnProperty("hasReminder")) { + d.hasReminder = m.hasReminder; + if (o.oneofs) + d._hasReminder = "hasReminder"; + } + if (m.reminderOffsetSec != null && m.hasOwnProperty("reminderOffsetSec")) { + if (typeof m.reminderOffsetSec === "number") + d.reminderOffsetSec = o.longs === String ? String(m.reminderOffsetSec) : m.reminderOffsetSec; + else + d.reminderOffsetSec = o.longs === String ? $util.Long.prototype.toString.call(m.reminderOffsetSec) : o.longs === Number ? new $util.LongBits(m.reminderOffsetSec.low >>> 0, m.reminderOffsetSec.high >>> 0).toNumber() : m.reminderOffsetSec; + if (o.oneofs) + d._reminderOffsetSec = "reminderOffsetSec"; + } return d; }; @@ -36981,6 +43500,7 @@ export const proto = $root.proto = (() => { Message.ExtendedTextMessage = (function() { function ExtendedTextMessage(p) { + this.endCardTiles = []; if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) @@ -37015,6 +43535,10 @@ export const proto = $root.proto = (() => { ExtendedTextMessage.prototype.faviconMMSMetadata = null; ExtendedTextMessage.prototype.linkPreviewMetadata = null; ExtendedTextMessage.prototype.paymentLinkMetadata = null; + ExtendedTextMessage.prototype.endCardTiles = $util.emptyArray; + ExtendedTextMessage.prototype.videoContentUrl = null; + ExtendedTextMessage.prototype.musicMetadata = null; + ExtendedTextMessage.prototype.paymentExtendedMetadata = null; let $oneOfFields; @@ -37186,6 +43710,24 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExtendedTextMessage.prototype, "_videoContentUrl", { + get: $util.oneOfGetter($oneOfFields = ["videoContentUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExtendedTextMessage.prototype, "_musicMetadata", { + get: $util.oneOfGetter($oneOfFields = ["musicMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExtendedTextMessage.prototype, "_paymentExtendedMetadata", { + get: $util.oneOfGetter($oneOfFields = ["paymentExtendedMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + ExtendedTextMessage.create = function create(properties) { return new ExtendedTextMessage(properties); }; @@ -37249,6 +43791,16 @@ export const proto = $root.proto = (() => { $root.proto.Message.LinkPreviewMetadata.encode(m.linkPreviewMetadata, w.uint32(274).fork()).ldelim(); if (m.paymentLinkMetadata != null && Object.hasOwnProperty.call(m, "paymentLinkMetadata")) $root.proto.Message.PaymentLinkMetadata.encode(m.paymentLinkMetadata, w.uint32(282).fork()).ldelim(); + if (m.endCardTiles != null && m.endCardTiles.length) { + for (var i = 0; i < m.endCardTiles.length; ++i) + $root.proto.Message.VideoEndCard.encode(m.endCardTiles[i], w.uint32(290).fork()).ldelim(); + } + if (m.videoContentUrl != null && Object.hasOwnProperty.call(m, "videoContentUrl")) + w.uint32(298).string(m.videoContentUrl); + if (m.musicMetadata != null && Object.hasOwnProperty.call(m, "musicMetadata")) + $root.proto.EmbeddedMusic.encode(m.musicMetadata, w.uint32(306).fork()).ldelim(); + if (m.paymentExtendedMetadata != null && Object.hasOwnProperty.call(m, "paymentExtendedMetadata")) + $root.proto.Message.PaymentExtendedMetadata.encode(m.paymentExtendedMetadata, w.uint32(314).fork()).ldelim(); return w; }; @@ -37373,6 +43925,24 @@ export const proto = $root.proto = (() => { m.paymentLinkMetadata = $root.proto.Message.PaymentLinkMetadata.decode(r, r.uint32()); break; } + case 36: { + if (!(m.endCardTiles && m.endCardTiles.length)) + m.endCardTiles = []; + m.endCardTiles.push($root.proto.Message.VideoEndCard.decode(r, r.uint32())); + break; + } + case 37: { + m.videoContentUrl = r.string(); + break; + } + case 38: { + m.musicMetadata = $root.proto.EmbeddedMusic.decode(r, r.uint32()); + break; + } + case 39: { + m.paymentExtendedMetadata = $root.proto.Message.PaymentExtendedMetadata.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -37607,6 +44177,29 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.ExtendedTextMessage.paymentLinkMetadata: object expected"); m.paymentLinkMetadata = $root.proto.Message.PaymentLinkMetadata.fromObject(d.paymentLinkMetadata); } + if (d.endCardTiles) { + if (!Array.isArray(d.endCardTiles)) + throw TypeError(".proto.Message.ExtendedTextMessage.endCardTiles: array expected"); + m.endCardTiles = []; + for (var i = 0; i < d.endCardTiles.length; ++i) { + if (typeof d.endCardTiles[i] !== "object") + throw TypeError(".proto.Message.ExtendedTextMessage.endCardTiles: object expected"); + m.endCardTiles[i] = $root.proto.Message.VideoEndCard.fromObject(d.endCardTiles[i]); + } + } + if (d.videoContentUrl != null) { + m.videoContentUrl = String(d.videoContentUrl); + } + if (d.musicMetadata != null) { + if (typeof d.musicMetadata !== "object") + throw TypeError(".proto.Message.ExtendedTextMessage.musicMetadata: object expected"); + m.musicMetadata = $root.proto.EmbeddedMusic.fromObject(d.musicMetadata); + } + if (d.paymentExtendedMetadata != null) { + if (typeof d.paymentExtendedMetadata !== "object") + throw TypeError(".proto.Message.ExtendedTextMessage.paymentExtendedMetadata: object expected"); + m.paymentExtendedMetadata = $root.proto.Message.PaymentExtendedMetadata.fromObject(d.paymentExtendedMetadata); + } return m; }; @@ -37614,6 +44207,9 @@ export const proto = $root.proto = (() => { if (!o) o = {}; var d = {}; + if (o.arrays || o.defaults) { + d.endCardTiles = []; + } if (m.text != null && m.hasOwnProperty("text")) { d.text = m.text; if (o.oneofs) @@ -37757,6 +44353,27 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._paymentLinkMetadata = "paymentLinkMetadata"; } + if (m.endCardTiles && m.endCardTiles.length) { + d.endCardTiles = []; + for (var j = 0; j < m.endCardTiles.length; ++j) { + d.endCardTiles[j] = $root.proto.Message.VideoEndCard.toObject(m.endCardTiles[j], o); + } + } + if (m.videoContentUrl != null && m.hasOwnProperty("videoContentUrl")) { + d.videoContentUrl = m.videoContentUrl; + if (o.oneofs) + d._videoContentUrl = "videoContentUrl"; + } + if (m.musicMetadata != null && m.hasOwnProperty("musicMetadata")) { + d.musicMetadata = $root.proto.EmbeddedMusic.toObject(m.musicMetadata, o); + if (o.oneofs) + d._musicMetadata = "musicMetadata"; + } + if (m.paymentExtendedMetadata != null && m.hasOwnProperty("paymentExtendedMetadata")) { + d.paymentExtendedMetadata = $root.proto.Message.PaymentExtendedMetadata.toObject(m.paymentExtendedMetadata, o); + if (o.oneofs) + d._paymentExtendedMetadata = "paymentExtendedMetadata"; + } return d; }; @@ -39258,6 +45875,94 @@ export const proto = $root.proto = (() => { return HighlyStructuredMessage; })(); + Message.HistorySyncMessageAccessStatus = (function() { + + function HistorySyncMessageAccessStatus(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + HistorySyncMessageAccessStatus.prototype.completeAccessGranted = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncMessageAccessStatus.prototype, "_completeAccessGranted", { + get: $util.oneOfGetter($oneOfFields = ["completeAccessGranted"]), + set: $util.oneOfSetter($oneOfFields) + }); + + HistorySyncMessageAccessStatus.create = function create(properties) { + return new HistorySyncMessageAccessStatus(properties); + }; + + HistorySyncMessageAccessStatus.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.completeAccessGranted != null && Object.hasOwnProperty.call(m, "completeAccessGranted")) + w.uint32(8).bool(m.completeAccessGranted); + return w; + }; + + HistorySyncMessageAccessStatus.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.HistorySyncMessageAccessStatus(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.completeAccessGranted = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + HistorySyncMessageAccessStatus.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.HistorySyncMessageAccessStatus) + return d; + var m = new $root.proto.Message.HistorySyncMessageAccessStatus(); + if (d.completeAccessGranted != null) { + m.completeAccessGranted = Boolean(d.completeAccessGranted); + } + return m; + }; + + HistorySyncMessageAccessStatus.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.completeAccessGranted != null && m.hasOwnProperty("completeAccessGranted")) { + d.completeAccessGranted = m.completeAccessGranted; + if (o.oneofs) + d._completeAccessGranted = "completeAccessGranted"; + } + return d; + }; + + HistorySyncMessageAccessStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + HistorySyncMessageAccessStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.HistorySyncMessageAccessStatus"; + }; + + return HistorySyncMessageAccessStatus; + })(); + Message.HistorySyncNotification = (function() { function HistorySyncNotification(p) { @@ -39281,6 +45986,7 @@ export const proto = $root.proto = (() => { HistorySyncNotification.prototype.peerDataRequestSessionId = null; HistorySyncNotification.prototype.fullHistorySyncOnDemandRequestMetadata = null; HistorySyncNotification.prototype.encHandle = null; + HistorySyncNotification.prototype.messageAccessStatus = null; let $oneOfFields; @@ -39368,6 +46074,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncNotification.prototype, "_messageAccessStatus", { + get: $util.oneOfGetter($oneOfFields = ["messageAccessStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + HistorySyncNotification.create = function create(properties) { return new HistorySyncNotification(properties); }; @@ -39403,6 +46115,8 @@ export const proto = $root.proto = (() => { $root.proto.Message.FullHistorySyncOnDemandRequestMetadata.encode(m.fullHistorySyncOnDemandRequestMetadata, w.uint32(106).fork()).ldelim(); if (m.encHandle != null && Object.hasOwnProperty.call(m, "encHandle")) w.uint32(114).string(m.encHandle); + if (m.messageAccessStatus != null && Object.hasOwnProperty.call(m, "messageAccessStatus")) + $root.proto.Message.HistorySyncMessageAccessStatus.encode(m.messageAccessStatus, w.uint32(122).fork()).ldelim(); return w; }; @@ -39471,6 +46185,10 @@ export const proto = $root.proto = (() => { m.encHandle = r.string(); break; } + case 15: { + m.messageAccessStatus = $root.proto.Message.HistorySyncMessageAccessStatus.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -39553,6 +46271,10 @@ export const proto = $root.proto = (() => { case 7: m.syncType = 7; break; + case "MESSAGE_ACCESS_STATUS": + case 8: + m.syncType = 8; + break; } if (d.chunkOrder != null) { m.chunkOrder = d.chunkOrder >>> 0; @@ -39590,6 +46312,11 @@ export const proto = $root.proto = (() => { if (d.encHandle != null) { m.encHandle = String(d.encHandle); } + if (d.messageAccessStatus != null) { + if (typeof d.messageAccessStatus !== "object") + throw TypeError(".proto.Message.HistorySyncNotification.messageAccessStatus: object expected"); + m.messageAccessStatus = $root.proto.Message.HistorySyncMessageAccessStatus.fromObject(d.messageAccessStatus); + } return m; }; @@ -39626,7 +46353,7 @@ export const proto = $root.proto = (() => { d._directPath = "directPath"; } if (m.syncType != null && m.hasOwnProperty("syncType")) { - d.syncType = o.enums === String ? $root.proto.Message.HistorySyncNotification.HistorySyncType[m.syncType] === undefined ? m.syncType : $root.proto.Message.HistorySyncNotification.HistorySyncType[m.syncType] : m.syncType; + d.syncType = o.enums === String ? $root.proto.Message.HistorySyncType[m.syncType] === undefined ? m.syncType : $root.proto.Message.HistorySyncType[m.syncType] : m.syncType; if (o.oneofs) d._syncType = "syncType"; } @@ -39673,6 +46400,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._encHandle = "encHandle"; } + if (m.messageAccessStatus != null && m.hasOwnProperty("messageAccessStatus")) { + d.messageAccessStatus = $root.proto.Message.HistorySyncMessageAccessStatus.toObject(m.messageAccessStatus, o); + if (o.oneofs) + d._messageAccessStatus = "messageAccessStatus"; + } return d; }; @@ -39687,22 +46419,23 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.Message.HistorySyncNotification"; }; - HistorySyncNotification.HistorySyncType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INITIAL_BOOTSTRAP"] = 0; - values[valuesById[1] = "INITIAL_STATUS_V3"] = 1; - values[valuesById[2] = "FULL"] = 2; - values[valuesById[3] = "RECENT"] = 3; - values[valuesById[4] = "PUSH_NAME"] = 4; - values[valuesById[5] = "NON_BLOCKING_DATA"] = 5; - values[valuesById[6] = "ON_DEMAND"] = 6; - values[valuesById[7] = "NO_HISTORY"] = 7; - return values; - })(); - return HistorySyncNotification; })(); + Message.HistorySyncType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INITIAL_BOOTSTRAP"] = 0; + values[valuesById[1] = "INITIAL_STATUS_V3"] = 1; + values[valuesById[2] = "FULL"] = 2; + values[valuesById[3] = "RECENT"] = 3; + values[valuesById[4] = "PUSH_NAME"] = 4; + values[valuesById[5] = "NON_BLOCKING_DATA"] = 5; + values[valuesById[6] = "ON_DEMAND"] = 6; + values[valuesById[7] = "NO_HISTORY"] = 7; + values[valuesById[8] = "MESSAGE_ACCESS_STATUS"] = 8; + return values; + })(); + Message.ImageMessage = (function() { function ImageMessage(p) { @@ -39744,6 +46477,8 @@ export const proto = $root.proto = (() => { ImageMessage.prototype.annotations = $util.emptyArray; ImageMessage.prototype.imageSourceType = null; ImageMessage.prototype.accessibilityLabel = null; + ImageMessage.prototype.mediaKeyDomain = null; + ImageMessage.prototype.qrUrl = null; let $oneOfFields; @@ -39903,6 +46638,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ImageMessage.prototype, "_mediaKeyDomain", { + get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ImageMessage.prototype, "_qrUrl", { + get: $util.oneOfGetter($oneOfFields = ["qrUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + ImageMessage.create = function create(properties) { return new ImageMessage(properties); }; @@ -39976,6 +46723,10 @@ export const proto = $root.proto = (() => { w.uint32(248).int32(m.imageSourceType); if (m.accessibilityLabel != null && Object.hasOwnProperty.call(m, "accessibilityLabel")) w.uint32(258).string(m.accessibilityLabel); + if (m.mediaKeyDomain != null && Object.hasOwnProperty.call(m, "mediaKeyDomain")) + w.uint32(264).int32(m.mediaKeyDomain); + if (m.qrUrl != null && Object.hasOwnProperty.call(m, "qrUrl")) + w.uint32(274).string(m.qrUrl); return w; }; @@ -40115,6 +46866,14 @@ export const proto = $root.proto = (() => { m.accessibilityLabel = r.string(); break; } + case 33: { + m.mediaKeyDomain = r.int32(); + break; + } + case 34: { + m.qrUrl = r.string(); + break; + } default: r.skipType(t & 7); break; @@ -40300,6 +47059,37 @@ export const proto = $root.proto = (() => { if (d.accessibilityLabel != null) { m.accessibilityLabel = String(d.accessibilityLabel); } + switch (d.mediaKeyDomain) { + default: + if (typeof d.mediaKeyDomain === "number") { + m.mediaKeyDomain = d.mediaKeyDomain; + break; + } + break; + case "UNSET": + case 0: + m.mediaKeyDomain = 0; + break; + case "E2EE_CHAT": + case 1: + m.mediaKeyDomain = 1; + break; + case "STATUS": + case 2: + m.mediaKeyDomain = 2; + break; + case "CAPI": + case 3: + m.mediaKeyDomain = 3; + break; + case "BOT": + case 4: + m.mediaKeyDomain = 4; + break; + } + if (d.qrUrl != null) { + m.qrUrl = String(d.qrUrl); + } return m; }; @@ -40466,6 +47256,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._accessibilityLabel = "accessibilityLabel"; } + if (m.mediaKeyDomain != null && m.hasOwnProperty("mediaKeyDomain")) { + d.mediaKeyDomain = o.enums === String ? $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] === undefined ? m.mediaKeyDomain : $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] : m.mediaKeyDomain; + if (o.oneofs) + d._mediaKeyDomain = "mediaKeyDomain"; + } + if (m.qrUrl != null && m.hasOwnProperty("qrUrl")) { + d.qrUrl = m.qrUrl; + if (o.oneofs) + d._qrUrl = "qrUrl"; + } return d; }; @@ -40932,6 +47732,7 @@ export const proto = $root.proto = (() => { CarouselMessage.prototype.cards = $util.emptyArray; CarouselMessage.prototype.messageVersion = null; + CarouselMessage.prototype.carouselCardType = null; let $oneOfFields; @@ -40941,6 +47742,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(CarouselMessage.prototype, "_carouselCardType", { + get: $util.oneOfGetter($oneOfFields = ["carouselCardType"]), + set: $util.oneOfSetter($oneOfFields) + }); + CarouselMessage.create = function create(properties) { return new CarouselMessage(properties); }; @@ -40954,6 +47761,8 @@ export const proto = $root.proto = (() => { } if (m.messageVersion != null && Object.hasOwnProperty.call(m, "messageVersion")) w.uint32(16).int32(m.messageVersion); + if (m.carouselCardType != null && Object.hasOwnProperty.call(m, "carouselCardType")) + w.uint32(24).int32(m.carouselCardType); return w; }; @@ -40976,6 +47785,10 @@ export const proto = $root.proto = (() => { m.messageVersion = r.int32(); break; } + case 3: { + m.carouselCardType = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -41001,6 +47814,26 @@ export const proto = $root.proto = (() => { if (d.messageVersion != null) { m.messageVersion = d.messageVersion | 0; } + switch (d.carouselCardType) { + default: + if (typeof d.carouselCardType === "number") { + m.carouselCardType = d.carouselCardType; + break; + } + break; + case "UNKNOWN": + case 0: + m.carouselCardType = 0; + break; + case "HSCROLL_CARDS": + case 1: + m.carouselCardType = 1; + break; + case "ALBUM_IMAGE": + case 2: + m.carouselCardType = 2; + break; + } return m; }; @@ -41022,6 +47855,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._messageVersion = "messageVersion"; } + if (m.carouselCardType != null && m.hasOwnProperty("carouselCardType")) { + d.carouselCardType = o.enums === String ? $root.proto.Message.InteractiveMessage.CarouselMessage.CarouselCardType[m.carouselCardType] === undefined ? m.carouselCardType : $root.proto.Message.InteractiveMessage.CarouselMessage.CarouselCardType[m.carouselCardType] : m.carouselCardType; + if (o.oneofs) + d._carouselCardType = "carouselCardType"; + } return d; }; @@ -41036,6 +47874,14 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.Message.InteractiveMessage.CarouselMessage"; }; + CarouselMessage.CarouselCardType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "HSCROLL_CARDS"] = 1; + values[valuesById[2] = "ALBUM_IMAGE"] = 2; + return values; + })(); + return CarouselMessage; })(); @@ -41179,6 +48025,8 @@ export const proto = $root.proto = (() => { } Footer.prototype.text = null; + Footer.prototype.hasMediaAttachment = null; + Footer.prototype.audioMessage = null; let $oneOfFields; @@ -41188,6 +48036,17 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Footer.prototype, "_hasMediaAttachment", { + get: $util.oneOfGetter($oneOfFields = ["hasMediaAttachment"]), + set: $util.oneOfSetter($oneOfFields) + }); + + Object.defineProperty(Footer.prototype, "media", { + get: $util.oneOfGetter($oneOfFields = ["audioMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + Footer.create = function create(properties) { return new Footer(properties); }; @@ -41197,6 +48056,10 @@ export const proto = $root.proto = (() => { w = $Writer.create(); if (m.text != null && Object.hasOwnProperty.call(m, "text")) w.uint32(10).string(m.text); + if (m.audioMessage != null && Object.hasOwnProperty.call(m, "audioMessage")) + $root.proto.Message.AudioMessage.encode(m.audioMessage, w.uint32(18).fork()).ldelim(); + if (m.hasMediaAttachment != null && Object.hasOwnProperty.call(m, "hasMediaAttachment")) + w.uint32(24).bool(m.hasMediaAttachment); return w; }; @@ -41213,6 +48076,14 @@ export const proto = $root.proto = (() => { m.text = r.string(); break; } + case 3: { + m.hasMediaAttachment = r.bool(); + break; + } + case 2: { + m.audioMessage = $root.proto.Message.AudioMessage.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -41228,6 +48099,14 @@ export const proto = $root.proto = (() => { if (d.text != null) { m.text = String(d.text); } + if (d.hasMediaAttachment != null) { + m.hasMediaAttachment = Boolean(d.hasMediaAttachment); + } + if (d.audioMessage != null) { + if (typeof d.audioMessage !== "object") + throw TypeError(".proto.Message.InteractiveMessage.Footer.audioMessage: object expected"); + m.audioMessage = $root.proto.Message.AudioMessage.fromObject(d.audioMessage); + } return m; }; @@ -41240,6 +48119,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._text = "text"; } + if (m.audioMessage != null && m.hasOwnProperty("audioMessage")) { + d.audioMessage = $root.proto.Message.AudioMessage.toObject(m.audioMessage, o); + if (o.oneofs) + d.media = "audioMessage"; + } + if (m.hasMediaAttachment != null && m.hasOwnProperty("hasMediaAttachment")) { + d.hasMediaAttachment = m.hasMediaAttachment; + if (o.oneofs) + d._hasMediaAttachment = "hasMediaAttachment"; + } return d; }; @@ -42791,6 +49680,12 @@ export const proto = $root.proto = (() => { LinkPreviewMetadata.prototype.paymentLinkMetadata = null; LinkPreviewMetadata.prototype.urlMetadata = null; LinkPreviewMetadata.prototype.fbExperimentId = null; + LinkPreviewMetadata.prototype.linkMediaDuration = null; + LinkPreviewMetadata.prototype.socialMediaPostType = null; + LinkPreviewMetadata.prototype.linkInlineVideoMuted = null; + LinkPreviewMetadata.prototype.videoContentUrl = null; + LinkPreviewMetadata.prototype.musicMetadata = null; + LinkPreviewMetadata.prototype.videoContentCaption = null; let $oneOfFields; @@ -42812,6 +49707,42 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(LinkPreviewMetadata.prototype, "_linkMediaDuration", { + get: $util.oneOfGetter($oneOfFields = ["linkMediaDuration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LinkPreviewMetadata.prototype, "_socialMediaPostType", { + get: $util.oneOfGetter($oneOfFields = ["socialMediaPostType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LinkPreviewMetadata.prototype, "_linkInlineVideoMuted", { + get: $util.oneOfGetter($oneOfFields = ["linkInlineVideoMuted"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LinkPreviewMetadata.prototype, "_videoContentUrl", { + get: $util.oneOfGetter($oneOfFields = ["videoContentUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LinkPreviewMetadata.prototype, "_musicMetadata", { + get: $util.oneOfGetter($oneOfFields = ["musicMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LinkPreviewMetadata.prototype, "_videoContentCaption", { + get: $util.oneOfGetter($oneOfFields = ["videoContentCaption"]), + set: $util.oneOfSetter($oneOfFields) + }); + LinkPreviewMetadata.create = function create(properties) { return new LinkPreviewMetadata(properties); }; @@ -42825,6 +49756,18 @@ export const proto = $root.proto = (() => { $root.proto.Message.URLMetadata.encode(m.urlMetadata, w.uint32(18).fork()).ldelim(); if (m.fbExperimentId != null && Object.hasOwnProperty.call(m, "fbExperimentId")) w.uint32(24).uint32(m.fbExperimentId); + if (m.linkMediaDuration != null && Object.hasOwnProperty.call(m, "linkMediaDuration")) + w.uint32(32).uint32(m.linkMediaDuration); + if (m.socialMediaPostType != null && Object.hasOwnProperty.call(m, "socialMediaPostType")) + w.uint32(40).int32(m.socialMediaPostType); + if (m.linkInlineVideoMuted != null && Object.hasOwnProperty.call(m, "linkInlineVideoMuted")) + w.uint32(48).bool(m.linkInlineVideoMuted); + if (m.videoContentUrl != null && Object.hasOwnProperty.call(m, "videoContentUrl")) + w.uint32(58).string(m.videoContentUrl); + if (m.musicMetadata != null && Object.hasOwnProperty.call(m, "musicMetadata")) + $root.proto.EmbeddedMusic.encode(m.musicMetadata, w.uint32(66).fork()).ldelim(); + if (m.videoContentCaption != null && Object.hasOwnProperty.call(m, "videoContentCaption")) + w.uint32(74).string(m.videoContentCaption); return w; }; @@ -42849,6 +49792,30 @@ export const proto = $root.proto = (() => { m.fbExperimentId = r.uint32(); break; } + case 4: { + m.linkMediaDuration = r.uint32(); + break; + } + case 5: { + m.socialMediaPostType = r.int32(); + break; + } + case 6: { + m.linkInlineVideoMuted = r.bool(); + break; + } + case 7: { + m.videoContentUrl = r.string(); + break; + } + case 8: { + m.musicMetadata = $root.proto.EmbeddedMusic.decode(r, r.uint32()); + break; + } + case 9: { + m.videoContentCaption = r.string(); + break; + } default: r.skipType(t & 7); break; @@ -42874,6 +49841,55 @@ export const proto = $root.proto = (() => { if (d.fbExperimentId != null) { m.fbExperimentId = d.fbExperimentId >>> 0; } + if (d.linkMediaDuration != null) { + m.linkMediaDuration = d.linkMediaDuration >>> 0; + } + switch (d.socialMediaPostType) { + default: + if (typeof d.socialMediaPostType === "number") { + m.socialMediaPostType = d.socialMediaPostType; + break; + } + break; + case "NONE": + case 0: + m.socialMediaPostType = 0; + break; + case "REEL": + case 1: + m.socialMediaPostType = 1; + break; + case "LIVE_VIDEO": + case 2: + m.socialMediaPostType = 2; + break; + case "LONG_VIDEO": + case 3: + m.socialMediaPostType = 3; + break; + case "SINGLE_IMAGE": + case 4: + m.socialMediaPostType = 4; + break; + case "CAROUSEL": + case 5: + m.socialMediaPostType = 5; + break; + } + if (d.linkInlineVideoMuted != null) { + m.linkInlineVideoMuted = Boolean(d.linkInlineVideoMuted); + } + if (d.videoContentUrl != null) { + m.videoContentUrl = String(d.videoContentUrl); + } + if (d.musicMetadata != null) { + if (typeof d.musicMetadata !== "object") + throw TypeError(".proto.Message.LinkPreviewMetadata.musicMetadata: object expected"); + m.musicMetadata = $root.proto.EmbeddedMusic.fromObject(d.musicMetadata); + } + if (d.videoContentCaption != null) { + m.videoContentCaption = String(d.videoContentCaption); + } return m; }; @@ -42896,6 +49912,36 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._fbExperimentId = "fbExperimentId"; } + if (m.linkMediaDuration != null && m.hasOwnProperty("linkMediaDuration")) { + d.linkMediaDuration = m.linkMediaDuration; + if (o.oneofs) + d._linkMediaDuration = "linkMediaDuration"; + } + if (m.socialMediaPostType != null && m.hasOwnProperty("socialMediaPostType")) { + d.socialMediaPostType = o.enums === String ? $root.proto.Message.LinkPreviewMetadata.SocialMediaPostType[m.socialMediaPostType] === undefined ? m.socialMediaPostType : $root.proto.Message.LinkPreviewMetadata.SocialMediaPostType[m.socialMediaPostType] : m.socialMediaPostType; + if (o.oneofs) + d._socialMediaPostType = "socialMediaPostType"; + } + if (m.linkInlineVideoMuted != null && m.hasOwnProperty("linkInlineVideoMuted")) { + d.linkInlineVideoMuted = m.linkInlineVideoMuted; + if (o.oneofs) + d._linkInlineVideoMuted = "linkInlineVideoMuted"; + } + if (m.videoContentUrl != null && m.hasOwnProperty("videoContentUrl")) { + d.videoContentUrl = m.videoContentUrl; + if (o.oneofs) + d._videoContentUrl = "videoContentUrl"; + } + if (m.musicMetadata != null && m.hasOwnProperty("musicMetadata")) { + d.musicMetadata = $root.proto.EmbeddedMusic.toObject(m.musicMetadata, o); + if (o.oneofs) + d._musicMetadata = "musicMetadata"; + } + if (m.videoContentCaption != null && m.hasOwnProperty("videoContentCaption")) { + d.videoContentCaption = m.videoContentCaption; + if (o.oneofs) + d._videoContentCaption = "videoContentCaption"; + } return d; }; @@ -42910,6 +49956,17 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.Message.LinkPreviewMetadata"; }; + LinkPreviewMetadata.SocialMediaPostType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "REEL"] = 1; + values[valuesById[2] = "LIVE_VIDEO"] = 2; + values[valuesById[3] = "LONG_VIDEO"] = 3; + values[valuesById[4] = "SINGLE_IMAGE"] = 4; + values[valuesById[5] = "CAROUSEL"] = 5; + return values; + })(); + return LinkPreviewMetadata; })(); @@ -44813,6 +51870,7 @@ export const proto = $root.proto = (() => { MMSThumbnailMetadata.prototype.mediaKeyTimestamp = null; MMSThumbnailMetadata.prototype.thumbnailHeight = null; MMSThumbnailMetadata.prototype.thumbnailWidth = null; + MMSThumbnailMetadata.prototype.mediaKeyDomain = null; let $oneOfFields; @@ -44858,6 +51916,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MMSThumbnailMetadata.prototype, "_mediaKeyDomain", { + get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + MMSThumbnailMetadata.create = function create(properties) { return new MMSThumbnailMetadata(properties); }; @@ -44879,6 +51943,8 @@ export const proto = $root.proto = (() => { w.uint32(48).uint32(m.thumbnailHeight); if (m.thumbnailWidth != null && Object.hasOwnProperty.call(m, "thumbnailWidth")) w.uint32(56).uint32(m.thumbnailWidth); + if (m.mediaKeyDomain != null && Object.hasOwnProperty.call(m, "mediaKeyDomain")) + w.uint32(64).int32(m.mediaKeyDomain); return w; }; @@ -44919,6 +51985,10 @@ export const proto = $root.proto = (() => { m.thumbnailWidth = r.uint32(); break; } + case 8: { + m.mediaKeyDomain = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -44968,6 +52038,34 @@ export const proto = $root.proto = (() => { if (d.thumbnailWidth != null) { m.thumbnailWidth = d.thumbnailWidth >>> 0; } + switch (d.mediaKeyDomain) { + default: + if (typeof d.mediaKeyDomain === "number") { + m.mediaKeyDomain = d.mediaKeyDomain; + break; + } + break; + case "UNSET": + case 0: + m.mediaKeyDomain = 0; + break; + case "E2EE_CHAT": + case 1: + m.mediaKeyDomain = 1; + break; + case "STATUS": + case 2: + m.mediaKeyDomain = 2; + break; + case "CAPI": + case 3: + m.mediaKeyDomain = 3; + break; + case "BOT": + case 4: + m.mediaKeyDomain = 4; + break; + } return m; }; @@ -45013,6 +52111,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._thumbnailWidth = "thumbnailWidth"; } + if (m.mediaKeyDomain != null && m.hasOwnProperty("mediaKeyDomain")) { + d.mediaKeyDomain = o.enums === String ? $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] === undefined ? m.mediaKeyDomain : $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] : m.mediaKeyDomain; + if (o.oneofs) + d._mediaKeyDomain = "mediaKeyDomain"; + } return d; }; @@ -45030,6 +52133,16 @@ export const proto = $root.proto = (() => { return MMSThumbnailMetadata; })(); + Message.MediaKeyDomain = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSET"] = 0; + values[valuesById[1] = "E2EE_CHAT"] = 1; + values[valuesById[2] = "STATUS"] = 2; + values[valuesById[3] = "CAPI"] = 3; + values[valuesById[4] = "BOT"] = 4; + return values; + })(); + Message.MessageHistoryBundle = (function() { function MessageHistoryBundle(p) { @@ -45299,14 +52412,14 @@ export const proto = $root.proto = (() => { } MessageHistoryMetadata.prototype.historyReceivers = $util.emptyArray; - MessageHistoryMetadata.prototype.firstMessageTimestamp = null; + MessageHistoryMetadata.prototype.oldestMessageTimestamp = null; MessageHistoryMetadata.prototype.messageCount = null; let $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(MessageHistoryMetadata.prototype, "_firstMessageTimestamp", { - get: $util.oneOfGetter($oneOfFields = ["firstMessageTimestamp"]), + Object.defineProperty(MessageHistoryMetadata.prototype, "_oldestMessageTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["oldestMessageTimestamp"]), set: $util.oneOfSetter($oneOfFields) }); @@ -45327,8 +52440,8 @@ export const proto = $root.proto = (() => { for (var i = 0; i < m.historyReceivers.length; ++i) w.uint32(10).string(m.historyReceivers[i]); } - if (m.firstMessageTimestamp != null && Object.hasOwnProperty.call(m, "firstMessageTimestamp")) - w.uint32(16).int64(m.firstMessageTimestamp); + if (m.oldestMessageTimestamp != null && Object.hasOwnProperty.call(m, "oldestMessageTimestamp")) + w.uint32(16).int64(m.oldestMessageTimestamp); if (m.messageCount != null && Object.hasOwnProperty.call(m, "messageCount")) w.uint32(24).int64(m.messageCount); return w; @@ -45350,7 +52463,7 @@ export const proto = $root.proto = (() => { break; } case 2: { - m.firstMessageTimestamp = r.int64(); + m.oldestMessageTimestamp = r.int64(); break; } case 3: { @@ -45377,15 +52490,15 @@ export const proto = $root.proto = (() => { m.historyReceivers[i] = String(d.historyReceivers[i]); } } - if (d.firstMessageTimestamp != null) { + if (d.oldestMessageTimestamp != null) { if ($util.Long) - (m.firstMessageTimestamp = $util.Long.fromValue(d.firstMessageTimestamp)).unsigned = false; - else if (typeof d.firstMessageTimestamp === "string") - m.firstMessageTimestamp = parseInt(d.firstMessageTimestamp, 10); - else if (typeof d.firstMessageTimestamp === "number") - m.firstMessageTimestamp = d.firstMessageTimestamp; - else if (typeof d.firstMessageTimestamp === "object") - m.firstMessageTimestamp = new $util.LongBits(d.firstMessageTimestamp.low >>> 0, d.firstMessageTimestamp.high >>> 0).toNumber(); + (m.oldestMessageTimestamp = $util.Long.fromValue(d.oldestMessageTimestamp)).unsigned = false; + else if (typeof d.oldestMessageTimestamp === "string") + m.oldestMessageTimestamp = parseInt(d.oldestMessageTimestamp, 10); + else if (typeof d.oldestMessageTimestamp === "number") + m.oldestMessageTimestamp = d.oldestMessageTimestamp; + else if (typeof d.oldestMessageTimestamp === "object") + m.oldestMessageTimestamp = new $util.LongBits(d.oldestMessageTimestamp.low >>> 0, d.oldestMessageTimestamp.high >>> 0).toNumber(); } if (d.messageCount != null) { if ($util.Long) @@ -45413,13 +52526,13 @@ export const proto = $root.proto = (() => { d.historyReceivers[j] = m.historyReceivers[j]; } } - if (m.firstMessageTimestamp != null && m.hasOwnProperty("firstMessageTimestamp")) { - if (typeof m.firstMessageTimestamp === "number") - d.firstMessageTimestamp = o.longs === String ? String(m.firstMessageTimestamp) : m.firstMessageTimestamp; + if (m.oldestMessageTimestamp != null && m.hasOwnProperty("oldestMessageTimestamp")) { + if (typeof m.oldestMessageTimestamp === "number") + d.oldestMessageTimestamp = o.longs === String ? String(m.oldestMessageTimestamp) : m.oldestMessageTimestamp; else - d.firstMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.firstMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.firstMessageTimestamp.low >>> 0, m.firstMessageTimestamp.high >>> 0).toNumber() : m.firstMessageTimestamp; + d.oldestMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.oldestMessageTimestamp.low >>> 0, m.oldestMessageTimestamp.high >>> 0).toNumber() : m.oldestMessageTimestamp; if (o.oneofs) - d._firstMessageTimestamp = "firstMessageTimestamp"; + d._oldestMessageTimestamp = "oldestMessageTimestamp"; } if (m.messageCount != null && m.hasOwnProperty("messageCount")) { if (typeof m.messageCount === "number") @@ -45767,6 +52880,183 @@ export const proto = $root.proto = (() => { return NewsletterAdminInviteMessage; })(); + Message.NewsletterFollowerInviteMessage = (function() { + + function NewsletterFollowerInviteMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + NewsletterFollowerInviteMessage.prototype.newsletterJid = null; + NewsletterFollowerInviteMessage.prototype.newsletterName = null; + NewsletterFollowerInviteMessage.prototype.jpegThumbnail = null; + NewsletterFollowerInviteMessage.prototype.caption = null; + NewsletterFollowerInviteMessage.prototype.contextInfo = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NewsletterFollowerInviteMessage.prototype, "_newsletterJid", { + get: $util.oneOfGetter($oneOfFields = ["newsletterJid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NewsletterFollowerInviteMessage.prototype, "_newsletterName", { + get: $util.oneOfGetter($oneOfFields = ["newsletterName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NewsletterFollowerInviteMessage.prototype, "_jpegThumbnail", { + get: $util.oneOfGetter($oneOfFields = ["jpegThumbnail"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NewsletterFollowerInviteMessage.prototype, "_caption", { + get: $util.oneOfGetter($oneOfFields = ["caption"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NewsletterFollowerInviteMessage.prototype, "_contextInfo", { + get: $util.oneOfGetter($oneOfFields = ["contextInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + NewsletterFollowerInviteMessage.create = function create(properties) { + return new NewsletterFollowerInviteMessage(properties); + }; + + NewsletterFollowerInviteMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.newsletterJid != null && Object.hasOwnProperty.call(m, "newsletterJid")) + w.uint32(10).string(m.newsletterJid); + if (m.newsletterName != null && Object.hasOwnProperty.call(m, "newsletterName")) + w.uint32(18).string(m.newsletterName); + if (m.jpegThumbnail != null && Object.hasOwnProperty.call(m, "jpegThumbnail")) + w.uint32(26).bytes(m.jpegThumbnail); + if (m.caption != null && Object.hasOwnProperty.call(m, "caption")) + w.uint32(34).string(m.caption); + if (m.contextInfo != null && Object.hasOwnProperty.call(m, "contextInfo")) + $root.proto.ContextInfo.encode(m.contextInfo, w.uint32(42).fork()).ldelim(); + return w; + }; + + NewsletterFollowerInviteMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.NewsletterFollowerInviteMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.newsletterJid = r.string(); + break; + } + case 2: { + m.newsletterName = r.string(); + break; + } + case 3: { + m.jpegThumbnail = r.bytes(); + break; + } + case 4: { + m.caption = r.string(); + break; + } + case 5: { + m.contextInfo = $root.proto.ContextInfo.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + NewsletterFollowerInviteMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.NewsletterFollowerInviteMessage) + return d; + var m = new $root.proto.Message.NewsletterFollowerInviteMessage(); + if (d.newsletterJid != null) { + m.newsletterJid = String(d.newsletterJid); + } + if (d.newsletterName != null) { + m.newsletterName = String(d.newsletterName); + } + if (d.jpegThumbnail != null) { + if (typeof d.jpegThumbnail === "string") + $util.base64.decode(d.jpegThumbnail, m.jpegThumbnail = $util.newBuffer($util.base64.length(d.jpegThumbnail)), 0); + else if (d.jpegThumbnail.length >= 0) + m.jpegThumbnail = d.jpegThumbnail; + } + if (d.caption != null) { + m.caption = String(d.caption); + } + if (d.contextInfo != null) { + if (typeof d.contextInfo !== "object") + throw TypeError(".proto.Message.NewsletterFollowerInviteMessage.contextInfo: object expected"); + m.contextInfo = $root.proto.ContextInfo.fromObject(d.contextInfo); + } + return m; + }; + + NewsletterFollowerInviteMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.newsletterJid != null && m.hasOwnProperty("newsletterJid")) { + d.newsletterJid = m.newsletterJid; + if (o.oneofs) + d._newsletterJid = "newsletterJid"; + } + if (m.newsletterName != null && m.hasOwnProperty("newsletterName")) { + d.newsletterName = m.newsletterName; + if (o.oneofs) + d._newsletterName = "newsletterName"; + } + if (m.jpegThumbnail != null && m.hasOwnProperty("jpegThumbnail")) { + d.jpegThumbnail = o.bytes === String ? $util.base64.encode(m.jpegThumbnail, 0, m.jpegThumbnail.length) : o.bytes === Array ? Array.prototype.slice.call(m.jpegThumbnail) : m.jpegThumbnail; + if (o.oneofs) + d._jpegThumbnail = "jpegThumbnail"; + } + if (m.caption != null && m.hasOwnProperty("caption")) { + d.caption = m.caption; + if (o.oneofs) + d._caption = "caption"; + } + if (m.contextInfo != null && m.hasOwnProperty("contextInfo")) { + d.contextInfo = $root.proto.ContextInfo.toObject(m.contextInfo, o); + if (o.oneofs) + d._contextInfo = "contextInfo"; + } + return d; + }; + + NewsletterFollowerInviteMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + NewsletterFollowerInviteMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.NewsletterFollowerInviteMessage"; + }; + + return NewsletterFollowerInviteMessage; + })(); + Message.OrderMessage = (function() { function OrderMessage(p) { @@ -46206,6 +53496,136 @@ export const proto = $root.proto = (() => { return OrderMessage; })(); + Message.PaymentExtendedMetadata = (function() { + + function PaymentExtendedMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + PaymentExtendedMetadata.prototype.type = null; + PaymentExtendedMetadata.prototype.platform = null; + PaymentExtendedMetadata.prototype.messageParamsJson = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PaymentExtendedMetadata.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PaymentExtendedMetadata.prototype, "_platform", { + get: $util.oneOfGetter($oneOfFields = ["platform"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PaymentExtendedMetadata.prototype, "_messageParamsJson", { + get: $util.oneOfGetter($oneOfFields = ["messageParamsJson"]), + set: $util.oneOfSetter($oneOfFields) + }); + + PaymentExtendedMetadata.create = function create(properties) { + return new PaymentExtendedMetadata(properties); + }; + + PaymentExtendedMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).uint32(m.type); + if (m.platform != null && Object.hasOwnProperty.call(m, "platform")) + w.uint32(18).string(m.platform); + if (m.messageParamsJson != null && Object.hasOwnProperty.call(m, "messageParamsJson")) + w.uint32(26).string(m.messageParamsJson); + return w; + }; + + PaymentExtendedMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PaymentExtendedMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.uint32(); + break; + } + case 2: { + m.platform = r.string(); + break; + } + case 3: { + m.messageParamsJson = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + PaymentExtendedMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.PaymentExtendedMetadata) + return d; + var m = new $root.proto.Message.PaymentExtendedMetadata(); + if (d.type != null) { + m.type = d.type >>> 0; + } + if (d.platform != null) { + m.platform = String(d.platform); + } + if (d.messageParamsJson != null) { + m.messageParamsJson = String(d.messageParamsJson); + } + return m; + }; + + PaymentExtendedMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.type != null && m.hasOwnProperty("type")) { + d.type = m.type; + if (o.oneofs) + d._type = "type"; + } + if (m.platform != null && m.hasOwnProperty("platform")) { + d.platform = m.platform; + if (o.oneofs) + d._platform = "platform"; + } + if (m.messageParamsJson != null && m.hasOwnProperty("messageParamsJson")) { + d.messageParamsJson = m.messageParamsJson; + if (o.oneofs) + d._messageParamsJson = "messageParamsJson"; + } + return d; + }; + + PaymentExtendedMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PaymentExtendedMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.PaymentExtendedMetadata"; + }; + + return PaymentExtendedMetadata; + })(); + Message.PaymentInviteMessage = (function() { function PaymentInviteMessage(p) { @@ -46366,6 +53786,7 @@ export const proto = $root.proto = (() => { PaymentLinkMetadata.prototype.button = null; PaymentLinkMetadata.prototype.header = null; + PaymentLinkMetadata.prototype.provider = null; let $oneOfFields; @@ -46381,6 +53802,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(PaymentLinkMetadata.prototype, "_provider", { + get: $util.oneOfGetter($oneOfFields = ["provider"]), + set: $util.oneOfSetter($oneOfFields) + }); + PaymentLinkMetadata.create = function create(properties) { return new PaymentLinkMetadata(properties); }; @@ -46392,6 +53819,8 @@ export const proto = $root.proto = (() => { $root.proto.Message.PaymentLinkMetadata.PaymentLinkButton.encode(m.button, w.uint32(10).fork()).ldelim(); if (m.header != null && Object.hasOwnProperty.call(m, "header")) $root.proto.Message.PaymentLinkMetadata.PaymentLinkHeader.encode(m.header, w.uint32(18).fork()).ldelim(); + if (m.provider != null && Object.hasOwnProperty.call(m, "provider")) + $root.proto.Message.PaymentLinkMetadata.PaymentLinkProvider.encode(m.provider, w.uint32(26).fork()).ldelim(); return w; }; @@ -46412,6 +53841,10 @@ export const proto = $root.proto = (() => { m.header = $root.proto.Message.PaymentLinkMetadata.PaymentLinkHeader.decode(r, r.uint32()); break; } + case 3: { + m.provider = $root.proto.Message.PaymentLinkMetadata.PaymentLinkProvider.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -46434,6 +53867,11 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.PaymentLinkMetadata.header: object expected"); m.header = $root.proto.Message.PaymentLinkMetadata.PaymentLinkHeader.fromObject(d.header); } + if (d.provider != null) { + if (typeof d.provider !== "object") + throw TypeError(".proto.Message.PaymentLinkMetadata.provider: object expected"); + m.provider = $root.proto.Message.PaymentLinkMetadata.PaymentLinkProvider.fromObject(d.provider); + } return m; }; @@ -46451,6 +53889,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._header = "header"; } + if (m.provider != null && m.hasOwnProperty("provider")) { + d.provider = $root.proto.Message.PaymentLinkMetadata.PaymentLinkProvider.toObject(m.provider, o); + if (o.oneofs) + d._provider = "provider"; + } return d; }; @@ -46661,6 +54104,94 @@ export const proto = $root.proto = (() => { return PaymentLinkHeader; })(); + PaymentLinkMetadata.PaymentLinkProvider = (function() { + + function PaymentLinkProvider(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + PaymentLinkProvider.prototype.paramsJson = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PaymentLinkProvider.prototype, "_paramsJson", { + get: $util.oneOfGetter($oneOfFields = ["paramsJson"]), + set: $util.oneOfSetter($oneOfFields) + }); + + PaymentLinkProvider.create = function create(properties) { + return new PaymentLinkProvider(properties); + }; + + PaymentLinkProvider.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.paramsJson != null && Object.hasOwnProperty.call(m, "paramsJson")) + w.uint32(10).string(m.paramsJson); + return w; + }; + + PaymentLinkProvider.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PaymentLinkMetadata.PaymentLinkProvider(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.paramsJson = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + PaymentLinkProvider.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.PaymentLinkMetadata.PaymentLinkProvider) + return d; + var m = new $root.proto.Message.PaymentLinkMetadata.PaymentLinkProvider(); + if (d.paramsJson != null) { + m.paramsJson = String(d.paramsJson); + } + return m; + }; + + PaymentLinkProvider.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.paramsJson != null && m.hasOwnProperty("paramsJson")) { + d.paramsJson = m.paramsJson; + if (o.oneofs) + d._paramsJson = "paramsJson"; + } + return d; + }; + + PaymentLinkProvider.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PaymentLinkProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.PaymentLinkMetadata.PaymentLinkProvider"; + }; + + return PaymentLinkProvider; + })(); + return PaymentLinkMetadata; })(); @@ -46683,6 +54214,8 @@ export const proto = $root.proto = (() => { PeerDataOperationRequestMessage.prototype.placeholderMessageResendRequest = $util.emptyArray; PeerDataOperationRequestMessage.prototype.fullHistorySyncOnDemandRequest = null; PeerDataOperationRequestMessage.prototype.syncdCollectionFatalRecoveryRequest = null; + PeerDataOperationRequestMessage.prototype.historySyncChunkRetryRequest = null; + PeerDataOperationRequestMessage.prototype.galaxyFlowAction = null; let $oneOfFields; @@ -46710,6 +54243,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(PeerDataOperationRequestMessage.prototype, "_historySyncChunkRetryRequest", { + get: $util.oneOfGetter($oneOfFields = ["historySyncChunkRetryRequest"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PeerDataOperationRequestMessage.prototype, "_galaxyFlowAction", { + get: $util.oneOfGetter($oneOfFields = ["galaxyFlowAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + PeerDataOperationRequestMessage.create = function create(properties) { return new PeerDataOperationRequestMessage(properties); }; @@ -46737,6 +54282,10 @@ export const proto = $root.proto = (() => { $root.proto.Message.PeerDataOperationRequestMessage.FullHistorySyncOnDemandRequest.encode(m.fullHistorySyncOnDemandRequest, w.uint32(50).fork()).ldelim(); if (m.syncdCollectionFatalRecoveryRequest != null && Object.hasOwnProperty.call(m, "syncdCollectionFatalRecoveryRequest")) $root.proto.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest.encode(m.syncdCollectionFatalRecoveryRequest, w.uint32(58).fork()).ldelim(); + if (m.historySyncChunkRetryRequest != null && Object.hasOwnProperty.call(m, "historySyncChunkRetryRequest")) + $root.proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.encode(m.historySyncChunkRetryRequest, w.uint32(66).fork()).ldelim(); + if (m.galaxyFlowAction != null && Object.hasOwnProperty.call(m, "galaxyFlowAction")) + $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.encode(m.galaxyFlowAction, w.uint32(74).fork()).ldelim(); return w; }; @@ -46783,6 +54332,14 @@ export const proto = $root.proto = (() => { m.syncdCollectionFatalRecoveryRequest = $root.proto.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest.decode(r, r.uint32()); break; } + case 8: { + m.historySyncChunkRetryRequest = $root.proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.decode(r, r.uint32()); + break; + } + case 9: { + m.galaxyFlowAction = $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -46838,6 +54395,18 @@ export const proto = $root.proto = (() => { case 8: m.peerDataOperationRequestType = 8; break; + case "COMPANION_CANONICAL_USER_NONCE_FETCH": + case 9: + m.peerDataOperationRequestType = 9; + break; + case "HISTORY_SYNC_CHUNK_RETRY": + case 10: + m.peerDataOperationRequestType = 10; + break; + case "GALAXY_FLOW_ACTION": + case 11: + m.peerDataOperationRequestType = 11; + break; } if (d.requestStickerReupload) { if (!Array.isArray(d.requestStickerReupload)) @@ -46884,6 +54453,16 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.PeerDataOperationRequestMessage.syncdCollectionFatalRecoveryRequest: object expected"); m.syncdCollectionFatalRecoveryRequest = $root.proto.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest.fromObject(d.syncdCollectionFatalRecoveryRequest); } + if (d.historySyncChunkRetryRequest != null) { + if (typeof d.historySyncChunkRetryRequest !== "object") + throw TypeError(".proto.Message.PeerDataOperationRequestMessage.historySyncChunkRetryRequest: object expected"); + m.historySyncChunkRetryRequest = $root.proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.fromObject(d.historySyncChunkRetryRequest); + } + if (d.galaxyFlowAction != null) { + if (typeof d.galaxyFlowAction !== "object") + throw TypeError(".proto.Message.PeerDataOperationRequestMessage.galaxyFlowAction: object expected"); + m.galaxyFlowAction = $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.fromObject(d.galaxyFlowAction); + } return m; }; @@ -46934,6 +54513,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._syncdCollectionFatalRecoveryRequest = "syncdCollectionFatalRecoveryRequest"; } + if (m.historySyncChunkRetryRequest != null && m.hasOwnProperty("historySyncChunkRetryRequest")) { + d.historySyncChunkRetryRequest = $root.proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.toObject(m.historySyncChunkRetryRequest, o); + if (o.oneofs) + d._historySyncChunkRetryRequest = "historySyncChunkRetryRequest"; + } + if (m.galaxyFlowAction != null && m.hasOwnProperty("galaxyFlowAction")) { + d.galaxyFlowAction = $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.toObject(m.galaxyFlowAction, o); + if (o.oneofs) + d._galaxyFlowAction = "galaxyFlowAction"; + } return d; }; @@ -47061,6 +54650,343 @@ export const proto = $root.proto = (() => { return FullHistorySyncOnDemandRequest; })(); + PeerDataOperationRequestMessage.GalaxyFlowAction = (function() { + + function GalaxyFlowAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + GalaxyFlowAction.prototype.type = null; + GalaxyFlowAction.prototype.flowId = null; + GalaxyFlowAction.prototype.stanzaId = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GalaxyFlowAction.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GalaxyFlowAction.prototype, "_flowId", { + get: $util.oneOfGetter($oneOfFields = ["flowId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GalaxyFlowAction.prototype, "_stanzaId", { + get: $util.oneOfGetter($oneOfFields = ["stanzaId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + GalaxyFlowAction.create = function create(properties) { + return new GalaxyFlowAction(properties); + }; + + GalaxyFlowAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).int32(m.type); + if (m.flowId != null && Object.hasOwnProperty.call(m, "flowId")) + w.uint32(18).string(m.flowId); + if (m.stanzaId != null && Object.hasOwnProperty.call(m, "stanzaId")) + w.uint32(26).string(m.stanzaId); + return w; + }; + + GalaxyFlowAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.int32(); + break; + } + case 2: { + m.flowId = r.string(); + break; + } + case 3: { + m.stanzaId = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + GalaxyFlowAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction) + return d; + var m = new $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction(); + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "NOTIFY_LAUNCH": + case 1: + m.type = 1; + break; + } + if (d.flowId != null) { + m.flowId = String(d.flowId); + } + if (d.stanzaId != null) { + m.stanzaId = String(d.stanzaId); + } + return m; + }; + + GalaxyFlowAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType[m.type] === undefined ? m.type : $root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType[m.type] : m.type; + if (o.oneofs) + d._type = "type"; + } + if (m.flowId != null && m.hasOwnProperty("flowId")) { + d.flowId = m.flowId; + if (o.oneofs) + d._flowId = "flowId"; + } + if (m.stanzaId != null && m.hasOwnProperty("stanzaId")) { + d.stanzaId = m.stanzaId; + if (o.oneofs) + d._stanzaId = "stanzaId"; + } + return d; + }; + + GalaxyFlowAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + GalaxyFlowAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction"; + }; + + GalaxyFlowAction.GalaxyFlowActionType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "NOTIFY_LAUNCH"] = 1; + return values; + })(); + + return GalaxyFlowAction; + })(); + + PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest = (function() { + + function HistorySyncChunkRetryRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + HistorySyncChunkRetryRequest.prototype.syncType = null; + HistorySyncChunkRetryRequest.prototype.chunkOrder = null; + HistorySyncChunkRetryRequest.prototype.chunkNotificationId = null; + HistorySyncChunkRetryRequest.prototype.regenerateChunk = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryRequest.prototype, "_syncType", { + get: $util.oneOfGetter($oneOfFields = ["syncType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryRequest.prototype, "_chunkOrder", { + get: $util.oneOfGetter($oneOfFields = ["chunkOrder"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryRequest.prototype, "_chunkNotificationId", { + get: $util.oneOfGetter($oneOfFields = ["chunkNotificationId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryRequest.prototype, "_regenerateChunk", { + get: $util.oneOfGetter($oneOfFields = ["regenerateChunk"]), + set: $util.oneOfSetter($oneOfFields) + }); + + HistorySyncChunkRetryRequest.create = function create(properties) { + return new HistorySyncChunkRetryRequest(properties); + }; + + HistorySyncChunkRetryRequest.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.syncType != null && Object.hasOwnProperty.call(m, "syncType")) + w.uint32(8).int32(m.syncType); + if (m.chunkOrder != null && Object.hasOwnProperty.call(m, "chunkOrder")) + w.uint32(16).uint32(m.chunkOrder); + if (m.chunkNotificationId != null && Object.hasOwnProperty.call(m, "chunkNotificationId")) + w.uint32(26).string(m.chunkNotificationId); + if (m.regenerateChunk != null && Object.hasOwnProperty.call(m, "regenerateChunk")) + w.uint32(32).bool(m.regenerateChunk); + return w; + }; + + HistorySyncChunkRetryRequest.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.syncType = r.int32(); + break; + } + case 2: { + m.chunkOrder = r.uint32(); + break; + } + case 3: { + m.chunkNotificationId = r.string(); + break; + } + case 4: { + m.regenerateChunk = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + HistorySyncChunkRetryRequest.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest) + return d; + var m = new $root.proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest(); + switch (d.syncType) { + default: + if (typeof d.syncType === "number") { + m.syncType = d.syncType; + break; + } + break; + case "INITIAL_BOOTSTRAP": + case 0: + m.syncType = 0; + break; + case "INITIAL_STATUS_V3": + case 1: + m.syncType = 1; + break; + case "FULL": + case 2: + m.syncType = 2; + break; + case "RECENT": + case 3: + m.syncType = 3; + break; + case "PUSH_NAME": + case 4: + m.syncType = 4; + break; + case "NON_BLOCKING_DATA": + case 5: + m.syncType = 5; + break; + case "ON_DEMAND": + case 6: + m.syncType = 6; + break; + case "NO_HISTORY": + case 7: + m.syncType = 7; + break; + case "MESSAGE_ACCESS_STATUS": + case 8: + m.syncType = 8; + break; + } + if (d.chunkOrder != null) { + m.chunkOrder = d.chunkOrder >>> 0; + } + if (d.chunkNotificationId != null) { + m.chunkNotificationId = String(d.chunkNotificationId); + } + if (d.regenerateChunk != null) { + m.regenerateChunk = Boolean(d.regenerateChunk); + } + return m; + }; + + HistorySyncChunkRetryRequest.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.syncType != null && m.hasOwnProperty("syncType")) { + d.syncType = o.enums === String ? $root.proto.Message.HistorySyncType[m.syncType] === undefined ? m.syncType : $root.proto.Message.HistorySyncType[m.syncType] : m.syncType; + if (o.oneofs) + d._syncType = "syncType"; + } + if (m.chunkOrder != null && m.hasOwnProperty("chunkOrder")) { + d.chunkOrder = m.chunkOrder; + if (o.oneofs) + d._chunkOrder = "chunkOrder"; + } + if (m.chunkNotificationId != null && m.hasOwnProperty("chunkNotificationId")) { + d.chunkNotificationId = m.chunkNotificationId; + if (o.oneofs) + d._chunkNotificationId = "chunkNotificationId"; + } + if (m.regenerateChunk != null && m.hasOwnProperty("regenerateChunk")) { + d.regenerateChunk = m.regenerateChunk; + if (o.oneofs) + d._regenerateChunk = "regenerateChunk"; + } + return d; + }; + + HistorySyncChunkRetryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + HistorySyncChunkRetryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest"; + }; + + return HistorySyncChunkRetryRequest; + })(); + PeerDataOperationRequestMessage.HistorySyncOnDemandRequest = (function() { function HistorySyncOnDemandRequest(p) { @@ -47797,6 +55723,18 @@ export const proto = $root.proto = (() => { case 8: m.peerDataOperationRequestType = 8; break; + case "COMPANION_CANONICAL_USER_NONCE_FETCH": + case 9: + m.peerDataOperationRequestType = 9; + break; + case "HISTORY_SYNC_CHUNK_RETRY": + case 10: + m.peerDataOperationRequestType = 10; + break; + case "GALAXY_FLOW_ACTION": + case 11: + m.peerDataOperationRequestType = 11; + break; } if (d.stanzaId != null) { m.stanzaId = String(d.stanzaId); @@ -47868,6 +55806,8 @@ export const proto = $root.proto = (() => { PeerDataOperationResult.prototype.fullHistorySyncOnDemandRequestResponse = null; PeerDataOperationResult.prototype.companionMetaNonceFetchRequestResponse = null; PeerDataOperationResult.prototype.syncdSnapshotFatalRecoveryResponse = null; + PeerDataOperationResult.prototype.companionCanonicalUserNonceFetchRequestResponse = null; + PeerDataOperationResult.prototype.historySyncChunkRetryResponse = null; let $oneOfFields; @@ -47919,6 +55859,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(PeerDataOperationResult.prototype, "_companionCanonicalUserNonceFetchRequestResponse", { + get: $util.oneOfGetter($oneOfFields = ["companionCanonicalUserNonceFetchRequestResponse"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PeerDataOperationResult.prototype, "_historySyncChunkRetryResponse", { + get: $util.oneOfGetter($oneOfFields = ["historySyncChunkRetryResponse"]), + set: $util.oneOfSetter($oneOfFields) + }); + PeerDataOperationResult.create = function create(properties) { return new PeerDataOperationResult(properties); }; @@ -47942,6 +55894,10 @@ export const proto = $root.proto = (() => { $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionMetaNonceFetchResponse.encode(m.companionMetaNonceFetchRequestResponse, w.uint32(58).fork()).ldelim(); if (m.syncdSnapshotFatalRecoveryResponse != null && Object.hasOwnProperty.call(m, "syncdSnapshotFatalRecoveryResponse")) $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.encode(m.syncdSnapshotFatalRecoveryResponse, w.uint32(66).fork()).ldelim(); + if (m.companionCanonicalUserNonceFetchRequestResponse != null && Object.hasOwnProperty.call(m, "companionCanonicalUserNonceFetchRequestResponse")) + $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.encode(m.companionCanonicalUserNonceFetchRequestResponse, w.uint32(74).fork()).ldelim(); + if (m.historySyncChunkRetryResponse != null && Object.hasOwnProperty.call(m, "historySyncChunkRetryResponse")) + $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse.encode(m.historySyncChunkRetryResponse, w.uint32(82).fork()).ldelim(); return w; }; @@ -47986,6 +55942,14 @@ export const proto = $root.proto = (() => { m.syncdSnapshotFatalRecoveryResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.decode(r, r.uint32()); break; } + case 9: { + m.companionCanonicalUserNonceFetchRequestResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.decode(r, r.uint32()); + break; + } + case 10: { + m.historySyncChunkRetryResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -48057,6 +56021,16 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.syncdSnapshotFatalRecoveryResponse: object expected"); m.syncdSnapshotFatalRecoveryResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.fromObject(d.syncdSnapshotFatalRecoveryResponse); } + if (d.companionCanonicalUserNonceFetchRequestResponse != null) { + if (typeof d.companionCanonicalUserNonceFetchRequestResponse !== "object") + throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.companionCanonicalUserNonceFetchRequestResponse: object expected"); + m.companionCanonicalUserNonceFetchRequestResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.fromObject(d.companionCanonicalUserNonceFetchRequestResponse); + } + if (d.historySyncChunkRetryResponse != null) { + if (typeof d.historySyncChunkRetryResponse !== "object") + throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.historySyncChunkRetryResponse: object expected"); + m.historySyncChunkRetryResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse.fromObject(d.historySyncChunkRetryResponse); + } return m; }; @@ -48104,6 +56078,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._syncdSnapshotFatalRecoveryResponse = "syncdSnapshotFatalRecoveryResponse"; } + if (m.companionCanonicalUserNonceFetchRequestResponse != null && m.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) { + d.companionCanonicalUserNonceFetchRequestResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.toObject(m.companionCanonicalUserNonceFetchRequestResponse, o); + if (o.oneofs) + d._companionCanonicalUserNonceFetchRequestResponse = "companionCanonicalUserNonceFetchRequestResponse"; + } + if (m.historySyncChunkRetryResponse != null && m.hasOwnProperty("historySyncChunkRetryResponse")) { + d.historySyncChunkRetryResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse.toObject(m.historySyncChunkRetryResponse, o); + if (o.oneofs) + d._historySyncChunkRetryResponse = "historySyncChunkRetryResponse"; + } return d; }; @@ -48118,6 +56102,136 @@ export const proto = $root.proto = (() => { return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult"; }; + PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse = (function() { + + function CompanionCanonicalUserNonceFetchResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + CompanionCanonicalUserNonceFetchResponse.prototype.nonce = null; + CompanionCanonicalUserNonceFetchResponse.prototype.waFbid = null; + CompanionCanonicalUserNonceFetchResponse.prototype.forceRefresh = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompanionCanonicalUserNonceFetchResponse.prototype, "_nonce", { + get: $util.oneOfGetter($oneOfFields = ["nonce"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompanionCanonicalUserNonceFetchResponse.prototype, "_waFbid", { + get: $util.oneOfGetter($oneOfFields = ["waFbid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompanionCanonicalUserNonceFetchResponse.prototype, "_forceRefresh", { + get: $util.oneOfGetter($oneOfFields = ["forceRefresh"]), + set: $util.oneOfSetter($oneOfFields) + }); + + CompanionCanonicalUserNonceFetchResponse.create = function create(properties) { + return new CompanionCanonicalUserNonceFetchResponse(properties); + }; + + CompanionCanonicalUserNonceFetchResponse.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.nonce != null && Object.hasOwnProperty.call(m, "nonce")) + w.uint32(10).string(m.nonce); + if (m.waFbid != null && Object.hasOwnProperty.call(m, "waFbid")) + w.uint32(18).string(m.waFbid); + if (m.forceRefresh != null && Object.hasOwnProperty.call(m, "forceRefresh")) + w.uint32(24).bool(m.forceRefresh); + return w; + }; + + CompanionCanonicalUserNonceFetchResponse.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.nonce = r.string(); + break; + } + case 2: { + m.waFbid = r.string(); + break; + } + case 3: { + m.forceRefresh = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + CompanionCanonicalUserNonceFetchResponse.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse) + return d; + var m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse(); + if (d.nonce != null) { + m.nonce = String(d.nonce); + } + if (d.waFbid != null) { + m.waFbid = String(d.waFbid); + } + if (d.forceRefresh != null) { + m.forceRefresh = Boolean(d.forceRefresh); + } + return m; + }; + + CompanionCanonicalUserNonceFetchResponse.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.nonce != null && m.hasOwnProperty("nonce")) { + d.nonce = m.nonce; + if (o.oneofs) + d._nonce = "nonce"; + } + if (m.waFbid != null && m.hasOwnProperty("waFbid")) { + d.waFbid = m.waFbid; + if (o.oneofs) + d._waFbid = "waFbid"; + } + if (m.forceRefresh != null && m.hasOwnProperty("forceRefresh")) { + d.forceRefresh = m.forceRefresh; + if (o.oneofs) + d._forceRefresh = "forceRefresh"; + } + return d; + }; + + CompanionCanonicalUserNonceFetchResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + CompanionCanonicalUserNonceFetchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse"; + }; + + return CompanionCanonicalUserNonceFetchResponse; + })(); + PeerDataOperationResult.CompanionMetaNonceFetchResponse = (function() { function CompanionMetaNonceFetchResponse(p) { @@ -48362,6 +56476,259 @@ export const proto = $root.proto = (() => { return values; })(); + PeerDataOperationResult.HistorySyncChunkRetryResponse = (function() { + + function HistorySyncChunkRetryResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + HistorySyncChunkRetryResponse.prototype.syncType = null; + HistorySyncChunkRetryResponse.prototype.chunkOrder = null; + HistorySyncChunkRetryResponse.prototype.requestId = null; + HistorySyncChunkRetryResponse.prototype.responseCode = null; + HistorySyncChunkRetryResponse.prototype.canRecover = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryResponse.prototype, "_syncType", { + get: $util.oneOfGetter($oneOfFields = ["syncType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryResponse.prototype, "_chunkOrder", { + get: $util.oneOfGetter($oneOfFields = ["chunkOrder"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryResponse.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryResponse.prototype, "_responseCode", { + get: $util.oneOfGetter($oneOfFields = ["responseCode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HistorySyncChunkRetryResponse.prototype, "_canRecover", { + get: $util.oneOfGetter($oneOfFields = ["canRecover"]), + set: $util.oneOfSetter($oneOfFields) + }); + + HistorySyncChunkRetryResponse.create = function create(properties) { + return new HistorySyncChunkRetryResponse(properties); + }; + + HistorySyncChunkRetryResponse.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.syncType != null && Object.hasOwnProperty.call(m, "syncType")) + w.uint32(8).int32(m.syncType); + if (m.chunkOrder != null && Object.hasOwnProperty.call(m, "chunkOrder")) + w.uint32(16).uint32(m.chunkOrder); + if (m.requestId != null && Object.hasOwnProperty.call(m, "requestId")) + w.uint32(26).string(m.requestId); + if (m.responseCode != null && Object.hasOwnProperty.call(m, "responseCode")) + w.uint32(32).int32(m.responseCode); + if (m.canRecover != null && Object.hasOwnProperty.call(m, "canRecover")) + w.uint32(40).bool(m.canRecover); + return w; + }; + + HistorySyncChunkRetryResponse.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.syncType = r.int32(); + break; + } + case 2: { + m.chunkOrder = r.uint32(); + break; + } + case 3: { + m.requestId = r.string(); + break; + } + case 4: { + m.responseCode = r.int32(); + break; + } + case 5: { + m.canRecover = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + HistorySyncChunkRetryResponse.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse) + return d; + var m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse(); + switch (d.syncType) { + default: + if (typeof d.syncType === "number") { + m.syncType = d.syncType; + break; + } + break; + case "INITIAL_BOOTSTRAP": + case 0: + m.syncType = 0; + break; + case "INITIAL_STATUS_V3": + case 1: + m.syncType = 1; + break; + case "FULL": + case 2: + m.syncType = 2; + break; + case "RECENT": + case 3: + m.syncType = 3; + break; + case "PUSH_NAME": + case 4: + m.syncType = 4; + break; + case "NON_BLOCKING_DATA": + case 5: + m.syncType = 5; + break; + case "ON_DEMAND": + case 6: + m.syncType = 6; + break; + case "NO_HISTORY": + case 7: + m.syncType = 7; + break; + case "MESSAGE_ACCESS_STATUS": + case 8: + m.syncType = 8; + break; + } + if (d.chunkOrder != null) { + m.chunkOrder = d.chunkOrder >>> 0; + } + if (d.requestId != null) { + m.requestId = String(d.requestId); + } + switch (d.responseCode) { + default: + if (typeof d.responseCode === "number") { + m.responseCode = d.responseCode; + break; + } + break; + case "GENERATION_ERROR": + case 1: + m.responseCode = 1; + break; + case "CHUNK_CONSUMED": + case 2: + m.responseCode = 2; + break; + case "TIMEOUT": + case 3: + m.responseCode = 3; + break; + case "SESSION_EXHAUSTED": + case 4: + m.responseCode = 4; + break; + case "CHUNK_EXHAUSTED": + case 5: + m.responseCode = 5; + break; + case "DUPLICATED_REQUEST": + case 6: + m.responseCode = 6; + break; + } + if (d.canRecover != null) { + m.canRecover = Boolean(d.canRecover); + } + return m; + }; + + HistorySyncChunkRetryResponse.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.syncType != null && m.hasOwnProperty("syncType")) { + d.syncType = o.enums === String ? $root.proto.Message.HistorySyncType[m.syncType] === undefined ? m.syncType : $root.proto.Message.HistorySyncType[m.syncType] : m.syncType; + if (o.oneofs) + d._syncType = "syncType"; + } + if (m.chunkOrder != null && m.hasOwnProperty("chunkOrder")) { + d.chunkOrder = m.chunkOrder; + if (o.oneofs) + d._chunkOrder = "chunkOrder"; + } + if (m.requestId != null && m.hasOwnProperty("requestId")) { + d.requestId = m.requestId; + if (o.oneofs) + d._requestId = "requestId"; + } + if (m.responseCode != null && m.hasOwnProperty("responseCode")) { + d.responseCode = o.enums === String ? $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode[m.responseCode] === undefined ? m.responseCode : $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode[m.responseCode] : m.responseCode; + if (o.oneofs) + d._responseCode = "responseCode"; + } + if (m.canRecover != null && m.hasOwnProperty("canRecover")) { + d.canRecover = m.canRecover; + if (o.oneofs) + d._canRecover = "canRecover"; + } + return d; + }; + + HistorySyncChunkRetryResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + HistorySyncChunkRetryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse"; + }; + + return HistorySyncChunkRetryResponse; + })(); + + PeerDataOperationResult.HistorySyncChunkRetryResponseCode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "GENERATION_ERROR"] = 1; + values[valuesById[2] = "CHUNK_CONSUMED"] = 2; + values[valuesById[3] = "TIMEOUT"] = 3; + values[valuesById[4] = "SESSION_EXHAUSTED"] = 4; + values[valuesById[5] = "CHUNK_EXHAUSTED"] = 5; + values[valuesById[6] = "DUPLICATED_REQUEST"] = 6; + return values; + })(); + PeerDataOperationResult.LinkPreviewResponse = (function() { function LinkPreviewResponse(p) { @@ -48378,6 +56745,7 @@ export const proto = $root.proto = (() => { LinkPreviewResponse.prototype.matchText = null; LinkPreviewResponse.prototype.previewType = null; LinkPreviewResponse.prototype.hqThumbnail = null; + LinkPreviewResponse.prototype.previewMetadata = null; let $oneOfFields; @@ -48423,6 +56791,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(LinkPreviewResponse.prototype, "_previewMetadata", { + get: $util.oneOfGetter($oneOfFields = ["previewMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + LinkPreviewResponse.create = function create(properties) { return new LinkPreviewResponse(properties); }; @@ -48444,6 +56818,8 @@ export const proto = $root.proto = (() => { w.uint32(58).string(m.previewType); if (m.hqThumbnail != null && Object.hasOwnProperty.call(m, "hqThumbnail")) $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.LinkPreviewHighQualityThumbnail.encode(m.hqThumbnail, w.uint32(66).fork()).ldelim(); + if (m.previewMetadata != null && Object.hasOwnProperty.call(m, "previewMetadata")) + $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata.encode(m.previewMetadata, w.uint32(74).fork()).ldelim(); return w; }; @@ -48484,6 +56860,10 @@ export const proto = $root.proto = (() => { m.hqThumbnail = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.LinkPreviewHighQualityThumbnail.decode(r, r.uint32()); break; } + case 9: { + m.previewMetadata = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -48522,6 +56902,11 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.hqThumbnail: object expected"); m.hqThumbnail = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.LinkPreviewHighQualityThumbnail.fromObject(d.hqThumbnail); } + if (d.previewMetadata != null) { + if (typeof d.previewMetadata !== "object") + throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.previewMetadata: object expected"); + m.previewMetadata = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata.fromObject(d.previewMetadata); + } return m; }; @@ -48564,6 +56949,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._hqThumbnail = "hqThumbnail"; } + if (m.previewMetadata != null && m.hasOwnProperty("previewMetadata")) { + d.previewMetadata = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata.toObject(m.previewMetadata, o); + if (o.oneofs) + d._previewMetadata = "previewMetadata"; + } return d; }; @@ -48805,6 +57195,115 @@ export const proto = $root.proto = (() => { return LinkPreviewHighQualityThumbnail; })(); + LinkPreviewResponse.PaymentLinkPreviewMetadata = (function() { + + function PaymentLinkPreviewMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + PaymentLinkPreviewMetadata.prototype.isBusinessVerified = null; + PaymentLinkPreviewMetadata.prototype.providerName = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PaymentLinkPreviewMetadata.prototype, "_isBusinessVerified", { + get: $util.oneOfGetter($oneOfFields = ["isBusinessVerified"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PaymentLinkPreviewMetadata.prototype, "_providerName", { + get: $util.oneOfGetter($oneOfFields = ["providerName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + PaymentLinkPreviewMetadata.create = function create(properties) { + return new PaymentLinkPreviewMetadata(properties); + }; + + PaymentLinkPreviewMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.isBusinessVerified != null && Object.hasOwnProperty.call(m, "isBusinessVerified")) + w.uint32(8).bool(m.isBusinessVerified); + if (m.providerName != null && Object.hasOwnProperty.call(m, "providerName")) + w.uint32(18).string(m.providerName); + return w; + }; + + PaymentLinkPreviewMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.isBusinessVerified = r.bool(); + break; + } + case 2: { + m.providerName = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + PaymentLinkPreviewMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata) + return d; + var m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata(); + if (d.isBusinessVerified != null) { + m.isBusinessVerified = Boolean(d.isBusinessVerified); + } + if (d.providerName != null) { + m.providerName = String(d.providerName); + } + return m; + }; + + PaymentLinkPreviewMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.isBusinessVerified != null && m.hasOwnProperty("isBusinessVerified")) { + d.isBusinessVerified = m.isBusinessVerified; + if (o.oneofs) + d._isBusinessVerified = "isBusinessVerified"; + } + if (m.providerName != null && m.hasOwnProperty("providerName")) { + d.providerName = m.providerName; + if (o.oneofs) + d._providerName = "providerName"; + } + return d; + }; + + PaymentLinkPreviewMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PaymentLinkPreviewMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata"; + }; + + return PaymentLinkPreviewMetadata; + })(); + return LinkPreviewResponse; })(); @@ -49137,6 +57636,9 @@ export const proto = $root.proto = (() => { values[valuesById[6] = "FULL_HISTORY_SYNC_ON_DEMAND"] = 6; values[valuesById[7] = "COMPANION_META_NONCE_FETCH"] = 7; values[valuesById[8] = "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY"] = 8; + values[valuesById[9] = "COMPANION_CANONICAL_USER_NONCE_FETCH"] = 9; + values[valuesById[10] = "HISTORY_SYNC_CHUNK_RETRY"] = 10; + values[valuesById[11] = "GALAXY_FLOW_ACTION"] = 11; return values; })(); @@ -49674,7 +58176,7 @@ export const proto = $root.proto = (() => { d._pollContentType = "pollContentType"; } if (m.pollType != null && m.hasOwnProperty("pollType")) { - d.pollType = o.enums === String ? $root.proto.Message.PollCreationMessage.PollType[m.pollType] === undefined ? m.pollType : $root.proto.Message.PollCreationMessage.PollType[m.pollType] : m.pollType; + d.pollType = o.enums === String ? $root.proto.Message.PollType[m.pollType] === undefined ? m.pollType : $root.proto.Message.PollType[m.pollType] : m.pollType; if (o.oneofs) d._pollType = "pollType"; } @@ -49806,13 +58308,6 @@ export const proto = $root.proto = (() => { return Option; })(); - PollCreationMessage.PollType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "POLL"] = 0; - values[valuesById[1] = "QUIZ"] = 1; - return values; - })(); - return PollCreationMessage; })(); @@ -49944,6 +58439,7 @@ export const proto = $root.proto = (() => { PollResultSnapshotMessage.prototype.name = null; PollResultSnapshotMessage.prototype.pollVotes = $util.emptyArray; PollResultSnapshotMessage.prototype.contextInfo = null; + PollResultSnapshotMessage.prototype.pollType = null; let $oneOfFields; @@ -49959,6 +58455,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(PollResultSnapshotMessage.prototype, "_pollType", { + get: $util.oneOfGetter($oneOfFields = ["pollType"]), + set: $util.oneOfSetter($oneOfFields) + }); + PollResultSnapshotMessage.create = function create(properties) { return new PollResultSnapshotMessage(properties); }; @@ -49974,6 +58476,8 @@ export const proto = $root.proto = (() => { } if (m.contextInfo != null && Object.hasOwnProperty.call(m, "contextInfo")) $root.proto.ContextInfo.encode(m.contextInfo, w.uint32(26).fork()).ldelim(); + if (m.pollType != null && Object.hasOwnProperty.call(m, "pollType")) + w.uint32(32).int32(m.pollType); return w; }; @@ -50000,6 +58504,10 @@ export const proto = $root.proto = (() => { m.contextInfo = $root.proto.ContextInfo.decode(r, r.uint32()); break; } + case 4: { + m.pollType = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -50030,6 +58538,22 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.PollResultSnapshotMessage.contextInfo: object expected"); m.contextInfo = $root.proto.ContextInfo.fromObject(d.contextInfo); } + switch (d.pollType) { + default: + if (typeof d.pollType === "number") { + m.pollType = d.pollType; + break; + } + break; + case "POLL": + case 0: + m.pollType = 0; + break; + case "QUIZ": + case 1: + m.pollType = 1; + break; + } return m; }; @@ -50056,6 +58580,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._contextInfo = "contextInfo"; } + if (m.pollType != null && m.hasOwnProperty("pollType")) { + d.pollType = o.enums === String ? $root.proto.Message.PollType[m.pollType] === undefined ? m.pollType : $root.proto.Message.PollType[m.pollType] : m.pollType; + if (o.oneofs) + d._pollType = "pollType"; + } return d; }; @@ -50192,6 +58721,13 @@ export const proto = $root.proto = (() => { return PollResultSnapshotMessage; })(); + Message.PollType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "POLL"] = 0; + values[valuesById[1] = "QUIZ"] = 1; + return values; + })(); + Message.PollUpdateMessage = (function() { function PollUpdateMessage(p) { @@ -51404,7 +59940,7 @@ export const proto = $root.proto = (() => { if (m.peerDataOperationRequestResponseMessage != null && Object.hasOwnProperty.call(m, "peerDataOperationRequestResponseMessage")) $root.proto.Message.PeerDataOperationRequestResponseMessage.encode(m.peerDataOperationRequestResponseMessage, w.uint32(138).fork()).ldelim(); if (m.botFeedbackMessage != null && Object.hasOwnProperty.call(m, "botFeedbackMessage")) - $root.proto.Message.BotFeedbackMessage.encode(m.botFeedbackMessage, w.uint32(146).fork()).ldelim(); + $root.proto.BotFeedbackMessage.encode(m.botFeedbackMessage, w.uint32(146).fork()).ldelim(); if (m.invokerJid != null && Object.hasOwnProperty.call(m, "invokerJid")) w.uint32(154).string(m.invokerJid); if (m.requestWelcomeMessageMetadata != null && Object.hasOwnProperty.call(m, "requestWelcomeMessageMetadata")) @@ -51492,7 +60028,7 @@ export const proto = $root.proto = (() => { break; } case 18: { - m.botFeedbackMessage = $root.proto.Message.BotFeedbackMessage.decode(r, r.uint32()); + m.botFeedbackMessage = $root.proto.BotFeedbackMessage.decode(r, r.uint32()); break; } case 19: { @@ -51731,7 +60267,7 @@ export const proto = $root.proto = (() => { if (d.botFeedbackMessage != null) { if (typeof d.botFeedbackMessage !== "object") throw TypeError(".proto.Message.ProtocolMessage.botFeedbackMessage: object expected"); - m.botFeedbackMessage = $root.proto.Message.BotFeedbackMessage.fromObject(d.botFeedbackMessage); + m.botFeedbackMessage = $root.proto.BotFeedbackMessage.fromObject(d.botFeedbackMessage); } if (d.invokerJid != null) { m.invokerJid = String(d.invokerJid); @@ -51861,7 +60397,7 @@ export const proto = $root.proto = (() => { d._peerDataOperationRequestResponseMessage = "peerDataOperationRequestResponseMessage"; } if (m.botFeedbackMessage != null && m.hasOwnProperty("botFeedbackMessage")) { - d.botFeedbackMessage = $root.proto.Message.BotFeedbackMessage.toObject(m.botFeedbackMessage, o); + d.botFeedbackMessage = $root.proto.BotFeedbackMessage.toObject(m.botFeedbackMessage, o); if (o.oneofs) d._botFeedbackMessage = "botFeedbackMessage"; } @@ -51958,6 +60494,117 @@ export const proto = $root.proto = (() => { return ProtocolMessage; })(); + Message.QuestionResponseMessage = (function() { + + function QuestionResponseMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + QuestionResponseMessage.prototype.key = null; + QuestionResponseMessage.prototype.text = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(QuestionResponseMessage.prototype, "_key", { + get: $util.oneOfGetter($oneOfFields = ["key"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(QuestionResponseMessage.prototype, "_text", { + get: $util.oneOfGetter($oneOfFields = ["text"]), + set: $util.oneOfSetter($oneOfFields) + }); + + QuestionResponseMessage.create = function create(properties) { + return new QuestionResponseMessage(properties); + }; + + QuestionResponseMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) + $root.proto.MessageKey.encode(m.key, w.uint32(10).fork()).ldelim(); + if (m.text != null && Object.hasOwnProperty.call(m, "text")) + w.uint32(18).string(m.text); + return w; + }; + + QuestionResponseMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.QuestionResponseMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.key = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + case 2: { + m.text = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + QuestionResponseMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.QuestionResponseMessage) + return d; + var m = new $root.proto.Message.QuestionResponseMessage(); + if (d.key != null) { + if (typeof d.key !== "object") + throw TypeError(".proto.Message.QuestionResponseMessage.key: object expected"); + m.key = $root.proto.MessageKey.fromObject(d.key); + } + if (d.text != null) { + m.text = String(d.text); + } + return m; + }; + + QuestionResponseMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.key != null && m.hasOwnProperty("key")) { + d.key = $root.proto.MessageKey.toObject(m.key, o); + if (o.oneofs) + d._key = "key"; + } + if (m.text != null && m.hasOwnProperty("text")) { + d.text = m.text; + if (o.oneofs) + d._text = "text"; + } + return d; + }; + + QuestionResponseMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + QuestionResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.QuestionResponseMessage"; + }; + + return QuestionResponseMessage; + })(); + Message.ReactionMessage = (function() { function ReactionMessage(p) { @@ -53051,6 +61698,7 @@ export const proto = $root.proto = (() => { SendPaymentMessage.prototype.noteMessage = null; SendPaymentMessage.prototype.requestMessageKey = null; SendPaymentMessage.prototype.background = null; + SendPaymentMessage.prototype.transactionData = null; let $oneOfFields; @@ -53072,6 +61720,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(SendPaymentMessage.prototype, "_transactionData", { + get: $util.oneOfGetter($oneOfFields = ["transactionData"]), + set: $util.oneOfSetter($oneOfFields) + }); + SendPaymentMessage.create = function create(properties) { return new SendPaymentMessage(properties); }; @@ -53085,6 +61739,8 @@ export const proto = $root.proto = (() => { $root.proto.MessageKey.encode(m.requestMessageKey, w.uint32(26).fork()).ldelim(); if (m.background != null && Object.hasOwnProperty.call(m, "background")) $root.proto.PaymentBackground.encode(m.background, w.uint32(34).fork()).ldelim(); + if (m.transactionData != null && Object.hasOwnProperty.call(m, "transactionData")) + w.uint32(42).string(m.transactionData); return w; }; @@ -53109,6 +61765,10 @@ export const proto = $root.proto = (() => { m.background = $root.proto.PaymentBackground.decode(r, r.uint32()); break; } + case 5: { + m.transactionData = r.string(); + break; + } default: r.skipType(t & 7); break; @@ -53136,6 +61796,9 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.Message.SendPaymentMessage.background: object expected"); m.background = $root.proto.PaymentBackground.fromObject(d.background); } + if (d.transactionData != null) { + m.transactionData = String(d.transactionData); + } return m; }; @@ -53158,6 +61821,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._background = "background"; } + if (m.transactionData != null && m.hasOwnProperty("transactionData")) { + d.transactionData = m.transactionData; + if (o.oneofs) + d._transactionData = "transactionData"; + } return d; }; @@ -53398,6 +62066,10 @@ export const proto = $root.proto = (() => { case 2: m.type = 2; break; + case "STATUS_QUESTION_ANSWER_RESHARE": + case 3: + m.type = 3; + break; } return m; }; @@ -53440,12 +62112,447 @@ export const proto = $root.proto = (() => { values[valuesById[0] = "UNKNOWN"] = 0; values[valuesById[1] = "STATUS_ADD_YOURS"] = 1; values[valuesById[2] = "STATUS_RESHARE"] = 2; + values[valuesById[3] = "STATUS_QUESTION_ANSWER_RESHARE"] = 3; return values; })(); return StatusNotificationMessage; })(); + Message.StatusQuestionAnswerMessage = (function() { + + function StatusQuestionAnswerMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + StatusQuestionAnswerMessage.prototype.key = null; + StatusQuestionAnswerMessage.prototype.text = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusQuestionAnswerMessage.prototype, "_key", { + get: $util.oneOfGetter($oneOfFields = ["key"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusQuestionAnswerMessage.prototype, "_text", { + get: $util.oneOfGetter($oneOfFields = ["text"]), + set: $util.oneOfSetter($oneOfFields) + }); + + StatusQuestionAnswerMessage.create = function create(properties) { + return new StatusQuestionAnswerMessage(properties); + }; + + StatusQuestionAnswerMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) + $root.proto.MessageKey.encode(m.key, w.uint32(10).fork()).ldelim(); + if (m.text != null && Object.hasOwnProperty.call(m, "text")) + w.uint32(18).string(m.text); + return w; + }; + + StatusQuestionAnswerMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.StatusQuestionAnswerMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.key = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + case 2: { + m.text = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + StatusQuestionAnswerMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.StatusQuestionAnswerMessage) + return d; + var m = new $root.proto.Message.StatusQuestionAnswerMessage(); + if (d.key != null) { + if (typeof d.key !== "object") + throw TypeError(".proto.Message.StatusQuestionAnswerMessage.key: object expected"); + m.key = $root.proto.MessageKey.fromObject(d.key); + } + if (d.text != null) { + m.text = String(d.text); + } + return m; + }; + + StatusQuestionAnswerMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.key != null && m.hasOwnProperty("key")) { + d.key = $root.proto.MessageKey.toObject(m.key, o); + if (o.oneofs) + d._key = "key"; + } + if (m.text != null && m.hasOwnProperty("text")) { + d.text = m.text; + if (o.oneofs) + d._text = "text"; + } + return d; + }; + + StatusQuestionAnswerMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StatusQuestionAnswerMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.StatusQuestionAnswerMessage"; + }; + + return StatusQuestionAnswerMessage; + })(); + + Message.StatusQuotedMessage = (function() { + + function StatusQuotedMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + StatusQuotedMessage.prototype.type = null; + StatusQuotedMessage.prototype.text = null; + StatusQuotedMessage.prototype.thumbnail = null; + StatusQuotedMessage.prototype.originalStatusId = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusQuotedMessage.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusQuotedMessage.prototype, "_text", { + get: $util.oneOfGetter($oneOfFields = ["text"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusQuotedMessage.prototype, "_thumbnail", { + get: $util.oneOfGetter($oneOfFields = ["thumbnail"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusQuotedMessage.prototype, "_originalStatusId", { + get: $util.oneOfGetter($oneOfFields = ["originalStatusId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + StatusQuotedMessage.create = function create(properties) { + return new StatusQuotedMessage(properties); + }; + + StatusQuotedMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).int32(m.type); + if (m.text != null && Object.hasOwnProperty.call(m, "text")) + w.uint32(18).string(m.text); + if (m.thumbnail != null && Object.hasOwnProperty.call(m, "thumbnail")) + w.uint32(26).bytes(m.thumbnail); + if (m.originalStatusId != null && Object.hasOwnProperty.call(m, "originalStatusId")) + $root.proto.MessageKey.encode(m.originalStatusId, w.uint32(34).fork()).ldelim(); + return w; + }; + + StatusQuotedMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.StatusQuotedMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.int32(); + break; + } + case 2: { + m.text = r.string(); + break; + } + case 3: { + m.thumbnail = r.bytes(); + break; + } + case 4: { + m.originalStatusId = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + StatusQuotedMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.StatusQuotedMessage) + return d; + var m = new $root.proto.Message.StatusQuotedMessage(); + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "QUESTION_ANSWER": + case 1: + m.type = 1; + break; + } + if (d.text != null) { + m.text = String(d.text); + } + if (d.thumbnail != null) { + if (typeof d.thumbnail === "string") + $util.base64.decode(d.thumbnail, m.thumbnail = $util.newBuffer($util.base64.length(d.thumbnail)), 0); + else if (d.thumbnail.length >= 0) + m.thumbnail = d.thumbnail; + } + if (d.originalStatusId != null) { + if (typeof d.originalStatusId !== "object") + throw TypeError(".proto.Message.StatusQuotedMessage.originalStatusId: object expected"); + m.originalStatusId = $root.proto.MessageKey.fromObject(d.originalStatusId); + } + return m; + }; + + StatusQuotedMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.Message.StatusQuotedMessage.StatusQuotedMessageType[m.type] === undefined ? m.type : $root.proto.Message.StatusQuotedMessage.StatusQuotedMessageType[m.type] : m.type; + if (o.oneofs) + d._type = "type"; + } + if (m.text != null && m.hasOwnProperty("text")) { + d.text = m.text; + if (o.oneofs) + d._text = "text"; + } + if (m.thumbnail != null && m.hasOwnProperty("thumbnail")) { + d.thumbnail = o.bytes === String ? $util.base64.encode(m.thumbnail, 0, m.thumbnail.length) : o.bytes === Array ? Array.prototype.slice.call(m.thumbnail) : m.thumbnail; + if (o.oneofs) + d._thumbnail = "thumbnail"; + } + if (m.originalStatusId != null && m.hasOwnProperty("originalStatusId")) { + d.originalStatusId = $root.proto.MessageKey.toObject(m.originalStatusId, o); + if (o.oneofs) + d._originalStatusId = "originalStatusId"; + } + return d; + }; + + StatusQuotedMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StatusQuotedMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.StatusQuotedMessage"; + }; + + StatusQuotedMessage.StatusQuotedMessageType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "QUESTION_ANSWER"] = 1; + return values; + })(); + + return StatusQuotedMessage; + })(); + + Message.StatusStickerInteractionMessage = (function() { + + function StatusStickerInteractionMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + StatusStickerInteractionMessage.prototype.key = null; + StatusStickerInteractionMessage.prototype.stickerKey = null; + StatusStickerInteractionMessage.prototype.type = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusStickerInteractionMessage.prototype, "_key", { + get: $util.oneOfGetter($oneOfFields = ["key"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusStickerInteractionMessage.prototype, "_stickerKey", { + get: $util.oneOfGetter($oneOfFields = ["stickerKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusStickerInteractionMessage.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + StatusStickerInteractionMessage.create = function create(properties) { + return new StatusStickerInteractionMessage(properties); + }; + + StatusStickerInteractionMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) + $root.proto.MessageKey.encode(m.key, w.uint32(10).fork()).ldelim(); + if (m.stickerKey != null && Object.hasOwnProperty.call(m, "stickerKey")) + w.uint32(18).string(m.stickerKey); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(24).int32(m.type); + return w; + }; + + StatusStickerInteractionMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.StatusStickerInteractionMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.key = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + case 2: { + m.stickerKey = r.string(); + break; + } + case 3: { + m.type = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + StatusStickerInteractionMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.StatusStickerInteractionMessage) + return d; + var m = new $root.proto.Message.StatusStickerInteractionMessage(); + if (d.key != null) { + if (typeof d.key !== "object") + throw TypeError(".proto.Message.StatusStickerInteractionMessage.key: object expected"); + m.key = $root.proto.MessageKey.fromObject(d.key); + } + if (d.stickerKey != null) { + m.stickerKey = String(d.stickerKey); + } + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "UNKNOWN": + case 0: + m.type = 0; + break; + case "REACTION": + case 1: + m.type = 1; + break; + } + return m; + }; + + StatusStickerInteractionMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.key != null && m.hasOwnProperty("key")) { + d.key = $root.proto.MessageKey.toObject(m.key, o); + if (o.oneofs) + d._key = "key"; + } + if (m.stickerKey != null && m.hasOwnProperty("stickerKey")) { + d.stickerKey = m.stickerKey; + if (o.oneofs) + d._stickerKey = "stickerKey"; + } + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.Message.StatusStickerInteractionMessage.StatusStickerType[m.type] === undefined ? m.type : $root.proto.Message.StatusStickerInteractionMessage.StatusStickerType[m.type] : m.type; + if (o.oneofs) + d._type = "type"; + } + return d; + }; + + StatusStickerInteractionMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StatusStickerInteractionMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.StatusStickerInteractionMessage"; + }; + + StatusStickerInteractionMessage.StatusStickerType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "REACTION"] = 1; + return values; + })(); + + return StatusStickerInteractionMessage; + })(); + Message.StickerMessage = (function() { function StickerMessage(p) { @@ -53475,6 +62582,7 @@ export const proto = $root.proto = (() => { StickerMessage.prototype.isAiSticker = null; StickerMessage.prototype.isLottie = null; StickerMessage.prototype.accessibilityLabel = null; + StickerMessage.prototype.mediaKeyDomain = null; let $oneOfFields; @@ -53598,6 +62706,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(StickerMessage.prototype, "_mediaKeyDomain", { + get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + StickerMessage.create = function create(properties) { return new StickerMessage(properties); }; @@ -53645,6 +62759,8 @@ export const proto = $root.proto = (() => { w.uint32(168).bool(m.isLottie); if (m.accessibilityLabel != null && Object.hasOwnProperty.call(m, "accessibilityLabel")) w.uint32(178).string(m.accessibilityLabel); + if (m.mediaKeyDomain != null && Object.hasOwnProperty.call(m, "mediaKeyDomain")) + w.uint32(184).int32(m.mediaKeyDomain); return w; }; @@ -53737,6 +62853,10 @@ export const proto = $root.proto = (() => { m.accessibilityLabel = r.string(); break; } + case 23: { + m.mediaKeyDomain = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -53847,6 +62967,34 @@ export const proto = $root.proto = (() => { if (d.accessibilityLabel != null) { m.accessibilityLabel = String(d.accessibilityLabel); } + switch (d.mediaKeyDomain) { + default: + if (typeof d.mediaKeyDomain === "number") { + m.mediaKeyDomain = d.mediaKeyDomain; + break; + } + break; + case "UNSET": + case 0: + m.mediaKeyDomain = 0; + break; + case "E2EE_CHAT": + case 1: + m.mediaKeyDomain = 1; + break; + case "STATUS": + case 2: + m.mediaKeyDomain = 2; + break; + case "CAPI": + case 3: + m.mediaKeyDomain = 3; + break; + case "BOT": + case 4: + m.mediaKeyDomain = 4; + break; + } return m; }; @@ -53963,6 +63111,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._accessibilityLabel = "accessibilityLabel"; } + if (m.mediaKeyDomain != null && m.hasOwnProperty("mediaKeyDomain")) { + d.mediaKeyDomain = o.enums === String ? $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] === undefined ? m.mediaKeyDomain : $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] : m.mediaKeyDomain; + if (o.oneofs) + d._mediaKeyDomain = "mediaKeyDomain"; + } return d; }; @@ -55896,6 +65049,129 @@ export const proto = $root.proto = (() => { return URLMetadata; })(); + Message.VideoEndCard = (function() { + + function VideoEndCard(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + VideoEndCard.prototype.username = ""; + VideoEndCard.prototype.caption = ""; + VideoEndCard.prototype.thumbnailImageUrl = ""; + VideoEndCard.prototype.profilePictureUrl = ""; + + VideoEndCard.create = function create(properties) { + return new VideoEndCard(properties); + }; + + VideoEndCard.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.username != null && Object.hasOwnProperty.call(m, "username")) + w.uint32(10).string(m.username); + if (m.caption != null && Object.hasOwnProperty.call(m, "caption")) + w.uint32(18).string(m.caption); + if (m.thumbnailImageUrl != null && Object.hasOwnProperty.call(m, "thumbnailImageUrl")) + w.uint32(26).string(m.thumbnailImageUrl); + if (m.profilePictureUrl != null && Object.hasOwnProperty.call(m, "profilePictureUrl")) + w.uint32(34).string(m.profilePictureUrl); + return w; + }; + + VideoEndCard.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.VideoEndCard(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.username = r.string(); + break; + } + case 2: { + m.caption = r.string(); + break; + } + case 3: { + m.thumbnailImageUrl = r.string(); + break; + } + case 4: { + m.profilePictureUrl = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + VideoEndCard.fromObject = function fromObject(d) { + if (d instanceof $root.proto.Message.VideoEndCard) + return d; + var m = new $root.proto.Message.VideoEndCard(); + if (d.username != null) { + m.username = String(d.username); + } + if (d.caption != null) { + m.caption = String(d.caption); + } + if (d.thumbnailImageUrl != null) { + m.thumbnailImageUrl = String(d.thumbnailImageUrl); + } + if (d.profilePictureUrl != null) { + m.profilePictureUrl = String(d.profilePictureUrl); + } + return m; + }; + + VideoEndCard.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.defaults) { + d.username = ""; + d.caption = ""; + d.thumbnailImageUrl = ""; + d.profilePictureUrl = ""; + } + if (m.username != null && m.hasOwnProperty("username")) { + d.username = m.username; + } + if (m.caption != null && m.hasOwnProperty("caption")) { + d.caption = m.caption; + } + if (m.thumbnailImageUrl != null && m.hasOwnProperty("thumbnailImageUrl")) { + d.thumbnailImageUrl = m.thumbnailImageUrl; + } + if (m.profilePictureUrl != null && m.hasOwnProperty("profilePictureUrl")) { + d.profilePictureUrl = m.profilePictureUrl; + } + return d; + }; + + VideoEndCard.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + VideoEndCard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.Message.VideoEndCard"; + }; + + return VideoEndCard; + })(); + Message.VideoMessage = (function() { function VideoMessage(p) { @@ -55935,6 +65211,10 @@ export const proto = $root.proto = (() => { VideoMessage.prototype.accessibilityLabel = null; VideoMessage.prototype.processedVideos = $util.emptyArray; VideoMessage.prototype.externalShareFullVideoDurationInSeconds = null; + VideoMessage.prototype.motionPhotoPresentationOffsetMs = null; + VideoMessage.prototype.metadataUrl = null; + VideoMessage.prototype.videoSourceType = null; + VideoMessage.prototype.mediaKeyDomain = null; let $oneOfFields; @@ -56082,6 +65362,30 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(VideoMessage.prototype, "_motionPhotoPresentationOffsetMs", { + get: $util.oneOfGetter($oneOfFields = ["motionPhotoPresentationOffsetMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VideoMessage.prototype, "_metadataUrl", { + get: $util.oneOfGetter($oneOfFields = ["metadataUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VideoMessage.prototype, "_videoSourceType", { + get: $util.oneOfGetter($oneOfFields = ["videoSourceType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VideoMessage.prototype, "_mediaKeyDomain", { + get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]), + set: $util.oneOfSetter($oneOfFields) + }); + VideoMessage.create = function create(properties) { return new VideoMessage(properties); }; @@ -56149,6 +65453,14 @@ export const proto = $root.proto = (() => { } if (m.externalShareFullVideoDurationInSeconds != null && Object.hasOwnProperty.call(m, "externalShareFullVideoDurationInSeconds")) w.uint32(224).uint32(m.externalShareFullVideoDurationInSeconds); + if (m.motionPhotoPresentationOffsetMs != null && Object.hasOwnProperty.call(m, "motionPhotoPresentationOffsetMs")) + w.uint32(232).uint64(m.motionPhotoPresentationOffsetMs); + if (m.metadataUrl != null && Object.hasOwnProperty.call(m, "metadataUrl")) + w.uint32(242).string(m.metadataUrl); + if (m.videoSourceType != null && Object.hasOwnProperty.call(m, "videoSourceType")) + w.uint32(248).int32(m.videoSourceType); + if (m.mediaKeyDomain != null && Object.hasOwnProperty.call(m, "mediaKeyDomain")) + w.uint32(256).int32(m.mediaKeyDomain); return w; }; @@ -56275,6 +65587,22 @@ export const proto = $root.proto = (() => { m.externalShareFullVideoDurationInSeconds = r.uint32(); break; } + case 29: { + m.motionPhotoPresentationOffsetMs = r.uint64(); + break; + } + case 30: { + m.metadataUrl = r.string(); + break; + } + case 31: { + m.videoSourceType = r.int32(); + break; + } + case 32: { + m.mediaKeyDomain = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -56395,6 +65723,10 @@ export const proto = $root.proto = (() => { case 2: m.gifAttribution = 2; break; + case "KLIPY": + case 3: + m.gifAttribution = 3; + break; } if (d.viewOnce != null) { m.viewOnce = Boolean(d.viewOnce); @@ -56443,6 +65775,63 @@ export const proto = $root.proto = (() => { if (d.externalShareFullVideoDurationInSeconds != null) { m.externalShareFullVideoDurationInSeconds = d.externalShareFullVideoDurationInSeconds >>> 0; } + if (d.motionPhotoPresentationOffsetMs != null) { + if ($util.Long) + (m.motionPhotoPresentationOffsetMs = $util.Long.fromValue(d.motionPhotoPresentationOffsetMs)).unsigned = true; + else if (typeof d.motionPhotoPresentationOffsetMs === "string") + m.motionPhotoPresentationOffsetMs = parseInt(d.motionPhotoPresentationOffsetMs, 10); + else if (typeof d.motionPhotoPresentationOffsetMs === "number") + m.motionPhotoPresentationOffsetMs = d.motionPhotoPresentationOffsetMs; + else if (typeof d.motionPhotoPresentationOffsetMs === "object") + m.motionPhotoPresentationOffsetMs = new $util.LongBits(d.motionPhotoPresentationOffsetMs.low >>> 0, d.motionPhotoPresentationOffsetMs.high >>> 0).toNumber(true); + } + if (d.metadataUrl != null) { + m.metadataUrl = String(d.metadataUrl); + } + switch (d.videoSourceType) { + default: + if (typeof d.videoSourceType === "number") { + m.videoSourceType = d.videoSourceType; + break; + } + break; + case "USER_VIDEO": + case 0: + m.videoSourceType = 0; + break; + case "AI_GENERATED": + case 1: + m.videoSourceType = 1; + break; + } + switch (d.mediaKeyDomain) { + default: + if (typeof d.mediaKeyDomain === "number") { + m.mediaKeyDomain = d.mediaKeyDomain; + break; + } + break; + case "UNSET": + case 0: + m.mediaKeyDomain = 0; + break; + case "E2EE_CHAT": + case 1: + m.mediaKeyDomain = 1; + break; + case "STATUS": + case 2: + m.mediaKeyDomain = 2; + break; + case "CAPI": + case 3: + m.mediaKeyDomain = 3; + break; + case "BOT": + case 4: + m.mediaKeyDomain = 4; + break; + } return m; }; @@ -56599,6 +65988,29 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._externalShareFullVideoDurationInSeconds = "externalShareFullVideoDurationInSeconds"; } + if (m.motionPhotoPresentationOffsetMs != null && m.hasOwnProperty("motionPhotoPresentationOffsetMs")) { + if (typeof m.motionPhotoPresentationOffsetMs === "number") + d.motionPhotoPresentationOffsetMs = o.longs === String ? String(m.motionPhotoPresentationOffsetMs) : m.motionPhotoPresentationOffsetMs; + else + d.motionPhotoPresentationOffsetMs = o.longs === String ? $util.Long.prototype.toString.call(m.motionPhotoPresentationOffsetMs) : o.longs === Number ? new $util.LongBits(m.motionPhotoPresentationOffsetMs.low >>> 0, m.motionPhotoPresentationOffsetMs.high >>> 0).toNumber(true) : m.motionPhotoPresentationOffsetMs; + if (o.oneofs) + d._motionPhotoPresentationOffsetMs = "motionPhotoPresentationOffsetMs"; + } + if (m.metadataUrl != null && m.hasOwnProperty("metadataUrl")) { + d.metadataUrl = m.metadataUrl; + if (o.oneofs) + d._metadataUrl = "metadataUrl"; + } + if (m.videoSourceType != null && m.hasOwnProperty("videoSourceType")) { + d.videoSourceType = o.enums === String ? $root.proto.Message.VideoMessage.VideoSourceType[m.videoSourceType] === undefined ? m.videoSourceType : $root.proto.Message.VideoMessage.VideoSourceType[m.videoSourceType] : m.videoSourceType; + if (o.oneofs) + d._videoSourceType = "videoSourceType"; + } + if (m.mediaKeyDomain != null && m.hasOwnProperty("mediaKeyDomain")) { + d.mediaKeyDomain = o.enums === String ? $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] === undefined ? m.mediaKeyDomain : $root.proto.Message.MediaKeyDomain[m.mediaKeyDomain] : m.mediaKeyDomain; + if (o.oneofs) + d._mediaKeyDomain = "mediaKeyDomain"; + } return d; }; @@ -56618,6 +66030,14 @@ export const proto = $root.proto = (() => { values[valuesById[0] = "NONE"] = 0; values[valuesById[1] = "GIPHY"] = 1; values[valuesById[2] = "TENOR"] = 2; + values[valuesById[3] = "KLIPY"] = 3; + return values; + })(); + + VideoMessage.VideoSourceType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "USER_VIDEO"] = 0; + values[valuesById[1] = "AI_GENERATED"] = 1; return values; })(); @@ -57225,6 +66645,26 @@ export const proto = $root.proto = (() => { case 14: m.associationType = 14; break; + case "STATUS_ADD_YOURS_AI_IMAGINE": + case 15: + m.associationType = 15; + break; + case "STATUS_QUESTION": + case 16: + m.associationType = 16; + break; + case "STATUS_ADD_YOURS_DIWALI": + case 17: + m.associationType = 17; + break; + case "STATUS_REACTION": + case 18: + m.associationType = 18; + break; + case "HEVC_VIDEO_DUAL_UPLOAD": + case 19: + m.associationType = 19; + break; } if (d.parentMessageKey != null) { if (typeof d.parentMessageKey !== "object") @@ -57287,6 +66727,11 @@ export const proto = $root.proto = (() => { values[valuesById[12] = "MOTION_PHOTO"] = 12; values[valuesById[13] = "STATUS_LINK_ACTION"] = 13; values[valuesById[14] = "VIEW_ALL_REPLIES"] = 14; + values[valuesById[15] = "STATUS_ADD_YOURS_AI_IMAGINE"] = 15; + values[valuesById[16] = "STATUS_QUESTION"] = 16; + values[valuesById[17] = "STATUS_ADD_YOURS_DIWALI"] = 17; + values[valuesById[18] = "STATUS_REACTION"] = 18; + values[valuesById[19] = "HEVC_VIDEO_DUAL_UPLOAD"] = 19; return values; })(); @@ -57296,6 +66741,7 @@ export const proto = $root.proto = (() => { proto.MessageContextInfo = (function() { function MessageContextInfo(p) { + this.threadId = []; if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) @@ -57316,6 +66762,8 @@ export const proto = $root.proto = (() => { MessageContextInfo.prototype.supportPayload = null; MessageContextInfo.prototype.limitSharing = null; MessageContextInfo.prototype.limitSharingV2 = null; + MessageContextInfo.prototype.threadId = $util.emptyArray; + MessageContextInfo.prototype.weblinkRenderConfig = null; let $oneOfFields; @@ -57403,6 +66851,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MessageContextInfo.prototype, "_weblinkRenderConfig", { + get: $util.oneOfGetter($oneOfFields = ["weblinkRenderConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + MessageContextInfo.create = function create(properties) { return new MessageContextInfo(properties); }; @@ -57438,6 +66892,12 @@ export const proto = $root.proto = (() => { $root.proto.LimitSharing.encode(m.limitSharing, w.uint32(106).fork()).ldelim(); if (m.limitSharingV2 != null && Object.hasOwnProperty.call(m, "limitSharingV2")) $root.proto.LimitSharing.encode(m.limitSharingV2, w.uint32(114).fork()).ldelim(); + if (m.threadId != null && m.threadId.length) { + for (var i = 0; i < m.threadId.length; ++i) + $root.proto.ThreadID.encode(m.threadId[i], w.uint32(122).fork()).ldelim(); + } + if (m.weblinkRenderConfig != null && Object.hasOwnProperty.call(m, "weblinkRenderConfig")) + w.uint32(128).int32(m.weblinkRenderConfig); return w; }; @@ -57506,6 +66966,16 @@ export const proto = $root.proto = (() => { m.limitSharingV2 = $root.proto.LimitSharing.decode(r, r.uint32()); break; } + case 15: { + if (!(m.threadId && m.threadId.length)) + m.threadId = []; + m.threadId.push($root.proto.ThreadID.decode(r, r.uint32())); + break; + } + case 16: { + m.weblinkRenderConfig = r.int32(); + break; + } default: r.skipType(t & 7); break; @@ -57592,6 +67062,32 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.MessageContextInfo.limitSharingV2: object expected"); m.limitSharingV2 = $root.proto.LimitSharing.fromObject(d.limitSharingV2); } + if (d.threadId) { + if (!Array.isArray(d.threadId)) + throw TypeError(".proto.MessageContextInfo.threadId: array expected"); + m.threadId = []; + for (var i = 0; i < d.threadId.length; ++i) { + if (typeof d.threadId[i] !== "object") + throw TypeError(".proto.MessageContextInfo.threadId: object expected"); + m.threadId[i] = $root.proto.ThreadID.fromObject(d.threadId[i]); + } + } + switch (d.weblinkRenderConfig) { + default: + if (typeof d.weblinkRenderConfig === "number") { + m.weblinkRenderConfig = d.weblinkRenderConfig; + break; + } + break; + case "WEBVIEW": + case 0: + m.weblinkRenderConfig = 0; + break; + case "SYSTEM": + case 1: + m.weblinkRenderConfig = 1; + break; + } return m; }; @@ -57599,6 +67095,9 @@ export const proto = $root.proto = (() => { if (!o) o = {}; var d = {}; + if (o.arrays || o.defaults) { + d.threadId = []; + } if (m.deviceListMetadata != null && m.hasOwnProperty("deviceListMetadata")) { d.deviceListMetadata = $root.proto.DeviceListMetadata.toObject(m.deviceListMetadata, o); if (o.oneofs) @@ -57669,6 +67168,17 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._limitSharingV2 = "limitSharingV2"; } + if (m.threadId && m.threadId.length) { + d.threadId = []; + for (var j = 0; j < m.threadId.length; ++j) { + d.threadId[j] = $root.proto.ThreadID.toObject(m.threadId[j], o); + } + } + if (m.weblinkRenderConfig != null && m.hasOwnProperty("weblinkRenderConfig")) { + d.weblinkRenderConfig = o.enums === String ? $root.proto.WebLinkRenderConfig[m.weblinkRenderConfig] === undefined ? m.weblinkRenderConfig : $root.proto.WebLinkRenderConfig[m.weblinkRenderConfig] : m.weblinkRenderConfig; + if (o.oneofs) + d._weblinkRenderConfig = "weblinkRenderConfig"; + } return d; }; @@ -58153,6 +67663,8 @@ export const proto = $root.proto = (() => { MsgOpaqueData.prototype.encPollVote = null; MsgOpaqueData.prototype.isSentCagPollCreation = null; MsgOpaqueData.prototype.pollContentType = null; + MsgOpaqueData.prototype.pollType = null; + MsgOpaqueData.prototype.correctOptionIndex = null; MsgOpaqueData.prototype.pollVotesSnapshot = null; MsgOpaqueData.prototype.encReactionTargetMessageKey = null; MsgOpaqueData.prototype.encReactionEncPayload = null; @@ -58168,6 +67680,8 @@ export const proto = $root.proto = (() => { MsgOpaqueData.prototype.eventStartTime = null; MsgOpaqueData.prototype.eventLocation = null; MsgOpaqueData.prototype.eventEndTime = null; + MsgOpaqueData.prototype.eventIsScheduledCall = null; + MsgOpaqueData.prototype.eventExtraGuestsAllowed = null; MsgOpaqueData.prototype.plainProtobufBytes = null; let $oneOfFields; @@ -58304,6 +67818,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MsgOpaqueData.prototype, "_pollType", { + get: $util.oneOfGetter($oneOfFields = ["pollType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MsgOpaqueData.prototype, "_correctOptionIndex", { + get: $util.oneOfGetter($oneOfFields = ["correctOptionIndex"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(MsgOpaqueData.prototype, "_pollVotesSnapshot", { get: $util.oneOfGetter($oneOfFields = ["pollVotesSnapshot"]), @@ -58394,6 +67920,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MsgOpaqueData.prototype, "_eventIsScheduledCall", { + get: $util.oneOfGetter($oneOfFields = ["eventIsScheduledCall"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MsgOpaqueData.prototype, "_eventExtraGuestsAllowed", { + get: $util.oneOfGetter($oneOfFields = ["eventExtraGuestsAllowed"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(MsgOpaqueData.prototype, "_plainProtobufBytes", { get: $util.oneOfGetter($oneOfFields = ["plainProtobufBytes"]), @@ -58485,6 +68023,14 @@ export const proto = $root.proto = (() => { w.uint32(336).int32(m.pollContentType); if (m.plainProtobufBytes != null && Object.hasOwnProperty.call(m, "plainProtobufBytes")) w.uint32(346).bytes(m.plainProtobufBytes); + if (m.eventIsScheduledCall != null && Object.hasOwnProperty.call(m, "eventIsScheduledCall")) + w.uint32(352).bool(m.eventIsScheduledCall); + if (m.eventExtraGuestsAllowed != null && Object.hasOwnProperty.call(m, "eventExtraGuestsAllowed")) + w.uint32(360).bool(m.eventExtraGuestsAllowed); + if (m.pollType != null && Object.hasOwnProperty.call(m, "pollType")) + w.uint32(368).int32(m.pollType); + if (m.correctOptionIndex != null && Object.hasOwnProperty.call(m, "correctOptionIndex")) + w.uint32(376).int32(m.correctOptionIndex); if (m.originalSelfAuthor != null && Object.hasOwnProperty.call(m, "originalSelfAuthor")) w.uint32(410).string(m.originalSelfAuthor); return w; @@ -58593,6 +68139,14 @@ export const proto = $root.proto = (() => { m.pollContentType = r.int32(); break; } + case 46: { + m.pollType = r.int32(); + break; + } + case 47: { + m.correctOptionIndex = r.int32(); + break; + } case 41: { m.pollVotesSnapshot = $root.proto.MsgOpaqueData.PollVotesSnapshot.decode(r, r.uint32()); break; @@ -58653,6 +68207,14 @@ export const proto = $root.proto = (() => { m.eventEndTime = r.int64(); break; } + case 44: { + m.eventIsScheduledCall = r.bool(); + break; + } + case 45: { + m.eventExtraGuestsAllowed = r.bool(); + break; + } case 43: { m.plainProtobufBytes = r.bytes(); break; @@ -58777,6 +68339,25 @@ export const proto = $root.proto = (() => { m.pollContentType = 2; break; } + switch (d.pollType) { + default: + if (typeof d.pollType === "number") { + m.pollType = d.pollType; + break; + } + break; + case "POLL": + case 0: + m.pollType = 0; + break; + case "QUIZ": + case 1: + m.pollType = 1; + break; + } + if (d.correctOptionIndex != null) { + m.correctOptionIndex = d.correctOptionIndex | 0; + } if (d.pollVotesSnapshot != null) { if (typeof d.pollVotesSnapshot !== "object") throw TypeError(".proto.MsgOpaqueData.pollVotesSnapshot: object expected"); @@ -58855,6 +68436,12 @@ export const proto = $root.proto = (() => { else if (typeof d.eventEndTime === "object") m.eventEndTime = new $util.LongBits(d.eventEndTime.low >>> 0, d.eventEndTime.high >>> 0).toNumber(); } + if (d.eventIsScheduledCall != null) { + m.eventIsScheduledCall = Boolean(d.eventIsScheduledCall); + } + if (d.eventExtraGuestsAllowed != null) { + m.eventExtraGuestsAllowed = Boolean(d.eventExtraGuestsAllowed); + } if (d.plainProtobufBytes != null) { if (typeof d.plainProtobufBytes === "string") $util.base64.decode(d.plainProtobufBytes, m.plainProtobufBytes = $util.newBuffer($util.base64.length(d.plainProtobufBytes)), 0); @@ -59071,6 +68658,26 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._plainProtobufBytes = "plainProtobufBytes"; } + if (m.eventIsScheduledCall != null && m.hasOwnProperty("eventIsScheduledCall")) { + d.eventIsScheduledCall = m.eventIsScheduledCall; + if (o.oneofs) + d._eventIsScheduledCall = "eventIsScheduledCall"; + } + if (m.eventExtraGuestsAllowed != null && m.hasOwnProperty("eventExtraGuestsAllowed")) { + d.eventExtraGuestsAllowed = m.eventExtraGuestsAllowed; + if (o.oneofs) + d._eventExtraGuestsAllowed = "eventExtraGuestsAllowed"; + } + if (m.pollType != null && m.hasOwnProperty("pollType")) { + d.pollType = o.enums === String ? $root.proto.MsgOpaqueData.PollType[m.pollType] === undefined ? m.pollType : $root.proto.MsgOpaqueData.PollType[m.pollType] : m.pollType; + if (o.oneofs) + d._pollType = "pollType"; + } + if (m.correctOptionIndex != null && m.hasOwnProperty("correctOptionIndex")) { + d.correctOptionIndex = m.correctOptionIndex; + if (o.oneofs) + d._correctOptionIndex = "correctOptionIndex"; + } if (m.originalSelfAuthor != null && m.hasOwnProperty("originalSelfAuthor")) { d.originalSelfAuthor = m.originalSelfAuthor; if (o.oneofs) @@ -59403,6 +69010,13 @@ export const proto = $root.proto = (() => { return PollOption; })(); + MsgOpaqueData.PollType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "POLL"] = 0; + values[valuesById[1] = "QUIZ"] = 1; + return values; + })(); + MsgOpaqueData.PollVoteSnapshot = (function() { function PollVoteSnapshot(p) { @@ -59726,6 +69340,84 @@ export const proto = $root.proto = (() => { return MsgRowOpaqueData; })(); + proto.MutationProps = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[2] = "STAR_ACTION"] = 2; + values[valuesById[3] = "CONTACT_ACTION"] = 3; + values[valuesById[4] = "MUTE_ACTION"] = 4; + values[valuesById[5] = "PIN_ACTION"] = 5; + values[valuesById[6] = "SECURITY_NOTIFICATION_SETTING"] = 6; + values[valuesById[7] = "PUSH_NAME_SETTING"] = 7; + values[valuesById[8] = "QUICK_REPLY_ACTION"] = 8; + values[valuesById[11] = "RECENT_EMOJI_WEIGHTS_ACTION"] = 11; + values[valuesById[13] = "LABEL_MESSAGE_ACTION"] = 13; + values[valuesById[14] = "LABEL_EDIT_ACTION"] = 14; + values[valuesById[15] = "LABEL_ASSOCIATION_ACTION"] = 15; + values[valuesById[16] = "LOCALE_SETTING"] = 16; + values[valuesById[17] = "ARCHIVE_CHAT_ACTION"] = 17; + values[valuesById[18] = "DELETE_MESSAGE_FOR_ME_ACTION"] = 18; + values[valuesById[19] = "KEY_EXPIRATION"] = 19; + values[valuesById[20] = "MARK_CHAT_AS_READ_ACTION"] = 20; + values[valuesById[21] = "CLEAR_CHAT_ACTION"] = 21; + values[valuesById[22] = "DELETE_CHAT_ACTION"] = 22; + values[valuesById[23] = "UNARCHIVE_CHATS_SETTING"] = 23; + values[valuesById[24] = "PRIMARY_FEATURE"] = 24; + values[valuesById[26] = "ANDROID_UNSUPPORTED_ACTIONS"] = 26; + values[valuesById[27] = "AGENT_ACTION"] = 27; + values[valuesById[28] = "SUBSCRIPTION_ACTION"] = 28; + values[valuesById[29] = "USER_STATUS_MUTE_ACTION"] = 29; + values[valuesById[30] = "TIME_FORMAT_ACTION"] = 30; + values[valuesById[31] = "NUX_ACTION"] = 31; + values[valuesById[32] = "PRIMARY_VERSION_ACTION"] = 32; + values[valuesById[33] = "STICKER_ACTION"] = 33; + values[valuesById[34] = "REMOVE_RECENT_STICKER_ACTION"] = 34; + values[valuesById[35] = "CHAT_ASSIGNMENT"] = 35; + values[valuesById[36] = "CHAT_ASSIGNMENT_OPENED_STATUS"] = 36; + values[valuesById[37] = "PN_FOR_LID_CHAT_ACTION"] = 37; + values[valuesById[38] = "MARKETING_MESSAGE_ACTION"] = 38; + values[valuesById[39] = "MARKETING_MESSAGE_BROADCAST_ACTION"] = 39; + values[valuesById[40] = "EXTERNAL_WEB_BETA_ACTION"] = 40; + values[valuesById[41] = "PRIVACY_SETTING_RELAY_ALL_CALLS"] = 41; + values[valuesById[42] = "CALL_LOG_ACTION"] = 42; + values[valuesById[43] = "UGC_BOT"] = 43; + values[valuesById[44] = "STATUS_PRIVACY"] = 44; + values[valuesById[45] = "BOT_WELCOME_REQUEST_ACTION"] = 45; + values[valuesById[46] = "DELETE_INDIVIDUAL_CALL_LOG"] = 46; + values[valuesById[47] = "LABEL_REORDERING_ACTION"] = 47; + values[valuesById[48] = "PAYMENT_INFO_ACTION"] = 48; + values[valuesById[49] = "CUSTOM_PAYMENT_METHODS_ACTION"] = 49; + values[valuesById[50] = "LOCK_CHAT_ACTION"] = 50; + values[valuesById[51] = "CHAT_LOCK_SETTINGS"] = 51; + values[valuesById[52] = "WAMO_USER_IDENTIFIER_ACTION"] = 52; + values[valuesById[53] = "PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION"] = 53; + values[valuesById[54] = "DEVICE_CAPABILITIES"] = 54; + values[valuesById[55] = "NOTE_EDIT_ACTION"] = 55; + values[valuesById[56] = "FAVORITES_ACTION"] = 56; + values[valuesById[57] = "MERCHANT_PAYMENT_PARTNER_ACTION"] = 57; + values[valuesById[58] = "WAFFLE_ACCOUNT_LINK_STATE_ACTION"] = 58; + values[valuesById[59] = "USERNAME_CHAT_START_MODE"] = 59; + values[valuesById[60] = "NOTIFICATION_ACTIVITY_SETTING_ACTION"] = 60; + values[valuesById[61] = "LID_CONTACT_ACTION"] = 61; + values[valuesById[62] = "CTWA_PER_CUSTOMER_DATA_SHARING_ACTION"] = 62; + values[valuesById[63] = "PAYMENT_TOS_ACTION"] = 63; + values[valuesById[64] = "PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION"] = 64; + values[valuesById[65] = "BUSINESS_BROADCAST_ASSOCIATION_ACTION"] = 65; + values[valuesById[66] = "DETECTED_OUTCOMES_STATUS_ACTION"] = 66; + values[valuesById[68] = "MAIBA_AI_FEATURES_CONTROL_ACTION"] = 68; + values[valuesById[69] = "BUSINESS_BROADCAST_LIST_ACTION"] = 69; + values[valuesById[70] = "MUSIC_USER_ID_ACTION"] = 70; + values[valuesById[71] = "STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION"] = 71; + values[valuesById[72] = "AVATAR_UPDATED_ACTION"] = 72; + values[valuesById[73] = "GALAXY_FLOW_ACTION"] = 73; + values[valuesById[74] = "PRIVATE_PROCESSING_SETTING_ACTION"] = 74; + values[valuesById[75] = "NEWSLETTER_SAVED_INTERESTS_ACTION"] = 75; + values[valuesById[76] = "AI_THREAD_RENAME_ACTION"] = 76; + values[valuesById[77] = "INTERACTIVE_MESSAGE_ACTION"] = 77; + values[valuesById[10001] = "SHARE_OWN_PN"] = 10001; + values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002; + return values; + })(); + proto.NoiseCertificate = (function() { function NoiseCertificate(p) { @@ -61076,6 +70768,18 @@ export const proto = $root.proto = (() => { case 8: m.senderPlatform = 8; break; + case "WASG": + case 9: + m.senderPlatform = 9; + break; + case "WEARM": + case 10: + m.senderPlatform = 10; + break; + case "CAPI": + case 11: + m.senderPlatform = 11; + break; } if (d.isSenderPrimary != null) { m.isSenderPrimary = Boolean(d.isSenderPrimary); @@ -61167,6 +70871,9 @@ export const proto = $root.proto = (() => { values[valuesById[6] = "DARWIN"] = 6; values[valuesById[7] = "IPAD"] = 7; values[valuesById[8] = "WEAROS"] = 8; + values[valuesById[9] = "WASG"] = 9; + values[valuesById[10] = "WEARM"] = 10; + values[valuesById[11] = "CAPI"] = 11; return values; })(); @@ -64383,6 +74090,118 @@ export const proto = $root.proto = (() => { return Pushname; })(); + proto.QuarantinedMessage = (function() { + + function QuarantinedMessage(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + QuarantinedMessage.prototype.originalData = null; + QuarantinedMessage.prototype.extractedText = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(QuarantinedMessage.prototype, "_originalData", { + get: $util.oneOfGetter($oneOfFields = ["originalData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(QuarantinedMessage.prototype, "_extractedText", { + get: $util.oneOfGetter($oneOfFields = ["extractedText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + QuarantinedMessage.create = function create(properties) { + return new QuarantinedMessage(properties); + }; + + QuarantinedMessage.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.originalData != null && Object.hasOwnProperty.call(m, "originalData")) + w.uint32(10).bytes(m.originalData); + if (m.extractedText != null && Object.hasOwnProperty.call(m, "extractedText")) + w.uint32(18).string(m.extractedText); + return w; + }; + + QuarantinedMessage.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.QuarantinedMessage(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.originalData = r.bytes(); + break; + } + case 2: { + m.extractedText = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + QuarantinedMessage.fromObject = function fromObject(d) { + if (d instanceof $root.proto.QuarantinedMessage) + return d; + var m = new $root.proto.QuarantinedMessage(); + if (d.originalData != null) { + if (typeof d.originalData === "string") + $util.base64.decode(d.originalData, m.originalData = $util.newBuffer($util.base64.length(d.originalData)), 0); + else if (d.originalData.length >= 0) + m.originalData = d.originalData; + } + if (d.extractedText != null) { + m.extractedText = String(d.extractedText); + } + return m; + }; + + QuarantinedMessage.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.originalData != null && m.hasOwnProperty("originalData")) { + d.originalData = o.bytes === String ? $util.base64.encode(m.originalData, 0, m.originalData.length) : o.bytes === Array ? Array.prototype.slice.call(m.originalData) : m.originalData; + if (o.oneofs) + d._originalData = "originalData"; + } + if (m.extractedText != null && m.hasOwnProperty("extractedText")) { + d.extractedText = m.extractedText; + if (o.oneofs) + d._extractedText = "extractedText"; + } + return d; + }; + + QuarantinedMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + QuarantinedMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.QuarantinedMessage"; + }; + + return QuarantinedMessage; + })(); + proto.Reaction = (function() { function Reaction(p) { @@ -67191,6 +77010,156 @@ export const proto = $root.proto = (() => { return SessionStructure; })(); + proto.SessionTransparencyMetadata = (function() { + + function SessionTransparencyMetadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + SessionTransparencyMetadata.prototype.disclaimerText = null; + SessionTransparencyMetadata.prototype.hcaId = null; + SessionTransparencyMetadata.prototype.sessionTransparencyType = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SessionTransparencyMetadata.prototype, "_disclaimerText", { + get: $util.oneOfGetter($oneOfFields = ["disclaimerText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SessionTransparencyMetadata.prototype, "_hcaId", { + get: $util.oneOfGetter($oneOfFields = ["hcaId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SessionTransparencyMetadata.prototype, "_sessionTransparencyType", { + get: $util.oneOfGetter($oneOfFields = ["sessionTransparencyType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + SessionTransparencyMetadata.create = function create(properties) { + return new SessionTransparencyMetadata(properties); + }; + + SessionTransparencyMetadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.disclaimerText != null && Object.hasOwnProperty.call(m, "disclaimerText")) + w.uint32(10).string(m.disclaimerText); + if (m.hcaId != null && Object.hasOwnProperty.call(m, "hcaId")) + w.uint32(18).string(m.hcaId); + if (m.sessionTransparencyType != null && Object.hasOwnProperty.call(m, "sessionTransparencyType")) + w.uint32(24).int32(m.sessionTransparencyType); + return w; + }; + + SessionTransparencyMetadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SessionTransparencyMetadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.disclaimerText = r.string(); + break; + } + case 2: { + m.hcaId = r.string(); + break; + } + case 3: { + m.sessionTransparencyType = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + SessionTransparencyMetadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SessionTransparencyMetadata) + return d; + var m = new $root.proto.SessionTransparencyMetadata(); + if (d.disclaimerText != null) { + m.disclaimerText = String(d.disclaimerText); + } + if (d.hcaId != null) { + m.hcaId = String(d.hcaId); + } + switch (d.sessionTransparencyType) { + default: + if (typeof d.sessionTransparencyType === "number") { + m.sessionTransparencyType = d.sessionTransparencyType; + break; + } + break; + case "UNKNOWN_TYPE": + case 0: + m.sessionTransparencyType = 0; + break; + case "NY_AI_SAFETY_DISCLAIMER": + case 1: + m.sessionTransparencyType = 1; + break; + } + return m; + }; + + SessionTransparencyMetadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.disclaimerText != null && m.hasOwnProperty("disclaimerText")) { + d.disclaimerText = m.disclaimerText; + if (o.oneofs) + d._disclaimerText = "disclaimerText"; + } + if (m.hcaId != null && m.hasOwnProperty("hcaId")) { + d.hcaId = m.hcaId; + if (o.oneofs) + d._hcaId = "hcaId"; + } + if (m.sessionTransparencyType != null && m.hasOwnProperty("sessionTransparencyType")) { + d.sessionTransparencyType = o.enums === String ? $root.proto.SessionTransparencyType[m.sessionTransparencyType] === undefined ? m.sessionTransparencyType : $root.proto.SessionTransparencyType[m.sessionTransparencyType] : m.sessionTransparencyType; + if (o.oneofs) + d._sessionTransparencyType = "sessionTransparencyType"; + } + return d; + }; + + SessionTransparencyMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SessionTransparencyMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SessionTransparencyMetadata"; + }; + + return SessionTransparencyMetadata; + })(); + + proto.SessionTransparencyType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN_TYPE"] = 0; + values[valuesById[1] = "NY_AI_SAFETY_DISCLAIMER"] = 1; + return values; + })(); + proto.SignalMessage = (function() { function SignalMessage(p) { @@ -67539,6 +77508,1297 @@ export const proto = $root.proto = (() => { return SignedPreKeyRecordStructure; })(); + proto.StatusAttribution = (function() { + + function StatusAttribution(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + StatusAttribution.prototype.type = null; + StatusAttribution.prototype.actionUrl = null; + StatusAttribution.prototype.statusReshare = null; + StatusAttribution.prototype.externalShare = null; + StatusAttribution.prototype.music = null; + StatusAttribution.prototype.groupStatus = null; + StatusAttribution.prototype.rlAttribution = null; + StatusAttribution.prototype.aiCreatedAttribution = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusAttribution.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusAttribution.prototype, "_actionUrl", { + get: $util.oneOfGetter($oneOfFields = ["actionUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + Object.defineProperty(StatusAttribution.prototype, "attributionData", { + get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music", "groupStatus", "rlAttribution", "aiCreatedAttribution"]), + set: $util.oneOfSetter($oneOfFields) + }); + + StatusAttribution.create = function create(properties) { + return new StatusAttribution(properties); + }; + + StatusAttribution.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).int32(m.type); + if (m.actionUrl != null && Object.hasOwnProperty.call(m, "actionUrl")) + w.uint32(18).string(m.actionUrl); + if (m.statusReshare != null && Object.hasOwnProperty.call(m, "statusReshare")) + $root.proto.StatusAttribution.StatusReshare.encode(m.statusReshare, w.uint32(26).fork()).ldelim(); + if (m.externalShare != null && Object.hasOwnProperty.call(m, "externalShare")) + $root.proto.StatusAttribution.ExternalShare.encode(m.externalShare, w.uint32(34).fork()).ldelim(); + if (m.music != null && Object.hasOwnProperty.call(m, "music")) + $root.proto.StatusAttribution.Music.encode(m.music, w.uint32(42).fork()).ldelim(); + if (m.groupStatus != null && Object.hasOwnProperty.call(m, "groupStatus")) + $root.proto.StatusAttribution.GroupStatus.encode(m.groupStatus, w.uint32(50).fork()).ldelim(); + if (m.rlAttribution != null && Object.hasOwnProperty.call(m, "rlAttribution")) + $root.proto.StatusAttribution.RLAttribution.encode(m.rlAttribution, w.uint32(58).fork()).ldelim(); + if (m.aiCreatedAttribution != null && Object.hasOwnProperty.call(m, "aiCreatedAttribution")) + $root.proto.StatusAttribution.AiCreatedAttribution.encode(m.aiCreatedAttribution, w.uint32(66).fork()).ldelim(); + return w; + }; + + StatusAttribution.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.int32(); + break; + } + case 2: { + m.actionUrl = r.string(); + break; + } + case 3: { + m.statusReshare = $root.proto.StatusAttribution.StatusReshare.decode(r, r.uint32()); + break; + } + case 4: { + m.externalShare = $root.proto.StatusAttribution.ExternalShare.decode(r, r.uint32()); + break; + } + case 5: { + m.music = $root.proto.StatusAttribution.Music.decode(r, r.uint32()); + break; + } + case 6: { + m.groupStatus = $root.proto.StatusAttribution.GroupStatus.decode(r, r.uint32()); + break; + } + case 7: { + m.rlAttribution = $root.proto.StatusAttribution.RLAttribution.decode(r, r.uint32()); + break; + } + case 8: { + m.aiCreatedAttribution = $root.proto.StatusAttribution.AiCreatedAttribution.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + StatusAttribution.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution) + return d; + var m = new $root.proto.StatusAttribution(); + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "UNKNOWN": + case 0: + m.type = 0; + break; + case "RESHARE": + case 1: + m.type = 1; + break; + case "EXTERNAL_SHARE": + case 2: + m.type = 2; + break; + case "MUSIC": + case 3: + m.type = 3; + break; + case "STATUS_MENTION": + case 4: + m.type = 4; + break; + case "GROUP_STATUS": + case 5: + m.type = 5; + break; + case "RL_ATTRIBUTION": + case 6: + m.type = 6; + break; + case "AI_CREATED": + case 7: + m.type = 7; + break; + case "LAYOUTS": + case 8: + m.type = 8; + break; + } + if (d.actionUrl != null) { + m.actionUrl = String(d.actionUrl); + } + if (d.statusReshare != null) { + if (typeof d.statusReshare !== "object") + throw TypeError(".proto.StatusAttribution.statusReshare: object expected"); + m.statusReshare = $root.proto.StatusAttribution.StatusReshare.fromObject(d.statusReshare); + } + if (d.externalShare != null) { + if (typeof d.externalShare !== "object") + throw TypeError(".proto.StatusAttribution.externalShare: object expected"); + m.externalShare = $root.proto.StatusAttribution.ExternalShare.fromObject(d.externalShare); + } + if (d.music != null) { + if (typeof d.music !== "object") + throw TypeError(".proto.StatusAttribution.music: object expected"); + m.music = $root.proto.StatusAttribution.Music.fromObject(d.music); + } + if (d.groupStatus != null) { + if (typeof d.groupStatus !== "object") + throw TypeError(".proto.StatusAttribution.groupStatus: object expected"); + m.groupStatus = $root.proto.StatusAttribution.GroupStatus.fromObject(d.groupStatus); + } + if (d.rlAttribution != null) { + if (typeof d.rlAttribution !== "object") + throw TypeError(".proto.StatusAttribution.rlAttribution: object expected"); + m.rlAttribution = $root.proto.StatusAttribution.RLAttribution.fromObject(d.rlAttribution); + } + if (d.aiCreatedAttribution != null) { + if (typeof d.aiCreatedAttribution !== "object") + throw TypeError(".proto.StatusAttribution.aiCreatedAttribution: object expected"); + m.aiCreatedAttribution = $root.proto.StatusAttribution.AiCreatedAttribution.fromObject(d.aiCreatedAttribution); + } + return m; + }; + + StatusAttribution.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.StatusAttribution.Type[m.type] === undefined ? m.type : $root.proto.StatusAttribution.Type[m.type] : m.type; + if (o.oneofs) + d._type = "type"; + } + if (m.actionUrl != null && m.hasOwnProperty("actionUrl")) { + d.actionUrl = m.actionUrl; + if (o.oneofs) + d._actionUrl = "actionUrl"; + } + if (m.statusReshare != null && m.hasOwnProperty("statusReshare")) { + d.statusReshare = $root.proto.StatusAttribution.StatusReshare.toObject(m.statusReshare, o); + if (o.oneofs) + d.attributionData = "statusReshare"; + } + if (m.externalShare != null && m.hasOwnProperty("externalShare")) { + d.externalShare = $root.proto.StatusAttribution.ExternalShare.toObject(m.externalShare, o); + if (o.oneofs) + d.attributionData = "externalShare"; + } + if (m.music != null && m.hasOwnProperty("music")) { + d.music = $root.proto.StatusAttribution.Music.toObject(m.music, o); + if (o.oneofs) + d.attributionData = "music"; + } + if (m.groupStatus != null && m.hasOwnProperty("groupStatus")) { + d.groupStatus = $root.proto.StatusAttribution.GroupStatus.toObject(m.groupStatus, o); + if (o.oneofs) + d.attributionData = "groupStatus"; + } + if (m.rlAttribution != null && m.hasOwnProperty("rlAttribution")) { + d.rlAttribution = $root.proto.StatusAttribution.RLAttribution.toObject(m.rlAttribution, o); + if (o.oneofs) + d.attributionData = "rlAttribution"; + } + if (m.aiCreatedAttribution != null && m.hasOwnProperty("aiCreatedAttribution")) { + d.aiCreatedAttribution = $root.proto.StatusAttribution.AiCreatedAttribution.toObject(m.aiCreatedAttribution, o); + if (o.oneofs) + d.attributionData = "aiCreatedAttribution"; + } + return d; + }; + + StatusAttribution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StatusAttribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution"; + }; + + StatusAttribution.AiCreatedAttribution = (function() { + + function AiCreatedAttribution(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AiCreatedAttribution.prototype.source = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AiCreatedAttribution.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AiCreatedAttribution.create = function create(properties) { + return new AiCreatedAttribution(properties); + }; + + AiCreatedAttribution.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.source != null && Object.hasOwnProperty.call(m, "source")) + w.uint32(8).int32(m.source); + return w; + }; + + AiCreatedAttribution.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution.AiCreatedAttribution(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.source = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AiCreatedAttribution.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution.AiCreatedAttribution) + return d; + var m = new $root.proto.StatusAttribution.AiCreatedAttribution(); + switch (d.source) { + default: + if (typeof d.source === "number") { + m.source = d.source; + break; + } + break; + case "UNKNOWN": + case 0: + m.source = 0; + break; + case "STATUS_MIMICRY": + case 1: + m.source = 1; + break; + } + return m; + }; + + AiCreatedAttribution.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.source != null && m.hasOwnProperty("source")) { + d.source = o.enums === String ? $root.proto.StatusAttribution.AiCreatedAttribution.Source[m.source] === undefined ? m.source : $root.proto.StatusAttribution.AiCreatedAttribution.Source[m.source] : m.source; + if (o.oneofs) + d._source = "source"; + } + return d; + }; + + AiCreatedAttribution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AiCreatedAttribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution.AiCreatedAttribution"; + }; + + AiCreatedAttribution.Source = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "STATUS_MIMICRY"] = 1; + return values; + })(); + + return AiCreatedAttribution; + })(); + + StatusAttribution.ExternalShare = (function() { + + function ExternalShare(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + ExternalShare.prototype.actionUrl = null; + ExternalShare.prototype.source = null; + ExternalShare.prototype.duration = null; + ExternalShare.prototype.actionFallbackUrl = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalShare.prototype, "_actionUrl", { + get: $util.oneOfGetter($oneOfFields = ["actionUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalShare.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalShare.prototype, "_duration", { + get: $util.oneOfGetter($oneOfFields = ["duration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalShare.prototype, "_actionFallbackUrl", { + get: $util.oneOfGetter($oneOfFields = ["actionFallbackUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + ExternalShare.create = function create(properties) { + return new ExternalShare(properties); + }; + + ExternalShare.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.actionUrl != null && Object.hasOwnProperty.call(m, "actionUrl")) + w.uint32(10).string(m.actionUrl); + if (m.source != null && Object.hasOwnProperty.call(m, "source")) + w.uint32(16).int32(m.source); + if (m.duration != null && Object.hasOwnProperty.call(m, "duration")) + w.uint32(24).int32(m.duration); + if (m.actionFallbackUrl != null && Object.hasOwnProperty.call(m, "actionFallbackUrl")) + w.uint32(34).string(m.actionFallbackUrl); + return w; + }; + + ExternalShare.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution.ExternalShare(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.actionUrl = r.string(); + break; + } + case 2: { + m.source = r.int32(); + break; + } + case 3: { + m.duration = r.int32(); + break; + } + case 4: { + m.actionFallbackUrl = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + ExternalShare.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution.ExternalShare) + return d; + var m = new $root.proto.StatusAttribution.ExternalShare(); + if (d.actionUrl != null) { + m.actionUrl = String(d.actionUrl); + } + switch (d.source) { + default: + if (typeof d.source === "number") { + m.source = d.source; + break; + } + break; + case "UNKNOWN": + case 0: + m.source = 0; + break; + case "INSTAGRAM": + case 1: + m.source = 1; + break; + case "FACEBOOK": + case 2: + m.source = 2; + break; + case "MESSENGER": + case 3: + m.source = 3; + break; + case "SPOTIFY": + case 4: + m.source = 4; + break; + case "YOUTUBE": + case 5: + m.source = 5; + break; + case "PINTEREST": + case 6: + m.source = 6; + break; + case "THREADS": + case 7: + m.source = 7; + break; + case "APPLE_MUSIC": + case 8: + m.source = 8; + break; + case "SHARECHAT": + case 9: + m.source = 9; + break; + case "GOOGLE_PHOTOS": + case 10: + m.source = 10; + break; + } + if (d.duration != null) { + m.duration = d.duration | 0; + } + if (d.actionFallbackUrl != null) { + m.actionFallbackUrl = String(d.actionFallbackUrl); + } + return m; + }; + + ExternalShare.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.actionUrl != null && m.hasOwnProperty("actionUrl")) { + d.actionUrl = m.actionUrl; + if (o.oneofs) + d._actionUrl = "actionUrl"; + } + if (m.source != null && m.hasOwnProperty("source")) { + d.source = o.enums === String ? $root.proto.StatusAttribution.ExternalShare.Source[m.source] === undefined ? m.source : $root.proto.StatusAttribution.ExternalShare.Source[m.source] : m.source; + if (o.oneofs) + d._source = "source"; + } + if (m.duration != null && m.hasOwnProperty("duration")) { + d.duration = m.duration; + if (o.oneofs) + d._duration = "duration"; + } + if (m.actionFallbackUrl != null && m.hasOwnProperty("actionFallbackUrl")) { + d.actionFallbackUrl = m.actionFallbackUrl; + if (o.oneofs) + d._actionFallbackUrl = "actionFallbackUrl"; + } + return d; + }; + + ExternalShare.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ExternalShare.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution.ExternalShare"; + }; + + ExternalShare.Source = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "INSTAGRAM"] = 1; + values[valuesById[2] = "FACEBOOK"] = 2; + values[valuesById[3] = "MESSENGER"] = 3; + values[valuesById[4] = "SPOTIFY"] = 4; + values[valuesById[5] = "YOUTUBE"] = 5; + values[valuesById[6] = "PINTEREST"] = 6; + values[valuesById[7] = "THREADS"] = 7; + values[valuesById[8] = "APPLE_MUSIC"] = 8; + values[valuesById[9] = "SHARECHAT"] = 9; + values[valuesById[10] = "GOOGLE_PHOTOS"] = 10; + return values; + })(); + + return ExternalShare; + })(); + + StatusAttribution.GroupStatus = (function() { + + function GroupStatus(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + GroupStatus.prototype.authorJid = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GroupStatus.prototype, "_authorJid", { + get: $util.oneOfGetter($oneOfFields = ["authorJid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + GroupStatus.create = function create(properties) { + return new GroupStatus(properties); + }; + + GroupStatus.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.authorJid != null && Object.hasOwnProperty.call(m, "authorJid")) + w.uint32(10).string(m.authorJid); + return w; + }; + + GroupStatus.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution.GroupStatus(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.authorJid = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + GroupStatus.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution.GroupStatus) + return d; + var m = new $root.proto.StatusAttribution.GroupStatus(); + if (d.authorJid != null) { + m.authorJid = String(d.authorJid); + } + return m; + }; + + GroupStatus.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.authorJid != null && m.hasOwnProperty("authorJid")) { + d.authorJid = m.authorJid; + if (o.oneofs) + d._authorJid = "authorJid"; + } + return d; + }; + + GroupStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + GroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution.GroupStatus"; + }; + + return GroupStatus; + })(); + + StatusAttribution.Music = (function() { + + function Music(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + Music.prototype.authorName = null; + Music.prototype.songId = null; + Music.prototype.title = null; + Music.prototype.author = null; + Music.prototype.artistAttribution = null; + Music.prototype.isExplicit = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Music.prototype, "_authorName", { + get: $util.oneOfGetter($oneOfFields = ["authorName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Music.prototype, "_songId", { + get: $util.oneOfGetter($oneOfFields = ["songId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Music.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Music.prototype, "_author", { + get: $util.oneOfGetter($oneOfFields = ["author"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Music.prototype, "_artistAttribution", { + get: $util.oneOfGetter($oneOfFields = ["artistAttribution"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Music.prototype, "_isExplicit", { + get: $util.oneOfGetter($oneOfFields = ["isExplicit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + Music.create = function create(properties) { + return new Music(properties); + }; + + Music.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.authorName != null && Object.hasOwnProperty.call(m, "authorName")) + w.uint32(10).string(m.authorName); + if (m.songId != null && Object.hasOwnProperty.call(m, "songId")) + w.uint32(18).string(m.songId); + if (m.title != null && Object.hasOwnProperty.call(m, "title")) + w.uint32(26).string(m.title); + if (m.author != null && Object.hasOwnProperty.call(m, "author")) + w.uint32(34).string(m.author); + if (m.artistAttribution != null && Object.hasOwnProperty.call(m, "artistAttribution")) + w.uint32(42).string(m.artistAttribution); + if (m.isExplicit != null && Object.hasOwnProperty.call(m, "isExplicit")) + w.uint32(48).bool(m.isExplicit); + return w; + }; + + Music.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution.Music(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.authorName = r.string(); + break; + } + case 2: { + m.songId = r.string(); + break; + } + case 3: { + m.title = r.string(); + break; + } + case 4: { + m.author = r.string(); + break; + } + case 5: { + m.artistAttribution = r.string(); + break; + } + case 6: { + m.isExplicit = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + Music.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution.Music) + return d; + var m = new $root.proto.StatusAttribution.Music(); + if (d.authorName != null) { + m.authorName = String(d.authorName); + } + if (d.songId != null) { + m.songId = String(d.songId); + } + if (d.title != null) { + m.title = String(d.title); + } + if (d.author != null) { + m.author = String(d.author); + } + if (d.artistAttribution != null) { + m.artistAttribution = String(d.artistAttribution); + } + if (d.isExplicit != null) { + m.isExplicit = Boolean(d.isExplicit); + } + return m; + }; + + Music.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.authorName != null && m.hasOwnProperty("authorName")) { + d.authorName = m.authorName; + if (o.oneofs) + d._authorName = "authorName"; + } + if (m.songId != null && m.hasOwnProperty("songId")) { + d.songId = m.songId; + if (o.oneofs) + d._songId = "songId"; + } + if (m.title != null && m.hasOwnProperty("title")) { + d.title = m.title; + if (o.oneofs) + d._title = "title"; + } + if (m.author != null && m.hasOwnProperty("author")) { + d.author = m.author; + if (o.oneofs) + d._author = "author"; + } + if (m.artistAttribution != null && m.hasOwnProperty("artistAttribution")) { + d.artistAttribution = m.artistAttribution; + if (o.oneofs) + d._artistAttribution = "artistAttribution"; + } + if (m.isExplicit != null && m.hasOwnProperty("isExplicit")) { + d.isExplicit = m.isExplicit; + if (o.oneofs) + d._isExplicit = "isExplicit"; + } + return d; + }; + + Music.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Music.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution.Music"; + }; + + return Music; + })(); + + StatusAttribution.RLAttribution = (function() { + + function RLAttribution(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + RLAttribution.prototype.source = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RLAttribution.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + RLAttribution.create = function create(properties) { + return new RLAttribution(properties); + }; + + RLAttribution.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.source != null && Object.hasOwnProperty.call(m, "source")) + w.uint32(8).int32(m.source); + return w; + }; + + RLAttribution.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution.RLAttribution(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.source = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + RLAttribution.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution.RLAttribution) + return d; + var m = new $root.proto.StatusAttribution.RLAttribution(); + switch (d.source) { + default: + if (typeof d.source === "number") { + m.source = d.source; + break; + } + break; + case "UNKNOWN": + case 0: + m.source = 0; + break; + case "RAY_BAN_META_GLASSES": + case 1: + m.source = 1; + break; + case "OAKLEY_META_GLASSES": + case 2: + m.source = 2; + break; + case "HYPERNOVA_GLASSES": + case 3: + m.source = 3; + break; + } + return m; + }; + + RLAttribution.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.source != null && m.hasOwnProperty("source")) { + d.source = o.enums === String ? $root.proto.StatusAttribution.RLAttribution.Source[m.source] === undefined ? m.source : $root.proto.StatusAttribution.RLAttribution.Source[m.source] : m.source; + if (o.oneofs) + d._source = "source"; + } + return d; + }; + + RLAttribution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + RLAttribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution.RLAttribution"; + }; + + RLAttribution.Source = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "RAY_BAN_META_GLASSES"] = 1; + values[valuesById[2] = "OAKLEY_META_GLASSES"] = 2; + values[valuesById[3] = "HYPERNOVA_GLASSES"] = 3; + return values; + })(); + + return RLAttribution; + })(); + + StatusAttribution.StatusReshare = (function() { + + function StatusReshare(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + StatusReshare.prototype.source = null; + StatusReshare.prototype.metadata = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusReshare.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusReshare.prototype, "_metadata", { + get: $util.oneOfGetter($oneOfFields = ["metadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + StatusReshare.create = function create(properties) { + return new StatusReshare(properties); + }; + + StatusReshare.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.source != null && Object.hasOwnProperty.call(m, "source")) + w.uint32(8).int32(m.source); + if (m.metadata != null && Object.hasOwnProperty.call(m, "metadata")) + $root.proto.StatusAttribution.StatusReshare.Metadata.encode(m.metadata, w.uint32(18).fork()).ldelim(); + return w; + }; + + StatusReshare.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution.StatusReshare(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.source = r.int32(); + break; + } + case 2: { + m.metadata = $root.proto.StatusAttribution.StatusReshare.Metadata.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + StatusReshare.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution.StatusReshare) + return d; + var m = new $root.proto.StatusAttribution.StatusReshare(); + switch (d.source) { + default: + if (typeof d.source === "number") { + m.source = d.source; + break; + } + break; + case "UNKNOWN": + case 0: + m.source = 0; + break; + case "INTERNAL_RESHARE": + case 1: + m.source = 1; + break; + case "MENTION_RESHARE": + case 2: + m.source = 2; + break; + case "CHANNEL_RESHARE": + case 3: + m.source = 3; + break; + case "FORWARD": + case 4: + m.source = 4; + break; + } + if (d.metadata != null) { + if (typeof d.metadata !== "object") + throw TypeError(".proto.StatusAttribution.StatusReshare.metadata: object expected"); + m.metadata = $root.proto.StatusAttribution.StatusReshare.Metadata.fromObject(d.metadata); + } + return m; + }; + + StatusReshare.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.source != null && m.hasOwnProperty("source")) { + d.source = o.enums === String ? $root.proto.StatusAttribution.StatusReshare.Source[m.source] === undefined ? m.source : $root.proto.StatusAttribution.StatusReshare.Source[m.source] : m.source; + if (o.oneofs) + d._source = "source"; + } + if (m.metadata != null && m.hasOwnProperty("metadata")) { + d.metadata = $root.proto.StatusAttribution.StatusReshare.Metadata.toObject(m.metadata, o); + if (o.oneofs) + d._metadata = "metadata"; + } + return d; + }; + + StatusReshare.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StatusReshare.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution.StatusReshare"; + }; + + StatusReshare.Metadata = (function() { + + function Metadata(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + Metadata.prototype.duration = null; + Metadata.prototype.channelJid = null; + Metadata.prototype.channelMessageId = null; + Metadata.prototype.hasMultipleReshares = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Metadata.prototype, "_duration", { + get: $util.oneOfGetter($oneOfFields = ["duration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Metadata.prototype, "_channelJid", { + get: $util.oneOfGetter($oneOfFields = ["channelJid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Metadata.prototype, "_channelMessageId", { + get: $util.oneOfGetter($oneOfFields = ["channelMessageId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Metadata.prototype, "_hasMultipleReshares", { + get: $util.oneOfGetter($oneOfFields = ["hasMultipleReshares"]), + set: $util.oneOfSetter($oneOfFields) + }); + + Metadata.create = function create(properties) { + return new Metadata(properties); + }; + + Metadata.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.duration != null && Object.hasOwnProperty.call(m, "duration")) + w.uint32(8).int32(m.duration); + if (m.channelJid != null && Object.hasOwnProperty.call(m, "channelJid")) + w.uint32(18).string(m.channelJid); + if (m.channelMessageId != null && Object.hasOwnProperty.call(m, "channelMessageId")) + w.uint32(24).int32(m.channelMessageId); + if (m.hasMultipleReshares != null && Object.hasOwnProperty.call(m, "hasMultipleReshares")) + w.uint32(32).bool(m.hasMultipleReshares); + return w; + }; + + Metadata.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.StatusAttribution.StatusReshare.Metadata(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.duration = r.int32(); + break; + } + case 2: { + m.channelJid = r.string(); + break; + } + case 3: { + m.channelMessageId = r.int32(); + break; + } + case 4: { + m.hasMultipleReshares = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + Metadata.fromObject = function fromObject(d) { + if (d instanceof $root.proto.StatusAttribution.StatusReshare.Metadata) + return d; + var m = new $root.proto.StatusAttribution.StatusReshare.Metadata(); + if (d.duration != null) { + m.duration = d.duration | 0; + } + if (d.channelJid != null) { + m.channelJid = String(d.channelJid); + } + if (d.channelMessageId != null) { + m.channelMessageId = d.channelMessageId | 0; + } + if (d.hasMultipleReshares != null) { + m.hasMultipleReshares = Boolean(d.hasMultipleReshares); + } + return m; + }; + + Metadata.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.duration != null && m.hasOwnProperty("duration")) { + d.duration = m.duration; + if (o.oneofs) + d._duration = "duration"; + } + if (m.channelJid != null && m.hasOwnProperty("channelJid")) { + d.channelJid = m.channelJid; + if (o.oneofs) + d._channelJid = "channelJid"; + } + if (m.channelMessageId != null && m.hasOwnProperty("channelMessageId")) { + d.channelMessageId = m.channelMessageId; + if (o.oneofs) + d._channelMessageId = "channelMessageId"; + } + if (m.hasMultipleReshares != null && m.hasOwnProperty("hasMultipleReshares")) { + d.hasMultipleReshares = m.hasMultipleReshares; + if (o.oneofs) + d._hasMultipleReshares = "hasMultipleReshares"; + } + return d; + }; + + Metadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Metadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.StatusAttribution.StatusReshare.Metadata"; + }; + + return Metadata; + })(); + + StatusReshare.Source = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "INTERNAL_RESHARE"] = 1; + values[valuesById[2] = "MENTION_RESHARE"] = 2; + values[valuesById[3] = "CHANNEL_RESHARE"] = 3; + values[valuesById[4] = "FORWARD"] = 4; + return values; + })(); + + return StatusReshare; + })(); + + StatusAttribution.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "RESHARE"] = 1; + values[valuesById[2] = "EXTERNAL_SHARE"] = 2; + values[valuesById[3] = "MUSIC"] = 3; + values[valuesById[4] = "STATUS_MENTION"] = 4; + values[valuesById[5] = "GROUP_STATUS"] = 5; + values[valuesById[6] = "RL_ATTRIBUTION"] = 6; + values[valuesById[7] = "AI_CREATED"] = 7; + values[valuesById[8] = "LAYOUTS"] = 8; + return values; + })(); + + return StatusAttribution; + })(); + proto.StatusMentionMessage = (function() { function StatusMentionMessage(p) { @@ -67778,6 +79038,8 @@ export const proto = $root.proto = (() => { StickerMetadata.prototype.weight = null; StickerMetadata.prototype.lastStickerSentTs = null; StickerMetadata.prototype.isLottie = null; + StickerMetadata.prototype.imageHash = null; + StickerMetadata.prototype.isAvatarSticker = null; let $oneOfFields; @@ -67853,6 +79115,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(StickerMetadata.prototype, "_imageHash", { + get: $util.oneOfGetter($oneOfFields = ["imageHash"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StickerMetadata.prototype, "_isAvatarSticker", { + get: $util.oneOfGetter($oneOfFields = ["isAvatarSticker"]), + set: $util.oneOfSetter($oneOfFields) + }); + StickerMetadata.create = function create(properties) { return new StickerMetadata(properties); }; @@ -67884,6 +79158,10 @@ export const proto = $root.proto = (() => { w.uint32(88).int64(m.lastStickerSentTs); if (m.isLottie != null && Object.hasOwnProperty.call(m, "isLottie")) w.uint32(96).bool(m.isLottie); + if (m.imageHash != null && Object.hasOwnProperty.call(m, "imageHash")) + w.uint32(106).string(m.imageHash); + if (m.isAvatarSticker != null && Object.hasOwnProperty.call(m, "isAvatarSticker")) + w.uint32(112).bool(m.isAvatarSticker); return w; }; @@ -67944,6 +79222,14 @@ export const proto = $root.proto = (() => { m.isLottie = r.bool(); break; } + case 13: { + m.imageHash = r.string(); + break; + } + case 14: { + m.isAvatarSticker = r.bool(); + break; + } default: r.skipType(t & 7); break; @@ -68015,6 +79301,12 @@ export const proto = $root.proto = (() => { if (d.isLottie != null) { m.isLottie = Boolean(d.isLottie); } + if (d.imageHash != null) { + m.imageHash = String(d.imageHash); + } + if (d.isAvatarSticker != null) { + m.isAvatarSticker = Boolean(d.isAvatarSticker); + } return m; }; @@ -68088,6 +79380,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._isLottie = "isLottie"; } + if (m.imageHash != null && m.hasOwnProperty("imageHash")) { + d.imageHash = m.imageHash; + if (o.oneofs) + d._imageHash = "imageHash"; + } + if (m.isAvatarSticker != null && m.hasOwnProperty("isAvatarSticker")) { + d.isAvatarSticker = m.isAvatarSticker; + if (o.oneofs) + d._isAvatarSticker = "isAvatarSticker"; + } return d; }; @@ -68278,7 +79580,6 @@ export const proto = $root.proto = (() => { SyncActionValue.prototype.contactAction = null; SyncActionValue.prototype.muteAction = null; SyncActionValue.prototype.pinAction = null; - SyncActionValue.prototype.securityNotificationSetting = null; SyncActionValue.prototype.pushNameSetting = null; SyncActionValue.prototype.quickReplyAction = null; SyncActionValue.prototype.recentEmojiWeightsAction = null; @@ -68310,6 +79611,7 @@ export const proto = $root.proto = (() => { SyncActionValue.prototype.externalWebBetaAction = null; SyncActionValue.prototype.privacySettingRelayAllCalls = null; SyncActionValue.prototype.callLogAction = null; + SyncActionValue.prototype.ugcBot = null; SyncActionValue.prototype.statusPrivacy = null; SyncActionValue.prototype.botWelcomeRequestAction = null; SyncActionValue.prototype.deleteIndividualCallLog = null; @@ -68330,6 +79632,18 @@ export const proto = $root.proto = (() => { SyncActionValue.prototype.lidContactAction = null; SyncActionValue.prototype.ctwaPerCustomerDataSharingAction = null; SyncActionValue.prototype.paymentTosAction = null; + SyncActionValue.prototype.privacySettingChannelsPersonalisedRecommendationAction = null; + SyncActionValue.prototype.businessBroadcastAssociationAction = null; + SyncActionValue.prototype.detectedOutcomesStatusAction = null; + SyncActionValue.prototype.maibaAiFeaturesControlAction = null; + SyncActionValue.prototype.businessBroadcastListAction = null; + SyncActionValue.prototype.musicUserIdAction = null; + SyncActionValue.prototype.statusPostOptInNotificationPreferencesAction = null; + SyncActionValue.prototype.avatarUpdatedAction = null; + SyncActionValue.prototype.privateProcessingSettingAction = null; + SyncActionValue.prototype.newsletterSavedInterestsAction = null; + SyncActionValue.prototype.aiThreadRenameAction = null; + SyncActionValue.prototype.interactiveMessageAction = null; let $oneOfFields; @@ -68363,12 +79677,6 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(SyncActionValue.prototype, "_securityNotificationSetting", { - get: $util.oneOfGetter($oneOfFields = ["securityNotificationSetting"]), - set: $util.oneOfSetter($oneOfFields) - }); - // Virtual OneOf for proto3 optional field Object.defineProperty(SyncActionValue.prototype, "_pushNameSetting", { get: $util.oneOfGetter($oneOfFields = ["pushNameSetting"]), @@ -68555,6 +79863,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_ugcBot", { + get: $util.oneOfGetter($oneOfFields = ["ugcBot"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(SyncActionValue.prototype, "_statusPrivacy", { get: $util.oneOfGetter($oneOfFields = ["statusPrivacy"]), @@ -68675,6 +79989,78 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_privacySettingChannelsPersonalisedRecommendationAction", { + get: $util.oneOfGetter($oneOfFields = ["privacySettingChannelsPersonalisedRecommendationAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_businessBroadcastAssociationAction", { + get: $util.oneOfGetter($oneOfFields = ["businessBroadcastAssociationAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_detectedOutcomesStatusAction", { + get: $util.oneOfGetter($oneOfFields = ["detectedOutcomesStatusAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_maibaAiFeaturesControlAction", { + get: $util.oneOfGetter($oneOfFields = ["maibaAiFeaturesControlAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_businessBroadcastListAction", { + get: $util.oneOfGetter($oneOfFields = ["businessBroadcastListAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_musicUserIdAction", { + get: $util.oneOfGetter($oneOfFields = ["musicUserIdAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_statusPostOptInNotificationPreferencesAction", { + get: $util.oneOfGetter($oneOfFields = ["statusPostOptInNotificationPreferencesAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_avatarUpdatedAction", { + get: $util.oneOfGetter($oneOfFields = ["avatarUpdatedAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_privateProcessingSettingAction", { + get: $util.oneOfGetter($oneOfFields = ["privateProcessingSettingAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_newsletterSavedInterestsAction", { + get: $util.oneOfGetter($oneOfFields = ["newsletterSavedInterestsAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_aiThreadRenameAction", { + get: $util.oneOfGetter($oneOfFields = ["aiThreadRenameAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SyncActionValue.prototype, "_interactiveMessageAction", { + get: $util.oneOfGetter($oneOfFields = ["interactiveMessageAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + SyncActionValue.create = function create(properties) { return new SyncActionValue(properties); }; @@ -68692,8 +80078,6 @@ export const proto = $root.proto = (() => { $root.proto.SyncActionValue.MuteAction.encode(m.muteAction, w.uint32(34).fork()).ldelim(); if (m.pinAction != null && Object.hasOwnProperty.call(m, "pinAction")) $root.proto.SyncActionValue.PinAction.encode(m.pinAction, w.uint32(42).fork()).ldelim(); - if (m.securityNotificationSetting != null && Object.hasOwnProperty.call(m, "securityNotificationSetting")) - $root.proto.SyncActionValue.SecurityNotificationSetting.encode(m.securityNotificationSetting, w.uint32(50).fork()).ldelim(); if (m.pushNameSetting != null && Object.hasOwnProperty.call(m, "pushNameSetting")) $root.proto.SyncActionValue.PushNameSetting.encode(m.pushNameSetting, w.uint32(58).fork()).ldelim(); if (m.quickReplyAction != null && Object.hasOwnProperty.call(m, "quickReplyAction")) @@ -68756,6 +80140,8 @@ export const proto = $root.proto = (() => { $root.proto.SyncActionValue.PrivacySettingRelayAllCalls.encode(m.privacySettingRelayAllCalls, w.uint32(330).fork()).ldelim(); if (m.callLogAction != null && Object.hasOwnProperty.call(m, "callLogAction")) $root.proto.SyncActionValue.CallLogAction.encode(m.callLogAction, w.uint32(338).fork()).ldelim(); + if (m.ugcBot != null && Object.hasOwnProperty.call(m, "ugcBot")) + $root.proto.SyncActionValue.UGCBot.encode(m.ugcBot, w.uint32(346).fork()).ldelim(); if (m.statusPrivacy != null && Object.hasOwnProperty.call(m, "statusPrivacy")) $root.proto.SyncActionValue.StatusPrivacyAction.encode(m.statusPrivacy, w.uint32(354).fork()).ldelim(); if (m.botWelcomeRequestAction != null && Object.hasOwnProperty.call(m, "botWelcomeRequestAction")) @@ -68796,6 +80182,30 @@ export const proto = $root.proto = (() => { $root.proto.SyncActionValue.CtwaPerCustomerDataSharingAction.encode(m.ctwaPerCustomerDataSharingAction, w.uint32(498).fork()).ldelim(); if (m.paymentTosAction != null && Object.hasOwnProperty.call(m, "paymentTosAction")) $root.proto.SyncActionValue.PaymentTosAction.encode(m.paymentTosAction, w.uint32(506).fork()).ldelim(); + if (m.privacySettingChannelsPersonalisedRecommendationAction != null && Object.hasOwnProperty.call(m, "privacySettingChannelsPersonalisedRecommendationAction")) + $root.proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction.encode(m.privacySettingChannelsPersonalisedRecommendationAction, w.uint32(514).fork()).ldelim(); + if (m.businessBroadcastAssociationAction != null && Object.hasOwnProperty.call(m, "businessBroadcastAssociationAction")) + $root.proto.SyncActionValue.BusinessBroadcastAssociationAction.encode(m.businessBroadcastAssociationAction, w.uint32(522).fork()).ldelim(); + if (m.detectedOutcomesStatusAction != null && Object.hasOwnProperty.call(m, "detectedOutcomesStatusAction")) + $root.proto.SyncActionValue.DetectedOutcomesStatusAction.encode(m.detectedOutcomesStatusAction, w.uint32(530).fork()).ldelim(); + if (m.maibaAiFeaturesControlAction != null && Object.hasOwnProperty.call(m, "maibaAiFeaturesControlAction")) + $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.encode(m.maibaAiFeaturesControlAction, w.uint32(546).fork()).ldelim(); + if (m.businessBroadcastListAction != null && Object.hasOwnProperty.call(m, "businessBroadcastListAction")) + $root.proto.SyncActionValue.BusinessBroadcastListAction.encode(m.businessBroadcastListAction, w.uint32(554).fork()).ldelim(); + if (m.musicUserIdAction != null && Object.hasOwnProperty.call(m, "musicUserIdAction")) + $root.proto.SyncActionValue.MusicUserIdAction.encode(m.musicUserIdAction, w.uint32(562).fork()).ldelim(); + if (m.statusPostOptInNotificationPreferencesAction != null && Object.hasOwnProperty.call(m, "statusPostOptInNotificationPreferencesAction")) + $root.proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction.encode(m.statusPostOptInNotificationPreferencesAction, w.uint32(570).fork()).ldelim(); + if (m.avatarUpdatedAction != null && Object.hasOwnProperty.call(m, "avatarUpdatedAction")) + $root.proto.SyncActionValue.AvatarUpdatedAction.encode(m.avatarUpdatedAction, w.uint32(578).fork()).ldelim(); + if (m.privateProcessingSettingAction != null && Object.hasOwnProperty.call(m, "privateProcessingSettingAction")) + $root.proto.SyncActionValue.PrivateProcessingSettingAction.encode(m.privateProcessingSettingAction, w.uint32(594).fork()).ldelim(); + if (m.newsletterSavedInterestsAction != null && Object.hasOwnProperty.call(m, "newsletterSavedInterestsAction")) + $root.proto.SyncActionValue.NewsletterSavedInterestsAction.encode(m.newsletterSavedInterestsAction, w.uint32(602).fork()).ldelim(); + if (m.aiThreadRenameAction != null && Object.hasOwnProperty.call(m, "aiThreadRenameAction")) + $root.proto.SyncActionValue.AiThreadRenameAction.encode(m.aiThreadRenameAction, w.uint32(610).fork()).ldelim(); + if (m.interactiveMessageAction != null && Object.hasOwnProperty.call(m, "interactiveMessageAction")) + $root.proto.SyncActionValue.InteractiveMessageAction.encode(m.interactiveMessageAction, w.uint32(618).fork()).ldelim(); return w; }; @@ -68828,10 +80238,6 @@ export const proto = $root.proto = (() => { m.pinAction = $root.proto.SyncActionValue.PinAction.decode(r, r.uint32()); break; } - case 6: { - m.securityNotificationSetting = $root.proto.SyncActionValue.SecurityNotificationSetting.decode(r, r.uint32()); - break; - } case 7: { m.pushNameSetting = $root.proto.SyncActionValue.PushNameSetting.decode(r, r.uint32()); break; @@ -68956,6 +80362,10 @@ export const proto = $root.proto = (() => { m.callLogAction = $root.proto.SyncActionValue.CallLogAction.decode(r, r.uint32()); break; } + case 43: { + m.ugcBot = $root.proto.SyncActionValue.UGCBot.decode(r, r.uint32()); + break; + } case 44: { m.statusPrivacy = $root.proto.SyncActionValue.StatusPrivacyAction.decode(r, r.uint32()); break; @@ -69036,6 +80446,54 @@ export const proto = $root.proto = (() => { m.paymentTosAction = $root.proto.SyncActionValue.PaymentTosAction.decode(r, r.uint32()); break; } + case 64: { + m.privacySettingChannelsPersonalisedRecommendationAction = $root.proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction.decode(r, r.uint32()); + break; + } + case 65: { + m.businessBroadcastAssociationAction = $root.proto.SyncActionValue.BusinessBroadcastAssociationAction.decode(r, r.uint32()); + break; + } + case 66: { + m.detectedOutcomesStatusAction = $root.proto.SyncActionValue.DetectedOutcomesStatusAction.decode(r, r.uint32()); + break; + } + case 68: { + m.maibaAiFeaturesControlAction = $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.decode(r, r.uint32()); + break; + } + case 69: { + m.businessBroadcastListAction = $root.proto.SyncActionValue.BusinessBroadcastListAction.decode(r, r.uint32()); + break; + } + case 70: { + m.musicUserIdAction = $root.proto.SyncActionValue.MusicUserIdAction.decode(r, r.uint32()); + break; + } + case 71: { + m.statusPostOptInNotificationPreferencesAction = $root.proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction.decode(r, r.uint32()); + break; + } + case 72: { + m.avatarUpdatedAction = $root.proto.SyncActionValue.AvatarUpdatedAction.decode(r, r.uint32()); + break; + } + case 74: { + m.privateProcessingSettingAction = $root.proto.SyncActionValue.PrivateProcessingSettingAction.decode(r, r.uint32()); + break; + } + case 75: { + m.newsletterSavedInterestsAction = $root.proto.SyncActionValue.NewsletterSavedInterestsAction.decode(r, r.uint32()); + break; + } + case 76: { + m.aiThreadRenameAction = $root.proto.SyncActionValue.AiThreadRenameAction.decode(r, r.uint32()); + break; + } + case 77: { + m.interactiveMessageAction = $root.proto.SyncActionValue.InteractiveMessageAction.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -69078,11 +80536,6 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.SyncActionValue.pinAction: object expected"); m.pinAction = $root.proto.SyncActionValue.PinAction.fromObject(d.pinAction); } - if (d.securityNotificationSetting != null) { - if (typeof d.securityNotificationSetting !== "object") - throw TypeError(".proto.SyncActionValue.securityNotificationSetting: object expected"); - m.securityNotificationSetting = $root.proto.SyncActionValue.SecurityNotificationSetting.fromObject(d.securityNotificationSetting); - } if (d.pushNameSetting != null) { if (typeof d.pushNameSetting !== "object") throw TypeError(".proto.SyncActionValue.pushNameSetting: object expected"); @@ -69238,6 +80691,11 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.SyncActionValue.callLogAction: object expected"); m.callLogAction = $root.proto.SyncActionValue.CallLogAction.fromObject(d.callLogAction); } + if (d.ugcBot != null) { + if (typeof d.ugcBot !== "object") + throw TypeError(".proto.SyncActionValue.ugcBot: object expected"); + m.ugcBot = $root.proto.SyncActionValue.UGCBot.fromObject(d.ugcBot); + } if (d.statusPrivacy != null) { if (typeof d.statusPrivacy !== "object") throw TypeError(".proto.SyncActionValue.statusPrivacy: object expected"); @@ -69338,6 +80796,66 @@ export const proto = $root.proto = (() => { throw TypeError(".proto.SyncActionValue.paymentTosAction: object expected"); m.paymentTosAction = $root.proto.SyncActionValue.PaymentTosAction.fromObject(d.paymentTosAction); } + if (d.privacySettingChannelsPersonalisedRecommendationAction != null) { + if (typeof d.privacySettingChannelsPersonalisedRecommendationAction !== "object") + throw TypeError(".proto.SyncActionValue.privacySettingChannelsPersonalisedRecommendationAction: object expected"); + m.privacySettingChannelsPersonalisedRecommendationAction = $root.proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction.fromObject(d.privacySettingChannelsPersonalisedRecommendationAction); + } + if (d.businessBroadcastAssociationAction != null) { + if (typeof d.businessBroadcastAssociationAction !== "object") + throw TypeError(".proto.SyncActionValue.businessBroadcastAssociationAction: object expected"); + m.businessBroadcastAssociationAction = $root.proto.SyncActionValue.BusinessBroadcastAssociationAction.fromObject(d.businessBroadcastAssociationAction); + } + if (d.detectedOutcomesStatusAction != null) { + if (typeof d.detectedOutcomesStatusAction !== "object") + throw TypeError(".proto.SyncActionValue.detectedOutcomesStatusAction: object expected"); + m.detectedOutcomesStatusAction = $root.proto.SyncActionValue.DetectedOutcomesStatusAction.fromObject(d.detectedOutcomesStatusAction); + } + if (d.maibaAiFeaturesControlAction != null) { + if (typeof d.maibaAiFeaturesControlAction !== "object") + throw TypeError(".proto.SyncActionValue.maibaAiFeaturesControlAction: object expected"); + m.maibaAiFeaturesControlAction = $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.fromObject(d.maibaAiFeaturesControlAction); + } + if (d.businessBroadcastListAction != null) { + if (typeof d.businessBroadcastListAction !== "object") + throw TypeError(".proto.SyncActionValue.businessBroadcastListAction: object expected"); + m.businessBroadcastListAction = $root.proto.SyncActionValue.BusinessBroadcastListAction.fromObject(d.businessBroadcastListAction); + } + if (d.musicUserIdAction != null) { + if (typeof d.musicUserIdAction !== "object") + throw TypeError(".proto.SyncActionValue.musicUserIdAction: object expected"); + m.musicUserIdAction = $root.proto.SyncActionValue.MusicUserIdAction.fromObject(d.musicUserIdAction); + } + if (d.statusPostOptInNotificationPreferencesAction != null) { + if (typeof d.statusPostOptInNotificationPreferencesAction !== "object") + throw TypeError(".proto.SyncActionValue.statusPostOptInNotificationPreferencesAction: object expected"); + m.statusPostOptInNotificationPreferencesAction = $root.proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction.fromObject(d.statusPostOptInNotificationPreferencesAction); + } + if (d.avatarUpdatedAction != null) { + if (typeof d.avatarUpdatedAction !== "object") + throw TypeError(".proto.SyncActionValue.avatarUpdatedAction: object expected"); + m.avatarUpdatedAction = $root.proto.SyncActionValue.AvatarUpdatedAction.fromObject(d.avatarUpdatedAction); + } + if (d.privateProcessingSettingAction != null) { + if (typeof d.privateProcessingSettingAction !== "object") + throw TypeError(".proto.SyncActionValue.privateProcessingSettingAction: object expected"); + m.privateProcessingSettingAction = $root.proto.SyncActionValue.PrivateProcessingSettingAction.fromObject(d.privateProcessingSettingAction); + } + if (d.newsletterSavedInterestsAction != null) { + if (typeof d.newsletterSavedInterestsAction !== "object") + throw TypeError(".proto.SyncActionValue.newsletterSavedInterestsAction: object expected"); + m.newsletterSavedInterestsAction = $root.proto.SyncActionValue.NewsletterSavedInterestsAction.fromObject(d.newsletterSavedInterestsAction); + } + if (d.aiThreadRenameAction != null) { + if (typeof d.aiThreadRenameAction !== "object") + throw TypeError(".proto.SyncActionValue.aiThreadRenameAction: object expected"); + m.aiThreadRenameAction = $root.proto.SyncActionValue.AiThreadRenameAction.fromObject(d.aiThreadRenameAction); + } + if (d.interactiveMessageAction != null) { + if (typeof d.interactiveMessageAction !== "object") + throw TypeError(".proto.SyncActionValue.interactiveMessageAction: object expected"); + m.interactiveMessageAction = $root.proto.SyncActionValue.InteractiveMessageAction.fromObject(d.interactiveMessageAction); + } return m; }; @@ -69373,11 +80891,6 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._pinAction = "pinAction"; } - if (m.securityNotificationSetting != null && m.hasOwnProperty("securityNotificationSetting")) { - d.securityNotificationSetting = $root.proto.SyncActionValue.SecurityNotificationSetting.toObject(m.securityNotificationSetting, o); - if (o.oneofs) - d._securityNotificationSetting = "securityNotificationSetting"; - } if (m.pushNameSetting != null && m.hasOwnProperty("pushNameSetting")) { d.pushNameSetting = $root.proto.SyncActionValue.PushNameSetting.toObject(m.pushNameSetting, o); if (o.oneofs) @@ -69533,6 +81046,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._callLogAction = "callLogAction"; } + if (m.ugcBot != null && m.hasOwnProperty("ugcBot")) { + d.ugcBot = $root.proto.SyncActionValue.UGCBot.toObject(m.ugcBot, o); + if (o.oneofs) + d._ugcBot = "ugcBot"; + } if (m.statusPrivacy != null && m.hasOwnProperty("statusPrivacy")) { d.statusPrivacy = $root.proto.SyncActionValue.StatusPrivacyAction.toObject(m.statusPrivacy, o); if (o.oneofs) @@ -69633,6 +81151,66 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._paymentTosAction = "paymentTosAction"; } + if (m.privacySettingChannelsPersonalisedRecommendationAction != null && m.hasOwnProperty("privacySettingChannelsPersonalisedRecommendationAction")) { + d.privacySettingChannelsPersonalisedRecommendationAction = $root.proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction.toObject(m.privacySettingChannelsPersonalisedRecommendationAction, o); + if (o.oneofs) + d._privacySettingChannelsPersonalisedRecommendationAction = "privacySettingChannelsPersonalisedRecommendationAction"; + } + if (m.businessBroadcastAssociationAction != null && m.hasOwnProperty("businessBroadcastAssociationAction")) { + d.businessBroadcastAssociationAction = $root.proto.SyncActionValue.BusinessBroadcastAssociationAction.toObject(m.businessBroadcastAssociationAction, o); + if (o.oneofs) + d._businessBroadcastAssociationAction = "businessBroadcastAssociationAction"; + } + if (m.detectedOutcomesStatusAction != null && m.hasOwnProperty("detectedOutcomesStatusAction")) { + d.detectedOutcomesStatusAction = $root.proto.SyncActionValue.DetectedOutcomesStatusAction.toObject(m.detectedOutcomesStatusAction, o); + if (o.oneofs) + d._detectedOutcomesStatusAction = "detectedOutcomesStatusAction"; + } + if (m.maibaAiFeaturesControlAction != null && m.hasOwnProperty("maibaAiFeaturesControlAction")) { + d.maibaAiFeaturesControlAction = $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.toObject(m.maibaAiFeaturesControlAction, o); + if (o.oneofs) + d._maibaAiFeaturesControlAction = "maibaAiFeaturesControlAction"; + } + if (m.businessBroadcastListAction != null && m.hasOwnProperty("businessBroadcastListAction")) { + d.businessBroadcastListAction = $root.proto.SyncActionValue.BusinessBroadcastListAction.toObject(m.businessBroadcastListAction, o); + if (o.oneofs) + d._businessBroadcastListAction = "businessBroadcastListAction"; + } + if (m.musicUserIdAction != null && m.hasOwnProperty("musicUserIdAction")) { + d.musicUserIdAction = $root.proto.SyncActionValue.MusicUserIdAction.toObject(m.musicUserIdAction, o); + if (o.oneofs) + d._musicUserIdAction = "musicUserIdAction"; + } + if (m.statusPostOptInNotificationPreferencesAction != null && m.hasOwnProperty("statusPostOptInNotificationPreferencesAction")) { + d.statusPostOptInNotificationPreferencesAction = $root.proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction.toObject(m.statusPostOptInNotificationPreferencesAction, o); + if (o.oneofs) + d._statusPostOptInNotificationPreferencesAction = "statusPostOptInNotificationPreferencesAction"; + } + if (m.avatarUpdatedAction != null && m.hasOwnProperty("avatarUpdatedAction")) { + d.avatarUpdatedAction = $root.proto.SyncActionValue.AvatarUpdatedAction.toObject(m.avatarUpdatedAction, o); + if (o.oneofs) + d._avatarUpdatedAction = "avatarUpdatedAction"; + } + if (m.privateProcessingSettingAction != null && m.hasOwnProperty("privateProcessingSettingAction")) { + d.privateProcessingSettingAction = $root.proto.SyncActionValue.PrivateProcessingSettingAction.toObject(m.privateProcessingSettingAction, o); + if (o.oneofs) + d._privateProcessingSettingAction = "privateProcessingSettingAction"; + } + if (m.newsletterSavedInterestsAction != null && m.hasOwnProperty("newsletterSavedInterestsAction")) { + d.newsletterSavedInterestsAction = $root.proto.SyncActionValue.NewsletterSavedInterestsAction.toObject(m.newsletterSavedInterestsAction, o); + if (o.oneofs) + d._newsletterSavedInterestsAction = "newsletterSavedInterestsAction"; + } + if (m.aiThreadRenameAction != null && m.hasOwnProperty("aiThreadRenameAction")) { + d.aiThreadRenameAction = $root.proto.SyncActionValue.AiThreadRenameAction.toObject(m.aiThreadRenameAction, o); + if (o.oneofs) + d._aiThreadRenameAction = "aiThreadRenameAction"; + } + if (m.interactiveMessageAction != null && m.hasOwnProperty("interactiveMessageAction")) { + d.interactiveMessageAction = $root.proto.SyncActionValue.InteractiveMessageAction.toObject(m.interactiveMessageAction, o); + if (o.oneofs) + d._interactiveMessageAction = "interactiveMessageAction"; + } return d; }; @@ -69777,6 +81355,94 @@ export const proto = $root.proto = (() => { return AgentAction; })(); + SyncActionValue.AiThreadRenameAction = (function() { + + function AiThreadRenameAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AiThreadRenameAction.prototype.newTitle = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AiThreadRenameAction.prototype, "_newTitle", { + get: $util.oneOfGetter($oneOfFields = ["newTitle"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AiThreadRenameAction.create = function create(properties) { + return new AiThreadRenameAction(properties); + }; + + AiThreadRenameAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.newTitle != null && Object.hasOwnProperty.call(m, "newTitle")) + w.uint32(10).string(m.newTitle); + return w; + }; + + AiThreadRenameAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.AiThreadRenameAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.newTitle = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AiThreadRenameAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.AiThreadRenameAction) + return d; + var m = new $root.proto.SyncActionValue.AiThreadRenameAction(); + if (d.newTitle != null) { + m.newTitle = String(d.newTitle); + } + return m; + }; + + AiThreadRenameAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.newTitle != null && m.hasOwnProperty("newTitle")) { + d.newTitle = m.newTitle; + if (o.oneofs) + d._newTitle = "newTitle"; + } + return d; + }; + + AiThreadRenameAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AiThreadRenameAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.AiThreadRenameAction"; + }; + + return AiThreadRenameAction; + })(); + SyncActionValue.AndroidUnsupportedActions = (function() { function AndroidUnsupportedActions(p) { @@ -69976,6 +81642,150 @@ export const proto = $root.proto = (() => { return ArchiveChatAction; })(); + SyncActionValue.AvatarUpdatedAction = (function() { + + function AvatarUpdatedAction(p) { + this.recentAvatarStickers = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + AvatarUpdatedAction.prototype.eventType = null; + AvatarUpdatedAction.prototype.recentAvatarStickers = $util.emptyArray; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AvatarUpdatedAction.prototype, "_eventType", { + get: $util.oneOfGetter($oneOfFields = ["eventType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + AvatarUpdatedAction.create = function create(properties) { + return new AvatarUpdatedAction(properties); + }; + + AvatarUpdatedAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.eventType != null && Object.hasOwnProperty.call(m, "eventType")) + w.uint32(8).int32(m.eventType); + if (m.recentAvatarStickers != null && m.recentAvatarStickers.length) { + for (var i = 0; i < m.recentAvatarStickers.length; ++i) + $root.proto.SyncActionValue.StickerAction.encode(m.recentAvatarStickers[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + + AvatarUpdatedAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.AvatarUpdatedAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.eventType = r.int32(); + break; + } + case 2: { + if (!(m.recentAvatarStickers && m.recentAvatarStickers.length)) + m.recentAvatarStickers = []; + m.recentAvatarStickers.push($root.proto.SyncActionValue.StickerAction.decode(r, r.uint32())); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + AvatarUpdatedAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.AvatarUpdatedAction) + return d; + var m = new $root.proto.SyncActionValue.AvatarUpdatedAction(); + switch (d.eventType) { + default: + if (typeof d.eventType === "number") { + m.eventType = d.eventType; + break; + } + break; + case "UPDATED": + case 0: + m.eventType = 0; + break; + case "CREATED": + case 1: + m.eventType = 1; + break; + case "DELETED": + case 2: + m.eventType = 2; + break; + } + if (d.recentAvatarStickers) { + if (!Array.isArray(d.recentAvatarStickers)) + throw TypeError(".proto.SyncActionValue.AvatarUpdatedAction.recentAvatarStickers: array expected"); + m.recentAvatarStickers = []; + for (var i = 0; i < d.recentAvatarStickers.length; ++i) { + if (typeof d.recentAvatarStickers[i] !== "object") + throw TypeError(".proto.SyncActionValue.AvatarUpdatedAction.recentAvatarStickers: object expected"); + m.recentAvatarStickers[i] = $root.proto.SyncActionValue.StickerAction.fromObject(d.recentAvatarStickers[i]); + } + } + return m; + }; + + AvatarUpdatedAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.recentAvatarStickers = []; + } + if (m.eventType != null && m.hasOwnProperty("eventType")) { + d.eventType = o.enums === String ? $root.proto.SyncActionValue.AvatarUpdatedAction.AvatarEventType[m.eventType] === undefined ? m.eventType : $root.proto.SyncActionValue.AvatarUpdatedAction.AvatarEventType[m.eventType] : m.eventType; + if (o.oneofs) + d._eventType = "eventType"; + } + if (m.recentAvatarStickers && m.recentAvatarStickers.length) { + d.recentAvatarStickers = []; + for (var j = 0; j < m.recentAvatarStickers.length; ++j) { + d.recentAvatarStickers[j] = $root.proto.SyncActionValue.StickerAction.toObject(m.recentAvatarStickers[j], o); + } + } + return d; + }; + + AvatarUpdatedAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AvatarUpdatedAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.AvatarUpdatedAction"; + }; + + AvatarUpdatedAction.AvatarEventType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UPDATED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "DELETED"] = 2; + return values; + })(); + + return AvatarUpdatedAction; + })(); + SyncActionValue.BotWelcomeRequestAction = (function() { function BotWelcomeRequestAction(p) { @@ -70064,6 +81874,338 @@ export const proto = $root.proto = (() => { return BotWelcomeRequestAction; })(); + SyncActionValue.BroadcastListParticipant = (function() { + + function BroadcastListParticipant(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BroadcastListParticipant.prototype.lidJid = ""; + BroadcastListParticipant.prototype.pnJid = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BroadcastListParticipant.prototype, "_pnJid", { + get: $util.oneOfGetter($oneOfFields = ["pnJid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BroadcastListParticipant.create = function create(properties) { + return new BroadcastListParticipant(properties); + }; + + BroadcastListParticipant.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.lidJid != null && Object.hasOwnProperty.call(m, "lidJid")) + w.uint32(10).string(m.lidJid); + if (m.pnJid != null && Object.hasOwnProperty.call(m, "pnJid")) + w.uint32(18).string(m.pnJid); + return w; + }; + + BroadcastListParticipant.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.BroadcastListParticipant(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.lidJid = r.string(); + break; + } + case 2: { + m.pnJid = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BroadcastListParticipant.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.BroadcastListParticipant) + return d; + var m = new $root.proto.SyncActionValue.BroadcastListParticipant(); + if (d.lidJid != null) { + m.lidJid = String(d.lidJid); + } + if (d.pnJid != null) { + m.pnJid = String(d.pnJid); + } + return m; + }; + + BroadcastListParticipant.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.defaults) { + d.lidJid = ""; + } + if (m.lidJid != null && m.hasOwnProperty("lidJid")) { + d.lidJid = m.lidJid; + } + if (m.pnJid != null && m.hasOwnProperty("pnJid")) { + d.pnJid = m.pnJid; + if (o.oneofs) + d._pnJid = "pnJid"; + } + return d; + }; + + BroadcastListParticipant.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BroadcastListParticipant.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.BroadcastListParticipant"; + }; + + return BroadcastListParticipant; + })(); + + SyncActionValue.BusinessBroadcastAssociationAction = (function() { + + function BusinessBroadcastAssociationAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BusinessBroadcastAssociationAction.prototype.deleted = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BusinessBroadcastAssociationAction.prototype, "_deleted", { + get: $util.oneOfGetter($oneOfFields = ["deleted"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BusinessBroadcastAssociationAction.create = function create(properties) { + return new BusinessBroadcastAssociationAction(properties); + }; + + BusinessBroadcastAssociationAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.deleted != null && Object.hasOwnProperty.call(m, "deleted")) + w.uint32(8).bool(m.deleted); + return w; + }; + + BusinessBroadcastAssociationAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.BusinessBroadcastAssociationAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.deleted = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BusinessBroadcastAssociationAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.BusinessBroadcastAssociationAction) + return d; + var m = new $root.proto.SyncActionValue.BusinessBroadcastAssociationAction(); + if (d.deleted != null) { + m.deleted = Boolean(d.deleted); + } + return m; + }; + + BusinessBroadcastAssociationAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.deleted != null && m.hasOwnProperty("deleted")) { + d.deleted = m.deleted; + if (o.oneofs) + d._deleted = "deleted"; + } + return d; + }; + + BusinessBroadcastAssociationAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BusinessBroadcastAssociationAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.BusinessBroadcastAssociationAction"; + }; + + return BusinessBroadcastAssociationAction; + })(); + + SyncActionValue.BusinessBroadcastListAction = (function() { + + function BusinessBroadcastListAction(p) { + this.participants = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + BusinessBroadcastListAction.prototype.deleted = null; + BusinessBroadcastListAction.prototype.participants = $util.emptyArray; + BusinessBroadcastListAction.prototype.listName = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BusinessBroadcastListAction.prototype, "_deleted", { + get: $util.oneOfGetter($oneOfFields = ["deleted"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BusinessBroadcastListAction.prototype, "_listName", { + get: $util.oneOfGetter($oneOfFields = ["listName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + BusinessBroadcastListAction.create = function create(properties) { + return new BusinessBroadcastListAction(properties); + }; + + BusinessBroadcastListAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.deleted != null && Object.hasOwnProperty.call(m, "deleted")) + w.uint32(8).bool(m.deleted); + if (m.participants != null && m.participants.length) { + for (var i = 0; i < m.participants.length; ++i) + $root.proto.SyncActionValue.BroadcastListParticipant.encode(m.participants[i], w.uint32(18).fork()).ldelim(); + } + if (m.listName != null && Object.hasOwnProperty.call(m, "listName")) + w.uint32(26).string(m.listName); + return w; + }; + + BusinessBroadcastListAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.BusinessBroadcastListAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.deleted = r.bool(); + break; + } + case 2: { + if (!(m.participants && m.participants.length)) + m.participants = []; + m.participants.push($root.proto.SyncActionValue.BroadcastListParticipant.decode(r, r.uint32())); + break; + } + case 3: { + m.listName = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + BusinessBroadcastListAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.BusinessBroadcastListAction) + return d; + var m = new $root.proto.SyncActionValue.BusinessBroadcastListAction(); + if (d.deleted != null) { + m.deleted = Boolean(d.deleted); + } + if (d.participants) { + if (!Array.isArray(d.participants)) + throw TypeError(".proto.SyncActionValue.BusinessBroadcastListAction.participants: array expected"); + m.participants = []; + for (var i = 0; i < d.participants.length; ++i) { + if (typeof d.participants[i] !== "object") + throw TypeError(".proto.SyncActionValue.BusinessBroadcastListAction.participants: object expected"); + m.participants[i] = $root.proto.SyncActionValue.BroadcastListParticipant.fromObject(d.participants[i]); + } + } + if (d.listName != null) { + m.listName = String(d.listName); + } + return m; + }; + + BusinessBroadcastListAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.arrays || o.defaults) { + d.participants = []; + } + if (m.deleted != null && m.hasOwnProperty("deleted")) { + d.deleted = m.deleted; + if (o.oneofs) + d._deleted = "deleted"; + } + if (m.participants && m.participants.length) { + d.participants = []; + for (var j = 0; j < m.participants.length; ++j) { + d.participants[j] = $root.proto.SyncActionValue.BroadcastListParticipant.toObject(m.participants[j], o); + } + } + if (m.listName != null && m.hasOwnProperty("listName")) { + d.listName = m.listName; + if (o.oneofs) + d._listName = "listName"; + } + return d; + }; + + BusinessBroadcastListAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BusinessBroadcastListAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.BusinessBroadcastListAction"; + }; + + return BusinessBroadcastListAction; + })(); + SyncActionValue.CallLogAction = (function() { function CallLogAction(p) { @@ -71350,6 +83492,94 @@ export const proto = $root.proto = (() => { return DeleteMessageForMeAction; })(); + SyncActionValue.DetectedOutcomesStatusAction = (function() { + + function DetectedOutcomesStatusAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + DetectedOutcomesStatusAction.prototype.isEnabled = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DetectedOutcomesStatusAction.prototype, "_isEnabled", { + get: $util.oneOfGetter($oneOfFields = ["isEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + DetectedOutcomesStatusAction.create = function create(properties) { + return new DetectedOutcomesStatusAction(properties); + }; + + DetectedOutcomesStatusAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.isEnabled != null && Object.hasOwnProperty.call(m, "isEnabled")) + w.uint32(8).bool(m.isEnabled); + return w; + }; + + DetectedOutcomesStatusAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.DetectedOutcomesStatusAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.isEnabled = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + DetectedOutcomesStatusAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.DetectedOutcomesStatusAction) + return d; + var m = new $root.proto.SyncActionValue.DetectedOutcomesStatusAction(); + if (d.isEnabled != null) { + m.isEnabled = Boolean(d.isEnabled); + } + return m; + }; + + DetectedOutcomesStatusAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.isEnabled != null && m.hasOwnProperty("isEnabled")) { + d.isEnabled = m.isEnabled; + if (o.oneofs) + d._isEnabled = "isEnabled"; + } + return d; + }; + + DetectedOutcomesStatusAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + DetectedOutcomesStatusAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.DetectedOutcomesStatusAction"; + }; + + return DetectedOutcomesStatusAction; + })(); + SyncActionValue.ExternalWebBetaAction = (function() { function ExternalWebBetaAction(p) { @@ -71622,6 +83852,102 @@ export const proto = $root.proto = (() => { return FavoritesAction; })(); + SyncActionValue.InteractiveMessageAction = (function() { + + function InteractiveMessageAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + InteractiveMessageAction.prototype.type = 1; + + InteractiveMessageAction.create = function create(properties) { + return new InteractiveMessageAction(properties); + }; + + InteractiveMessageAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) + w.uint32(8).int32(m.type); + return w; + }; + + InteractiveMessageAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.InteractiveMessageAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.type = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + InteractiveMessageAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.InteractiveMessageAction) + return d; + var m = new $root.proto.SyncActionValue.InteractiveMessageAction(); + switch (d.type) { + default: + if (typeof d.type === "number") { + m.type = d.type; + break; + } + break; + case "DISABLE_CTA": + case 1: + m.type = 1; + break; + } + return m; + }; + + InteractiveMessageAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.defaults) { + d.type = o.enums === String ? "DISABLE_CTA" : 1; + } + if (m.type != null && m.hasOwnProperty("type")) { + d.type = o.enums === String ? $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] === undefined ? m.type : $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] : m.type; + } + return d; + }; + + InteractiveMessageAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + InteractiveMessageAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.InteractiveMessageAction"; + }; + + InteractiveMessageAction.InteractiveMessageActionMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "DISABLE_CTA"] = 1; + return values; + })(); + + return InteractiveMessageAction; + })(); + SyncActionValue.KeyExpiration = (function() { function KeyExpiration(p) { @@ -71815,6 +84141,7 @@ export const proto = $root.proto = (() => { LabelEditAction.prototype.isActive = null; LabelEditAction.prototype.type = null; LabelEditAction.prototype.isImmutable = null; + LabelEditAction.prototype.muteEndTimeMs = null; let $oneOfFields; @@ -71866,6 +84193,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(LabelEditAction.prototype, "_muteEndTimeMs", { + get: $util.oneOfGetter($oneOfFields = ["muteEndTimeMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + LabelEditAction.create = function create(properties) { return new LabelEditAction(properties); }; @@ -71889,6 +84222,8 @@ export const proto = $root.proto = (() => { w.uint32(56).int32(m.type); if (m.isImmutable != null && Object.hasOwnProperty.call(m, "isImmutable")) w.uint32(64).bool(m.isImmutable); + if (m.muteEndTimeMs != null && Object.hasOwnProperty.call(m, "muteEndTimeMs")) + w.uint32(72).int64(m.muteEndTimeMs); return w; }; @@ -71933,6 +84268,10 @@ export const proto = $root.proto = (() => { m.isImmutable = r.bool(); break; } + case 9: { + m.muteEndTimeMs = r.int64(); + break; + } default: r.skipType(t & 7); break; @@ -72002,10 +84341,28 @@ export const proto = $root.proto = (() => { case 7: m.type = 7; break; + case "DRAFTED": + case 8: + m.type = 8; + break; + case "AI_HANDOFF": + case 9: + m.type = 9; + break; } if (d.isImmutable != null) { m.isImmutable = Boolean(d.isImmutable); } + if (d.muteEndTimeMs != null) { + if ($util.Long) + (m.muteEndTimeMs = $util.Long.fromValue(d.muteEndTimeMs)).unsigned = false; + else if (typeof d.muteEndTimeMs === "string") + m.muteEndTimeMs = parseInt(d.muteEndTimeMs, 10); + else if (typeof d.muteEndTimeMs === "number") + m.muteEndTimeMs = d.muteEndTimeMs; + else if (typeof d.muteEndTimeMs === "object") + m.muteEndTimeMs = new $util.LongBits(d.muteEndTimeMs.low >>> 0, d.muteEndTimeMs.high >>> 0).toNumber(); + } return m; }; @@ -72053,6 +84410,14 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._isImmutable = "isImmutable"; } + if (m.muteEndTimeMs != null && m.hasOwnProperty("muteEndTimeMs")) { + if (typeof m.muteEndTimeMs === "number") + d.muteEndTimeMs = o.longs === String ? String(m.muteEndTimeMs) : m.muteEndTimeMs; + else + d.muteEndTimeMs = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTimeMs) : o.longs === Number ? new $util.LongBits(m.muteEndTimeMs.low >>> 0, m.muteEndTimeMs.high >>> 0).toNumber() : m.muteEndTimeMs; + if (o.oneofs) + d._muteEndTimeMs = "muteEndTimeMs"; + } return d; }; @@ -72077,6 +84442,8 @@ export const proto = $root.proto = (() => { values[valuesById[5] = "CUSTOM"] = 5; values[valuesById[6] = "COMMUNITY"] = 6; values[valuesById[7] = "SERVER_ASSIGNED"] = 7; + values[valuesById[8] = "DRAFTED"] = 8; + values[valuesById[9] = "AI_HANDOFF"] = 9; return values; })(); @@ -72196,7 +84563,6 @@ export const proto = $root.proto = (() => { LidContactAction.prototype.fullName = null; LidContactAction.prototype.firstName = null; LidContactAction.prototype.username = null; - LidContactAction.prototype.saveOnPrimaryAddressbook = null; let $oneOfFields; @@ -72218,12 +84584,6 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(LidContactAction.prototype, "_saveOnPrimaryAddressbook", { - get: $util.oneOfGetter($oneOfFields = ["saveOnPrimaryAddressbook"]), - set: $util.oneOfSetter($oneOfFields) - }); - LidContactAction.create = function create(properties) { return new LidContactAction(properties); }; @@ -72237,8 +84597,6 @@ export const proto = $root.proto = (() => { w.uint32(18).string(m.firstName); if (m.username != null && Object.hasOwnProperty.call(m, "username")) w.uint32(26).string(m.username); - if (m.saveOnPrimaryAddressbook != null && Object.hasOwnProperty.call(m, "saveOnPrimaryAddressbook")) - w.uint32(32).bool(m.saveOnPrimaryAddressbook); return w; }; @@ -72263,10 +84621,6 @@ export const proto = $root.proto = (() => { m.username = r.string(); break; } - case 4: { - m.saveOnPrimaryAddressbook = r.bool(); - break; - } default: r.skipType(t & 7); break; @@ -72288,9 +84642,6 @@ export const proto = $root.proto = (() => { if (d.username != null) { m.username = String(d.username); } - if (d.saveOnPrimaryAddressbook != null) { - m.saveOnPrimaryAddressbook = Boolean(d.saveOnPrimaryAddressbook); - } return m; }; @@ -72313,11 +84664,6 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._username = "username"; } - if (m.saveOnPrimaryAddressbook != null && m.hasOwnProperty("saveOnPrimaryAddressbook")) { - d.saveOnPrimaryAddressbook = m.saveOnPrimaryAddressbook; - if (o.oneofs) - d._saveOnPrimaryAddressbook = "saveOnPrimaryAddressbook"; - } return d; }; @@ -72511,6 +84857,119 @@ export const proto = $root.proto = (() => { return LockChatAction; })(); + SyncActionValue.MaibaAIFeaturesControlAction = (function() { + + function MaibaAIFeaturesControlAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + MaibaAIFeaturesControlAction.prototype.aiFeatureStatus = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MaibaAIFeaturesControlAction.prototype, "_aiFeatureStatus", { + get: $util.oneOfGetter($oneOfFields = ["aiFeatureStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + MaibaAIFeaturesControlAction.create = function create(properties) { + return new MaibaAIFeaturesControlAction(properties); + }; + + MaibaAIFeaturesControlAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.aiFeatureStatus != null && Object.hasOwnProperty.call(m, "aiFeatureStatus")) + w.uint32(8).int32(m.aiFeatureStatus); + return w; + }; + + MaibaAIFeaturesControlAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.MaibaAIFeaturesControlAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.aiFeatureStatus = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + MaibaAIFeaturesControlAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.MaibaAIFeaturesControlAction) + return d; + var m = new $root.proto.SyncActionValue.MaibaAIFeaturesControlAction(); + switch (d.aiFeatureStatus) { + default: + if (typeof d.aiFeatureStatus === "number") { + m.aiFeatureStatus = d.aiFeatureStatus; + break; + } + break; + case "ENABLED": + case 0: + m.aiFeatureStatus = 0; + break; + case "ENABLED_HAS_LEARNING": + case 1: + m.aiFeatureStatus = 1; + break; + case "DISABLED": + case 2: + m.aiFeatureStatus = 2; + break; + } + return m; + }; + + MaibaAIFeaturesControlAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.aiFeatureStatus != null && m.hasOwnProperty("aiFeatureStatus")) { + d.aiFeatureStatus = o.enums === String ? $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus[m.aiFeatureStatus] === undefined ? m.aiFeatureStatus : $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus[m.aiFeatureStatus] : m.aiFeatureStatus; + if (o.oneofs) + d._aiFeatureStatus = "aiFeatureStatus"; + } + return d; + }; + + MaibaAIFeaturesControlAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + MaibaAIFeaturesControlAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.MaibaAIFeaturesControlAction"; + }; + + MaibaAIFeaturesControlAction.MaibaAIFeatureStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENABLED"] = 0; + values[valuesById[1] = "ENABLED_HAS_LEARNING"] = 1; + values[valuesById[2] = "DISABLED"] = 2; + return values; + })(); + + return MaibaAIFeaturesControlAction; + })(); + SyncActionValue.MarkChatAsReadAction = (function() { function MarkChatAsReadAction(p) { @@ -73118,6 +85577,142 @@ export const proto = $root.proto = (() => { return MerchantPaymentPartnerAction; })(); + SyncActionValue.MusicUserIdAction = (function() { + + function MusicUserIdAction(p) { + this.musicUserIdMap = {}; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + MusicUserIdAction.prototype.musicUserId = null; + MusicUserIdAction.prototype.musicUserIdMap = $util.emptyObject; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(MusicUserIdAction.prototype, "_musicUserId", { + get: $util.oneOfGetter($oneOfFields = ["musicUserId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + MusicUserIdAction.create = function create(properties) { + return new MusicUserIdAction(properties); + }; + + MusicUserIdAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.musicUserId != null && Object.hasOwnProperty.call(m, "musicUserId")) + w.uint32(10).string(m.musicUserId); + if (m.musicUserIdMap != null && Object.hasOwnProperty.call(m, "musicUserIdMap")) { + for (var ks = Object.keys(m.musicUserIdMap), i = 0; i < ks.length; ++i) { + w.uint32(18).fork().uint32(10).string(ks[i]).uint32(18).string(m.musicUserIdMap[ks[i]]).ldelim(); + } + } + return w; + }; + + MusicUserIdAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.MusicUserIdAction(), k, value; + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.musicUserId = r.string(); + break; + } + case 2: { + if (m.musicUserIdMap === $util.emptyObject) + m.musicUserIdMap = {}; + var c2 = r.uint32() + r.pos; + k = ""; + value = ""; + while (r.pos < c2) { + var tag2 = r.uint32(); + switch (tag2 >>> 3) { + case 1: + k = r.string(); + break; + case 2: + value = r.string(); + break; + default: + r.skipType(tag2 & 7); + break; + } + } + m.musicUserIdMap[k] = value; + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + MusicUserIdAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.MusicUserIdAction) + return d; + var m = new $root.proto.SyncActionValue.MusicUserIdAction(); + if (d.musicUserId != null) { + m.musicUserId = String(d.musicUserId); + } + if (d.musicUserIdMap) { + if (typeof d.musicUserIdMap !== "object") + throw TypeError(".proto.SyncActionValue.MusicUserIdAction.musicUserIdMap: object expected"); + m.musicUserIdMap = {}; + for (var ks = Object.keys(d.musicUserIdMap), i = 0; i < ks.length; ++i) { + m.musicUserIdMap[ks[i]] = String(d.musicUserIdMap[ks[i]]); + } + } + return m; + }; + + MusicUserIdAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (o.objects || o.defaults) { + d.musicUserIdMap = {}; + } + if (m.musicUserId != null && m.hasOwnProperty("musicUserId")) { + d.musicUserId = m.musicUserId; + if (o.oneofs) + d._musicUserId = "musicUserId"; + } + var ks2; + if (m.musicUserIdMap && (ks2 = Object.keys(m.musicUserIdMap)).length) { + d.musicUserIdMap = {}; + for (var j = 0; j < ks2.length; ++j) { + d.musicUserIdMap[ks2[j]] = m.musicUserIdMap[ks2[j]]; + } + } + return d; + }; + + MusicUserIdAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + MusicUserIdAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.MusicUserIdAction"; + }; + + return MusicUserIdAction; + })(); + SyncActionValue.MuteAction = (function() { function MuteAction(p) { @@ -73258,6 +85853,94 @@ export const proto = $root.proto = (() => { return MuteAction; })(); + SyncActionValue.NewsletterSavedInterestsAction = (function() { + + function NewsletterSavedInterestsAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + NewsletterSavedInterestsAction.prototype.newsletterSavedInterests = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NewsletterSavedInterestsAction.prototype, "_newsletterSavedInterests", { + get: $util.oneOfGetter($oneOfFields = ["newsletterSavedInterests"]), + set: $util.oneOfSetter($oneOfFields) + }); + + NewsletterSavedInterestsAction.create = function create(properties) { + return new NewsletterSavedInterestsAction(properties); + }; + + NewsletterSavedInterestsAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.newsletterSavedInterests != null && Object.hasOwnProperty.call(m, "newsletterSavedInterests")) + w.uint32(10).string(m.newsletterSavedInterests); + return w; + }; + + NewsletterSavedInterestsAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.NewsletterSavedInterestsAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.newsletterSavedInterests = r.string(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + NewsletterSavedInterestsAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.NewsletterSavedInterestsAction) + return d; + var m = new $root.proto.SyncActionValue.NewsletterSavedInterestsAction(); + if (d.newsletterSavedInterests != null) { + m.newsletterSavedInterests = String(d.newsletterSavedInterests); + } + return m; + }; + + NewsletterSavedInterestsAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.newsletterSavedInterests != null && m.hasOwnProperty("newsletterSavedInterests")) { + d.newsletterSavedInterests = m.newsletterSavedInterests; + if (o.oneofs) + d._newsletterSavedInterests = "newsletterSavedInterests"; + } + return d; + }; + + NewsletterSavedInterestsAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + NewsletterSavedInterestsAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.NewsletterSavedInterestsAction"; + }; + + return NewsletterSavedInterestsAction; + })(); + SyncActionValue.NoteEditAction = (function() { function NoteEditAction(p) { @@ -74222,6 +86905,94 @@ export const proto = $root.proto = (() => { return PrimaryVersionAction; })(); + SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction = (function() { + + function PrivacySettingChannelsPersonalisedRecommendationAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + PrivacySettingChannelsPersonalisedRecommendationAction.prototype.isUserOptedOut = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PrivacySettingChannelsPersonalisedRecommendationAction.prototype, "_isUserOptedOut", { + get: $util.oneOfGetter($oneOfFields = ["isUserOptedOut"]), + set: $util.oneOfSetter($oneOfFields) + }); + + PrivacySettingChannelsPersonalisedRecommendationAction.create = function create(properties) { + return new PrivacySettingChannelsPersonalisedRecommendationAction(properties); + }; + + PrivacySettingChannelsPersonalisedRecommendationAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.isUserOptedOut != null && Object.hasOwnProperty.call(m, "isUserOptedOut")) + w.uint32(8).bool(m.isUserOptedOut); + return w; + }; + + PrivacySettingChannelsPersonalisedRecommendationAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.isUserOptedOut = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + PrivacySettingChannelsPersonalisedRecommendationAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction) + return d; + var m = new $root.proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction(); + if (d.isUserOptedOut != null) { + m.isUserOptedOut = Boolean(d.isUserOptedOut); + } + return m; + }; + + PrivacySettingChannelsPersonalisedRecommendationAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.isUserOptedOut != null && m.hasOwnProperty("isUserOptedOut")) { + d.isUserOptedOut = m.isUserOptedOut; + if (o.oneofs) + d._isUserOptedOut = "isUserOptedOut"; + } + return d; + }; + + PrivacySettingChannelsPersonalisedRecommendationAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PrivacySettingChannelsPersonalisedRecommendationAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.PrivacySettingChannelsPersonalisedRecommendationAction"; + }; + + return PrivacySettingChannelsPersonalisedRecommendationAction; + })(); + SyncActionValue.PrivacySettingDisableLinkPreviewsAction = (function() { function PrivacySettingDisableLinkPreviewsAction(p) { @@ -74398,6 +87169,119 @@ export const proto = $root.proto = (() => { return PrivacySettingRelayAllCalls; })(); + SyncActionValue.PrivateProcessingSettingAction = (function() { + + function PrivateProcessingSettingAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + PrivateProcessingSettingAction.prototype.privateProcessingStatus = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PrivateProcessingSettingAction.prototype, "_privateProcessingStatus", { + get: $util.oneOfGetter($oneOfFields = ["privateProcessingStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + PrivateProcessingSettingAction.create = function create(properties) { + return new PrivateProcessingSettingAction(properties); + }; + + PrivateProcessingSettingAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.privateProcessingStatus != null && Object.hasOwnProperty.call(m, "privateProcessingStatus")) + w.uint32(8).int32(m.privateProcessingStatus); + return w; + }; + + PrivateProcessingSettingAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.PrivateProcessingSettingAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.privateProcessingStatus = r.int32(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + PrivateProcessingSettingAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.PrivateProcessingSettingAction) + return d; + var m = new $root.proto.SyncActionValue.PrivateProcessingSettingAction(); + switch (d.privateProcessingStatus) { + default: + if (typeof d.privateProcessingStatus === "number") { + m.privateProcessingStatus = d.privateProcessingStatus; + break; + } + break; + case "UNDEFINED": + case 0: + m.privateProcessingStatus = 0; + break; + case "ENABLED": + case 1: + m.privateProcessingStatus = 1; + break; + case "DISABLED": + case 2: + m.privateProcessingStatus = 2; + break; + } + return m; + }; + + PrivateProcessingSettingAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.privateProcessingStatus != null && m.hasOwnProperty("privateProcessingStatus")) { + d.privateProcessingStatus = o.enums === String ? $root.proto.SyncActionValue.PrivateProcessingSettingAction.PrivateProcessingStatus[m.privateProcessingStatus] === undefined ? m.privateProcessingStatus : $root.proto.SyncActionValue.PrivateProcessingSettingAction.PrivateProcessingStatus[m.privateProcessingStatus] : m.privateProcessingStatus; + if (o.oneofs) + d._privateProcessingStatus = "privateProcessingStatus"; + } + return d; + }; + + PrivateProcessingSettingAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PrivateProcessingSettingAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.PrivateProcessingSettingAction"; + }; + + PrivateProcessingSettingAction.PrivateProcessingStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "ENABLED"] = 1; + values[valuesById[2] = "DISABLED"] = 2; + return values; + })(); + + return PrivateProcessingSettingAction; + })(); + SyncActionValue.PushNameSetting = (function() { function PushNameSetting(p) { @@ -74860,94 +87744,6 @@ export const proto = $root.proto = (() => { return RemoveRecentStickerAction; })(); - SyncActionValue.SecurityNotificationSetting = (function() { - - function SecurityNotificationSetting(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - SecurityNotificationSetting.prototype.showNotification = null; - - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(SecurityNotificationSetting.prototype, "_showNotification", { - get: $util.oneOfGetter($oneOfFields = ["showNotification"]), - set: $util.oneOfSetter($oneOfFields) - }); - - SecurityNotificationSetting.create = function create(properties) { - return new SecurityNotificationSetting(properties); - }; - - SecurityNotificationSetting.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.showNotification != null && Object.hasOwnProperty.call(m, "showNotification")) - w.uint32(8).bool(m.showNotification); - return w; - }; - - SecurityNotificationSetting.decode = function decode(r, l, e) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.SecurityNotificationSetting(); - while (r.pos < c) { - var t = r.uint32(); - if (t === e) - break; - switch (t >>> 3) { - case 1: { - m.showNotification = r.bool(); - break; - } - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - SecurityNotificationSetting.fromObject = function fromObject(d) { - if (d instanceof $root.proto.SyncActionValue.SecurityNotificationSetting) - return d; - var m = new $root.proto.SyncActionValue.SecurityNotificationSetting(); - if (d.showNotification != null) { - m.showNotification = Boolean(d.showNotification); - } - return m; - }; - - SecurityNotificationSetting.toObject = function toObject(m, o) { - if (!o) - o = {}; - var d = {}; - if (m.showNotification != null && m.hasOwnProperty("showNotification")) { - d.showNotification = m.showNotification; - if (o.oneofs) - d._showNotification = "showNotification"; - } - return d; - }; - - SecurityNotificationSetting.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - SecurityNotificationSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/proto.SyncActionValue.SecurityNotificationSetting"; - }; - - return SecurityNotificationSetting; - })(); - SyncActionValue.StarAction = (function() { function StarAction(p) { @@ -75036,6 +87832,94 @@ export const proto = $root.proto = (() => { return StarAction; })(); + SyncActionValue.StatusPostOptInNotificationPreferencesAction = (function() { + + function StatusPostOptInNotificationPreferencesAction(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + StatusPostOptInNotificationPreferencesAction.prototype.enabled = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StatusPostOptInNotificationPreferencesAction.prototype, "_enabled", { + get: $util.oneOfGetter($oneOfFields = ["enabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + StatusPostOptInNotificationPreferencesAction.create = function create(properties) { + return new StatusPostOptInNotificationPreferencesAction(properties); + }; + + StatusPostOptInNotificationPreferencesAction.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.enabled != null && Object.hasOwnProperty.call(m, "enabled")) + w.uint32(8).bool(m.enabled); + return w; + }; + + StatusPostOptInNotificationPreferencesAction.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.enabled = r.bool(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + StatusPostOptInNotificationPreferencesAction.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction) + return d; + var m = new $root.proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction(); + if (d.enabled != null) { + m.enabled = Boolean(d.enabled); + } + return m; + }; + + StatusPostOptInNotificationPreferencesAction.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.enabled != null && m.hasOwnProperty("enabled")) { + d.enabled = m.enabled; + if (o.oneofs) + d._enabled = "enabled"; + } + return d; + }; + + StatusPostOptInNotificationPreferencesAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StatusPostOptInNotificationPreferencesAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.StatusPostOptInNotificationPreferencesAction"; + }; + + return StatusPostOptInNotificationPreferencesAction; + })(); + SyncActionValue.StatusPrivacyAction = (function() { function StatusPrivacyAction(p) { @@ -75123,6 +88007,10 @@ export const proto = $root.proto = (() => { case 2: m.mode = 2; break; + case "CLOSE_FRIENDS": + case 3: + m.mode = 3; + break; } if (d.userJid) { if (!Array.isArray(d.userJid)) @@ -75172,6 +88060,7 @@ export const proto = $root.proto = (() => { values[valuesById[0] = "ALLOW_LIST"] = 0; values[valuesById[1] = "DENY_LIST"] = 1; values[valuesById[2] = "CONTACTS"] = 2; + values[valuesById[3] = "CLOSE_FRIENDS"] = 3; return values; })(); @@ -75198,6 +88087,8 @@ export const proto = $root.proto = (() => { StickerAction.prototype.isFavorite = null; StickerAction.prototype.deviceIdHint = null; StickerAction.prototype.isLottie = null; + StickerAction.prototype.imageHash = null; + StickerAction.prototype.isAvatarSticker = null; let $oneOfFields; @@ -75267,6 +88158,18 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(StickerAction.prototype, "_imageHash", { + get: $util.oneOfGetter($oneOfFields = ["imageHash"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(StickerAction.prototype, "_isAvatarSticker", { + get: $util.oneOfGetter($oneOfFields = ["isAvatarSticker"]), + set: $util.oneOfSetter($oneOfFields) + }); + StickerAction.create = function create(properties) { return new StickerAction(properties); }; @@ -75296,6 +88199,10 @@ export const proto = $root.proto = (() => { w.uint32(80).uint32(m.deviceIdHint); if (m.isLottie != null && Object.hasOwnProperty.call(m, "isLottie")) w.uint32(88).bool(m.isLottie); + if (m.imageHash != null && Object.hasOwnProperty.call(m, "imageHash")) + w.uint32(98).string(m.imageHash); + if (m.isAvatarSticker != null && Object.hasOwnProperty.call(m, "isAvatarSticker")) + w.uint32(104).bool(m.isAvatarSticker); return w; }; @@ -75352,6 +88259,14 @@ export const proto = $root.proto = (() => { m.isLottie = r.bool(); break; } + case 12: { + m.imageHash = r.string(); + break; + } + case 13: { + m.isAvatarSticker = r.bool(); + break; + } default: r.skipType(t & 7); break; @@ -75410,6 +88325,12 @@ export const proto = $root.proto = (() => { if (d.isLottie != null) { m.isLottie = Boolean(d.isLottie); } + if (d.imageHash != null) { + m.imageHash = String(d.imageHash); + } + if (d.isAvatarSticker != null) { + m.isAvatarSticker = Boolean(d.isAvatarSticker); + } return m; }; @@ -75475,6 +88396,16 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._isLottie = "isLottie"; } + if (m.imageHash != null && m.hasOwnProperty("imageHash")) { + d.imageHash = m.imageHash; + if (o.oneofs) + d._imageHash = "imageHash"; + } + if (m.isAvatarSticker != null && m.hasOwnProperty("isAvatarSticker")) { + d.isAvatarSticker = m.isAvatarSticker; + if (o.oneofs) + d._isAvatarSticker = "isAvatarSticker"; + } return d; }; @@ -76001,6 +88932,97 @@ export const proto = $root.proto = (() => { return TimeFormatAction; })(); + SyncActionValue.UGCBot = (function() { + + function UGCBot(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + UGCBot.prototype.definition = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UGCBot.prototype, "_definition", { + get: $util.oneOfGetter($oneOfFields = ["definition"]), + set: $util.oneOfSetter($oneOfFields) + }); + + UGCBot.create = function create(properties) { + return new UGCBot(properties); + }; + + UGCBot.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.definition != null && Object.hasOwnProperty.call(m, "definition")) + w.uint32(10).bytes(m.definition); + return w; + }; + + UGCBot.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.UGCBot(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.definition = r.bytes(); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + UGCBot.fromObject = function fromObject(d) { + if (d instanceof $root.proto.SyncActionValue.UGCBot) + return d; + var m = new $root.proto.SyncActionValue.UGCBot(); + if (d.definition != null) { + if (typeof d.definition === "string") + $util.base64.decode(d.definition, m.definition = $util.newBuffer($util.base64.length(d.definition)), 0); + else if (d.definition.length >= 0) + m.definition = d.definition; + } + return m; + }; + + UGCBot.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.definition != null && m.hasOwnProperty("definition")) { + d.definition = o.bytes === String ? $util.base64.encode(m.definition, 0, m.definition.length) : o.bytes === Array ? Array.prototype.slice.call(m.definition) : m.definition; + if (o.oneofs) + d._definition = "definition"; + } + return d; + }; + + UGCBot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + UGCBot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.SyncActionValue.UGCBot"; + }; + + return UGCBot; + })(); + SyncActionValue.UnarchiveChatsSetting = (function() { function UnarchiveChatsSetting(p) { @@ -76352,6 +89374,14 @@ export const proto = $root.proto = (() => { case 0: m.linkState = 0; break; + case "PAUSED": + case 1: + m.linkState = 1; + break; + case "UNLINKED": + case 2: + m.linkState = 2; + break; } return m; }; @@ -76382,6 +89412,8 @@ export const proto = $root.proto = (() => { WaffleAccountLinkStateAction.AccountLinkState = (function() { const valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "ACTIVE"] = 0; + values[valuesById[1] = "PAUSED"] = 1; + values[valuesById[2] = "UNLINKED"] = 2; return values; })(); @@ -78163,6 +91195,142 @@ export const proto = $root.proto = (() => { return TemplateButton; })(); + proto.ThreadID = (function() { + + function ThreadID(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + ThreadID.prototype.threadType = null; + ThreadID.prototype.threadKey = null; + + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ThreadID.prototype, "_threadType", { + get: $util.oneOfGetter($oneOfFields = ["threadType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ThreadID.prototype, "_threadKey", { + get: $util.oneOfGetter($oneOfFields = ["threadKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + ThreadID.create = function create(properties) { + return new ThreadID(properties); + }; + + ThreadID.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.threadType != null && Object.hasOwnProperty.call(m, "threadType")) + w.uint32(8).int32(m.threadType); + if (m.threadKey != null && Object.hasOwnProperty.call(m, "threadKey")) + $root.proto.MessageKey.encode(m.threadKey, w.uint32(18).fork()).ldelim(); + return w; + }; + + ThreadID.decode = function decode(r, l, e) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ThreadID(); + while (r.pos < c) { + var t = r.uint32(); + if (t === e) + break; + switch (t >>> 3) { + case 1: { + m.threadType = r.int32(); + break; + } + case 2: { + m.threadKey = $root.proto.MessageKey.decode(r, r.uint32()); + break; + } + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + ThreadID.fromObject = function fromObject(d) { + if (d instanceof $root.proto.ThreadID) + return d; + var m = new $root.proto.ThreadID(); + switch (d.threadType) { + default: + if (typeof d.threadType === "number") { + m.threadType = d.threadType; + break; + } + break; + case "UNKNOWN": + case 0: + m.threadType = 0; + break; + case "VIEW_REPLIES": + case 1: + m.threadType = 1; + break; + case "AI_THREAD": + case 2: + m.threadType = 2; + break; + } + if (d.threadKey != null) { + if (typeof d.threadKey !== "object") + throw TypeError(".proto.ThreadID.threadKey: object expected"); + m.threadKey = $root.proto.MessageKey.fromObject(d.threadKey); + } + return m; + }; + + ThreadID.toObject = function toObject(m, o) { + if (!o) + o = {}; + var d = {}; + if (m.threadType != null && m.hasOwnProperty("threadType")) { + d.threadType = o.enums === String ? $root.proto.ThreadID.ThreadType[m.threadType] === undefined ? m.threadType : $root.proto.ThreadID.ThreadType[m.threadType] : m.threadType; + if (o.oneofs) + d._threadType = "threadType"; + } + if (m.threadKey != null && m.hasOwnProperty("threadKey")) { + d.threadKey = $root.proto.MessageKey.toObject(m.threadKey, o); + if (o.oneofs) + d._threadKey = "threadKey"; + } + return d; + }; + + ThreadID.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ThreadID.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/proto.ThreadID"; + }; + + ThreadID.ThreadType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "VIEW_REPLIES"] = 1; + values[valuesById[2] = "AI_THREAD"] = 2; + return values; + })(); + + return ThreadID; + })(); + proto.UrlTrackingMap = (function() { function UrlTrackingMap(p) { @@ -81483,6 +94651,13 @@ export const proto = $root.proto = (() => { return WebFeatures; })(); + proto.WebLinkRenderConfig = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "WEBVIEW"] = 0; + values[valuesById[1] = "SYSTEM"] = 1; + return values; + })(); + proto.WebMessageInfo = (function() { function WebMessageInfo(p) { @@ -81564,6 +94739,10 @@ export const proto = $root.proto = (() => { WebMessageInfo.prototype.statusMentionSources = $util.emptyArray; WebMessageInfo.prototype.supportAiCitations = $util.emptyArray; WebMessageInfo.prototype.botTargetId = null; + WebMessageInfo.prototype.groupHistoryIndividualMessageInfo = null; + WebMessageInfo.prototype.groupHistoryBundleInfo = null; + WebMessageInfo.prototype.interactiveMessageAdditionalMetadata = null; + WebMessageInfo.prototype.quarantinedMessage = null; let $oneOfFields; @@ -81873,6 +95052,30 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(WebMessageInfo.prototype, "_groupHistoryIndividualMessageInfo", { + get: $util.oneOfGetter($oneOfFields = ["groupHistoryIndividualMessageInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(WebMessageInfo.prototype, "_groupHistoryBundleInfo", { + get: $util.oneOfGetter($oneOfFields = ["groupHistoryBundleInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(WebMessageInfo.prototype, "_interactiveMessageAdditionalMetadata", { + get: $util.oneOfGetter($oneOfFields = ["interactiveMessageAdditionalMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(WebMessageInfo.prototype, "_quarantinedMessage", { + get: $util.oneOfGetter($oneOfFields = ["quarantinedMessage"]), + set: $util.oneOfSetter($oneOfFields) + }); + WebMessageInfo.create = function create(properties) { return new WebMessageInfo(properties); }; @@ -82024,6 +95227,14 @@ export const proto = $root.proto = (() => { } if (m.botTargetId != null && Object.hasOwnProperty.call(m, "botTargetId")) w.uint32(586).string(m.botTargetId); + if (m.groupHistoryIndividualMessageInfo != null && Object.hasOwnProperty.call(m, "groupHistoryIndividualMessageInfo")) + $root.proto.GroupHistoryIndividualMessageInfo.encode(m.groupHistoryIndividualMessageInfo, w.uint32(594).fork()).ldelim(); + if (m.groupHistoryBundleInfo != null && Object.hasOwnProperty.call(m, "groupHistoryBundleInfo")) + $root.proto.GroupHistoryBundleInfo.encode(m.groupHistoryBundleInfo, w.uint32(602).fork()).ldelim(); + if (m.interactiveMessageAdditionalMetadata != null && Object.hasOwnProperty.call(m, "interactiveMessageAdditionalMetadata")) + $root.proto.InteractiveMessageAdditionalMetadata.encode(m.interactiveMessageAdditionalMetadata, w.uint32(610).fork()).ldelim(); + if (m.quarantinedMessage != null && Object.hasOwnProperty.call(m, "quarantinedMessage")) + $root.proto.QuarantinedMessage.encode(m.quarantinedMessage, w.uint32(618).fork()).ldelim(); return w; }; @@ -82304,6 +95515,22 @@ export const proto = $root.proto = (() => { m.botTargetId = r.string(); break; } + case 74: { + m.groupHistoryIndividualMessageInfo = $root.proto.GroupHistoryIndividualMessageInfo.decode(r, r.uint32()); + break; + } + case 75: { + m.groupHistoryBundleInfo = $root.proto.GroupHistoryBundleInfo.decode(r, r.uint32()); + break; + } + case 76: { + m.interactiveMessageAdditionalMetadata = $root.proto.InteractiveMessageAdditionalMetadata.decode(r, r.uint32()); + break; + } + case 77: { + m.quarantinedMessage = $root.proto.QuarantinedMessage.decode(r, r.uint32()); + break; + } default: r.skipType(t & 7); break; @@ -83291,6 +96518,18 @@ export const proto = $root.proto = (() => { case 218: m.messageStubType = 218; break; + case "PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE": + case 219: + m.messageStubType = 219; + break; + case "QUARANTINED_MESSAGE": + case 220: + m.messageStubType = 220; + break; + case "GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE": + case 221: + m.messageStubType = 221; + break; } if (d.clearMedia != null) { m.clearMedia = Boolean(d.clearMedia); @@ -83575,6 +96814,26 @@ export const proto = $root.proto = (() => { if (d.botTargetId != null) { m.botTargetId = String(d.botTargetId); } + if (d.groupHistoryIndividualMessageInfo != null) { + if (typeof d.groupHistoryIndividualMessageInfo !== "object") + throw TypeError(".proto.WebMessageInfo.groupHistoryIndividualMessageInfo: object expected"); + m.groupHistoryIndividualMessageInfo = $root.proto.GroupHistoryIndividualMessageInfo.fromObject(d.groupHistoryIndividualMessageInfo); + } + if (d.groupHistoryBundleInfo != null) { + if (typeof d.groupHistoryBundleInfo !== "object") + throw TypeError(".proto.WebMessageInfo.groupHistoryBundleInfo: object expected"); + m.groupHistoryBundleInfo = $root.proto.GroupHistoryBundleInfo.fromObject(d.groupHistoryBundleInfo); + } + if (d.interactiveMessageAdditionalMetadata != null) { + if (typeof d.interactiveMessageAdditionalMetadata !== "object") + throw TypeError(".proto.WebMessageInfo.interactiveMessageAdditionalMetadata: object expected"); + m.interactiveMessageAdditionalMetadata = $root.proto.InteractiveMessageAdditionalMetadata.fromObject(d.interactiveMessageAdditionalMetadata); + } + if (d.quarantinedMessage != null) { + if (typeof d.quarantinedMessage !== "object") + throw TypeError(".proto.WebMessageInfo.quarantinedMessage: object expected"); + m.quarantinedMessage = $root.proto.QuarantinedMessage.fromObject(d.quarantinedMessage); + } return m; }; @@ -83930,6 +97189,26 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._botTargetId = "botTargetId"; } + if (m.groupHistoryIndividualMessageInfo != null && m.hasOwnProperty("groupHistoryIndividualMessageInfo")) { + d.groupHistoryIndividualMessageInfo = $root.proto.GroupHistoryIndividualMessageInfo.toObject(m.groupHistoryIndividualMessageInfo, o); + if (o.oneofs) + d._groupHistoryIndividualMessageInfo = "groupHistoryIndividualMessageInfo"; + } + if (m.groupHistoryBundleInfo != null && m.hasOwnProperty("groupHistoryBundleInfo")) { + d.groupHistoryBundleInfo = $root.proto.GroupHistoryBundleInfo.toObject(m.groupHistoryBundleInfo, o); + if (o.oneofs) + d._groupHistoryBundleInfo = "groupHistoryBundleInfo"; + } + if (m.interactiveMessageAdditionalMetadata != null && m.hasOwnProperty("interactiveMessageAdditionalMetadata")) { + d.interactiveMessageAdditionalMetadata = $root.proto.InteractiveMessageAdditionalMetadata.toObject(m.interactiveMessageAdditionalMetadata, o); + if (o.oneofs) + d._interactiveMessageAdditionalMetadata = "interactiveMessageAdditionalMetadata"; + } + if (m.quarantinedMessage != null && m.hasOwnProperty("quarantinedMessage")) { + d.quarantinedMessage = $root.proto.QuarantinedMessage.toObject(m.quarantinedMessage, o); + if (o.oneofs) + d._quarantinedMessage = "quarantinedMessage"; + } return d; }; @@ -84185,6 +97464,9 @@ export const proto = $root.proto = (() => { values[valuesById[216] = "CHANGE_LIMIT_SHARING"] = 216; values[valuesById[217] = "GROUP_MEMBER_LINK_MODE"] = 217; values[valuesById[218] = "BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE"] = 218; + values[valuesById[219] = "PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE"] = 219; + values[valuesById[220] = "QUARANTINED_MESSAGE"] = 220; + values[valuesById[221] = "GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE"] = 221; return values; })(); diff --git a/src/Utils/validate-connection.ts b/src/Utils/validate-connection.ts index 1d314e61..ba130da3 100644 --- a/src/Utils/validate-connection.ts +++ b/src/Utils/validate-connection.ts @@ -100,8 +100,9 @@ export const generateRegistrationNode = ( platformType: getPlatformType(config.browser[1]), requireFullSync: config.syncFullHistory, historySyncConfig: { - storageQuotaMb: 569150, + storageQuotaMb: 10240, inlineInitialPayloadInE2EeMsg: true, + recentSyncDaysLimit: undefined, supportCallLogHistory: false, supportBotUserAgentChatHistory: true, supportCagReactionsAndPolls: true, @@ -109,7 +110,11 @@ export const generateRegistrationNode = ( supportRecentSyncChunkMessageCountTuning: true, supportHostedGroupMsg: true, supportFbidBotChatHistory: true, - supportMessageAssociation: true + supportAddOnHistorySyncMigration: undefined, + supportMessageAssociation: true, + supportGroupHistory: false, + onDemandReady: undefined, + supportGuestChat: undefined }, version: { primary: 10,