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.
18 lines
521 B
TypeScript
18 lines
521 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>;
|
|
downloadAttachment(url: string): Promise<any>;
|
|
}
|