mirror of
https://github.com/tooot-app/app
synced 2025-04-13 01:42:41 +02:00
34 lines
664 B
TypeScript
34 lines
664 B
TypeScript
type InstanceLocal = {
|
|
appData: {
|
|
clientId: string
|
|
clientSecret: string
|
|
}
|
|
url: string
|
|
token: string
|
|
uri: Mastodon.Instance['uri']
|
|
urls: Mastodon.Instance['urls']
|
|
max_toot_chars: number
|
|
account: {
|
|
id: Mastodon.Account['id']
|
|
acct: Mastodon.Account['acct']
|
|
avatarStatic: Mastodon.Account['avatar_static']
|
|
preferences: Mastodon.Preferences
|
|
}
|
|
notification: {
|
|
readTime?: Mastodon.Notification['created_at']
|
|
latestTime?: Mastodon.Notification['created_at']
|
|
}
|
|
drafts: any[]
|
|
}
|
|
|
|
export type InstanceV3 = {
|
|
local: {
|
|
activeIndex: number | null
|
|
instances: InstanceLocal[]
|
|
}
|
|
|
|
remote: {
|
|
url: string
|
|
}
|
|
}
|