mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 03:16:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			831 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			831 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Model, UUID } from '@/api/definitions';
 | |
| import { SubuserPermission } from '@/state/server/subusers';
 | |
| 
 | |
| interface User extends Model {
 | |
|     uuid: string;
 | |
|     username: string;
 | |
|     email: string;
 | |
|     image: string;
 | |
|     twoFactorEnabled: boolean;
 | |
|     createdAt: Date;
 | |
|     permissions: SubuserPermission[];
 | |
|     can(permission: SubuserPermission): boolean;
 | |
| }
 | |
| 
 | |
| interface SSHKey extends Model {
 | |
|     name: string;
 | |
|     publicKey: string;
 | |
|     fingerprint: string;
 | |
|     createdAt: Date;
 | |
| }
 | |
| 
 | |
| interface ActivityLog extends Model<'actor'> {
 | |
|     id: string;
 | |
|     batch: UUID | null;
 | |
|     event: string;
 | |
|     ip: string | null;
 | |
|     isApi: boolean;
 | |
|     description: string | null;
 | |
|     properties: Record<string, string | unknown>;
 | |
|     hasAdditionalMetadata: boolean;
 | |
|     timestamp: Date;
 | |
|     relationships: {
 | |
|         actor: User | null;
 | |
|     };
 | |
| }
 | 
