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

63 lines (62 loc) 1.72 kB
export * from './Auth'; export * from './GroupMetadata'; export * from './Chat'; export * from './Contact'; export * from './Newsletter'; export * from './State'; export * from './Message'; export * from './Socket'; export * from './Events'; export * from './Product'; export * from './Call'; export * from './Signal'; import { AuthenticationState } from './Auth'; import { SocketConfig } from './Socket'; export type UserFacingSocketConfig = Partial<SocketConfig> & { auth: AuthenticationState; }; export declare enum DisconnectReason { connectionClosed = 428, connectionLost = 408, connectionReplaced = 440, timedOut = 408, loggedOut = 401, badSession = 500, restartRequired = 515, multideviceMismatch = 411 } export type WAInitResponse = { ref: string; ttl: number; status: 200; }; export type BrowsersMap = { ubuntu(browser: string): [string | any, string, string]; macOS(browser: string): [string | any, string, string]; orkestral(browser: string): [string | any, string, string]; windows(browser: string): [string | any, string, string]; appropriate(browser: string): [string | any, string, string]; }; export type WABusinessHoursConfig = { day_of_week: string; mode: string; open_time?: number; close_time?: number; }; export type WABusinessProfile = { description: string; email: string | undefined; business_hours: { timezone?: string; config?: WABusinessHoursConfig[]; business_config?: WABusinessHoursConfig[]; }; website: string[]; category?: string; wid?: string; address?: string; }; export type CurveKeyPair = { private: Uint8Array; public: Uint8Array; };