mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
@@ -16,14 +16,16 @@ import { SocketConfig } from './Socket'
|
|||||||
export type UserFacingSocketConfig = Partial<SocketConfig> & { auth: AuthenticationState }
|
export type UserFacingSocketConfig = Partial<SocketConfig> & { auth: AuthenticationState }
|
||||||
|
|
||||||
export enum DisconnectReason {
|
export enum DisconnectReason {
|
||||||
connectionClosed = 428,
|
connectionClosed = 428,
|
||||||
connectionLost = 408,
|
connectionLost = 408,
|
||||||
connectionReplaced = 440,
|
connectionReplaced = 440,
|
||||||
timedOut = 408,
|
timedOut = 408,
|
||||||
loggedOut = 401,
|
loggedOut = 401,
|
||||||
badSession = 500,
|
badSession = 500,
|
||||||
restartRequired = 515,
|
restartRequired = 515,
|
||||||
multideviceMismatch = 411
|
multideviceMismatch = 411,
|
||||||
|
forbidden = 403,
|
||||||
|
unavailableService = 503
|
||||||
}
|
}
|
||||||
|
|
||||||
export type WAInitResponse = {
|
export type WAInitResponse = {
|
||||||
@@ -53,4 +55,4 @@ export type WABusinessProfile = {
|
|||||||
address?: string
|
address?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CurveKeyPair = { private: Uint8Array, public: Uint8Array }
|
export type CurveKeyPair = { private: Uint8Array, public: Uint8Array }
|
||||||
|
|||||||
Reference in New Issue
Block a user