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
+1
View File
@@ -489,6 +489,7 @@ type InviteLinkSummary = {
createdBy: string;
createdByUsername: string | null; // 'Deleted User' when creator's isDeleted = 1
createdAt: number;
lastRedeemedAt: number | null; // epoch ms of most recent redemption; null when usedCount = 0
url: string; // server-built `https://<host>/register?invite=<token>` — clients MUST NOT assemble
};
+1
View File
@@ -278,6 +278,7 @@ type InviteLinkSummary = {
createdBy: string;
createdByUsername: string | null; // 'Deleted User' if creator tombstoned
createdAt: number;
lastRedeemedAt: number | null; // epoch ms of most recent redemption; null when usedCount = 0
url: string; // server-built `https://<host>/register?invite=<token>` — clients MUST NOT assemble
};