fix sso core folder

This commit is contained in:
lendry
2026-06-24 14:45:45 +03:00
parent 995adeedd4
commit d2bbf35d40
45 changed files with 6592 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
export interface RegisterCommand {
email?: string;
phone?: string;
password?: string;
displayName: string;
username?: string;
}
export interface LoginCommand {
login: string;
password: string;
deviceName?: string;
deviceType?: string;
fingerprint: string;
ipAddress?: string;
userAgent?: string;
}
export interface AuthTokens {
accessToken: string;
refreshToken: string;
expiresAt: string;
pinVerified: boolean;
sessionId: string;
user: PublicUser;
}
export interface PublicUser {
id: string;
email?: string | null;
phone?: string | null;
backupEmail?: string | null;
backupPhone?: string | null;
displayName: string;
username?: string | null;
avatarUrl?: string | null;
hasAvatar?: boolean;
isSuperAdmin: boolean;
status: string;
roles?: string[];
permissions?: string[];
canAccessAdmin?: boolean;
canManageRoles?: boolean;
canManageOAuth?: boolean;
canManageUsers?: boolean;
canManageSettings?: boolean;
canViewUsers?: boolean;
canViewUserDocuments?: boolean;
}
export interface VerifyPinCommand {
sessionId: string;
pin: string;
}
export interface UpsertSettingCommand {
key: string;
value: string;
description?: string;
isSecret?: boolean;
}