defy.tools
Get Started
Reference
defy.tools
Notification
Class Notification
Hierarchy (
view full
)
Note
Notification
Index
Constructors
constructor
Properties
channel
channel
Id
contact
Pubkeys?
content
dkx
Parent
doc
Index
error?
nostr
Event
owner
Pub
Key
private
Channel
Keyset?
type
verified
version
Accessors
keyset
payload
ref
Id
Methods
clone
delete
deserialize
get
Reaction
Tracker
get
Reactions
get
Refs
get
Replies
publish
reply
serialize
Constructors
constructor
new
Notification
(
)
:
Notification
Returns
Notification
Properties
channel
channel
:
Channel
channel
Id
channel
Id
:
string
Optional
contact
Pubkeys
contact
Pubkeys
?:
string
[]
content
content
:
NotificationPayload
dkx
Parent
dkx
Parent
:
HDKIndex
doc
Index
doc
Index
:
number
Optional
error
error
?:
ContentError
nostr
Event
nostr
Event
:
Event
<
number
>
owner
Pub
Key
owner
Pub
Key
:
string
Optional
private
Channel
Keyset
private
Channel
Keyset
?:
DocumentKeyset
type
type
:
NotificationType
= NotificationType.Unknown
verified
verified
:
boolean
= false
version
version
:
number
= 1
Accessors
keyset
get
keyset
(
)
:
DocumentKeyset
Returns
DocumentKeyset
set
keyset
(
keyset
)
:
void
Parameters
keyset
:
DocumentKeyset
Returns
void
payload
get
payload
(
)
:
any
[]
Returns
any
[]
ref
Id
get
refId
(
)
:
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
>
deserialize
deserialize
(
payload
)
:
any
[]
Parameters
payload
:
string
Returns
any
[]
get
Reaction
Tracker
get
Reaction
Tracker
(
documents
?
)
:
{
[
key
:
string
|
symbol
]
:
number
;
}
Parameters
documents
:
ContentDocument
[]
= ...
Returns
{
[
key
:
string
|
symbol
]
:
number
;
}
[
key
:
string
|
symbol
]:
number
get
Reactions
get
Reactions
(
documents
?
)
:
Note
[]
Parameters
documents
:
ContentDocument
[]
= ...
Returns
Note
[]
get
Refs
get
Refs
(
documents
?
)
:
undefined
|
Note
[]
Parameters
documents
:
ContentDocument
[]
= ...
Returns
undefined
|
Note
[]
get
Replies
get
Replies
(
documents
?
)
:
Note
[]
Parameters
documents
:
ContentDocument
[]
= ...
Returns
Note
[]
publish
publish
<
TPublishType
>
(
options
?
)
:
Observable
<
TPublishType
>
Type Parameters
TPublishType
extends
ContentDocument
Parameters
Optional
options
:
ContentPublishOptions
Returns
Observable
<
TPublishType
>
reply
reply
(
text
,
kind
,
created_at
?
)
:
Observable
<
Note
>
Parameters
text
:
string
kind
:
number
Optional
created_at
:
number
Returns
Observable
<
Note
>
serialize
serialize
(
)
:
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