feat(admin): add image quota management UI on memind_adm 5174
Add image-quota admin pages and API wiring for plan defaults, ledger, and per-user grants, plus local verify scripts and AGENTS.md note that this repo is the sole admin UI surface. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -681,6 +681,32 @@ export type AdminSubscription = {
|
||||
periodTokensUsed: number;
|
||||
periodImagesLimit: number;
|
||||
periodImagesUsed: number;
|
||||
periodImagesBonus?: number;
|
||||
note: string | null;
|
||||
createdAt: number;
|
||||
};
|
||||
|
||||
export type ImageQuotaView = {
|
||||
limit: number;
|
||||
bonus: number;
|
||||
used: number;
|
||||
total: number | null;
|
||||
remaining: number | null;
|
||||
unlimited: boolean;
|
||||
periodEnd: number | null;
|
||||
planType: string | null;
|
||||
};
|
||||
|
||||
export type ImageQuotaLedgerEntry = {
|
||||
id: string;
|
||||
userId: string;
|
||||
username?: string;
|
||||
displayName?: string;
|
||||
delta: number;
|
||||
balanceAfter: number | null;
|
||||
reason: string;
|
||||
refId: string | null;
|
||||
operatorId: string | null;
|
||||
note: string | null;
|
||||
createdAt: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user