37 lines
No EOL
578 B
TypeScript
37 lines
No EOL
578 B
TypeScript
export interface NostrEvent {
|
|
kind: number
|
|
pubkey: string
|
|
content: string
|
|
tags: string[][]
|
|
created_at: number
|
|
id: string
|
|
sig: string
|
|
}
|
|
|
|
export interface NostrProfile {
|
|
pubkey: string
|
|
name?: string
|
|
picture?: string
|
|
about?: string
|
|
nip05?: string
|
|
}
|
|
|
|
export interface NostrRelayConfig {
|
|
url: string
|
|
read?: boolean
|
|
write?: boolean
|
|
}
|
|
|
|
export interface NostrAccount {
|
|
pubkey: string
|
|
privkey: string
|
|
relays: NostrRelayConfig[]
|
|
}
|
|
|
|
export interface DirectMessage {
|
|
id: string
|
|
pubkey: string
|
|
content: string
|
|
created_at: number
|
|
sent: boolean
|
|
}
|