You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
1.1 KiB

package nostr
// Standard Nostr event kinds
// These are protocol-level constants and should not be configurable
const (
// KindProfile is kind 0 - user profile/metadata
KindProfile = 0
// KindNote is kind 1 - regular notes/text posts
KindNote = 1
// KindWiki is kind 30818 - wiki pages (NIP-54)
KindWiki = 30818
// KindBlog is kind 30041 - blog articles
KindBlog = 30041
// KindLongform is kind 30023 - longform markdown articles
KindLongform = 30023
// KindIndex is kind 30040 - publication index events (NKBIP-01)
KindIndex = 30040
// KindIssue is kind 1621 - issue events
KindIssue = 1621
// KindRepoAnnouncement is kind 30617 - repository announcement events
KindRepoAnnouncement = 30617
)
// SupportedWikiKinds returns the list of supported wiki kinds
func SupportedWikiKinds() []int {
return []int{KindWiki}
}
// SupportedBlogKinds returns the list of supported blog kinds
func SupportedBlogKinds() []int {
return []int{KindBlog}
}
// SupportedArticleKinds returns all supported article kinds (wiki + blog)
func SupportedArticleKinds() []int {
return []int{KindWiki, KindBlog}
}