mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
check authentication for all servers on initialization and update permission roles
This commit is contained in:
@@ -7,9 +7,13 @@ const baseResponse = z.object({
|
||||
}),
|
||||
});
|
||||
|
||||
const authenticate = z.object({
|
||||
const userParameters = z.object({
|
||||
id: z.string(),
|
||||
});
|
||||
|
||||
const user = z.object({
|
||||
user: z.object({
|
||||
adminRoles: z.boolean(),
|
||||
adminRole: z.boolean(),
|
||||
commentRole: z.boolean(),
|
||||
coverArtRole: z.boolean(),
|
||||
downloadRole: z.boolean(),
|
||||
@@ -26,6 +30,8 @@ const authenticate = z.object({
|
||||
}),
|
||||
});
|
||||
|
||||
const authenticate = user;
|
||||
|
||||
const authenticateParameters = z.object({
|
||||
c: z.string(),
|
||||
f: z.string(),
|
||||
@@ -641,6 +647,7 @@ export const ssType = {
|
||||
structuredLyrics: structuredLyricsParameters,
|
||||
topSongsList: topSongsListParameters,
|
||||
updatePlaylist: updatePlaylistParameters,
|
||||
user: userParameters,
|
||||
},
|
||||
_response: {
|
||||
album,
|
||||
@@ -683,5 +690,6 @@ export const ssType = {
|
||||
song,
|
||||
structuredLyrics,
|
||||
topSongsList,
|
||||
user,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user