defy.tools
Get Started
Reference
defy.tools
PrivateChannel
Class PrivateChannel
Hierarchy (
view full
)
Channel
PrivateChannel
Index
Constructors
constructor
Properties
channel
Id
content
dkx
Parent
dkx
Post
dkx
Subscription
doc
Index
documents
error?
invites
nostr
Event
notif
Key
owner
Pub
Key
subscriptions
verified
version
Accessors
filters
keyset
payload
posts
Methods
add
Invitations
add
Subscription
clone
delete
deserialize
listen
publish
remove
Invitation
remove
Subscription
save
Note
serialize
share
Keys
create
Constructors
constructor
new
Private
Channel
(
)
:
PrivateChannel
Returns
PrivateChannel
Properties
channel
Id
channel
Id
:
string
content
content
:
PrivateChannelPayload
dkx
Parent
dkx
Parent
:
HDKIndex
dkx
Post
dkx
Post
:
HDKXTimeBasedPublic
dkx
Subscription
dkx
Subscription
:
HDKXTimeBasedPublic
doc
Index
doc
Index
:
number
documents
documents
:
Note
[]
= []
Optional
error
error
?:
ContentError
invites
invites
:
Notification
[]
= []
nostr
Event
nostr
Event
:
Event
<
number
>
notif
Key
notif
Key
:
BehaviorSubject
<
Notification
>
= ...
owner
Pub
Key
owner
Pub
Key
:
string
subscriptions
subscriptions
:
Subscription
[]
= []
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
payload
get
payload
(
)
:
any
[]
Returns
any
[]
posts
get
posts
(
)
:
Note
[]
Returns
Note
[]
Methods
add
Invitations
add
Invitations
(
profileKeys
,
text
?
)
:
Observable
<
Notification
>
Parameters
profileKeys
:
string
[]
Optional
text
:
string
Returns
Observable
<
Notification
>
add
Subscription
add
Subscription
(
)
:
Observable
<
Subscription
[]
>
Returns
Observable
<
Subscription
[]
>
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
[]
listen
listen
(
__namedParameters
?
)
:
[
Observable
<
Note
>
,
(
(
)
=>
void
)
]
Parameters
__namedParameters
:
HDKIndexQueryArgs
= {}
Returns
[
Observable
<
Note
>
,
(
(
)
=>
void
)
]
publish
publish
<
TPublishType
>
(
options
?
)
:
Observable
<
TPublishType
>
Type Parameters
TPublishType
extends
ContentDocument
Parameters
Optional
options
:
ContentPublishOptions
Returns
Observable
<
TPublishType
>
remove
Invitation
remove
Invitation
(
invite
)
:
Observable
<
ContentDocument
>
Parameters
invite
:
Notification
Returns
Observable
<
ContentDocument
>
remove
Subscription
remove
Subscription
(
)
:
Observable
<
ContentDocument
[]
>
Returns
Observable
<
ContentDocument
[]
>
save
Note
save
Note
(
text
)
:
Observable
<
ContentDocument
>
Parameters
text
:
string
Returns
Observable
<
ContentDocument
>
serialize
serialize
(
)
:
string
Returns
string
share
Keys
share
Keys
(
dkx
)
:
Observable
<
Notification
>
Parameters
dkx
:
HDKXTimeBasedPublic
Returns
Observable
<
Notification
>
Static
create
create
(
info
,
publish
?
)
:
Observable
<
PrivateChannel
>
Parameters
info
:
Notification
|
PrivateChannelPayload
Optional
publish
:
boolean
Returns
Observable
<
PrivateChannel
>
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