[match] better invites

This commit is contained in:
Devin Zuczek
2026-08-22 12:23:48 -04:00
parent 1a2643240b
commit be24e62f1f
9 changed files with 204 additions and 12 deletions
+14
View File
@@ -384,3 +384,17 @@ export const InviteRequest = z.object({
.optional()
.describe('The callers room instance to invite them into; resolves the invites RoomId'),
})
/**
* `POST /invite` response — the `room_invite` row the invite just created. The frame the
* invitee receives is ephemeral; the row is what gives the invite an id of its own.
*/
export const InviteResponse = z.object({
RoomInviteId: z.int().describe('Id of the new `room_invite` row'),
FromPlayerId: z.int().describe('The caller (the Bearer token)'),
ToPlayerId: z.int().describe('The invited account'),
RoomId: z
.int()
.nullable()
.describe('The room the invite points at; null when the room instance didnt resolve'),
})