import { AppRole } from "@app/core/common/enum/app-role"; import { AppPermission } from "@app/core/common/enum/permission.enum"; import { Guid } from "@common/types/guid"; export interface AppAccount { isAuthenticated: boolean; // permissions: AppPermission[]; roles: AppRole[]; permissions: AppPermission[]; principal: AppPrincipalInfo; profile: UserProfileInfo; } export interface AppPrincipalInfo{ subject: Guid; name: string; scope: string[]; client: string; notBefore: Date; authenticatedAt: Date; expiresAt: Date; more: Record } export interface UserProfileInfo { culture: string; language: string; timezone: string; avatarUrl: string; email: string; }