From bedc0fd5c6e061051d255acb532533759c3acffc Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 24 Oct 2025 13:54:24 -0400 Subject: [PATCH] Add video comment schema and builder --- docs/nostr-event-schemas.md | 1 + js/nostrEventSchemas.js | 150 +++++++++++++++++++++++++++ tests/comment-event-builder.test.mjs | 55 ++++++++++ 3 files changed, 206 insertions(+) create mode 100644 tests/comment-event-builder.test.mjs diff --git a/docs/nostr-event-schemas.md b/docs/nostr-event-schemas.md index a64ec020..7aa8b47b 100644 --- a/docs/nostr-event-schemas.md +++ b/docs/nostr-event-schemas.md @@ -138,6 +138,7 @@ import { updateWatchHistoryListWithDefaultClient } from "./nostrWatchHistoryFaca | Video post (`NOTE_TYPES.VIDEO_POST`) | `30078` | `['t','video']`, `['d', ]` plus optional schema append tags | JSON payload using Content Schema v3 (`version`, `title`, optional `url`, `magnet`, `thumbnail`, `description`, `mode`, `videoRootId`, `deleted`, `isPrivate`, `isNsfw`, `isForKids`, `enableComments`, `ws`, `xs`) | | NIP-94 mirror (`NOTE_TYPES.VIDEO_MIRROR`) | `1063` | Tags forwarded from `publishVideo` (URL, mime type, thumbnail, alt text, magnet) | Plain text alt description | | Repost (`NOTE_TYPES.REPOST`) | `6` | `['e', , ]` with optional address pointer `['a', , ]`, and `['p', ]` when the origin author is known; inherits schema append tags | Empty content | +| Video comment (`NOTE_TYPES.VIDEO_COMMENT`) | `1` | Mandatory `['e',