diff --git a/src/Types/index.ts b/src/Types/index.ts index 213fdf9..ca2b507 100644 --- a/src/Types/index.ts +++ b/src/Types/index.ts @@ -16,14 +16,16 @@ import { SocketConfig } from './Socket' export type UserFacingSocketConfig = Partial & { auth: AuthenticationState } export enum DisconnectReason { - connectionClosed = 428, - connectionLost = 408, + connectionClosed = 428, + connectionLost = 408, connectionReplaced = 440, timedOut = 408, - loggedOut = 401, + loggedOut = 401, badSession = 500, restartRequired = 515, - multideviceMismatch = 411 + multideviceMismatch = 411, + forbidden = 403, + unavailableService = 503 } export type WAInitResponse = { @@ -53,4 +55,4 @@ export type WABusinessProfile = { address?: string } -export type CurveKeyPair = { private: Uint8Array, public: Uint8Array } \ No newline at end of file +export type CurveKeyPair = { private: Uint8Array, public: Uint8Array }