feat(invites): expose lastRedeemedAt on InviteLinkSummary

This commit is contained in:
Jannis Braun
2026-04-29 02:33:49 +02:00
parent 5abe13166a
commit 33547038f4
5 changed files with 140 additions and 12 deletions
+2
View File
@@ -1151,6 +1151,8 @@ export interface InviteLinkSummary {
/** Joined from users.username at read time. `'Deleted User'` when the creator's account is tombstoned. `null` only if the FK is somehow unresolvable (defensive). */
createdByUsername: string | null;
createdAt: number;
/** Epoch ms of the most recent redemption; `null` when the invite has zero redemptions. */
lastRedeemedAt: number | null;
/** Server-constructed full URL, e.g. `https://host.example/register?invite=<token>`. Clients must NOT assemble this themselves. */
url: string;
}