[app] room owner insta-kicks

This commit is contained in:
Devin Zuczek
2026-09-02 14:01:19 -04:00
parent d441181b03
commit 30b441aa65
4 changed files with 431 additions and 0 deletions
+11
View File
@@ -1304,6 +1304,17 @@ export const CreateWarningRequest = z.object({
ModeratorNote: z.string().optional().describe('Internal note; never shown to the player'),
})
/**
* `POST /api/PlayerReporting/v1/instantKick` JSON body — the players a room's staff are
* ejecting from one live instance. JSON, not a form, unlike its neighbours in this
* controller. `GameSessionId` is the room INSTANCE id (`roomInstanceId`); the kick is
* scoped to it, so a player named here who is standing somewhere else is left alone.
*/
export const InstantKickRequest = z.object({
GameSessionId: z.int().describe('The room instance (game session) to eject them from'),
PlayerIds: z.array(z.int()).describe('Account ids to kick out of that instance'),
})
/** `POST /api/PlayerReporting/v1/deviceId` form body — the id rotation the client reports. */
export const DeviceIdRequest = z.object({
oldDeviceId: z.string().optional().describe('The id the client thinks we hold'),