diff --git a/nips/65/protocol.ts b/nips/65/protocol.ts new file mode 100644 index 0000000..2934ba9 --- /dev/null +++ b/nips/65/protocol.ts @@ -0,0 +1,23 @@ +import "@lophus/core/protocol"; +import "../protocol.ts"; + +declare module "../protocol.ts" { + interface NipRecord { + 65: { + Tag: "r"; + EventKind: 10002; + }; + } +} + +declare module "@lophus/core/protocol" { + interface EventKindRecord { + 10002: { + Content: ""; + Tags: Tag<"r">[]; + }; + } + interface TagRecord { + "r": [RelayUrl, ...("read" | "write")[]]; + } +}