wip: migrate frontend to new backend
This commit is contained in:
71
packages/types/index.d.ts
vendored
71
packages/types/index.d.ts
vendored
@@ -1,4 +1,14 @@
|
||||
import { type NDKEvent, type NDKUserProfile } from "@nostr-dev-kit/ndk";
|
||||
export interface Settings {
|
||||
autoupdate: boolean;
|
||||
nsecbunker: boolean;
|
||||
media: boolean;
|
||||
hashtag: boolean;
|
||||
lowPower: boolean;
|
||||
translation: boolean;
|
||||
translateApiKey: string;
|
||||
instantZap: boolean;
|
||||
defaultZapAmount: number;
|
||||
}
|
||||
|
||||
export interface Keys {
|
||||
npub: string;
|
||||
@@ -28,16 +38,20 @@ export interface Event {
|
||||
sig: string;
|
||||
}
|
||||
|
||||
export interface EventWithReplies extends Event {
|
||||
replies: Array<Event>;
|
||||
}
|
||||
|
||||
export interface Metadata {
|
||||
name: Option<string>;
|
||||
display_name: Option<string>;
|
||||
about: Option<string>;
|
||||
website: Option<string>;
|
||||
picture: Option<string>;
|
||||
banner: Option<string>;
|
||||
nip05: Option<string>;
|
||||
lud06: Option<string>;
|
||||
lud16: Option<string>;
|
||||
name?: string;
|
||||
display_name?: string;
|
||||
about?: string;
|
||||
website?: string;
|
||||
picture?: string;
|
||||
banner?: string;
|
||||
nip05?: string;
|
||||
lud06?: string;
|
||||
lud16?: string;
|
||||
}
|
||||
|
||||
export interface CurrentAccount {
|
||||
@@ -61,9 +75,8 @@ export interface RichContent {
|
||||
notes: string[];
|
||||
}
|
||||
|
||||
export interface IColumn {
|
||||
id?: number;
|
||||
kind: number;
|
||||
export interface LumeColumn {
|
||||
id: number;
|
||||
title: string;
|
||||
content: string;
|
||||
}
|
||||
@@ -75,10 +88,6 @@ export interface Opengraph {
|
||||
image?: string;
|
||||
}
|
||||
|
||||
export interface NDKEventWithReplies extends NDKEvent {
|
||||
replies: Array<NDKEvent>;
|
||||
}
|
||||
|
||||
export interface NostrBuildResponse {
|
||||
ok: boolean;
|
||||
data?: {
|
||||
@@ -99,34 +108,6 @@ export interface NostrBuildResponse {
|
||||
};
|
||||
}
|
||||
|
||||
export interface NDKCacheUser {
|
||||
pubkey: string;
|
||||
profile: string | NDKUserProfile;
|
||||
createdAt: number;
|
||||
}
|
||||
|
||||
export interface NDKCacheUserProfile extends NDKUserProfile {
|
||||
npub: string;
|
||||
}
|
||||
|
||||
export interface NDKCacheEvent {
|
||||
id: string;
|
||||
pubkey: string;
|
||||
content: string;
|
||||
kind: number;
|
||||
createdAt: number;
|
||||
relay: string;
|
||||
event: string;
|
||||
}
|
||||
|
||||
export interface NDKCacheEventTag {
|
||||
id: string;
|
||||
eventId: string;
|
||||
tag: string;
|
||||
value: string;
|
||||
tagValue: string;
|
||||
}
|
||||
|
||||
export interface NIP11 {
|
||||
name: string;
|
||||
description: string;
|
||||
|
||||
@@ -10,8 +10,5 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nostr-dev-kit/ndk": "^2.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user