mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-26 23:48:52 -07:00
[rooms] admin switch to exclude rooms from lists
This commit is contained in:
@@ -812,6 +812,20 @@ export const AccessibilityRequest = z.object({
|
||||
accessibility: z.string().describe('0 = Private, 1 = Public, 2 = Unlisted'),
|
||||
})
|
||||
|
||||
/**
|
||||
* `PUT /rooms/{roomId}/exclude` — the staff listing toggle. Not a game endpoint: the real
|
||||
* service set `ExcludeFromLists` / `ExcludeFromSearch` from an admin tool the client never
|
||||
* had a screen for, so this is recflare's own, called from the website's room page.
|
||||
*/
|
||||
export const ExcludeRequest = z.object({
|
||||
excluded: z
|
||||
.string()
|
||||
.describe(
|
||||
'`true` hides the room from every browse feed AND from search; `false` lists it again. ' +
|
||||
'Both flags are always set together.'
|
||||
),
|
||||
})
|
||||
|
||||
/**
|
||||
* `PUT /rooms/{roomId}/subrooms/{subRoomId}/accessibility`. Unlike the room-level route
|
||||
* above, the client sends the enum NAME here (`accessibility=Private`), so both the name
|
||||
|
||||
Reference in New Issue
Block a user