[openapi] define missing routes

This commit is contained in:
Devin Zuczek
2026-08-25 12:41:31 -04:00
parent 3b5e47c39d
commit 6a9a1a95b5
9 changed files with 650 additions and 111 deletions
+11
View File
@@ -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
+3 -3
View File
@@ -331,7 +331,7 @@ export const avatarRoutes = new Hono<App>({ strict: false })
.get(
'/outfits/me',
describeRoute({
tags: ['Avatar'],
tags: ['Avatar', '2025'],
summary: 'The callers 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 callers 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 callers saved outfits',
description:
'The wardrobe behind the newer outfit screen. Empty for now: the outfits saved ' +