UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

76 lines (75 loc) 2.97 kB
/// <reference types="node" /> import { proto } from '../enc'; import type { MediaType, SocketConfig } from '../../Models'; export declare const BRAND: any; export declare const UNAUTHORIZED_CODES: number[]; export declare const DEFAULT_ORIGIN = "https://web.whatsapp.com"; export declare const MOBILE_ENDPOINT = "g.whatsapp.net"; export declare const MOBILE_PORT = 443; 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 MOBILE_TOKEN: Buffer; export declare const MOBILE_REGISTRATION_ENDPOINT = "https://v.whatsapp.net/v2"; export declare const MOBILE_USERAGENT = "WhatsApp/2.23.13.82 iOS/15.3.1 Device/Apple-iPhone_7"; export declare const REGISTRATION_PUBLIC_KEY: Buffer; export declare const NOISE_MODE = "Noise_XX_25519_AESGCM_SHA256\0\0\0\0"; export declare const DICT_VERSION = 2; export declare const KEY_BUNDLE_TYPE: Buffer; export declare const NOISE_WA_HEADER: Buffer; export declare const PROTOCOL_VERSION: number[]; export declare const MOBILE_NOISE_HEADER: Buffer; /** from: https://stackoverflow.com/questions/3809401/what-is-a-good-regular-expression-to-match-a-url */ export declare const URL_REGEX: RegExp; export declare const URL_EXCLUDE_REGEX: RegExp; export declare const WA_CERT_DETAILS: { SERIAL: number; }; export declare const PROCESSABLE_HISTORY_TYPES: proto.Message.HistorySyncNotification.HistorySyncType[]; export declare const optionsDefault: { phoneState: boolean; driveStorage: string; mongoUrl: string; amqpUrl: string; folderPath: string; setDevice: string; deviceName: string; phoneNumber: string; sessionName: string; base64: string; urlcode: string; }; 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; 'md-msg-hist': string; 'md-app-state': string; 'product-catalog-image': string; 'payment-bg-image': string; ptv: string; }; export declare const MEDIA_KEYS: ("ppic" | "product" | "image" | "video" | "sticker" | "audio" | "gif" | "ptt" | "thumbnail-document" | "thumbnail-image" | "thumbnail-link" | "thumbnail-video" | "md-app-state" | "md-msg-hist" | "document" | "product-catalog-image" | "payment-bg-image" | "ptv")[]; export declare const MIN_PREKEY_COUNT = 5; export declare const INITIAL_PREKEY_COUNT = 30; export declare const DEFAULT_CACHE_TTLS: { SIGNAL_STORE: number; MSG_RETRY: number; CALL_OFFER: number; USER_DEVICES: number; };