aiden suggested changes

This commit is contained in:
Drew Ansbacher
2021-09-10 09:16:58 +03:00
committed by Aiden McClelland
parent a1914c833f
commit fc500a01a0
2 changed files with 16 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
verifyProductKey
setup.status
Request
key: string
@@ -6,7 +6,7 @@ verifyProductKey
"is-recovering" : boolean
"tor-address" : string
getEmbassyDrives
setup.disk.list
Request
Response
@@ -17,7 +17,7 @@ getEmbassyDrives
used: number
}[]
getRecoveryDrives
setup.recovery.list
Request
Response
@@ -27,14 +27,14 @@ getRecoveryDrives
name: string
}[]
getDataTransferProgress
setup.recovery.status
Request
Response
'bytes-transfered' : number
'total-bytes' : number
verifyRecoveryPassword
setup.recovery.test-password
Request
logicalname : string
password : string
@@ -42,12 +42,12 @@ verifyRecoveryPassword
Response
boolean
setupEmbassy
setup.execute
Request
embassyLogicalname : string,
embassyPassword : string
recoveryLogicalname? : string,
recoveryPassword? : string
embassy-logicalname : string,
embassy-password : string
recovery-logicalname? : string,
recovery-password? : string
Response
"tor-address": string

View File

@@ -13,42 +13,42 @@ export class LiveApiService extends ApiService {
async verifyProductKey() {
return this.http.rpcRequest<VerifyProductKeyRes>({
method: 'verifyProductKey',
method: 'setup.status',
params: {}
})
}
async getDataTransferProgress() {
return this.http.rpcRequest<TransferProgressRes>({
method: 'getDataTransferProgress',
method: 'setup.recovery.status',
params: {}
})
}
async getEmbassyDrives() {
return this.http.rpcRequest<EmbassyDrive[]>({
method: 'getEmbassyDrives',
method: 'setup.disk.list',
params: {}
})
}
async getRecoveryDrives() {
return this.http.rpcRequest<RecoveryDrive[]>({
method: 'getRecoveryDrives',
method: 'setup.recovery.list',
params: {}
})
}
async verifyRecoveryPassword(logicalname, password) {
return this.http.rpcRequest<boolean>({
method: 'verifyRecoveryPassword',
method: 'setup.recovery.test-password',
params: {logicalname, password}
})
}
async setupEmbassy (setupInfo) {
return this.http.rpcRequest<SetupEmbassyRes>({
method: 'setupEmbassy',
method: 'setup.execute',
params: setupInfo
})
}