@japofc/baileys - v2.4.7
    Preparing search index...

    Type Alias SignalRepository

    type SignalRepository = {
        decryptGroupMessage(
            opts: DecryptGroupSignalOpts,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        decryptMessage(
            opts: DecryptSignalProtoOpts,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        deleteSession(jids: string[]): Promise<void>;
        encryptGroupMessage(
            opts: EncryptGroupMessageOpts,
        ): Promise<
            { ciphertext: Uint8Array; senderKeyDistributionMessage: Uint8Array },
        >;
        encryptMessage(
            opts: EncryptMessageOpts,
        ): Promise<{ ciphertext: Uint8Array; type: "pkmsg" | "msg" }>;
        getSenderKeyDistributionMessage(
            opts: GetSenderKeyDistributionMessageOpts,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        getSessionInfo(
            jid: string,
        ): Promise<{ baseKey: Uint8Array; registrationId: number } | null>;
        hasSenderKey(opts: GetSenderKeyDistributionMessageOpts): Promise<boolean>;
        injectE2ESession(opts: E2ESessionOpts): Promise<void>;
        jidToSignalProtocolAddress(jid: string): string;
        migrateSession(
            fromJid: string,
            toJid: string,
        ): Promise<{ migrated: number; skipped: number; total: number }>;
        processSenderKeyDistributionMessage(
            opts: ProcessSenderKeyDistributionMessageOpts,
        ): Promise<void>;
        validateSession(jid: string): Promise<{ exists: boolean; reason?: string }>;
        validateSession(jid: string): Promise<{ exists: boolean; reason?: string }>;
    }

    Hierarchy (View Summary)

    Index
    • Parameters

      • opts: DecryptGroupSignalOpts

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • opts: DecryptSignalProtoOpts

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • jids: string[]

      Returns Promise<void>

    • Parameters

      • opts: EncryptGroupMessageOpts

      Returns Promise<{ ciphertext: Uint8Array; senderKeyDistributionMessage: Uint8Array }>

    • Parameters

      • opts: EncryptMessageOpts

      Returns Promise<{ ciphertext: Uint8Array; type: "pkmsg" | "msg" }>

    • Parameters

      • opts: GetSenderKeyDistributionMessageOpts

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • jid: string

      Returns Promise<{ baseKey: Uint8Array; registrationId: number } | null>

    • Parameters

      • opts: GetSenderKeyDistributionMessageOpts

      Returns Promise<boolean>

    • Parameters

      • opts: E2ESessionOpts

      Returns Promise<void>

    • Parameters

      • jid: string

      Returns string

    • Parameters

      • fromJid: string
      • toJid: string

      Returns Promise<{ migrated: number; skipped: number; total: number }>

    • Parameters

      • opts: ProcessSenderKeyDistributionMessageOpts

      Returns Promise<void>

    • Parameters

      • jid: string

      Returns Promise<{ exists: boolean; reason?: string }>

    • Parameters

      • jid: string

      Returns Promise<{ exists: boolean; reason?: string }>