UNPKG

@vreden/meta

Version:

Baileys is a lightweight JavaScript library for interacting with the WhatsApp Web API using WebSocket.

1,112 lines (854 loc) 436 kB
import * as $protobuf from "protobufjs"; import Long = require("long"); /** Namespace SyncAction. */ export namespace SyncAction { /** Properties of a PatchDebugData. */ interface IPatchDebugData { /** PatchDebugData currentLthash */ currentLthash?: (Uint8Array|null); /** PatchDebugData newLthash */ newLthash?: (Uint8Array|null); /** PatchDebugData patchVersion */ patchVersion?: (Uint8Array|null); /** PatchDebugData collectionName */ collectionName?: (Uint8Array|null); /** PatchDebugData firstFourBytesFromAHashOfSnapshotMacKey */ firstFourBytesFromAHashOfSnapshotMacKey?: (Uint8Array|null); /** PatchDebugData newLthashSubtract */ newLthashSubtract?: (Uint8Array|null); /** PatchDebugData numberAdd */ numberAdd?: (number|null); /** PatchDebugData numberRemove */ numberRemove?: (number|null); /** PatchDebugData numberOverride */ numberOverride?: (number|null); /** PatchDebugData senderPlatform */ senderPlatform?: (SyncAction.PatchDebugData.Platform|null); /** PatchDebugData isSenderPrimary */ isSenderPrimary?: (boolean|null); } /** Represents a PatchDebugData. */ class PatchDebugData implements IPatchDebugData { /** * Constructs a new PatchDebugData. * @param [properties] Properties to set */ constructor(properties?: SyncAction.IPatchDebugData); /** PatchDebugData currentLthash. */ public currentLthash: Uint8Array; /** PatchDebugData newLthash. */ public newLthash: Uint8Array; /** PatchDebugData patchVersion. */ public patchVersion: Uint8Array; /** PatchDebugData collectionName. */ public collectionName: Uint8Array; /** PatchDebugData firstFourBytesFromAHashOfSnapshotMacKey. */ public firstFourBytesFromAHashOfSnapshotMacKey: Uint8Array; /** PatchDebugData newLthashSubtract. */ public newLthashSubtract: Uint8Array; /** PatchDebugData numberAdd. */ public numberAdd: number; /** PatchDebugData numberRemove. */ public numberRemove: number; /** PatchDebugData numberOverride. */ public numberOverride: number; /** PatchDebugData senderPlatform. */ public senderPlatform: SyncAction.PatchDebugData.Platform; /** PatchDebugData isSenderPrimary. */ public isSenderPrimary: boolean; /** * Creates a new PatchDebugData instance using the specified properties. * @param [properties] Properties to set * @returns PatchDebugData instance */ public static create(properties?: SyncAction.IPatchDebugData): SyncAction.PatchDebugData; /** * Encodes the specified PatchDebugData message. Does not implicitly {@link SyncAction.PatchDebugData.verify|verify} messages. * @param message PatchDebugData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: SyncAction.IPatchDebugData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PatchDebugData message, length delimited. Does not implicitly {@link SyncAction.PatchDebugData.verify|verify} messages. * @param message PatchDebugData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: SyncAction.IPatchDebugData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PatchDebugData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns PatchDebugData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SyncAction.PatchDebugData; /** * Decodes a PatchDebugData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PatchDebugData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SyncAction.PatchDebugData; /** * Verifies a PatchDebugData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a PatchDebugData message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns PatchDebugData */ public static fromObject(object: { [k: string]: any }): SyncAction.PatchDebugData; /** * Creates a plain object from a PatchDebugData message. Also converts values to other types if specified. * @param message PatchDebugData * @param [options] Conversion options * @returns Plain object */ public static toObject(message: SyncAction.PatchDebugData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PatchDebugData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for PatchDebugData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace PatchDebugData { /** Platform enum. */ enum Platform { ANDROID = 0, SMBA = 1, IPHONE = 2, SMBI = 3, WEB = 4, UWP = 5, DARWIN = 6, IPAD = 7, WEAROS = 8 } } /** Properties of a SyncActionData. */ interface ISyncActionData { /** SyncActionData index */ index?: (Uint8Array|null); /** SyncActionData value */ value?: (SyncAction.ISyncActionValue|null); /** SyncActionData padding */ padding?: (Uint8Array|null); /** SyncActionData version */ version?: (number|null); } /** Represents a SyncActionData. */ class SyncActionData implements ISyncActionData { /** * Constructs a new SyncActionData. * @param [properties] Properties to set */ constructor(properties?: SyncAction.ISyncActionData); /** SyncActionData index. */ public index: Uint8Array; /** SyncActionData value. */ public value?: (SyncAction.ISyncActionValue|null); /** SyncActionData padding. */ public padding: Uint8Array; /** SyncActionData version. */ public version: number; /** * Creates a new SyncActionData instance using the specified properties. * @param [properties] Properties to set * @returns SyncActionData instance */ public static create(properties?: SyncAction.ISyncActionData): SyncAction.SyncActionData; /** * Encodes the specified SyncActionData message. Does not implicitly {@link SyncAction.SyncActionData.verify|verify} messages. * @param message SyncActionData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: SyncAction.ISyncActionData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SyncActionData message, length delimited. Does not implicitly {@link SyncAction.SyncActionData.verify|verify} messages. * @param message SyncActionData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: SyncAction.ISyncActionData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SyncActionData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SyncActionData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SyncAction.SyncActionData; /** * Decodes a SyncActionData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SyncActionData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SyncAction.SyncActionData; /** * Verifies a SyncActionData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SyncActionData message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SyncActionData */ public static fromObject(object: { [k: string]: any }): SyncAction.SyncActionData; /** * Creates a plain object from a SyncActionData message. Also converts values to other types if specified. * @param message SyncActionData * @param [options] Conversion options * @returns Plain object */ public static toObject(message: SyncAction.SyncActionData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SyncActionData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SyncActionData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SyncActionValue. */ interface ISyncActionValue { /** SyncActionValue timestamp */ timestamp?: (number|Long|null); /** SyncActionValue starAction */ starAction?: (SyncAction.SyncActionValue.IStarAction|null); /** SyncActionValue contactAction */ contactAction?: (SyncAction.SyncActionValue.IContactAction|null); /** SyncActionValue muteAction */ muteAction?: (SyncAction.SyncActionValue.IMuteAction|null); /** SyncActionValue pinAction */ pinAction?: (SyncAction.SyncActionValue.IPinAction|null); /** SyncActionValue securityNotificationSetting */ securityNotificationSetting?: (SyncAction.SyncActionValue.ISecurityNotificationSetting|null); /** SyncActionValue pushNameSetting */ pushNameSetting?: (SyncAction.SyncActionValue.IPushNameSetting|null); /** SyncActionValue quickReplyAction */ quickReplyAction?: (SyncAction.SyncActionValue.IQuickReplyAction|null); /** SyncActionValue recentEmojiWeightsAction */ recentEmojiWeightsAction?: (SyncAction.SyncActionValue.IRecentEmojiWeightsAction|null); /** SyncActionValue labelEditAction */ labelEditAction?: (SyncAction.SyncActionValue.ILabelEditAction|null); /** SyncActionValue labelAssociationAction */ labelAssociationAction?: (SyncAction.SyncActionValue.ILabelAssociationAction|null); /** SyncActionValue localeSetting */ localeSetting?: (SyncAction.SyncActionValue.ILocaleSetting|null); /** SyncActionValue archiveChatAction */ archiveChatAction?: (SyncAction.SyncActionValue.IArchiveChatAction|null); /** SyncActionValue deleteMessageForMeAction */ deleteMessageForMeAction?: (SyncAction.SyncActionValue.IDeleteMessageForMeAction|null); /** SyncActionValue keyExpiration */ keyExpiration?: (SyncAction.SyncActionValue.IKeyExpiration|null); /** SyncActionValue markChatAsReadAction */ markChatAsReadAction?: (SyncAction.SyncActionValue.IMarkChatAsReadAction|null); /** SyncActionValue clearChatAction */ clearChatAction?: (SyncAction.SyncActionValue.IClearChatAction|null); /** SyncActionValue deleteChatAction */ deleteChatAction?: (SyncAction.SyncActionValue.IDeleteChatAction|null); /** SyncActionValue unarchiveChatsSetting */ unarchiveChatsSetting?: (SyncAction.SyncActionValue.IUnarchiveChatsSetting|null); /** SyncActionValue primaryFeature */ primaryFeature?: (SyncAction.SyncActionValue.IPrimaryFeature|null); /** SyncActionValue androidUnsupportedActions */ androidUnsupportedActions?: (SyncAction.SyncActionValue.IAndroidUnsupportedActions|null); /** SyncActionValue agentAction */ agentAction?: (SyncAction.SyncActionValue.IAgentAction|null); /** SyncActionValue subscriptionAction */ subscriptionAction?: (SyncAction.SyncActionValue.ISubscriptionAction|null); /** SyncActionValue userStatusMuteAction */ userStatusMuteAction?: (SyncAction.SyncActionValue.IUserStatusMuteAction|null); /** SyncActionValue timeFormatAction */ timeFormatAction?: (SyncAction.SyncActionValue.ITimeFormatAction|null); /** SyncActionValue nuxAction */ nuxAction?: (SyncAction.SyncActionValue.INuxAction|null); /** SyncActionValue primaryVersionAction */ primaryVersionAction?: (SyncAction.SyncActionValue.IPrimaryVersionAction|null); /** SyncActionValue stickerAction */ stickerAction?: (SyncAction.SyncActionValue.IStickerAction|null); /** SyncActionValue removeRecentStickerAction */ removeRecentStickerAction?: (SyncAction.SyncActionValue.IRemoveRecentStickerAction|null); /** SyncActionValue chatAssignment */ chatAssignment?: (SyncAction.SyncActionValue.IChatAssignmentAction|null); /** SyncActionValue chatAssignmentOpenedStatus */ chatAssignmentOpenedStatus?: (SyncAction.SyncActionValue.IChatAssignmentOpenedStatusAction|null); /** SyncActionValue pnForLidChatAction */ pnForLidChatAction?: (SyncAction.SyncActionValue.IPnForLidChatAction|null); /** SyncActionValue marketingMessageAction */ marketingMessageAction?: (SyncAction.SyncActionValue.IMarketingMessageAction|null); /** SyncActionValue marketingMessageBroadcastAction */ marketingMessageBroadcastAction?: (SyncAction.SyncActionValue.IMarketingMessageBroadcastAction|null); /** SyncActionValue externalWebBetaAction */ externalWebBetaAction?: (SyncAction.SyncActionValue.IExternalWebBetaAction|null); /** SyncActionValue privacySettingRelayAllCalls */ privacySettingRelayAllCalls?: (SyncAction.SyncActionValue.IPrivacySettingRelayAllCalls|null); /** SyncActionValue callLogAction */ callLogAction?: (SyncAction.SyncActionValue.ICallLogAction|null); /** SyncActionValue statusPrivacy */ statusPrivacy?: (SyncAction.SyncActionValue.IStatusPrivacyAction|null); /** SyncActionValue botWelcomeRequestAction */ botWelcomeRequestAction?: (SyncAction.SyncActionValue.IBotWelcomeRequestAction|null); /** SyncActionValue deleteIndividualCallLog */ deleteIndividualCallLog?: (SyncAction.SyncActionValue.IDeleteIndividualCallLogAction|null); /** SyncActionValue labelReorderingAction */ labelReorderingAction?: (SyncAction.SyncActionValue.ILabelReorderingAction|null); /** SyncActionValue paymentInfoAction */ paymentInfoAction?: (SyncAction.SyncActionValue.IPaymentInfoAction|null); /** SyncActionValue customPaymentMethodsAction */ customPaymentMethodsAction?: (SyncAction.SyncActionValue.ICustomPaymentMethodsAction|null); /** SyncActionValue lockChatAction */ lockChatAction?: (SyncAction.SyncActionValue.ILockChatAction|null); /** SyncActionValue chatLockSettings */ chatLockSettings?: (ChatLockSettings.IChatLockSettings|null); /** SyncActionValue wamoUserIdentifierAction */ wamoUserIdentifierAction?: (SyncAction.SyncActionValue.IWamoUserIdentifierAction|null); /** SyncActionValue privacySettingDisableLinkPreviewsAction */ privacySettingDisableLinkPreviewsAction?: (SyncAction.SyncActionValue.IPrivacySettingDisableLinkPreviewsAction|null); /** SyncActionValue deviceCapabilities */ deviceCapabilities?: (DeviceCapabilities.IDeviceCapabilities|null); /** SyncActionValue noteEditAction */ noteEditAction?: (SyncAction.SyncActionValue.INoteEditAction|null); /** SyncActionValue favoritesAction */ favoritesAction?: (SyncAction.SyncActionValue.IFavoritesAction|null); /** SyncActionValue merchantPaymentPartnerAction */ merchantPaymentPartnerAction?: (SyncAction.SyncActionValue.IMerchantPaymentPartnerAction|null); /** SyncActionValue waffleAccountLinkStateAction */ waffleAccountLinkStateAction?: (SyncAction.SyncActionValue.IWaffleAccountLinkStateAction|null); /** SyncActionValue usernameChatStartMode */ usernameChatStartMode?: (SyncAction.SyncActionValue.IUsernameChatStartModeAction|null); /** SyncActionValue notificationActivitySettingAction */ notificationActivitySettingAction?: (SyncAction.SyncActionValue.INotificationActivitySettingAction|null); /** SyncActionValue lidContactAction */ lidContactAction?: (SyncAction.SyncActionValue.ILidContactAction|null); /** SyncActionValue ctwaPerCustomerDataSharingAction */ ctwaPerCustomerDataSharingAction?: (SyncAction.SyncActionValue.ICtwaPerCustomerDataSharingAction|null); /** SyncActionValue paymentTosAction */ paymentTosAction?: (SyncAction.SyncActionValue.IPaymentTosAction|null); /** SyncActionValue privacySettingChannelsPersonalisedRecommendationAction */ privacySettingChannelsPersonalisedRecommendationAction?: (SyncAction.SyncActionValue.IPrivacySettingChannelsPersonalisedRecommendationAction|null); /** SyncActionValue businessBroadcastAssociationAction */ businessBroadcastAssociationAction?: (SyncAction.SyncActionValue.IBusinessBroadcastAssociationAction|null); /** SyncActionValue detectedOutcomesStatusAction */ detectedOutcomesStatusAction?: (SyncAction.SyncActionValue.IDetectedOutcomesStatusAction|null); /** SyncActionValue maibaAiFeaturesControlAction */ maibaAiFeaturesControlAction?: (SyncAction.SyncActionValue.IMaibaAIFeaturesControlAction|null); /** SyncActionValue businessBroadcastListAction */ businessBroadcastListAction?: (SyncAction.SyncActionValue.IBusinessBroadcastListAction|null); /** SyncActionValue musicUserIdAction */ musicUserIdAction?: (SyncAction.SyncActionValue.IMusicUserIdAction|null); /** SyncActionValue statusPostOptInNotificationPreferencesAction */ statusPostOptInNotificationPreferencesAction?: (SyncAction.SyncActionValue.IStatusPostOptInNotificationPreferencesAction|null); } /** Represents a SyncActionValue. */ class SyncActionValue implements ISyncActionValue { /** * Constructs a new SyncActionValue. * @param [properties] Properties to set */ constructor(properties?: SyncAction.ISyncActionValue); /** SyncActionValue timestamp. */ public timestamp: (number|Long); /** SyncActionValue starAction. */ public starAction?: (SyncAction.SyncActionValue.IStarAction|null); /** SyncActionValue contactAction. */ public contactAction?: (SyncAction.SyncActionValue.IContactAction|null); /** SyncActionValue muteAction. */ public muteAction?: (SyncAction.SyncActionValue.IMuteAction|null); /** SyncActionValue pinAction. */ public pinAction?: (SyncAction.SyncActionValue.IPinAction|null); /** SyncActionValue securityNotificationSetting. */ public securityNotificationSetting?: (SyncAction.SyncActionValue.ISecurityNotificationSetting|null); /** SyncActionValue pushNameSetting. */ public pushNameSetting?: (SyncAction.SyncActionValue.IPushNameSetting|null); /** SyncActionValue quickReplyAction. */ public quickReplyAction?: (SyncAction.SyncActionValue.IQuickReplyAction|null); /** SyncActionValue recentEmojiWeightsAction. */ public recentEmojiWeightsAction?: (SyncAction.SyncActionValue.IRecentEmojiWeightsAction|null); /** SyncActionValue labelEditAction. */ public labelEditAction?: (SyncAction.SyncActionValue.ILabelEditAction|null); /** SyncActionValue labelAssociationAction. */ public labelAssociationAction?: (SyncAction.SyncActionValue.ILabelAssociationAction|null); /** SyncActionValue localeSetting. */ public localeSetting?: (SyncAction.SyncActionValue.ILocaleSetting|null); /** SyncActionValue archiveChatAction. */ public archiveChatAction?: (SyncAction.SyncActionValue.IArchiveChatAction|null); /** SyncActionValue deleteMessageForMeAction. */ public deleteMessageForMeAction?: (SyncAction.SyncActionValue.IDeleteMessageForMeAction|null); /** SyncActionValue keyExpiration. */ public keyExpiration?: (SyncAction.SyncActionValue.IKeyExpiration|null); /** SyncActionValue markChatAsReadAction. */ public markChatAsReadAction?: (SyncAction.SyncActionValue.IMarkChatAsReadAction|null); /** SyncActionValue clearChatAction. */ public clearChatAction?: (SyncAction.SyncActionValue.IClearChatAction|null); /** SyncActionValue deleteChatAction. */ public deleteChatAction?: (SyncAction.SyncActionValue.IDeleteChatAction|null); /** SyncActionValue unarchiveChatsSetting. */ public unarchiveChatsSetting?: (SyncAction.SyncActionValue.IUnarchiveChatsSetting|null); /** SyncActionValue primaryFeature. */ public primaryFeature?: (SyncAction.SyncActionValue.IPrimaryFeature|null); /** SyncActionValue androidUnsupportedActions. */ public androidUnsupportedActions?: (SyncAction.SyncActionValue.IAndroidUnsupportedActions|null); /** SyncActionValue agentAction. */ public agentAction?: (SyncAction.SyncActionValue.IAgentAction|null); /** SyncActionValue subscriptionAction. */ public subscriptionAction?: (SyncAction.SyncActionValue.ISubscriptionAction|null); /** SyncActionValue userStatusMuteAction. */ public userStatusMuteAction?: (SyncAction.SyncActionValue.IUserStatusMuteAction|null); /** SyncActionValue timeFormatAction. */ public timeFormatAction?: (SyncAction.SyncActionValue.ITimeFormatAction|null); /** SyncActionValue nuxAction. */ public nuxAction?: (SyncAction.SyncActionValue.INuxAction|null); /** SyncActionValue primaryVersionAction. */ public primaryVersionAction?: (SyncAction.SyncActionValue.IPrimaryVersionAction|null); /** SyncActionValue stickerAction. */ public stickerAction?: (SyncAction.SyncActionValue.IStickerAction|null); /** SyncActionValue removeRecentStickerAction. */ public removeRecentStickerAction?: (SyncAction.SyncActionValue.IRemoveRecentStickerAction|null); /** SyncActionValue chatAssignment. */ public chatAssignment?: (SyncAction.SyncActionValue.IChatAssignmentAction|null); /** SyncActionValue chatAssignmentOpenedStatus. */ public chatAssignmentOpenedStatus?: (SyncAction.SyncActionValue.IChatAssignmentOpenedStatusAction|null); /** SyncActionValue pnForLidChatAction. */ public pnForLidChatAction?: (SyncAction.SyncActionValue.IPnForLidChatAction|null); /** SyncActionValue marketingMessageAction. */ public marketingMessageAction?: (SyncAction.SyncActionValue.IMarketingMessageAction|null); /** SyncActionValue marketingMessageBroadcastAction. */ public marketingMessageBroadcastAction?: (SyncAction.SyncActionValue.IMarketingMessageBroadcastAction|null); /** SyncActionValue externalWebBetaAction. */ public externalWebBetaAction?: (SyncAction.SyncActionValue.IExternalWebBetaAction|null); /** SyncActionValue privacySettingRelayAllCalls. */ public privacySettingRelayAllCalls?: (SyncAction.SyncActionValue.IPrivacySettingRelayAllCalls|null); /** SyncActionValue callLogAction. */ public callLogAction?: (SyncAction.SyncActionValue.ICallLogAction|null); /** SyncActionValue statusPrivacy. */ public statusPrivacy?: (SyncAction.SyncActionValue.IStatusPrivacyAction|null); /** SyncActionValue botWelcomeRequestAction. */ public botWelcomeRequestAction?: (SyncAction.SyncActionValue.IBotWelcomeRequestAction|null); /** SyncActionValue deleteIndividualCallLog. */ public deleteIndividualCallLog?: (SyncAction.SyncActionValue.IDeleteIndividualCallLogAction|null); /** SyncActionValue labelReorderingAction. */ public labelReorderingAction?: (SyncAction.SyncActionValue.ILabelReorderingAction|null); /** SyncActionValue paymentInfoAction. */ public paymentInfoAction?: (SyncAction.SyncActionValue.IPaymentInfoAction|null); /** SyncActionValue customPaymentMethodsAction. */ public customPaymentMethodsAction?: (SyncAction.SyncActionValue.ICustomPaymentMethodsAction|null); /** SyncActionValue lockChatAction. */ public lockChatAction?: (SyncAction.SyncActionValue.ILockChatAction|null); /** SyncActionValue chatLockSettings. */ public chatLockSettings?: (ChatLockSettings.IChatLockSettings|null); /** SyncActionValue wamoUserIdentifierAction. */ public wamoUserIdentifierAction?: (SyncAction.SyncActionValue.IWamoUserIdentifierAction|null); /** SyncActionValue privacySettingDisableLinkPreviewsAction. */ public privacySettingDisableLinkPreviewsAction?: (SyncAction.SyncActionValue.IPrivacySettingDisableLinkPreviewsAction|null); /** SyncActionValue deviceCapabilities. */ public deviceCapabilities?: (DeviceCapabilities.IDeviceCapabilities|null); /** SyncActionValue noteEditAction. */ public noteEditAction?: (SyncAction.SyncActionValue.INoteEditAction|null); /** SyncActionValue favoritesAction. */ public favoritesAction?: (SyncAction.SyncActionValue.IFavoritesAction|null); /** SyncActionValue merchantPaymentPartnerAction. */ public merchantPaymentPartnerAction?: (SyncAction.SyncActionValue.IMerchantPaymentPartnerAction|null); /** SyncActionValue waffleAccountLinkStateAction. */ public waffleAccountLinkStateAction?: (SyncAction.SyncActionValue.IWaffleAccountLinkStateAction|null); /** SyncActionValue usernameChatStartMode. */ public usernameChatStartMode?: (SyncAction.SyncActionValue.IUsernameChatStartModeAction|null); /** SyncActionValue notificationActivitySettingAction. */ public notificationActivitySettingAction?: (SyncAction.SyncActionValue.INotificationActivitySettingAction|null); /** SyncActionValue lidContactAction. */ public lidContactAction?: (SyncAction.SyncActionValue.ILidContactAction|null); /** SyncActionValue ctwaPerCustomerDataSharingAction. */ public ctwaPerCustomerDataSharingAction?: (SyncAction.SyncActionValue.ICtwaPerCustomerDataSharingAction|null); /** SyncActionValue paymentTosAction. */ public paymentTosAction?: (SyncAction.SyncActionValue.IPaymentTosAction|null); /** SyncActionValue privacySettingChannelsPersonalisedRecommendationAction. */ public privacySettingChannelsPersonalisedRecommendationAction?: (SyncAction.SyncActionValue.IPrivacySettingChannelsPersonalisedRecommendationAction|null); /** SyncActionValue businessBroadcastAssociationAction. */ public businessBroadcastAssociationAction?: (SyncAction.SyncActionValue.IBusinessBroadcastAssociationAction|null); /** SyncActionValue detectedOutcomesStatusAction. */ public detectedOutcomesStatusAction?: (SyncAction.SyncActionValue.IDetectedOutcomesStatusAction|null); /** SyncActionValue maibaAiFeaturesControlAction. */ public maibaAiFeaturesControlAction?: (SyncAction.SyncActionValue.IMaibaAIFeaturesControlAction|null); /** SyncActionValue businessBroadcastListAction. */ public businessBroadcastListAction?: (SyncAction.SyncActionValue.IBusinessBroadcastListAction|null); /** SyncActionValue musicUserIdAction. */ public musicUserIdAction?: (SyncAction.SyncActionValue.IMusicUserIdAction|null); /** SyncActionValue statusPostOptInNotificationPreferencesAction. */ public statusPostOptInNotificationPreferencesAction?: (SyncAction.SyncActionValue.IStatusPostOptInNotificationPreferencesAction|null); /** * Creates a new SyncActionValue instance using the specified properties. * @param [properties] Properties to set * @returns SyncActionValue instance */ public static create(properties?: SyncAction.ISyncActionValue): SyncAction.SyncActionValue; /** * Encodes the specified SyncActionValue message. Does not implicitly {@link SyncAction.SyncActionValue.verify|verify} messages. * @param message SyncActionValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: SyncAction.ISyncActionValue, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SyncActionValue message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.verify|verify} messages. * @param message SyncActionValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: SyncAction.ISyncActionValue, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SyncActionValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SyncActionValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SyncAction.SyncActionValue; /** * Decodes a SyncActionValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SyncActionValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SyncAction.SyncActionValue; /** * Verifies a SyncActionValue message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SyncActionValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SyncActionValue */ public static fromObject(object: { [k: string]: any }): SyncAction.SyncActionValue; /** * Creates a plain object from a SyncActionValue message. Also converts values to other types if specified. * @param message SyncActionValue * @param [options] Conversion options * @returns Plain object */ public static toObject(message: SyncAction.SyncActionValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SyncActionValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SyncActionValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SyncActionValue { /** Properties of an AgentAction. */ interface IAgentAction { /** AgentAction name */ name?: (string|null); /** AgentAction deviceID */ deviceID?: (number|null); /** AgentAction isDeleted */ isDeleted?: (boolean|null); } /** Represents an AgentAction. */ class AgentAction implements IAgentAction { /** * Constructs a new AgentAction. * @param [properties] Properties to set */ constructor(properties?: SyncAction.SyncActionValue.IAgentAction); /** AgentAction name. */ public name: string; /** AgentAction deviceID. */ public deviceID: number; /** AgentAction isDeleted. */ public isDeleted: boolean; /** * Creates a new AgentAction instance using the specified properties. * @param [properties] Properties to set * @returns AgentAction instance */ public static create(properties?: SyncAction.SyncActionValue.IAgentAction): SyncAction.SyncActionValue.AgentAction; /** * Encodes the specified AgentAction message. Does not implicitly {@link SyncAction.SyncActionValue.AgentAction.verify|verify} messages. * @param message AgentAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: SyncAction.SyncActionValue.IAgentAction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AgentAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.AgentAction.verify|verify} messages. * @param message AgentAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: SyncAction.SyncActionValue.IAgentAction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AgentAction message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AgentAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SyncAction.SyncActionValue.AgentAction; /** * Decodes an AgentAction message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AgentAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SyncAction.SyncActionValue.AgentAction; /** * Verifies an AgentAction message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AgentAction message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AgentAction */ public static fromObject(object: { [k: string]: any }): SyncAction.SyncActionValue.AgentAction; /** * Creates a plain object from an AgentAction message. Also converts values to other types if specified. * @param message AgentAction * @param [options] Conversion options * @returns Plain object */ public static toObject(message: SyncAction.SyncActionValue.AgentAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AgentAction to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AgentAction * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AndroidUnsupportedActions. */ interface IAndroidUnsupportedActions { /** AndroidUnsupportedActions allowed */ allowed?: (boolean|null); } /** Represents an AndroidUnsupportedActions. */ class AndroidUnsupportedActions implements IAndroidUnsupportedActions { /** * Constructs a new AndroidUnsupportedActions. * @param [properties] Properties to set */ constructor(properties?: SyncAction.SyncActionValue.IAndroidUnsupportedActions); /** AndroidUnsupportedActions allowed. */ public allowed: boolean; /** * Creates a new AndroidUnsupportedActions instance using the specified properties. * @param [properties] Properties to set * @returns AndroidUnsupportedActions instance */ public static create(properties?: SyncAction.SyncActionValue.IAndroidUnsupportedActions): SyncAction.SyncActionValue.AndroidUnsupportedActions; /** * Encodes the specified AndroidUnsupportedActions message. Does not implicitly {@link SyncAction.SyncActionValue.AndroidUnsupportedActions.verify|verify} messages. * @param message AndroidUnsupportedActions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: SyncAction.SyncActionValue.IAndroidUnsupportedActions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AndroidUnsupportedActions message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.AndroidUnsupportedActions.verify|verify} messages. * @param message AndroidUnsupportedActions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: SyncAction.SyncActionValue.IAndroidUnsupportedActions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AndroidUnsupportedActions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AndroidUnsupportedActions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SyncAction.SyncActionValue.AndroidUnsupportedActions; /** * Decodes an AndroidUnsupportedActions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AndroidUnsupportedActions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SyncAction.SyncActionValue.AndroidUnsupportedActions; /** * Verifies an AndroidUnsupportedActions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AndroidUnsupportedActions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AndroidUnsupportedActions */ public static fromObject(object: { [k: string]: any }): SyncAction.SyncActionValue.AndroidUnsupportedActions; /** * Creates a plain object from an AndroidUnsupportedActions message. Also converts values to other types if specified. * @param message AndroidUnsupportedActions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: SyncAction.SyncActionValue.AndroidUnsupportedActions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AndroidUnsupportedActions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AndroidUnsupportedActions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ArchiveChatAction. */ interface IArchiveChatAction { /** ArchiveChatAction archived */ archived?: (boolean|null); /** ArchiveChatAction messageRange */ messageRange?: (SyncAction.SyncActionValue.ISyncActionMessageRange|null); } /** Represents an ArchiveChatAction. */ class ArchiveChatAction implements IArchiveChatAction { /** * Constructs a new ArchiveChatAction. * @param [properties] Properties to set */ constructor(properties?: SyncAction.SyncActionValue.IArchiveChatAction); /** ArchiveChatAction archived. */ public archived: boolean; /** ArchiveChatAction messageRange. */ public messageRange?: (SyncAction.SyncActionValue.ISyncActionMessageRange|null); /** * Creates a new ArchiveChatAction instance using the specified properties. * @param [properties] Properties to set * @returns ArchiveChatAction instance */ public static create(properties?: SyncAction.SyncActionValue.IArchiveChatAction): SyncAction.SyncActionValue.ArchiveChatAction; /** * Encodes the specified ArchiveChatAction message. Does not implicitly {@link SyncAction.SyncActionValue.ArchiveChatAction.verify|verify} messages. * @param message ArchiveChatAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: SyncAction.SyncActionValue.IArchiveChatAction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ArchiveChatAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.ArchiveChatAction.verify|verify} messages. * @param message ArchiveChatAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: SyncAction.SyncActionValue.IArchiveChatAction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ArchiveChatAction message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ArchiveChatAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SyncAction.SyncActionValue.ArchiveChatAction; /** * Decodes an ArchiveChatAction message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ArchiveChatAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SyncAction.SyncActionValue.ArchiveChatAction; /** * Verifies an ArchiveChatAction message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an ArchiveChatAction message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ArchiveChatAction */ public static fromObject(object: { [k: string]: any }): SyncAction.SyncActionValue.ArchiveChatAction; /** * Creates a plain object from an ArchiveChatAction message. Also converts values to other types if specified. * @param message ArchiveChatAction * @param [options] Conversion options * @returns Plain object */ public static toObject(message: SyncAction.SyncActionValue.ArchiveChatAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ArchiveChatAction to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ArchiveChatAction * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BotWelcomeRequestAction. */ interface IBotWelcomeRequestAction { /** BotWelcomeRequestAction isSent */ isSent?: (boolean|null); } /** Represents a BotWelcomeRequestAction. */ class BotWelcomeRequestAction implements IBotWelcomeRequestAction { /** * Constructs a new BotWelcomeRequestAction. * @param [properties] Properties to set */ constructor(properties?: SyncAction.SyncActionValue.IBotWelcomeRequestAction); /** BotWelcomeRequestAction isSent. */ public isSent: boolean; /** * Creates a new BotWelcomeRequestAction instance using the specified properties. * @param [properties] Properties to set * @returns BotWelcomeRequestAction instance */ public static create(properties?: SyncAction.SyncActionValue.IBotWelcomeRequestAction): SyncAction.SyncActionValue.BotWelcomeRequestAction; /** * Encodes the specified BotWelcomeRequestAction message. Does not implicitly {@link SyncAction.SyncActionValue.BotWelcomeRequestAction.verify|verify} messages. * @param message BotWelcomeRequestAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: SyncAction.Sy