multica/apps/web/lib/interface.ts
Naiyuan Qing 108cf7ffb0 feat(web): add login page for desktop auth callback
- Add email/code login with verification
- Add Google OAuth login
- Add desktop callback API route
- Add request service with device ID handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-13 12:25:03 +08:00

37 lines
715 B
TypeScript

// User info type
export interface UserInfo {
uid: string;
name: string;
email?: string;
icon: string;
vip: number;
}
// Login auth type (from SceneSpeak)
export enum LoginAuthType {
SendCode = 1, // 发送验证码
Google = 3, // Google AccessToken
VerifyCode = 8, // 验证码登录
}
// Login response type
export interface LoginResponse {
authType: number;
sid: string;
pToken: string;
message: string;
account: {
uid: string;
type: number;
email: string;
googleId?: string;
createdTime: number;
newAccount: boolean;
};
user: UserInfo & {
status: number;
extra?: unknown;
createdTime: number;
customerId?: string;
};
}