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.
		
		
		
		
		
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			472 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			17 lines
		
	
	
		
			472 B
		
	
	
	
		
			TypeScript
		
	
| interface FileServerPairingAuthorisation {
 | |
|   primaryDevicePubKey: string;
 | |
|   secondaryDevicePubKey: string;
 | |
|   requestSignature: string; // base64
 | |
|   grantSignature: string; // base64
 | |
| }
 | |
| 
 | |
| interface DeviceMappingAnnotation {
 | |
|   isPrimary: string;
 | |
|   authorisations: Array<FileServerPairingAuthorisation>;
 | |
| }
 | |
| 
 | |
| interface LokiFileServerInstance {
 | |
|   getUserDeviceMapping(pubKey: string): Promise<DeviceMappingAnnotation | null>;
 | |
|   clearOurDeviceMappingAnnotations(): Promise<void>;
 | |
| }
 |