57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
|
|
import * as plugins from '../plugins.ts';
|
||
|
|
import * as data from '../data/index.ts';
|
||
|
|
|
||
|
|
export interface IReq_GetSettings extends plugins.typedrequestInterfaces.implementsTR<
|
||
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
||
|
|
IReq_GetSettings
|
||
|
|
> {
|
||
|
|
method: 'getSettings';
|
||
|
|
request: {
|
||
|
|
identity: data.IIdentity;
|
||
|
|
};
|
||
|
|
response: {
|
||
|
|
settings: data.ISettings;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IReq_UpdateSettings extends plugins.typedrequestInterfaces.implementsTR<
|
||
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
||
|
|
IReq_UpdateSettings
|
||
|
|
> {
|
||
|
|
method: 'updateSettings';
|
||
|
|
request: {
|
||
|
|
identity: data.IIdentity;
|
||
|
|
settings: Partial<data.ISettings>;
|
||
|
|
};
|
||
|
|
response: {
|
||
|
|
settings: data.ISettings;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IReq_SetBackupPassword extends plugins.typedrequestInterfaces.implementsTR<
|
||
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
||
|
|
IReq_SetBackupPassword
|
||
|
|
> {
|
||
|
|
method: 'setBackupPassword';
|
||
|
|
request: {
|
||
|
|
identity: data.IIdentity;
|
||
|
|
password: string;
|
||
|
|
};
|
||
|
|
response: {
|
||
|
|
ok: boolean;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IReq_GetBackupPasswordStatus extends plugins.typedrequestInterfaces.implementsTR<
|
||
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
||
|
|
IReq_GetBackupPasswordStatus
|
||
|
|
> {
|
||
|
|
method: 'getBackupPasswordStatus';
|
||
|
|
request: {
|
||
|
|
identity: data.IIdentity;
|
||
|
|
};
|
||
|
|
response: {
|
||
|
|
status: data.IBackupPasswordStatus;
|
||
|
|
};
|
||
|
|
}
|