Creates a new Promise.
A callback used to initialize the promise. This callback is passed two arguments: a resolve callback used to resolve the promise with a value or the result of another promise, and a reject callback used to reject the promise with a provided reason or error.
Protected_Shared mutable reference to the signer, propagated through all chain links
Readonly[toStatic Readonly[species]ProtectedsignerThe signer used to sign the event (reads from shared ref)
Adds an addressable event (by AddressPointer or NostrEvent) to the list
Adds an event (by id or EventPointer) to the list
Adds a hashtag "t" tag item to the list
Adds a URL "r" tag item to the list
Sets the NIP-31 alt tag for the event
Sets the event signer to use when building this event
Bookmarks an event — uses "a" tag for articles, "e" tag for notes
Bookmarks a hashtag by adding a "t" tag
Bookmarks a URL by adding an "r" tag
Attaches a callback for only the rejection of the Promise.
A Promise for the completion of the callback.
ProtectedchainCustom .then method that wraps the resulting promise in a new event factory
Sets the event content
Sets the NIP-36 content-warning tag for the event
Set the event created_at timestamp in seconds. if no value is provided, the current unix timestamp will be used
Optionalcreated: number | DateSets or removes the description of the list
Sets the encrypted content of the event
Optionaloverride: EncryptionMethodSets the NIP-40 expiration timestamp for the event
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: (() => void) | nullThe callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Sets the meta tags for the event
Modifies the events hidden tags array
Modifies the events public tags array
Modifies the events public and optional hidden tags
Sets the NIP-70 "-" tag for the event
Removes an addressable event (by AddressPointer or NostrEvent) from the list
Removes an event (by id or EventPointer) from the list
Removes a hashtag "t" tag item from the list
Removes a URL "r" tag item from the list
Signs the event using a signer interface and returns a Promise
Optionalsigner: EventSignerStamps the pubkey onto the event template
Optionalsigner: EventSignerStrips the pubkey, sig, and id from the event
Attaches callbacks for the resolution and/or rejection of the Promise.
Optionalonfulfilled: ((value: BookmarkListTemplate) => TResult1 | PromiseLike<TResult1>) | nullThe callback to execute when the Promise is resolved.
Optionalonrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | nullThe callback to execute when the Promise is rejected.
A Promise for the completion of which ever callback is executed.
Removes a bookmark — uses "a" tag for articles, "e" tag for notes
Removes a bookmarked hashtag
StaticallCreates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
An array of Promises.
A new Promise.
StaticallCreates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
An array of Promises.
A new Promise.
StaticanyThe any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
An array or iterable of Promises.
A new Promise.
The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
A new Promise.
StaticcreateCreates a new bookmark list factory
StaticfromStaticfromStaticmodifyCreates a new bookmark list factory from an existing bookmark list event
StaticraceStaticrejectCreates a new rejected promise for the provided reason.
Optionalreason: anyThe reason the promise was rejected.
A new rejected Promise.
StaticresolveCreates a new resolved promise.
A resolved promise.
A factory class for building kind 10003 bookmark list events