defy.tools
Get Started
Reference
defy.tools
ContactChannel
Class ContactChannel
Hierarchy (
view full
)
Channel
ContactChannel
Index
Constructors
constructor
Properties
channel
Id
content
dkx
Parent
doc
Index
documents
error?
indexes
last
Note
nostr
Event
notif
Key
notif
Recv
owner
Pub
Key
verified
version
Accessors
filters
keyset
messages
payload
Methods
clone
delete
delete
Message
deserialize
listen
notify
publish
receive
Notification
reply
send
Message
serialize
set
Send
Key
create
get
Channel
Id
Constructors
constructor
new
Contact
Channel
(
)
:
ContactChannel
Returns
ContactChannel
Properties
channel
Id
channel
Id
:
string
content
content
:
ContactChannelPayload
dkx
Parent
dkx
Parent
:
HDKIndex
doc
Index
doc
Index
:
number
documents
documents
:
Note
[]
= []
Optional
error
error
?:
ContentError
indexes
indexes
:
{
[
pubkey
:
string
]
:
{
dkxNotify
:
HDKXNotification
;
dkxRecv
:
HDKXTwoParty
;
dkxSend
?:
HDKXTwoParty
;
}
;
}
Type declaration
[
pubkey
:
string
]:
{
dkxNotify
:
HDKXNotification
;
dkxRecv
:
HDKXTwoParty
;
dkxSend
?:
HDKXTwoParty
;
}
dkx
Notify
:
HDKXNotification
dkx
Recv
:
HDKXTwoParty
Optional
dkx
Send
?:
HDKXTwoParty
last
Note
last
Note
:
BehaviorSubject
<
{
created_at
:
number
;
text
:
string
;
}
>
= ...
Type declaration
created_
at
:
number
text
:
string
nostr
Event
nostr
Event
:
Event
<
number
>
notif
Key
notif
Key
:
BehaviorSubject
<
Notification
>
= ...
notif
Recv
notif
Recv
:
Subject
<
Notification
>
= ...
owner
Pub
Key
owner
Pub
Key
:
string
verified
verified
:
boolean
= false
version
version
:
number
= 1
Accessors
filters
get
filters
(
)
:
Observable
<
HDKIndexRelayFilters
>
Returns
Observable
<
HDKIndexRelayFilters
>
keyset
set
keyset
(
keyset
)
:
void
Parameters
keyset
:
DocumentKeyset
Returns
void
messages
get
messages
(
)
:
Note
[]
Returns
Note
[]
payload
get
payload
(
)
:
any
[]
Returns
any
[]
Methods
clone
clone
<
TCloneType
>
(
)
:
TCloneType
Type Parameters
TCloneType
extends
ContentDocument
Returns
TCloneType
delete
delete
<
TDeleteType
>
(
)
:
Observable
<
TDeleteType
>
Type Parameters
TDeleteType
extends
ContentDocument
Returns
Observable
<
TDeleteType
>
delete
Message
delete
Message
(
doc
)
:
Observable
<
Note
>
Parameters
doc
:
Note
Returns
Observable
<
Note
>
deserialize
deserialize
(
payload
)
:
any
[]
Parameters
payload
:
string
Returns
any
[]
listen
listen
(
__namedParameters
?
)
:
[
Observable
<
Note
>
,
(
(
)
=>
void
)
]
Parameters
__namedParameters
:
HDKIndexQueryArgs
= {}
Returns
[
Observable
<
Note
>
,
(
(
)
=>
void
)
]
notify
notify
(
text
)
:
Observable
<
Notification
>
Parameters
text
:
string
Returns
Observable
<
Notification
>
publish
publish
<
TPublishType
>
(
options
?
)
:
Observable
<
TPublishType
>
Type Parameters
TPublishType
extends
ContentDocument
Parameters
Optional
options
:
ContentPublishOptions
Returns
Observable
<
TPublishType
>
receive
Notification
receive
Notification
(
notif
)
:
void
Parameters
notif
:
Notification
Returns
void
reply
reply
(
doc
,
text
,
kind
)
:
Observable
<
Note
>
Parameters
doc
:
Note
text
:
string
kind
:
number
Returns
Observable
<
Note
>
send
Message
send
Message
(
text
)
:
Observable
<
Note
>
Parameters
text
:
string
Returns
Observable
<
Note
>
serialize
serialize
(
)
:
string
Returns
string
set
Send
Key
set
Send
Key
(
profileKey
,
sendKey
,
created_at
)
:
void
Parameters
profileKey
:
string
sendKey
:
HDKey
created_at
:
number
Returns
void
Static
create
create
(
info
,
publish
?
)
:
Observable
<
ContactChannel
>
Parameters
info
:
string
[]
|
Notification
Optional
publish
:
boolean
Returns
Observable
<
ContactChannel
>
Static
get
Channel
Id
get
Channel
Id
(
pubkeys
)
:
string
Parameters
pubkeys
:
string
[]
Returns
string
Introduction
Get Started
Reference
Source
Examples
Defy Social
Get Started
Reference
Preparing search index...
The search index is not available
defy.tools
CONTENTS
Key Storage
KeyStore
KeyStoreFileStorage
KeyStoreStorage
KeyStoreWebStorage
KeyStoreConstructorArgs
KeyStoreStorageArgs
Indexes
HDKIndexType
HDKIndex
HDKIndexLoader
HDKXNotification
HDKXSequentialPrivate
HDKXSingleton
HDKXTimeBasedPublic
HDKXTwoParty
Channels
Channel
ContactChannel
PrivateChannel
Content
ContentDocument
Note
Notification
Subscription
Content Payload
NostrKinds
ContactChannelPayload
ContactInfo
ContentError
ContentTemplate
NotePayload
NotificationPayload
PrivateChannelContactInfo
PrivateChannelPayload
ProfileMetadata
SubscriptionPayload
Relay
RelayPool
ContentPublishOptions
HDKIndexQueryArgs
HDKIndexRelayFilters
NostrRelaySubscription
QueryJob
RelayRequest
RelayResponse
BIP32
HDKey
Bip32NetworkInfo
Bip32SerializationPrefix
HARDENED_KEY_OFFSET
Versions
Other
NotificationType
DefyContext
DocumentKeyset
DocumentKeysetDTO
HDKIndexDTO
SequentialKeyset
SequentialKeysetDTO
getNowSeconds
getReducedKey
uniqueNotesBySenderAndDate