chore: update public repo

This commit is contained in:
desu-bot 2025-08-14 09:21:11 +00:00
parent ccc5f98f34
commit 728699b3ec
No known key found for this signature in database
8 changed files with 1990 additions and 95 deletions

View file

@ -33,6 +33,16 @@ export const NavidromeSong = z.object({
libraryPath: z.string(),
duration: z.number(),
size: z.number(),
participants: z.object({
artist: z.object({
id: z.string(),
name: z.string(),
}).array().optional(),
}).optional(),
mbzRecordingID: z.string().optional(),
mbzReleaseTrackId: z.string().optional(),
mbzAlbumId: z.string().optional(),
mbzReleaseGroupId: z.string().optional(),
})
export type NavidromeSong = z.infer<typeof NavidromeSong>
@ -43,7 +53,7 @@ export async function fetchSongs(offset: number, pageSize: number) {
_start: offset,
_end: offset + pageSize,
_order: 'ASC',
_sort: 'title',
_sort: 'path',
},
}).parsedJson(z.array(NavidromeSong))
}