forked from baron/baron-sso
권한부여 및 정합성 검사 추가
This commit is contained in:
@@ -129,6 +129,7 @@ export type RPUsageDailyResponse = {
|
||||
|
||||
export type AdminOverviewStats = {
|
||||
totalTenants: number;
|
||||
totalUsers: number;
|
||||
oidcClients: number;
|
||||
auditEvents24h: number;
|
||||
};
|
||||
@@ -149,6 +150,36 @@ export type UserProjectionActionResult = {
|
||||
updatedAt: string;
|
||||
};
|
||||
|
||||
export type DataIntegrityStatus = "pass" | "warning" | "fail";
|
||||
|
||||
export type DataIntegrityCheck = {
|
||||
key: string;
|
||||
label: string;
|
||||
description: string;
|
||||
status: DataIntegrityStatus;
|
||||
severity: "info" | "warning" | "error" | string;
|
||||
count: number;
|
||||
};
|
||||
|
||||
export type DataIntegritySection = {
|
||||
key: string;
|
||||
label: string;
|
||||
status: DataIntegrityStatus;
|
||||
checks: DataIntegrityCheck[];
|
||||
};
|
||||
|
||||
export type DataIntegrityReport = {
|
||||
status: DataIntegrityStatus;
|
||||
checkedAt: string;
|
||||
summary: {
|
||||
totalChecks: number;
|
||||
passed: number;
|
||||
warnings: number;
|
||||
failures: number;
|
||||
};
|
||||
sections: DataIntegritySection[];
|
||||
};
|
||||
|
||||
export async function fetchAuditLogs(limit = 50, cursor?: string) {
|
||||
const { data } = await apiClient.get<AuditLogListResponse>("/v1/audit", {
|
||||
params: { limit, cursor },
|
||||
@@ -161,6 +192,13 @@ export async function fetchAdminOverviewStats() {
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function fetchDataIntegrityReport() {
|
||||
const { data } = await apiClient.get<DataIntegrityReport>(
|
||||
"/v1/admin/integrity",
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function fetchUserProjectionStatus() {
|
||||
const { data } = await apiClient.get<UserProjectionStatus>(
|
||||
"/v1/admin/projections/users",
|
||||
|
||||
Reference in New Issue
Block a user