feat: add optional credential processing with dependent switches and traffic evidence

This commit is contained in:
ji ruo committed 2026-10-20 13:01:03 +08:00
1 parent 7c2efbc1ca
commit 851e3f99ed
16 files changed
+1881 -38

No files matched your search

+7
View File
@@ -28,6 +28,7 @@ import type {
ConvTokenSummary,
CoverageAssetRefs,
CoverageGraphData,
CredentialTrafficDetail,
DailyTokenBucket,
DeleteTaskOptions,
DeleteTaskResult,
@@ -922,6 +923,12 @@ export const api = {
get<TaskIntelligence>(`/${scope}/${id}/intelligence/${intelligenceId}`),
updateIntelligence: (taskId: number, intelligenceId: number, status: string) =>
patch<{ updated: boolean }>(`/tasks/${taskId}/intelligence/${intelligenceId}`, { status }),
retryCredentials: (taskId: number, intelligenceId: number) =>
post<{ queued: boolean }>(`/tasks/${taskId}/intelligence/${intelligenceId}/credentials/retry`),
credentialTraffic: (scope: "tasks" | "assets", scopeId: string, intelligenceId: number, trafficId: string) =>
get<CredentialTrafficDetail>(
`/${scope}/${scopeId}/intelligence/${intelligenceId}/traffic/${encodeURIComponent(trafficId)}`,
),
settings: () => get<Settings>(`/settings`),
basicAuthSettings: () => get<{ enabled: boolean; username: string; password_set: boolean }>("/settings/basic-auth"),
setBasicAuthSettings: (settings: { enabled: boolean; username: string; password: string }) =>