* chore: send server password param to delete account endpoint * chore: send server password param to disable mfa endpoint * chore: modify tests * chore: force challenge prompt for mfa disable * chore: fix eslint errors * chore: add server passsword to get recovery codes * chore: fix tests * chore: pass server password as header
18 lines
652 B
TypeScript
18 lines
652 B
TypeScript
import { EmailBackupFrequency } from '@standardnotes/settings'
|
|
import { SettingsList } from './SettingsList'
|
|
import { SettingName } from '@standardnotes/domain-core'
|
|
|
|
export interface SettingsClientInterface {
|
|
listSettings(): Promise<SettingsList>
|
|
|
|
getSetting(name: SettingName, serverPassword?: string): Promise<string | undefined>
|
|
|
|
getDoesSensitiveSettingExist(name: SettingName): Promise<boolean>
|
|
|
|
updateSetting(name: SettingName, payload: string, sensitive?: boolean): Promise<void>
|
|
|
|
deleteSetting(name: SettingName, serverPassword?: string): Promise<void>
|
|
|
|
getEmailBackupFrequencyOptionLabel(frequency: EmailBackupFrequency): string
|
|
}
|