ForcePilot/backend/package/yuxi/channels/adapters/nostr/models.py

25 lines
444 B
Python
Raw Normal View History

from __future__ import annotations
from pydantic import BaseModel
class NostrEvent(BaseModel):
id: str
pubkey: str
created_at: int
kind: int
tags: list[list[str]] = []
content: str = ""
sig: str | None = None
class NostrProfile(BaseModel):
name: str = ""
display_name: str = ""
about: str = ""
picture: str = ""
banner: str = ""
website: str = ""
nip05: str = ""
lud16: str = ""