UNPKG

@periskope/baileys

Version:

WhatsApp API

65 lines 1.82 kB
export * from './Auth.js'; export * from './GroupMetadata.js'; export * from './Chat.js'; export * from './Contact.js'; export * from './State.js'; export * from './Message.js'; export * from './Socket.js'; export * from './Events.js'; export * from './Product.js'; export * from './Call.js'; export * from './Signal.js'; export * from './Newsletter.js'; import type { AuthenticationState } from './Auth.js'; import type { SocketConfig } from './Socket.js'; export type UserFacingSocketConfig = Partial<SocketConfig> & { auth: AuthenticationState; }; export type BrowsersMap = { ubuntu(browser: string): [string, string, string]; macOS(browser: string): [string, string, string]; baileys(browser: string): [string, string, string]; windows(browser: string): [string, string, string]; appropriate(browser: string): [string, string, string]; }; export declare enum DisconnectReason { connectionClosed = 428, connectionLost = 408, connectionReplaced = 440, timedOut = 408, loggedOut = 401, badSession = 500, restartRequired = 515, multideviceMismatch = 411, forbidden = 403, unavailableService = 503 } export type WAInitResponse = { ref: string; ttl: number; status: 200; }; 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; }; //# sourceMappingURL=index.d.ts.map