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

View File

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