mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-26 23:48:52 -07:00
[api] fix a few 2023 compat issues
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user