1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-15 10:14:44 +08:00

153 lines
3.6 KiB
Go
Raw Normal View History

2023-01-06 18:53:25 +08:00
import { DateTimeFormats } from '@intlify/core-base';
2022-09-15 10:44:43 +08:00
export namespace Setting {
export interface SettingInfo {
userName: string;
password: string;
email: string;
systemIP: string;
systemVersion: string;
dockerSockPath: string;
2022-09-15 10:44:43 +08:00
2022-09-16 16:00:49 +08:00
sessionTimeout: number;
localTime: string;
timeZone: string;
ntpSite: string;
2022-09-15 10:44:43 +08:00
panelName: string;
theme: string;
language: string;
defaultNetwork: string;
lastCleanTime: string;
lastCleanSize: string;
lastCleanData: string;
2022-09-15 10:44:43 +08:00
2022-09-16 16:00:49 +08:00
serverPort: number;
ipv6: string;
bindAddress: string;
ssl: string;
sslType: string;
allowIPs: string;
bindDomain: string;
2022-09-15 10:44:43 +08:00
securityEntrance: string;
2022-11-16 18:27:22 +08:00
expirationDays: number;
expirationTime: string;
2022-09-15 10:44:43 +08:00
complexityVerification: string;
mfaStatus: string;
2022-09-14 23:27:17 +08:00
mfaSecret: string;
mfaInterval: string;
2022-09-15 10:44:43 +08:00
monitorStatus: string;
monitorInterval: number;
2022-09-16 16:00:49 +08:00
monitorStoreDays: number;
2022-09-15 10:44:43 +08:00
messageType: string;
emailVars: string;
weChatVars: string;
dingVars: string;
snapshotIgnore: string;
xpackHideMenu: string;
2022-09-15 10:44:43 +08:00
}
export interface SettingUpdate {
key: string;
value: string;
}
export interface SSLUpdate {
ssl: string;
domain: string;
sslType: string;
cert: string;
key: string;
sslID: number;
}
export interface SSLInfo {
domain: string;
timeout: string;
rootPath: string;
cert: string;
key: string;
sslID: number;
}
export interface PasswordUpdate {
oldPassword: string;
newPassword: string;
}
export interface PortUpdate {
serverPort: number;
}
export interface MFARequest {
title: string;
interval: number;
}
2022-09-14 23:27:17 +08:00
export interface MFAInfo {
secret: string;
qrImage: string;
}
export interface MFABind {
secret: string;
code: string;
interval: string;
2022-09-14 23:27:17 +08:00
}
2023-01-06 18:53:25 +08:00
export interface SnapshotCreate {
id: number;
from: string;
fromAccounts: Array<string>;
defaultDownload: string;
2023-01-06 18:53:25 +08:00
description: string;
}
2023-02-13 15:48:18 +08:00
export interface SnapshotImport {
from: string;
names: Array<string>;
description: string;
}
export interface SnapshotRecover {
id: number;
isNew: boolean;
reDownload: boolean;
2023-01-06 18:53:25 +08:00
}
export interface SnapshotInfo {
id: number;
name: string;
from: string;
defaultDownload: string;
2023-01-06 18:53:25 +08:00
description: string;
status: string;
message: string;
createdAt: DateTimeFormats;
version: string;
interruptStep: string;
recoverStatus: string;
recoverMessage: string;
lastRecoveredAt: string;
rollbackStatus: string;
rollbackMessage: string;
lastRollbackedAt: string;
}
export interface SnapshotStatus {
panel: string;
panelInfo: string;
daemonJson: string;
appData: string;
panelData: string;
backupData: string;
compress: string;
size: string;
upload: string;
}
export interface UpgradeInfo {
newVersion: string;
latestVersion: string;
releaseNote: string;
2023-01-06 18:53:25 +08:00
}
export interface License {
licenseName: string;
assigneeName: string;
productPro: string;
trial: boolean;
status: string;
}
2022-09-15 10:44:43 +08:00
}