feat: add system test validation and router admin controls
This commit is contained in:
@@ -267,6 +267,7 @@ export type MemoryV2AdminConfig = {
|
||||
vectorEnabled?: boolean;
|
||||
failOpen?: boolean;
|
||||
};
|
||||
chatIntentRouter: MemoryV2AdminSection;
|
||||
pgvector: MemoryV2AdminSection;
|
||||
qdrant: MemoryV2AdminSection;
|
||||
weaviate: MemoryV2AdminSection;
|
||||
@@ -283,6 +284,53 @@ export type MemoryV2AdminConfigResponse = {
|
||||
updatedBy: string | null;
|
||||
};
|
||||
|
||||
export type AdminSystemTestStepStatus = 'passed' | 'warning' | 'failed';
|
||||
|
||||
export type AdminSystemTestStep = {
|
||||
key: string;
|
||||
label: string;
|
||||
status: AdminSystemTestStepStatus;
|
||||
message: string;
|
||||
details?: Record<string, unknown> | null;
|
||||
};
|
||||
|
||||
export type AdminSystemTestIssue = {
|
||||
stepKey: string;
|
||||
severity: 'warning' | 'error';
|
||||
title: string;
|
||||
detail: string;
|
||||
};
|
||||
|
||||
export type AdminSystemTestReport = {
|
||||
ok: boolean;
|
||||
startedAt: number;
|
||||
finishedAt: number;
|
||||
portalBaseUrl: string;
|
||||
selectedSkill: string;
|
||||
account: {
|
||||
userId?: string;
|
||||
username: string;
|
||||
displayName?: string | null;
|
||||
};
|
||||
summary: {
|
||||
passed: number;
|
||||
warnings: number;
|
||||
failed: number;
|
||||
};
|
||||
steps: AdminSystemTestStep[];
|
||||
issues: AdminSystemTestIssue[];
|
||||
};
|
||||
|
||||
export type AdminSystemTestAccount = {
|
||||
id: string;
|
||||
label: string;
|
||||
username: string;
|
||||
passwordMasked: string;
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
updatedBy?: string | null;
|
||||
};
|
||||
|
||||
export type WechatBinding = {
|
||||
userId: string;
|
||||
username: string;
|
||||
|
||||
Reference in New Issue
Block a user