UNPKG

wailey-whatsapp-lib

Version:

A robust WhatsApp library for Node.js with support for QR code and pairing code authentication

51 lines (50 loc) 1.73 kB
/** * Wailey-library Default Configurations * (Renamed from Baileys while maintaining identical functionality) */ import { CommonSocketConfig, MediaType, SocketConfig } from '../Types'; export declare const UNAUTHORIZED_CODES: number[]; export declare const DEFAULT_ORIGIN = "https://web.whatsapp.com"; export declare const DEF_CALLBACK_PREFIX = "CB:"; export declare const DEF_TAG_PREFIX = "TAG:"; export declare const PHONE_CONNECTION_CB = "CB:Pong"; export declare const WA_DEFAULT_EPHEMERAL: number; export declare const NOISE_MODE = "Noise_XX_25519_AESGCM_SHA256"; export declare const DICT_VERSION = 2; export declare const KEY_BUNDLE_TYPE: Buffer<ArrayBuffer>; export declare const NOISE_WA_HEADER: Buffer<ArrayBuffer>; export declare const INITIAL_PREKEY_COUNT = 30; export declare const MIN_PREKEY_COUNT = 5; export declare const DEFAULT_CONNECTION_CONFIG: SocketConfig; export declare const MEDIA_PATH_MAP: { [T in MediaType]?: string; }; export declare const MEDIA_HKDF_KEY_MAPPING: { audio: string; document: string; gif: string; image: string; ppic: string; product: string; ptt: string; sticker: string; video: string; 'thumbnail-document': string; 'thumbnail-image': string; 'thumbnail-video': string; 'thumbnail-link': string; 'thumbnail-ppic': string; 'md-msg-hist': string; 'md-app-state': string; 'product-catalog-image': string; 'payment-bg-image': string; }; export declare const MEDIA_KEYS: { IMAGE_KEY: string; DOCUMENT_KEY: string; AUDIO_KEY: string; VIDEO_KEY: string; LINK_KEY: string; }; export declare const WAILEY_CONFIG: CommonSocketConfig; export declare const PROCESSABLE_HISTORY_TYPES: Set<string>;