[rooms] admin switch to exclude rooms from lists

This commit is contained in:
Devin Zuczek
2026-10-10 14:55:45 -04:00
parent c049c8f14d
commit 9a3ab3e50c
4 changed files with 271 additions and 1 deletions
+14
View File
@@ -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