Use same lock values as mobile clients
[ProtonMail-WebClient.git] / packages / shared / lib / api / settingsRecovery.ts
blob6f16c77ba254e7941dce6c31e5874393ea862b7a
1 interface NewRecoverySecretPayload {
2     RecoverySecret: string;
3     Signature: string;
5 export const setNewRecoverySecret = (data: NewRecoverySecretPayload) => ({
6     url: 'core/v4/settings/recovery/secret',
7     method: 'post',
8     data,
9 });
11 export const deleteRecoverySecrets = () => ({
12     url: 'core/v4/settings/recovery/secret',
13     method: 'delete',
14 });
16 export const updateDeviceRecovery = (data: { DeviceRecovery: number }) => ({
17     url: 'core/v4/settings/devicerecovery',
18     method: 'PUT',
19     data,
20 });