You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | import { Attachment } from './Attachment'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type Message = UserMessage; | 
					
						
							|  |  |  | export type UserMessage = IncomingMessage; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type IncomingMessage = Readonly< | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     type: 'incoming'; | 
					
						
							|  |  |  |     // Required
 | 
					
						
							|  |  |  |     attachments: Array<Attachment>; | 
					
						
							|  |  |  |     id: string; | 
					
						
							|  |  |  |     received_at: number; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // Optional
 | 
					
						
							|  |  |  |     body?: string; | 
					
						
							|  |  |  |     errors?: Array<any>; | 
					
						
							|  |  |  |     expireTimer?: number; | 
					
						
							|  |  |  |     flags?: number; | 
					
						
							|  |  |  |     source?: string; | 
					
						
							|  |  |  |   } & SharedMessageProperties & | 
					
						
							|  |  |  |     ExpirationTimerUpdate | 
					
						
							|  |  |  | >; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type SharedMessageProperties = Readonly<{ | 
					
						
							|  |  |  |   conversationId: string; | 
					
						
							|  |  |  |   sent_at: number; | 
					
						
							|  |  |  |   timestamp: number; | 
					
						
							|  |  |  | }>; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type ExpirationTimerUpdate = Partial< | 
					
						
							|  |  |  |   Readonly<{ | 
					
						
							|  |  |  |     expirationTimerUpdate: Readonly<{ | 
					
						
							|  |  |  |       expireTimer: number; | 
					
						
							|  |  |  |       fromSync: boolean; | 
					
						
							|  |  |  |       source: string; | 
					
						
							|  |  |  |     }>; | 
					
						
							|  |  |  |   }> | 
					
						
							|  |  |  | >; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type LokiProfile = { | 
					
						
							|  |  |  |   displayName: string; | 
					
						
							|  |  |  |   avatarPointer?: string; | 
					
						
							|  |  |  |   profileKey: Uint8Array | null; | 
					
						
							|  |  |  | }; |