From b8df95408bb665d473c3064af9724dc20b041f61 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Sat, 4 May 2024 20:11:29 -0300 Subject: [PATCH] feat: add target_account & reported_statuses to DittoEvent type --- src/interfaces/DittoEvent.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/interfaces/DittoEvent.ts b/src/interfaces/DittoEvent.ts index 2ef0bb2..f6810d3 100644 --- a/src/interfaces/DittoEvent.ts +++ b/src/interfaces/DittoEvent.ts @@ -25,4 +25,14 @@ export interface DittoEvent extends NostrEvent { repost?: DittoEvent; quote_repost?: 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[]; }