mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
[openapi] define missing routes
This commit is contained in:
@@ -728,6 +728,17 @@ export const PlayerEventResultDto = z.object({
|
||||
}),
|
||||
})
|
||||
|
||||
/**
|
||||
* The envelope a delete answers with. Same three keys as {@link PlayerEventResultDto},
|
||||
* but both payload fields are null — the event is gone, so there is nothing to redraw
|
||||
* and the client reads only `Result`.
|
||||
*/
|
||||
export const PlayerEventDeletedDto = z.object({
|
||||
PlayerEvent: z.null(),
|
||||
Result: z.int().describe('0 = success'),
|
||||
TagModifyResult: z.null(),
|
||||
})
|
||||
|
||||
/**
|
||||
* The JSON body of an event create / update. Every field is optional: create defaults
|
||||
* what's missing, update leaves anything absent at its stored value. The fields may be
|
||||
|
||||
@@ -331,7 +331,7 @@ export const avatarRoutes = new Hono<App>({ strict: false })
|
||||
.get(
|
||||
'/outfits/me',
|
||||
describeRoute({
|
||||
tags: ['Avatar'],
|
||||
tags: ['Avatar', '2025'],
|
||||
summary: 'The caller’s outfit',
|
||||
description:
|
||||
'The newer outfit read, on a bare un-prefixed path. Served from slot 0 of the shared ' +
|
||||
@@ -374,7 +374,7 @@ export const avatarRoutes = new Hono<App>({ strict: false })
|
||||
.put(
|
||||
'/outfits/me',
|
||||
describeRoute({
|
||||
tags: ['Avatar'],
|
||||
tags: ['Avatar', '2025'],
|
||||
summary: 'Save the caller’s outfit',
|
||||
description:
|
||||
'Saves into the shared `outfit` table, in the slot the body names — slot 0 being the ' +
|
||||
@@ -479,7 +479,7 @@ export const avatarRoutes = new Hono<App>({ strict: false })
|
||||
.get(
|
||||
'/outfits/me/saved',
|
||||
describeRoute({
|
||||
tags: ['Avatar'],
|
||||
tags: ['Avatar', '2025'],
|
||||
summary: 'The caller’s saved outfits',
|
||||
description:
|
||||
'The wardrobe behind the newer outfit screen. Empty for now: the outfits saved ' +
|
||||
|
||||
Reference in New Issue
Block a user