[econ] fix missing owned keys endpoint

This commit is contained in:
Devin Zuczek
2026-10-22 12:51:53 -04:00
parent 208178494a
commit 76db89c30c
5 changed files with 137 additions and 7 deletions
+7
View File
@@ -779,6 +779,13 @@ export const RoomKeyDto = z.object({
Type: z.int().describe('The key type’s ordinal: 0 `Key`, the only one seen'),
})
/** A held key as `GET /api/roomkeys/v1/mine` serves it — the room key plus two fields. */
export const HeldRoomKeyDto = RoomKeyDto.extend({
ImageName: z.string().describe('The key’s art; "" when it has none (NOT null, unlike the list)'),
IsGiftable: z.boolean().describe('Always false — gifting keys is not modelled'),
Visibility: z.int().describe('Always 0 — not modelled'),
})
/**
* The envelope `POST /api/roomkeys/v1/create` answers in: `{ Status, RoomKey }`, observed from
* the live client — NOT the `{ Value, Success, Error, error_id }` the room-currency and