[api] fix a few 2023 compat issues

This commit is contained in:
Devin Zuczek
2026-09-15 11:22:33 -04:00
parent 3299f05940
commit 71bb29b8c7
14 changed files with 360 additions and 130 deletions
+9
View File
@@ -160,6 +160,15 @@ export const MatchmakeResponse = z.object({
.describe('Echoes the request’s CorrelationId; all-zero GUID when it sent none'),
})
/**
* `POST /player` form body. `id` repeats once per player (the client asks about its whole
* friends list at once, too many ids to hang off a URL). One id per value — unlike
* `accounts`' bulk lookup, these are not comma-separated.
*/
export const BatchPlayerIdsRequest = z.object({
id: z.union([z.string(), z.string().array()]).describe('Repeated once per player id'),
})
/**
* `GET /player/avoidjuniors` — a BARE JSON boolean (`true`/`false`), not an envelope and
* not a `{ value }` wrapper. The whole body is the preference.