UNPKG

@whiskeysockets/baileys

Version:

A WebSockets library for interacting with WhatsApp Web

1,450 lines (1,449 loc) 522 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FLAG_EXTENDED = exports.FLAG_FIELD = exports.FLAG_EVENT = exports.FLAG_GLOBAL = exports.FLAG_BYTE = exports.WEB_GLOBALS = exports.WEB_EVENTS = void 0; exports.WEB_EVENTS = [ { name: 'WebcFingerprint', id: 1704, props: { webcCanvasFingerprint: [25, 'string'], webcDocumentDriverEvaluate: [9, 'boolean'], webcDocumentDriverUnwrapped: [7, 'boolean'], webcDocumentElementAttrDriver: [14, 'boolean'], webcDocumentElementAttrSelenium: [12, 'boolean'], webcDocumentElementAttrWebdriver: [13, 'boolean'], webcDocumentFxdriverEvaluate: [6, 'boolean'], webcDocumentFxdriverUnwrapped: [11, 'boolean'], webcDocumentSeleniumEvaluate: [2, 'boolean'], webcDocumentSeleniumUnwrapped: [10, 'boolean'], webcDocumentWebdriverEvaluate: [1, 'boolean'], webcDocumentWebdriverScriptFn: [5, 'boolean'], webcDocumentWebdriverScriptFunc: [4, 'boolean'], webcDocumentWebdriverScriptFunction: [3, 'boolean'], webcDocumentWebdriverUnwrapped: [8, 'boolean'], webcWebglFingerprint: [24, 'string'], webcWebglRenderer: [23, 'string'], webcWebglVendor: [22, 'string'], webcWindowSeleniumIdeRecorder: [20, 'boolean'], webcWindowCallphantom: [18, 'boolean'], webcWindowCallselenium: [19, 'boolean'], webcWindowNavigatorWebdriver: [ 21, { FALSE: 0, TRUE: 1, UNDEFINED: 2, }, ], webcWindowNightmare: [16, 'boolean'], webcWindowPhantom: [15, 'boolean'], webcWindowSelenium: [17, 'boolean'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'Login', id: 460, props: { androidKeystoreState: [ 10, { NOT_AVAILABLE: 1, SELF_TEST_FAILURE: 2, ENC_KEY_READ_FAILURE: 3, ENC_KEY_STORED_USED: 4, ENC_KEY_PLAIN_DELETED: 5, ENC_KEY_PLAIN_RECOVERED: 6, }, ], connectionOrigin: [ 6, { PERSON: 1, PUSH: 2, OTHER: 3, BACKOFF: 4, }, ], connectionSequenceStep: [ 11, { PUSH_OVERRIDES: 1, PRIMARY: 2, PUSH_FALLBACKS: 4, HOST_FALLBACK: 5, NO_DNS: 6, SOFTLAYER: 7, PRIMARY_HTTP: 8, SOFTLAYER_HTTP: 9, HOST_FALLBACK_HTTP: 10, NO_DNS_HTTP: 11, }, ], connectionT: [5, 'timer'], dnsResolutionMethod: [ 12, { SYSTEM: 1, GOOGLE: 2, HARDCODED: 3, NO_DNS: 4, }, ], loginDnsResolver: [ 13, { SYSTEM: 1, GOOGLE: 2, HARDCODED: 3, NO_DNS: 4, }, ], loginIpSource: [ 14, { PUSH_OVERRIDES: 1, G_WHATSAPP_NET: 2, PUSH_FALLBACKS: 3, G_FALLBACK_WHATSAPP_NET: 4, HARDCODED_LIST: 5, EX_WHATSAPP_NET: 6, }, ], loginPort: [ 15, { P5222: 1, P443: 2, P80: 3, UNKNOWN: 4, }, ], loginResult: [ 1, { OK: 1, ERROR_UNKNOWN: 2, SERVER_ERROR: 3, SERVER_GOAWAY: 4, NETWORK_ERROR: 5, ANDROID_KEYSTORE_ERROR: 6, CERTIFICATE_ERROR: 7, }, ], loginT: [3, 'timer'], longConnect: [4, 'boolean'], noiseProtocolVersion: [16, 'integer'], passive: [8, 'boolean'], pendingAcksCount: [17, 'integer'], retryCount: [2, 'integer'], sequenceStep: [7, 'integer'], serverErrorCode: [9, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcPageLoad', id: 642, props: { webcAppcacheStatus: [ 29, { UNCACHED: 0, IDLE: 1, CHECKING: 2, DOWNLOADING: 3, UPDATEREADY: 4, OBSOLETE: 5, }, ], webcCached: [30, 'boolean'], webcConnectEnd: [10, 'timer'], webcConnectStart: [9, 'timer'], webcDomComplete: [19, 'timer'], webcDomContentLoadedEventEnd: [18, 'timer'], webcDomContentLoadedEventStart: [17, 'timer'], webcDomInteractive: [16, 'timer'], webcDomLoading: [15, 'timer'], webcDomainLookupEnd: [8, 'timer'], webcDomainLookupStart: [7, 'timer'], webcExeDone: [23, 'timer'], webcExeStart: [22, 'timer'], webcFetchStart: [6, 'timer'], webcInitialMountT: [38, 'timer'], webcInitialNavMountT: [39, 'timer'], webcInitialPanel: [42, 'string'], webcInitialPanelMountStartT: [43, 'timer'], webcInitialPanelMountT: [40, 'timer'], webcInitialPanelRenderT: [46, 'timer'], webcJsLoadT: [37, 'timer'], webcLoadEventEnd: [21, 'timer'], webcLoadEventStart: [20, 'timer'], webcLoadInForeground: [53, 'boolean'], webcMainScriptEnd: [45, 'timer'], webcMainScriptStart: [44, 'timer'], webcNativeLoadT: [36, 'timer'], webcNavigation: [ 32, { NAVIGATE_NEXT: 0, RELOAD: 1, BACK_FORWARD: 2, UNDEFINED: 255, }, ], webcPageLoadT: [34, 'timer'], webcParallellyFetched: [41, 'boolean'], webcQrCode: [31, 'boolean'], webcRedirectCount: [33, 'number'], webcRedirectEnd: [5, 'timer'], webcRedirectStart: [4, 'timer'], webcRequestStart: [12, 'timer'], webcResponseEnd: [14, 'timer'], webcResponseStart: [13, 'timer'], webcSecureConnectionStart: [11, 'timer'], webcUnloadEventEnd: [3, 'timer'], webcUnloadEventStart: [2, 'timer'], webcWsAttempts: [28, 'number'], webcWsNormal: [27, 'timer'], webcWsOpening: [24, 'timer'], webcWsPairing: [25, 'timer'], webcWsSyncing: [26, 'timer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'OfflineResume', id: 3112, props: { affectedBySleepMode: [35, 'boolean'], chatThreadCount: [1, 'integer'], expectedOfflineCallCount: [23, 'integer'], expectedOfflineMessageCount: [17, 'integer'], expectedOfflineNotificationCount: [18, 'integer'], expectedOfflineReceiptCount: [19, 'integer'], isOfflineCompleteMissed: [2, 'boolean'], isResumeInForeground: [13, 'boolean'], isRunningFromServiceExtension: [22, 'boolean'], lastStanzaT: [3, 'timer'], mailboxAge: [14, 'integer'], mainScreenLoadT: [4, 'timer'], offlineCallCount: [24, 'integer'], offlineDecryptErrorCount: [5, 'integer'], offlineMessageCount: [6, 'integer'], offlineNotificationCount: [7, 'integer'], offlinePreviewT: [8, 'timer'], offlineProcessingT: [20, 'timer'], offlineReceiptCount: [9, 'integer'], offlineResumeResult: [ 21, { COMPLETE: 1, INCOMPLETE_UNKNOWN_ERROR: 2, INCOMPLETE_DISCONNECT: 3, INCOMPLETE_APP_RESTART: 4, }, ], offlineSizeBytes: [10, 'integer'], onTrickleMode: [15, 'boolean'], pageLoadT: [11, 'timer'], passiveModeT: [25, 'timer'], preackCallCount: [26, 'integer'], preackMessageCount: [27, 'integer'], preackNotificationCount: [28, 'integer'], preackReceiptCount: [29, 'integer'], processedCallCount: [30, 'integer'], processedMessageCount: [31, 'integer'], processedNotificationCount: [32, 'integer'], processedReceiptCount: [33, 'integer'], socketConnectT: [12, 'timer'], transientOfflineSessionId: [34, 'string'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcDbOpen', id: 1940, props: { webcDbName: [1, 'string'], webcDbOpenNumAttempts: [3, 'integer'], webcDbOpenWasSuccess: [2, 'boolean'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'PsIdUpdate', id: 2862, props: { isFromWamsys: [4, 'boolean'], psIdAction: [ 2, { CREATED: 1, ROTATED: 2, DELETED: 3, }, ], psIdKey: [1, 'integer'], psIdRotationFrequence: [3, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebDbVersionsSource', id: 4784, props: { webDbVersionSource: [ 1, { KNOB: 1, LOCAL: 2, STATIC: 3, KNOB_WITH_LOCAL_OVERRIDE: 4, }, ], webSchemaInitiator: [ 2, { MAIN: 1, WEB_WORKER: 2, SERVICE_WORKER: 3, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcAssetLoad', id: 1358, props: { webcAssetCacheType: [ 4, { UNCACHED: 0, IDB: 1, SW: 2, }, ], webcAssetFromCache: [2, 'boolean'], webcAssetLoadT: [3, 'timer'], webcAssetName: [1, 'string'], webcAssetSize: [5, 'number'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcStorageStat', id: 1504, props: { webcAgeOfStorage: [3, 'integer'], webcPackingEnabled: [4, 'boolean'], webcStorageQuota: [2, 'integer'], webcStorageUsage: [1, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'OfflineResumeStage', id: 3536, props: { attemptId: [13, 'integer'], chatThreadCount: [4, 'integer'], currentOfflineStage: [ 1, { PAGE_LOAD: 1, SOCKET_CONNECT: 2, PROCESS_COMPLETE: 3, SCREEN_LOAD: 4, OFFLINE_PREVIEW: 5, OFFLINE_COMPLETE_RECEIVED: 6, PREACKS_SENT: 7, }, ], isResumeInForeground: [5, 'boolean'], isResumeStartedInForeground: [14, 'boolean'], lastPushTimestampMs: [12, 'integer'], mailboxAge: [6, 'integer'], offlineCallCount: [15, 'integer'], offlineDecryptErrorCount: [7, 'integer'], offlineMessageCount: [8, 'integer'], offlineNotificationCount: [9, 'integer'], offlineReceiptCount: [10, 'integer'], offlineResumeMode: [ 11, { RESUME_FROM_RESTART: 1, RESUME_FROM_OPEN_TAB: 2, UNKNOWN: 3, CONNECT_REASON_USER: 4, CONNECT_REASON_PUSH: 5, CONNECT_REASON_BACKOFF: 6, }, ], offlineSessionId: [2, 'string'], offlineSizeBytes: [16, 'integer'], offlineStageTimestampMs: [3, 'integer'], passiveModeT: [17, 'timer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcStreamModeChange', id: 770, props: { webcStreamMode: [ 1, { QR: 0, MAIN: 1, SYNCING: 2, OFFLINE: 3, CONFLICT: 4, PROXYBLOCK: 5, TOS_BLOCK: 6, SMB_TOS_BLOCK: 7, DEPRECATED_VERSION: 8, LOCK: 9, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcStatusSync', id: 1878, props: { webcStatusMutedItemCount: [4, 'integer'], webcStatusMutedRowCount: [7, 'integer'], webcStatusRecentItemCount: [2, 'integer'], webcStatusRecentRowCount: [5, 'integer'], webcStatusSyncT: [1, 'timer'], webcStatusViewedItemCount: [3, 'integer'], webcStatusViewedRowCount: [6, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'TsNavigation', id: 4334, props: { cid: [19, 'string'], entryPointConversationInitiated: [ 23, { BUSINESS_INITIATED: 0, CONSUMER_INITIATED: 1, NO_MESSAGES_LAST_24H: 2, }, ], entryPointConversionApp: [24, 'string'], entryPointConversionSource: [25, 'string'], groupSize: [1, 'integer'], isCatalogVisible: [29, 'boolean'], isCloudapi: [26, 'boolean'], isOnpremises: [27, 'boolean'], isSmb: [28, 'boolean'], navigationDestination: [ 2, { UNKNOWN: 1, COMMUNITY_HOME: 2, COMMUNITY_TAB: 3, CHAT_THREAD: 4, CHAT_INFO_PAGE: 5, CHAT_LIST: 6, COMMUNITY_NAVIGATION: 7, BACKGROUND: 8, RESIGN: 9, SUBGROUP_SWITCHER: 10, COMMUNITY_COMPOSER: 11, MEDIA_VIEWER: 12, ALL_MEDIA: 13, STREAMING_MEDIA_VIEWER: 14, CALLS_HOME_TAB: 15, IN_CALL_UI: 16, STATUS_HOME_TAB: 17, STATUS_COMPOSER: 18, STATUS_VIEW: 19, CAMERA: 20, PHOTO_VIDEO_LIBRARY: 21, SETTINGS_HOME_TAB: 22, TOOLS_TAB: 23, COMMUNITY_SETTINGS: 24, CHANNEL_UPDATES_HOME: 25, CHANNEL_THREAD: 26, CHANNEL_DIRECTORY: 27, CHANNEL_PROFILE: 28, CHANNEL_FORWARD: 29, CHANNEL_PRODUCER_MEDIA_EDITOR: 30, CHANNEL_CREATE: 31, CHANNEL_EDIT: 32, CHANNEL_DELETE: 33, STATUS_COMPOSER_TEXT: 34, LIGHTWEIGHT_CALL_UI: 35, AI_HOME: 36, LIGHTWEIGHT_CALL_BANNER: 37, LIGHTWEIGHT_CALL_NUX: 38, CALL_INFO_PAGE: 39, SMB_CATALOG: 40, SMB_CATALOG_SHARE_LINK: 41, SMB_CATALOG_SHARE_PRODUCT_LINK: 42, SMB_CATALOG_SETTINGS: 43, SMB_CATALOG_PRODUCT: 44, SMB_CATALOG_NEW_COLLECTION: 45, SMB_CATALOG_EDIT_COLLECTION: 46, SMB_CATALOG_CREATE_PRODUCT: 47, SMB_CATALOG_EDIT_PRODUCT: 48, SMB_CATALOG_NEW_COLLECTION_ADD_ITEMS: 49, SMB_CATALOG_COLLECTION_UPDATE_ITEMS: 50, SMB_CATALOG_COLLECTIONS: 51, SMB_CATALOG_COLLECTION_REORDER: 52, SMB_CATALOG_COLLECTION_PRODUCTS: 53, SMB_CATALOG_COLLECTION_PRODUCTS_REORDER: 54, CREATE_EVENT: 55, EVENT_PAGE: 56, EVENTS_IN_GROUP: 57, CATALOG_HOME: 59, CATALOG_COLLECTION: 60, CATALOG_ITEM: 61, CATALOG_CART: 62, FLOWS_EXPERIENCE: 63, BUSINESS_PROFILE_EDIT: 64, BUSINESS_PROFILE_EDIT_NAME: 65, BUSINESS_PROFILE_EDIT_CATEGORIES: 66, BUSINESS_PROFILE_EDIT_DESCRIPTION: 67, BUSINESS_PROFILE_EDIT_WEBSITE: 68, BUSINESS_PROFILE_EDIT_EMAIL: 69, BUSINESS_PROFILE_EDIT_ADDRESS: 70, BUSINESS_PROFILE_EDIT_HOURS: 71, BUSINESS_PROFILE_EDIT_COVER_PHOTO: 72, BUSINESS_PROFILE_LINK_FB_IG: 73, BUSINESS_PROFILE_HELP_PAGE_LINK_FB_IG: 74, PAYMENTS_HOME: 75, PAYMENTS_HOME_TRANSACTIONS: 76, PAYMENTS_HOME_RECENT_MERCHANTS: 77, PAYMENTS_HOME_INVITE_OTHERS: 78, PAYMENTS_HOME_HELP: 79, MESSAGE_MENU: 80, PIN_MESSAGE_REPLACEMENT_DIALOG: 81, PIN_MESSAGE_EXPIRATION_DIALOG: 82, MY_STATUS_LIST: 83, ALL_STATUS_LIST: 84, PIN_BANNER: 85, CALL_BANNER: 86, LANDING_SCREEN: 87, NEW_CHAT: 88, GROUP_MEMBER_ADD_GROUP_CREATION: 89, GROUP_MEMBER_ADD_EXISTING_GROUP: 90, GROUP_CHAT: 91, GROUP_CREATION: 92, }, ], navigationSource: [ 3, { UNKNOWN: 1, COMMUNITY_HOME: 2, COMMUNITY_TAB: 3, CHAT_THREAD: 4, CHAT_INFO_PAGE: 5, CHAT_LIST: 6, COMMUNITY_NAVIGATION: 7, BACKGROUND: 8, RESIGN: 9, SUBGROUP_SWITCHER: 10, COMMUNITY_COMPOSER: 11, MEDIA_VIEWER: 12, ALL_MEDIA: 13, STREAMING_MEDIA_VIEWER: 14, CALLS_HOME_TAB: 15, IN_CALL_UI: 16, STATUS_HOME_TAB: 17, STATUS_COMPOSER: 18, STATUS_VIEW: 19, CAMERA: 20, PHOTO_VIDEO_LIBRARY: 21, SETTINGS_HOME_TAB: 22, TOOLS_TAB: 23, COMMUNITY_SETTINGS: 24, CHANNEL_UPDATES_HOME: 25, CHANNEL_THREAD: 26, CHANNEL_DIRECTORY: 27, CHANNEL_PROFILE: 28, CHANNEL_FORWARD: 29, CHANNEL_PRODUCER_MEDIA_EDITOR: 30, CHANNEL_CREATE: 31, CHANNEL_EDIT: 32, CHANNEL_DELETE: 33, STATUS_COMPOSER_TEXT: 34, LIGHTWEIGHT_CALL_UI: 35, AI_HOME: 36, LIGHTWEIGHT_CALL_BANNER: 37, LIGHTWEIGHT_CALL_NUX: 38, CALL_INFO_PAGE: 39, SMB_CATALOG: 40, SMB_CATALOG_SHARE_LINK: 41, SMB_CATALOG_SHARE_PRODUCT_LINK: 42, SMB_CATALOG_SETTINGS: 43, SMB_CATALOG_PRODUCT: 44, SMB_CATALOG_NEW_COLLECTION: 45, SMB_CATALOG_EDIT_COLLECTION: 46, SMB_CATALOG_CREATE_PRODUCT: 47, SMB_CATALOG_EDIT_PRODUCT: 48, SMB_CATALOG_NEW_COLLECTION_ADD_ITEMS: 49, SMB_CATALOG_COLLECTION_UPDATE_ITEMS: 50, SMB_CATALOG_COLLECTIONS: 51, SMB_CATALOG_COLLECTION_REORDER: 52, SMB_CATALOG_COLLECTION_PRODUCTS: 53, SMB_CATALOG_COLLECTION_PRODUCTS_REORDER: 54, CREATE_EVENT: 55, EVENT_PAGE: 56, EVENTS_IN_GROUP: 57, CATALOG_HOME: 59, CATALOG_COLLECTION: 60, CATALOG_ITEM: 61, CATALOG_CART: 62, FLOWS_EXPERIENCE: 63, BUSINESS_PROFILE_EDIT: 64, BUSINESS_PROFILE_EDIT_NAME: 65, BUSINESS_PROFILE_EDIT_CATEGORIES: 66, BUSINESS_PROFILE_EDIT_DESCRIPTION: 67, BUSINESS_PROFILE_EDIT_WEBSITE: 68, BUSINESS_PROFILE_EDIT_EMAIL: 69, BUSINESS_PROFILE_EDIT_ADDRESS: 70, BUSINESS_PROFILE_EDIT_HOURS: 71, BUSINESS_PROFILE_EDIT_COVER_PHOTO: 72, BUSINESS_PROFILE_LINK_FB_IG: 73, BUSINESS_PROFILE_HELP_PAGE_LINK_FB_IG: 74, PAYMENTS_HOME: 75, PAYMENTS_HOME_TRANSACTIONS: 76, PAYMENTS_HOME_RECENT_MERCHANTS: 77, PAYMENTS_HOME_INVITE_OTHERS: 78, PAYMENTS_HOME_HELP: 79, MESSAGE_MENU: 80, PIN_MESSAGE_REPLACEMENT_DIALOG: 81, PIN_MESSAGE_EXPIRATION_DIALOG: 82, MY_STATUS_LIST: 83, ALL_STATUS_LIST: 84, PIN_BANNER: 85, CALL_BANNER: 86, LANDING_SCREEN: 87, NEW_CHAT: 88, GROUP_MEMBER_ADD_GROUP_CREATION: 89, GROUP_MEMBER_ADD_EXISTING_GROUP: 90, GROUP_CHAT: 91, GROUP_CREATION: 92, }, ], relativeTimestampMs: [4, 'integer'], smbCatalogBusinessVertical: [20, 'string'], smbCatalogIsCatalogVisible: [21, 'boolean'], smbCatalogIsToggleCart: [22, 'boolean'], threadType: [ 7, { GROUP: 1, BROADCAST: 2, INDIVIDUAL: 3, STATUS: 4, CHANNEL: 5, SUB_GROUP: 6, DEFAULT_SUB_GROUP: 7, PARENT_GROUP: 8, }, ], tsSessionId: [5, 'integer'], typeOfGroup: [ 6, { GROUP: 1, SUBGROUP: 2, DEFAULT_SUBGROUP: 3, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'UserActivity', id: 1384, props: { userActivityBitmapHigh: [4, 'integer'], userActivityBitmapLen: [5, 'integer'], userActivityBitmapLow: [3, 'integer'], userActivitySessionCum: [7, 'integer'], userActivitySessionId: [1, 'string'], userActivitySessionSeq: [6, 'integer'], userActivityStartTime: [2, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'TsBitArray', id: 4332, props: { bitarrayHigh: [1, 'integer'], bitarrayLength: [2, 'integer'], bitarrayLow: [3, 'integer'], cumulativeBits: [4, 'integer'], relativeTimestampMs: [5, 'integer'], sessionSeq: [6, 'integer'], tsSessionId: [7, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcResourceLoad', id: 688, props: { webcResourceCached: [3, 'boolean'], webcResourceDuration: [2, 'timer'], webcResourceName: [1, 'string'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MdAppStateMessageRange', id: 2522, props: { additionalMessagesCount: [1, 'integer'], }, weight: 1000, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MdBootstrapDataApplied', id: 2298, props: { collection: [ 5, { REGULAR: 1, REGULAR_LOW: 2, REGULAR_HIGH: 3, CRITICAL_BLOCK: 4, CRITICAL_UNBLOCK_LOW: 5, }, ], historySyncChunkOrder: [14, 'integer'], historySyncStageProgress: [11, 'integer'], mdBootstrapContactsCount: [8, 'integer'], mdBootstrapHistoryPayloadType: [ 10, { INITIAL: 1, RECENT_HISTORY: 2, FULL_HISTORY: 3, PUSHNAME: 4, STATUS_V3: 5, NON_BLOCKING_DATA: 6, ON_DEMAND: 7, }, ], mdBootstrapPayloadType: [ 3, { CRITICAL: 1, NON_CRITICAL: 2, }, ], mdBootstrapSource: [ 2, { APP_STATE: 1, HISTORY: 2, }, ], mdBootstrapStepDuration: [6, 'integer'], mdBootstrapStepResult: [ 12, { SUCCESS: 1, FAILURE: 2, }, ], mdRegAttemptId: [9, 'string'], mdSessionId: [1, 'string'], mdTimestamp: [4, 'integer'], sentViaMms: [13, 'boolean'], usedSnapshot: [7, 'boolean'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MdBootstrapAppStateDataDownloaded', id: 2294, props: { mdBootstrapContactsCount: [5, 'integer'], mdBootstrapHistoryPayloadType: [ 11, { INITIAL: 1, RECENT_HISTORY: 2, FULL_HISTORY: 3, PUSHNAME: 4, STATUS_V3: 5, NON_BLOCKING_DATA: 6, ON_DEMAND: 7, }, ], mdBootstrapPayloadSize: [4, 'integer'], mdBootstrapPayloadType: [ 2, { CRITICAL: 1, NON_CRITICAL: 2, }, ], mdBootstrapStepDuration: [6, 'integer'], mdBootstrapStepResult: [ 7, { SUCCESS: 1, FAILURE: 2, }, ], mdRegAttemptId: [10, 'string'], mdSessionId: [1, 'string'], mdStorageQuotaBytes: [8, 'integer'], mdStorageQuotaUsedBytes: [9, 'integer'], mdTimestamp: [3, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MdAppStateKeyRotation', id: 2518, props: { mdAppStateKeyRotationReason: [ 1, { APP_STATE_SYNC_KEY_EXPIRY: 1, DEVICE_DEREGISTERATION: 2, NO_KEYS: 3, }, ], }, weight: 1000, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MdAppStateSyncDaily', id: 2300, props: { crossIndexConflictCount: [11, 'integer'], invalidActionCount: [4, 'integer'], keyRotationRemoveCount: [12, 'integer'], missingKeyCount: [9, 'integer'], mutationCount: [1, 'integer'], storedMutationCount: [7, 'integer'], unsetActionCount: [8, 'integer'], unsupportedActionCount: [5, 'integer'], uploadConflictCount: [10, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'WebcPwaEvent', id: 4116, props: { webcPwaAction: [ 2, { INSTALL: 1, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'DeepLinkClick', id: 1156, props: { deepLinkHasPhoneNumber: [2, 'boolean'], deepLinkHasText: [1, 'boolean'], deepLinkSessionId: [3, 'string'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MessageSecretErrors', id: 3686, props: { messageMediaType: [ 3, { NONE: 1, PHOTO: 2, VIDEO: 3, AUDIO: 4, PTT: 5, LOCATION: 6, CONTACT: 7, DOCUMENT: 8, URL: 9, CALL: 10, GIF: 11, FUTURE: 12, CONTACT_ARRAY: 13, LIVE_LOCATION: 14, PROFILE_PIC: 15, STICKER: 16, HSM: 17, PRODUCT_IMAGE: 18, TEMPLATE: 19, MD_APP_STATE: 20, MD_HISTORY_SYNC: 21, CATALOG_LINK: 22, PRODUCT_LINK: 23, ORDER: 24, LIST: 25, LIST_REPLY: 26, BUTTON_MESSAGE: 27, BUTTON_RESPONSE_MESSAGE: 28, PRODUCT_LIST: 29, BUTTON_NFM: 30, VIEW_ONCE_IMAGE: 31, VIEW_ONCE_VIDEO: 32, SHOP_STOREFRONT: 33, REACTION: 34, INTERACTIVE_NFM: 35, INTERACTIVE_RESPONSE_NFM: 36, POLL_CREATE: 37, POLL_VOTE: 38, TEXT: 39, KEEP: 40, UNKEEP: 41, INVISIBLE_HELLO: 42, MEDIA_EXPRESS_NOTIFY: 43, UNDECRYPTED_MEDIA: 44, UNDECRYPTED_TEXT: 45, UNDECRYPTED_PAY: 46, UNDECRYPTED_POLL: 47, UNDECRYPTED_REACTION: 48, UNDECRYPTED_MEDIA_NOTIFY: 49, VIEW_ONCE_AUDIO: 50, SCHEDULED_CALL_CREATE: 51, SCHEDULED_CALL_CANCEL: 52, PUSH_TO_VIDEO: 53, PIN_IN_CHAT: 54, INTERACTIVE_CAROUSEL: 55, COMMENT: 56, EPHEMERAL_SYNC_RESPONSE: 57, EVENT_CREATE: 58, EVENT_RESPOND: 59, LOTTIE_STICKER: 60, INTERACTIVE_PRODUCT_CAROUSEL: 61, INTERACTIVE_PRODUCT: 62, }, ], messageSecretAllowedList: [ 1, { MESSAGE_POLL: 0, }, ], messageSecretError: [ 2, { MISSING_MESSAGE_SECRET: 0, WRONG_LENGTH: 1, ENCRYPTION_ERROR: 2, DECRYPTION_ERROR: 3, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'ChatMessageCounts', id: 1644, props: { audioMessagesReceived: [149, 'integer'], audioMessagesSent: [150, 'integer'], awayMsgsSent: [56, 'integer'], bizCatalogType: [ 60, { SHOPS: 0, NATIVE: 1, }, ], bizConversationDepth: [65, 'integer'], blockReason: [ 33, { OTHER: 0, NO_LONGER_NEEDED: 1, NO_SIGN_UP: 2, SPAM: 3, OFFENSIVE_MESSAGES: 4, OTP_DID_NOT_REQUEST: 5, }, ], broadcastMsgsReceived: [30, 'integer'], broadcastMsgsSent: [29, 'integer'], callOffersReceived: [27, 'integer'], callOffersSent: [26, 'integer'], callsResultBusy: [70, 'integer'], callsResultCancelled: [71, 'integer'], callsResultConnected: [72, 'integer'], callsResultError: [78, 'integer'], callsResultMissed: [73, 'integer'], callsResultRejected: [74, 'integer'], canEditDmSettings: [88, 'boolean'], cartViews: [86, 'integer'], chatEphemeralityDuration: [15, 'integer'], chatMuted: [ 8, { NOT_MUTED: 1, MUTED_NO_NOTIFICATIONS: 2, MUTED_SILENT_NOTIFICATIONS: 3, }, ], chatOrigins: [ 179, { LID_USERNAME: 1, LID_CTWA: 2, OTHERS: 3, }, ], chatOverflowClicks: [79, 'integer'], chatTypeInd: [ 2, { INDIVIDUAL: 1, SMB: 2, ENT: 3, INTEROP: 4, }, ], collectionInquiriesSent: [44, 'integer'], commandSheetShow: [174, 'integer'], commentsReceived: [126, 'integer'], commerceMsgsReceived: [41, 'integer'], commerceMsgsSent: [40, 'integer'], disappearingChatInitiator: [ 59, { CHAT: 1, INITIATED_BY_ME: 2, INITIATED_BY_OTHER: 3, CHAT_PICKER: 4, BIZ_UPGRADE_FB_HOSTING: 5, }, ], documentMessagesReceived: [151, 'integer'], documentMessagesSent: [152, 'integer'], editedMsgsSent: [100, 'integer'], entryPointConversionApp: [47, 'string'], entryPointConversionSource: [46, 'string'], ephemeralMessagesReceived: [14, 'integer'], ephemeralMessagesSent: [13, 'integer'], ephemeralMessagesUnreadExpired: [69, 'integer'], ephemeralityInitiator: [ 109, { INITIATED_BY_ME: 1, INITIATED_BY_OTHER: 2, BIZ_UPGRADE_FB_HOSTING: 3, }, ], ephemeralityTriggerAction: [ 110, { UNKNOWN: 0, CHAT_SETTINGS: 1, ACCOUNT_SETTINGS: 2, BULK_CHANGE: 3, BIZ_SUPPORTS_FB_HOSTING: 4, }, ], eventCreationMessagesReceived: [142, 'integer'], eventCreationMessagesSent: [143, 'integer'], eventResponseMessagesReceived: [144, 'integer'], eventResponseMessagesSent: [145, 'integer'], fbCtaInquiriesSent: [45, 'integer'], firstResponseTime: [25, 'integer'], forwardAudioMessagesReceived: [153, 'integer'], forwardAudioMessagesSent: [154, 'integer'], forwardDocumentMessagesReceived: [155, 'integer'], forwardDocumentMessagesSent: [156, 'integer'], forwardGifMessagesReceived: [157, 'integer'], forwardGifMessagesSent: [158, 'integer'], forwardMessagesReceived: [89, 'integer'], forwardMessagesSent: [90, 'integer'], forwardPhotoMessagesReceived: [128, 'integer'], forwardPhotoMessagesSent: [129, 'integer'], forwardPtvMessagesReceived: [159, 'integer'], forwardPtvMessagesSent: [160, 'integer'], forwardStatusReplyMessagesReceived: [161, 'integer'], forwardStatusReplyMessagesSent: [162, 'integer'], forwardStickerMessagesReceived: [163, 'integer'], forwardStickerMessagesSent: [164, 'integer'], forwardTextMessagesReceived: [130, 'integer'], forwardTextMessagesSent: [131, 'integer'], forwardUrlMessagesReceived: [132, 'integer'], forwardUrlMessagesSent: [133, 'integer'], forwardVideoMessagesReceived: [165, 'integer'], forwardVideoMessagesSent: [166, 'integer'], gaStatus: [ 22, { NEW: 0, RETAINED: 1, RESURRECTED: 2, }, ], gifMessagesReceived: [167, 'integer'], gifMessagesSent: [168, 'integer'], greetingMsgsSent: [57, 'integer'], groupContainsBiz: [75, 'boolean'], groupInfoSetting: [ 87, { ADMINS_ONLY: 1, ALL_PARTICIPANTS: 2, }, ], groupMembershipReplies: [51, 'integer'], groupPrivateReplies: [52, 'integer'], groupSize: [19, 'integer'], hasUsername: [180, 'boolean'], imagineCommandClick: [175, 'integer'], imagineMentionClick: [146, 'integer'], imagineMentionShow: [176, 'integer'], isAContact: [6, 'boolean'], isAGroup: [5, 'boolean'], isArchived: [10, 'boolean'], isAutoMuted: [108, 'boolean'], isBlocked: [32, 'boolean'], isCartAddClicked: [36, 'boolean'], isCommerceViewed: [35, 'boolean'], isCtaOnPdpClicked: [37, 'boolean'], isInviteCreatedThread: [106, 'boolean'], isLabelled: [54, 'boolean'], isMessageYourself: [91, 'boolean'], isOppositePartyInitiated: [62, 'boolean'], isPinned: [9, 'boolean'], isPnhEnabledChat: [92, 'boolean'], isUser1pBizBotChat: [141, 'boolean'], isUser3pBotChat: [140, 'boolean'], isUserAgent: [111, 'boolean'], isUserCreatedAgent: [123, 'boolean'], isWaPayRegistered: [81, 'boolean'], labelledMsgs: [55, 'integer'], locationsSent: [96, 'integer'], messagesRead: [127, 'integer'], messagesReceived: [4, 'integer'], messagesSent: [3, 'integer'], messagesStarred: [12, 'integer'], messagesUnread: [11, 'integer'], metaAiMentionClick: [147, 'integer'], metaAiMentionShow: [148, 'integer'], newThread: [68, 'boolean'], odReceived: [82, 'integer'], oppositeVisibleIdentification: [ 181, { PHONE_NUMBER: 1, SAVED_CONTACT_NAME: 2, USERNAME: 3, MASKED_PHONE_NUMBER: 4, VERIFIED_BUSINESS_NAME: 5, PLACEHOLDER: 6, PUSHNAME: 7, }, ], ordersSent: [38, 'integer'], p2mOdNnpTransactionsSent: [83, 'integer'], p2mOdNpTransactionsSent: [84, 'integer'], paymentsSent: [39, 'integer'], pdpInquiriesSent: [42, 'integer'], pdpViews: [61, 'integer'], photoMessagesReceived: [134, 'integer'], photoMessagesSent: [135, 'integer'], pollCreationMessagesReceived: [115, 'integer'], pollCreationMessagesSent: [116, 'integer'], pollUpdateMessagesReceived: [117, 'integer'], pollUpdateMessagesSent: [118, 'integer'], profileReplies: [64, 'integer'], profileViews: [63, 'integer'], pttMessagesReceived: [119, 'integer'], pttMessagesSent: [120, 'integer'], ptvMessagesReceived: [121, 'integer'], ptvMessagesSent: [122, 'integer'], quickRepliesSent: [58, 'integer'], reactionsReceived: [97, 'integer'], reactionsSent: [98, 'integer'], receiverDefaultDisappearingDuration: [21, 'integer'], repliesSent: [80, 'integer'], requestedPhoneNumber: [93, 'boolean'], seenMaskedPhoneNumber: [94, 'boolean'], senderDefaultDisappearingDuration: [20, 'integer'], sharedPhoneNumber: [99, 'boolean'], smbMarketingMessagesReactionsSent: [101, 'integer'], smbMarketingMessagesRepliesSent: [102, 'integer'], smbMarketingMessagesSpamReports: [103, 'integer'], smbMarketingMsgsReceived: [104, 'integer'], smbMarketingMsgsSent: [105, 'integer'], spamReports: [31, 'integer'], startTime: [7, 'integer'], statusReplies: [50, 'integer'], statusReplyMessagesReceived: [169, 'integer'], statusViews: [49, 'integer'], stickerMessagesReceived: [170, 'integer'], stickerMessagesSent: [171, 'integer'], storefrontInquiriesSent: [43, 'integer'], suggestionPromptsClick: [177, 'integer'], suggestionPromptsShow: [178, 'integer'], textMessagesReceived: [136, 'integer'], textMessagesSent: [137, 'integer'], textMessagesToUserCreatedAgentCnt: [124, 'integer'], threadDs: [66, 'string'], threadId: [67, 'string'], totalCallDuration: [28, 'integer'], totalMessageEditsFromAgentCnt: [112, 'integer'], totalMessageFromAgentCnt: [113, 'integer'], totalMessageToAgentCnt: [114, 'integer'], totalMessagesToUserCreatedAgentCnt: [125, 'integer'], typeOfGroup: [ 85, { GROUP: 1, SUBGROUP: 2, DEFAULT_SUBGROUP: 3, }, ], urlMessagesReceived: [138, 'integer'], urlMessagesSent: [139, 'integer'], viaContactlessChats: [107, 'boolean'], videoCallsOffered: [76, 'integer'], videoMessagesReceived: [172, 'integer'], videoMessagesSent: [173, 'integer'], viewOnceMessagesOpened: [18, 'integer'], viewOnceMessagesReceived: [17, 'integer'], viewOnceMessagesSent: [16, 'integer'], voiceCallsOffered: [77, 'integer'], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'AddressingModeMismatch', id: 4750, props: { iqResponse: [ 1, { ADD_PARTICIPANT: 1, REMOVE_PARTICIPANT: 2, PROMOTE_PARTICIPANT: 3, DEMOTE_PARTICIPANT: 4, }, ], localAddressingMode: [ 2, { PN: 1, LID: 2, }, ], mismatchOrigin: [ 6, { INCOMING_GROUP_MESSAGE: 1, ACK_OUTGOING_MESSAGE: 2, GROUP_NOTIFICATION: 3, GROUP_PROFILE_PICTURE_NOTIFICATION: 4, IQ_RESPONSES: 5, }, ], notificationTag: [3, 'string'], serverAddressingMode: [ 5, { PN: 1, LID: 2, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MdBadDeviceSentMessage', id: 2176, props: { dsmError: [ 2, { INVALID_SENDER: 1, MISSING_DSM: 2, INVALID_DSM: 3, }, ], peerType: [ 1, { PRIMARY: 1, COMPANION: 2, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'GatedMessageReceived', id: 3152, props: { chatGatedReason: [ 1, { TOS3: 1, COUNTRY: 2, }, ], }, weight: 1, wamChannel: 'regular', privateStatsIdInt: -1, }, { name: 'MessageReceive', id: 450, props: { agentEngagementType: [ 28, { DIRECT_CHAT: 0, INVOKED: 1, MEMBER: 2, }, ], botType: [ 37, { UNKNOWN: 0, METABOT: 1, BOT_1P_BIZ: 2, BOT_3P_BIZ: 3, }, ], chatOrigins: [ 38, { LID_USERNAME: 1, LID_CTWA: 2, OTHERS: 3, }, ], deviceCount: [16, 'integer'], deviceSizeBucket: [ 10, { LT32: 1, LT64: 2, LT128: 3, LT256: 4, LT512: 5, LT1000: 6, LT1024: 16, LT1500: 7, LT2000: 8, LT2500: 9, LT3000: 10, LT3500: 11, LT4000: 12, LT4500: 13, LT5000: 14, LARGEST_BUCKET: 15, }, ], disappearingChatInitiator: [ 14, { CHAT: 1, INITIATED_BY_ME: 2, INITIATED_BY_OTHER: 3, CHAT_PICKER: 4, BIZ_UPGRADE_FB_HOSTING: 5, }, ], editType: [ 25, { NOT_EDITED: 0, EDITED: 1, SENDER_REVOKE: 2, ADMIN_REVOKE: 3, }, ], ephemeralityDuration: [13, 'integer'], ephemeralityInitiator: [ 26, { INITIATED_BY_ME: 1, INITIATED_BY_OTHER: 2, BIZ_UPGRADE_FB_HOSTING: 3, }, ], ephemeralityTriggerAction: [ 27, { UNKNOWN: 0, CHAT_SETTINGS: 1, ACCOUNT_SETTINGS: 2,