mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-29 00:00:17 +00:00
feat: refactor auth and xpack integration
This commit is contained in:
committed by
zhengkunwang223
parent
69906046e8
commit
a917ca00a1
@@ -48,15 +48,46 @@ export namespace Login {
|
||||
export interface AuthInfo {
|
||||
id: number;
|
||||
name: string;
|
||||
sessionTimeout: number;
|
||||
expirationDays: number;
|
||||
expirationTime: string;
|
||||
mfaStatus: string;
|
||||
mfaInterval: number;
|
||||
role: string;
|
||||
permissions: string[];
|
||||
nodeScopes: number[];
|
||||
nodeRoles: Array<{ nodeId: number; nodeName: string; roleId: number; roleName: string }>;
|
||||
|
||||
apiInterfaceStatus: string;
|
||||
apiKey: string;
|
||||
ipWhiteList: string;
|
||||
apiKeyValidityTime: number;
|
||||
}
|
||||
export interface AuthInfoUpdate {
|
||||
id: number;
|
||||
name: string;
|
||||
password: string;
|
||||
oldPassword: string;
|
||||
newPassword: string;
|
||||
retryPassword: string;
|
||||
sessionTimeout: number;
|
||||
expirationDays: number;
|
||||
expirationTime: string;
|
||||
}
|
||||
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 ApiConfig {
|
||||
apiInterfaceStatus: string;
|
||||
apiKey: string;
|
||||
ipWhiteList: string;
|
||||
apiKeyValidityTime: number;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user