clone

nostr relays on demand at <name>.bind.ws: claim one with your key, pay in zaps past the free allowance

main
bindws / src / kinds.ts
kinds.ts 2.8K
1// Every event kind the relay treats specially, in one place, by the NIP2// that defines it. A module that needs one imports it from here.34// NIP-01, 09, 62, 425export const KIND_PROFILE = 0;6export const KIND_DELETION = 5;7export const KIND_VANISH = 62;8export const KIND_AUTH = 22242;910// NIP-17 and NIP-59: the rumour and the gift wrap the relay writes its owner (notify.ts)11export const KIND_DM = 14;12export const KIND_WRAP = 1059;1314// NIP-56 reports, through the socket and the /report door15export const KIND_REPORT = 1984;1617// NIP-46 remote signing traffic: ephemeral, encrypted end to end, never stored.18export const KIND_NOSTR_CONNECT = 24133;1920// NIP-78 application data: the views the relay signs (views.ts) and the21// card's record (card.ts). Presence is ephemeral: 20000 plus the view22// kind's 78, so a client that knows one can guess the other.23export const KIND_APP_DATA = 30078;24export const KIND_VIEW = KIND_APP_DATA;25export const KIND_PRESENCE = 20078;2627// NIP-43 relay membership: the roster, the role definition, and the deltas28export const KIND_MEMBER_ADDED = 8000;29export const KIND_MEMBER_REMOVED = 8001;30export const KIND_ROSTER = 13534;31export const KIND_ROLE_DEF = 33534;32// NIP-43's own join and leave requests: ephemeral, no h tag, a claim tag33// carries the invite code.34export const KIND_NIP43_JOIN = 28934;35export const KIND_NIP43_LEAVE = 28936;3637// NIP-29 groups: moderation events clients send, and the state the relay signs38export const KIND_PUT_USER = 9000;39export const KIND_REMOVE_USER = 9001;40export const KIND_EDIT_METADATA = 9002;41export const KIND_DELETE_EVENT = 9005;42export const KIND_CREATE_GROUP = 9007;43export const KIND_DELETE_GROUP = 9008;44export const KIND_CREATE_INVITE = 9009;45export const KIND_PINS = 9010;46export const KIND_JOIN = 9021;47export const KIND_LEAVE = 9022;48export const KIND_GROUP_METADATA = 39000;49export const KIND_GROUP_ADMINS = 39001;50export const KIND_GROUP_MEMBERS = 39002;51export const KIND_GROUP_ROLES = 39003;52export const KIND_GROUP_PINS = 39005;5354// NIP-66: the discovery record the relay signs about itself55export const KIND_RELAY_DISCOVERY = 30166;5657// NIP-5A static websites and immutable manifest snapshots58export const KIND_SITE = 15128;59export const KIND_NAMED_SITE = 35128;60export const KIND_SITE_SNAPSHOT = 5128;6162// Marmot Nostr transport: account KeyPackages and opaque MLS group messages.63export const KIND_MARMOT_GROUP = 445;64export const KIND_MARMOT_KEY_PACKAGE = 30443;65// NIP-34 Git repository authority and collaboration events66export const KIND_REPO = 30617;67export const KIND_REPO_STATE = 30618;68export const KIND_GIT_PATCH = 1617;69export const KIND_GIT_PR = 1618;70export const KIND_GIT_PR_UPDATE = 1619;71export const KIND_GIT_ISSUE = 1621;7273// NIP-9a relay push registrations, readable only by their author.74export const KIND_PUSH_REGISTRATION = 30390;