[api] add non-working v3/votekick

This commit is contained in:
Devin Zuczek
2026-09-02 14:54:14 -04:00
parent 30b441aa65
commit fef6754aad
5 changed files with 364 additions and 4 deletions
+16
View File
@@ -1304,6 +1304,22 @@ export const CreateWarningRequest = z.object({
ModeratorNote: z.string().optional().describe('Internal note; never shown to the player'),
})
/**
* `POST /api/PlayerReporting/v3/voteToKick` form body — a player calling a vote on
* another. Everything is a string on the wire (it's form-encoded). `Reason` is one of the
* labels `GET /api/PlayerReporting/v1/voteToKickReasons` serves; the voter is NOT in the
* body — it's the bearer token's subject.
*/
export const VoteToKickRequest = z.object({
PlayerId: z.string().describe('Account id of the player being voted on'),
Response: z.string().describe('The callers own vote, e.g. `True`'),
Reason: z
.string()
.optional()
.describe('A `voteToKickReasons` label, e.g. `Inactive in games (AFK)`'),
GameSessionId: z.string().describe('The room instance both players are standing in'),
})
/**
* `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