This commit is contained in:
imeepos
2025-10-21 10:21:45 +08:00
parent 7e3f94bae3
commit 3a99ff96d5
28 changed files with 6981 additions and 176 deletions

View File

@@ -23,5 +23,4 @@ export const authClient = createAuthClient({
],
});
export const { signIn, signUp, signOut, useSession, $Infer, subscription } = authClient;

View File

@@ -4,6 +4,7 @@ export interface User {
email?: string;
name?: string;
image?: string;
balance?: number;
createdAt: Date;
updatedAt: Date;
}
@@ -18,6 +19,30 @@ export interface Session {
};
}
export interface GenerationRecord {
id: string;
userId: string;
type: 'image' | 'video' | 'text';
title: string;
description?: string;
thumbnail?: string;
mediaUrl?: string;
status: 'pending' | 'completed' | 'failed';
cost: number;
createdAt: Date;
updatedAt: Date;
}
export interface BalanceTransaction {
id: string;
userId: string;
type: 'recharge' | 'consumption' | 'refund';
amount: number;
description: string;
relatedRecordId?: string;
createdAt: Date;
}
export interface AuthError {
message: string;
code?: string;