mirror of
				https://github.com/owncast/owncast.git
				synced 2025-10-31 18:18:06 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			596 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			596 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export interface MessageType {
 | |
|   user: User;
 | |
|   body: string;
 | |
|   id: string;
 | |
|   key: string;
 | |
|   name: string;
 | |
|   timestamp: string;
 | |
|   type: string;
 | |
|   visible: boolean;
 | |
| }
 | |
| 
 | |
| export interface User {
 | |
|   id: string;
 | |
|   displayName: string;
 | |
|   createdAt: Date;
 | |
|   disabledAt: Date;
 | |
|   previousNames: [string];
 | |
|   nameChangedAt: Date;
 | |
|   scopes?: [string];
 | |
| }
 | |
| 
 | |
| export interface UsernameHistory {
 | |
|   displayName: string;
 | |
|   changedAt: Date;
 | |
| }
 | |
| 
 | |
| export interface UserConnectionInfo {
 | |
|   connectedAt: Date;
 | |
|   messageCount: number;
 | |
|   userAgent: string;
 | |
| }
 | |
| 
 | |
| export interface Client extends UserConnectionInfo {
 | |
|   user: User;
 | |
| }
 | 
