@japofc/baileys - v2.4.7
GitHub
npm
Preparing search index...
SignalRepositoryWithLIDStore
Interface SignalRepositoryWithLIDStore
interface
SignalRepositoryWithLIDStore
{
close
?:
()
=>
void
;
lidMapping
:
LIDMappingStore
;
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
)
SignalRepository
SignalRepositoryWithLIDStore
Index
Properties
close?
lid
Mapping
Methods
decrypt
Group
Message
decrypt
Message
delete
Session
encrypt
Group
Message
encrypt
Message
get
Sender
Key
Distribution
Message
get
Session
Info
has
Sender
Key
inject
E2
E
Session
jid
To
Signal
Protocol
Address
migrate
Session
process
Sender
Key
Distribution
Message
validate
Session
Properties
Optional
close
close
?:
()
=>
void
lid
Mapping
lidMapping
:
LIDMappingStore
Methods
decrypt
Group
Message
decryptGroupMessage
(
opts
:
DecryptGroupSignalOpts
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
opts
:
DecryptGroupSignalOpts
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
decrypt
Message
decryptMessage
(
opts
:
DecryptSignalProtoOpts
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
opts
:
DecryptSignalProtoOpts
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
delete
Session
deleteSession
(
jids
:
string
[]
)
:
Promise
<
void
>
Parameters
jids
:
string
[]
Returns
Promise
<
void
>
encrypt
Group
Message
encryptGroupMessage
(
opts
:
EncryptGroupMessageOpts
,
)
:
Promise
<
{
ciphertext
:
Uint8Array
;
senderKeyDistributionMessage
:
Uint8Array
}
,
>
Parameters
opts
:
EncryptGroupMessageOpts
Returns
Promise
<
{
ciphertext
:
Uint8Array
;
senderKeyDistributionMessage
:
Uint8Array
}
>
encrypt
Message
encryptMessage
(
opts
:
EncryptMessageOpts
,
)
:
Promise
<
{
ciphertext
:
Uint8Array
;
type
:
"pkmsg"
|
"msg"
}
>
Parameters
opts
:
EncryptMessageOpts
Returns
Promise
<
{
ciphertext
:
Uint8Array
;
type
:
"pkmsg"
|
"msg"
}
>
get
Sender
Key
Distribution
Message
getSenderKeyDistributionMessage
(
opts
:
GetSenderKeyDistributionMessageOpts
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
opts
:
GetSenderKeyDistributionMessageOpts
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
get
Session
Info
getSessionInfo
(
jid
:
string
,
)
:
Promise
<
{
baseKey
:
Uint8Array
;
registrationId
:
number
}
|
null
>
Parameters
jid
:
string
Returns
Promise
<
{
baseKey
:
Uint8Array
;
registrationId
:
number
}
|
null
>
has
Sender
Key
hasSenderKey
(
opts
:
GetSenderKeyDistributionMessageOpts
)
:
Promise
<
boolean
>
Parameters
opts
:
GetSenderKeyDistributionMessageOpts
Returns
Promise
<
boolean
>
inject
E2
E
Session
injectE2ESession
(
opts
:
E2ESessionOpts
)
:
Promise
<
void
>
Parameters
opts
:
E2ESessionOpts
Returns
Promise
<
void
>
jid
To
Signal
Protocol
Address
jidToSignalProtocolAddress
(
jid
:
string
)
:
string
Parameters
jid
:
string
Returns
string
migrate
Session
migrateSession
(
fromJid
:
string
,
toJid
:
string
,
)
:
Promise
<
{
migrated
:
number
;
skipped
:
number
;
total
:
number
}
>
Parameters
fromJid
:
string
toJid
:
string
Returns
Promise
<
{
migrated
:
number
;
skipped
:
number
;
total
:
number
}
>
process
Sender
Key
Distribution
Message
processSenderKeyDistributionMessage
(
opts
:
ProcessSenderKeyDistributionMessageOpts
,
)
:
Promise
<
void
>
Parameters
opts
:
ProcessSenderKeyDistributionMessageOpts
Returns
Promise
<
void
>
validate
Session
validateSession
(
jid
:
string
)
:
Promise
<
{
exists
:
boolean
;
reason
?:
string
}
>
Parameters
jid
:
string
Returns
Promise
<
{
exists
:
boolean
;
reason
?:
string
}
>
validateSession
(
jid
:
string
)
:
Promise
<
{
exists
:
boolean
;
reason
?:
string
}
>
Parameters
jid
:
string
Returns
Promise
<
{
exists
:
boolean
;
reason
?:
string
}
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
close
lid
Mapping
Methods
decrypt
Group
Message
decrypt
Message
delete
Session
encrypt
Group
Message
encrypt
Message
get
Sender
Key
Distribution
Message
get
Session
Info
has
Sender
Key
inject
E2
E
Session
jid
To
Signal
Protocol
Address
migrate
Session
process
Sender
Key
Distribution
Message
validate
Session
GitHub
npm
@japofc/baileys - v2.4.7
Loading...