OptionaladdressableA method that will be called when an addressable event isn't found in the store
ProtecteddeletedProtecteddeletedOptionaleventA method that will be called when an event isn't found in the store
ProtectedexpirationsProtectedexpirationA stream of new events added to the store
Enable this to keep expired events
Enable this to keep old versions of replaceable events
OptionalmemoryOptional memory database for ensuring single event instances
How long a model should be kept "warm" while nothing is subscribed to it
A directory of all active models
ProtectednextA stream of events that have been removed
OptionalreplaceableA method that will be called when a replaceable event isn't found in the store
A stream of events that have been updated
OptionalverifyA method used to verify new events before added them
true if the event is valid, false if it should be ignored
Adds an event to the store and update subscriptions
OptionalfromRelay: stringThe existing event or the event that was added, if it was ignored returns null
ProtectedaddAdds an event to the expiration map
Subscribe to an addressable event by pointer
Subscribe to a users blossom servers
ProtectedcheckSets the claim on the event and touches it
Removes all claims on an event
Subscribe to a users contacts
Creates an observable that streams all events that match the filter
Get an event by id from the store
Gets the latest version of a replaceable event
Optionalidentifier: stringReturns all versions of a replaceable event
Optionalidentifier: stringProtectedhandleProtectedhandleCheck if the store has an event by id
Check if the store has a replaceable event
Optionald: stringChecks if an event is claimed by anything
Subscribe to a users NIP-65 mailboxes
Get or create a model on the event store
Subscribe to a users mutes
Subscribe to a users profile
Removes any event that is not being used by a subscription
Optionallimit: numberProtectedpruneRemove expired events from the store
Removes an event from the store and updates subscriptions
Removes a claim from an event
Returns an observable that completes when an event is removed
Creates a ReplaceableModel
Creates a ReplaceableModel
Optionalidentifier: stringSubscribe to a thread
Creates a TimelineModel
Passthrough method for the database.touch
Pass through method for the database.unclaimed
Add an event to the store and notifies all subscribes it has updated
Creates an observable that emits when event is updated
StaticmergeCopies important metadata from and identical event to another
A wrapper around an event database that handles replaceable events, deletes, and models