feat: add target_account & reported_statuses to DittoEvent type

This commit is contained in:
P. Reis 2024-05-04 20:11:29 -03:00
parent af7b83cf8a
commit b8df95408b
1 changed files with 10 additions and 0 deletions

View File

@ -25,4 +25,14 @@ export interface DittoEvent extends NostrEvent {
repost?: DittoEvent; repost?: DittoEvent;
quote_repost?: DittoEvent; quote_repost?: DittoEvent;
reacted?: DittoEvent; reacted?: DittoEvent;
/** The account being reported.
* Must be a kind 0 hydrated.
* https://github.com/nostr-protocol/nips/blob/master/56.md
*/
target_account?: DittoEvent;
/** The statuses being reported.
* Nostr only support reporting one note, the array of reported notes can be found in the `status_ids` field after JSON.parsing the `content` of a kind 1984.
* https://github.com/nostr-protocol/nips/blob/master/56.md
*/
reported_statuses?: DittoEvent[];
} }