Files
api-HydrusNetwork/src/types.ts
T

28 lines
735 B
TypeScript
Raw Normal View History

2026-03-26 03:26:37 -07:00
export type MediaSection = 'all' | 'audio' | 'video' | 'image' | 'application'
export type ServerSyncSummary = {
updatedAt: number
total: number
counts: Partial<Record<MediaSection, number>>
message?: string
}
export type Track = {
id: number // local unique id used by the UI
fileId?: number // original Hydrus file id (per-server)
serverId?: string // which server this file came from
serverName?: string // friendly server name for UI
title: string
artist?: string
album?: string
url: string
thumbnail?: string
2026-04-22 18:23:16 -07:00
hasThumbnail?: boolean
2026-03-26 03:26:37 -07:00
duration?: number
tags?: string[]
// Optional MIME/type hints for rendering (video vs audio)
isVideo?: boolean
mimeType?: string
mediaKind?: MediaSection
}