mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 08:00:55 +00:00
324 lines
7.8 KiB
Go
324 lines
7.8 KiB
Go
import { DateTimeFormats } from '@intlify/core-base';
|
|
|
|
export namespace Setting {
|
|
export interface SettingInfo {
|
|
userName: string;
|
|
password: string;
|
|
email: string;
|
|
systemIP: string;
|
|
systemVersion: string;
|
|
upgradeBackupCopies: string;
|
|
dockerSockPath: string;
|
|
developerMode: string;
|
|
|
|
sessionTimeout: number;
|
|
localTime: string;
|
|
timeZone: string;
|
|
ntpSite: string;
|
|
|
|
panelName: string;
|
|
edition: string;
|
|
theme: string;
|
|
menuTabs: string;
|
|
language: string;
|
|
docSource: string;
|
|
defaultIO: string;
|
|
defaultNetwork: string;
|
|
lastCleanTime: string;
|
|
lastCleanSize: string;
|
|
lastCleanData: string;
|
|
|
|
serverPort: number;
|
|
ipv6: string;
|
|
bindAddress: string;
|
|
ssl: string;
|
|
sslType: string;
|
|
allowIPs: string;
|
|
bindDomain: string;
|
|
passkeyTrustedProxies: string;
|
|
securityEntrance: string;
|
|
dashboardMemoVisible: string;
|
|
dashboardSimpleNodeVisible: string;
|
|
expirationDays: number;
|
|
expirationTime: string;
|
|
complexityVerification: string;
|
|
mfaStatus: string;
|
|
mfaSecret: string;
|
|
mfaInterval: string;
|
|
|
|
monitorStatus: string;
|
|
monitorInterval: number;
|
|
monitorStoreDays: number;
|
|
|
|
messageType: string;
|
|
emailVars: string;
|
|
weChatVars: string;
|
|
dingVars: string;
|
|
snapshotIgnore: string;
|
|
hideMenu: string;
|
|
noAuthSetting: string;
|
|
|
|
proxyUrl: string;
|
|
proxyType: string;
|
|
proxyPort: string;
|
|
proxyUser: string;
|
|
proxyPasswd: string;
|
|
proxyPasswdKeep: string;
|
|
|
|
apiInterfaceStatus: string;
|
|
apiKey: string;
|
|
ipWhiteList: string;
|
|
apiKeyValidityTime: number;
|
|
}
|
|
export interface TerminalInfo {
|
|
lineHeight: string;
|
|
letterSpacing: string;
|
|
fontSize: string;
|
|
fontFamily: string;
|
|
backgroundColor: string;
|
|
foregroundColor: string;
|
|
cursorBlink: string;
|
|
cursorStyle: string;
|
|
scrollback: string;
|
|
scrollSensitivity: string;
|
|
}
|
|
export interface TerminalAIInfo {
|
|
aiStatus: string;
|
|
aiAccountId: string;
|
|
aiPrefix: string;
|
|
aiRiskCommands: string;
|
|
}
|
|
export interface SettingUpdate {
|
|
key: string;
|
|
value: string;
|
|
}
|
|
export interface ProxyUpdate {
|
|
proxyUrl: string;
|
|
proxyType: string;
|
|
proxyPort: string;
|
|
proxyUser: string;
|
|
proxyPasswd: string;
|
|
proxyPasswdKeep: string;
|
|
withDockerRestart: boolean;
|
|
}
|
|
export interface ApiConfig {
|
|
apiInterfaceStatus: string;
|
|
apiKey: string;
|
|
ipWhiteList: string;
|
|
apiKeyValidityTime: number;
|
|
}
|
|
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;
|
|
}
|
|
export interface MFAInfo {
|
|
secret: string;
|
|
qrImage: string;
|
|
}
|
|
export interface MFABind {
|
|
secret: string;
|
|
code: string;
|
|
interval: string;
|
|
}
|
|
export interface PasskeyRegisterRequest {
|
|
name: string;
|
|
}
|
|
export interface PasskeyBeginResponse {
|
|
sessionId: string;
|
|
publicKey: Record<string, any>;
|
|
}
|
|
export interface PasskeyInfo {
|
|
id: string;
|
|
name: string;
|
|
createdAt: string;
|
|
lastUsedAt: string;
|
|
}
|
|
export interface CommonDescription {
|
|
id: string;
|
|
type: string;
|
|
detailType: string;
|
|
isPinned: boolean;
|
|
description: string;
|
|
}
|
|
|
|
export interface SnapshotCreate {
|
|
id: number;
|
|
sourceAccountIDs: string;
|
|
downloadAccountID: string;
|
|
description: string;
|
|
secret: string;
|
|
timeout: number;
|
|
|
|
appData: Array<DataTree>;
|
|
panelData: Array<DataTree>;
|
|
backupData: Array<DataTree>;
|
|
|
|
withMonitorData: boolean;
|
|
withLoginLog: boolean;
|
|
withOperationLog: boolean;
|
|
}
|
|
export interface SnapshotImport {
|
|
backupAccountID: number;
|
|
names: Array<string>;
|
|
description: string;
|
|
}
|
|
export interface SnapshotRecover {
|
|
id: number;
|
|
taskID: string;
|
|
isNew: boolean;
|
|
reDownload: boolean;
|
|
secret: string;
|
|
}
|
|
export interface SnapshotInfo {
|
|
id: number;
|
|
name: string;
|
|
sourceAccounts: Array<string>;
|
|
downloadAccount: string;
|
|
description: string;
|
|
status: string;
|
|
message: string;
|
|
createdAt: DateTimeFormats;
|
|
version: string;
|
|
secret: string;
|
|
timeout: number;
|
|
|
|
taskID: string;
|
|
taskRecoverID: string;
|
|
taskRollbackID: string;
|
|
|
|
interruptStep: string;
|
|
recoverStatus: string;
|
|
recoverMessage: string;
|
|
rollbackStatus: string;
|
|
rollbackMessage: string;
|
|
}
|
|
export interface SnapshotData {
|
|
appData: Array<DataTree>;
|
|
panelData: Array<DataTree>;
|
|
backupData: Array<DataTree>;
|
|
|
|
withMonitorData: boolean;
|
|
withLoginLog: boolean;
|
|
withOperationLog: boolean;
|
|
}
|
|
export interface DataTree {
|
|
id: string;
|
|
label: string;
|
|
key: string;
|
|
name: string;
|
|
size: number;
|
|
isShow: boolean;
|
|
isDisable: boolean;
|
|
|
|
path: string;
|
|
|
|
Children: Array<DataTree>;
|
|
}
|
|
export interface UpgradeInfo {
|
|
testVersion: string;
|
|
newVersion: string;
|
|
latestVersion: string;
|
|
releaseNote: string;
|
|
}
|
|
|
|
export interface License {
|
|
licenseName: string;
|
|
assigneeName: string;
|
|
productPro: string;
|
|
versionConstraint: string;
|
|
trial: boolean;
|
|
status: string;
|
|
message: string;
|
|
smsUsed: number;
|
|
smsTotal: number;
|
|
}
|
|
export interface LicenseOptions {
|
|
id: number;
|
|
licenseName: string;
|
|
totalFreeCount: number;
|
|
availableXpackCount: number;
|
|
availableFreeCount: number;
|
|
}
|
|
export interface LicenseStatus {
|
|
productPro: string;
|
|
status: string;
|
|
smsTotal: number;
|
|
smsUsed: number;
|
|
}
|
|
export interface NodeItem {
|
|
id: number;
|
|
addr: string;
|
|
status: string;
|
|
version: string;
|
|
isXpack: boolean;
|
|
isBound: boolean;
|
|
name: string;
|
|
}
|
|
export interface SimpleNodeItem {
|
|
id: number;
|
|
name: string;
|
|
addr: string;
|
|
description: string;
|
|
systemVersion: string;
|
|
securityEntrance: string;
|
|
cpuUsedPercent: number;
|
|
cpuTotal: number;
|
|
memoryTotal: number;
|
|
memoryUsedPercent: number;
|
|
}
|
|
export interface ReleasesNotes {
|
|
Version: string;
|
|
CreatedAt: string;
|
|
Content: string;
|
|
NewCount: number;
|
|
OptimizationCount: number;
|
|
FixCount: number;
|
|
}
|
|
|
|
export interface LicenseBind {
|
|
nodeID: number;
|
|
licenseID: number;
|
|
syncList: string;
|
|
withDockerRestart: boolean;
|
|
}
|
|
export interface LicenseUnbind {
|
|
id: number;
|
|
force: boolean;
|
|
withDockerRestart: boolean;
|
|
}
|
|
|
|
export interface SmsInfo {
|
|
licenseName: string;
|
|
smsUsed: number;
|
|
smsTotal: number;
|
|
}
|
|
|
|
export interface NodeAppItem {
|
|
name: string;
|
|
updateCount: number;
|
|
}
|
|
}
|