UNPKG

@wppconnect/wa-js

Version:

WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web

62 lines (61 loc) 2.88 kB
/*! * Copyright 2021 WPPConnect Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** @whatsapp 83578 * @whatsapp 88950 >= 2.2218.4 * @whatsapp 788950 >= 2.2222.8 * @whatsapp WAWebLogoutReasonConstants >= 2.3000.x */ export declare enum LogoutReason { UserInitiated = "user_initiated", SyncdFailure = "syncd_failure", InvalidAdvStatus = "invalid_adv_status", CriticalSyncTimeout = "critical_sync_timeout", SyncdTimeout = "syncd_timeout", HistorySyncTimeout = "history_sync_timeout", AccountSyncTimeout = "account_sync_timeout", MDOptOut = "md_opt_out", UnknownCompanion = "unknown_companion", ClientVersionOutdated = "client_version_outdated", SyncdErrorDuringBootstrap = "syncd_error_during_bootstrap", AccountSyncError = "account_sync_error", StorageQuotaExceeded = "storage_quota_exceeded", PrimaryIdentityKeyChange = "primary_identity_key_change", MissingEncSalt = "missing_enc_salt", MissingScreenLockSalt = "missing_screen_lock_salt", AccountLocked = "account_locked", LidMigrationSplitThreadMismatch = "lid_migration_split_thread_mismatch", LidMigrationNoLidAvailiable = "lid_migration_no_lid_available", LidMigrationPrimaryMappingsObsolete = "lid_migration_primary_mappings_obsolete", LidMigrationPeerMappingsNotReceived = "lid_migration_peer_mapping_not_received", LidMigrationStateDiscrepancy = "lid_migration_state_discrepancy", LidMigrationPeerMappingsMalformed = "lid_migration_peer_mapping_malformed", LidMigrationFailedToParseMapping = "lid_migration_failed_to_parse_mapping", LidMigrationCompanionIncompatibleKillswitch = "lid_migration_companion_incompatible_killswitch", LidMigrationOneOnOneThreadMigrationInternalError = "lid_migration_one_on_one_thread_migration_internal_error", LidBlocklistPnWhenMigrated = "lid_blocklist_pn_when_migrated", LidBlocklistChatDbUnmigrated = "lid_blocklist_chat_db_unmigrated", WebFailAddChat = "web_fail_add_chat", WebFailOfflineResume = "web_fail_offline_resume", WebFailStorageInitialization = "web_fail_storage_initialization", WebFailEncSalt = "web_fail_enc_salt", CacheStorageOpenFailed = "cache_storage_open_failed" } export declare enum LOGOUT_REASON_CODE { CLIENT_FATAL = "0", SYNC_FAIL = "1", INITIAL_HISTORY_SYNC_TIMEOUT = "2", ACCOUNT_LOCKED = "3" }