diff --git a/frontend/src/api/ai-settings.schemas.ts b/frontend/src/api/ai-settings.schemas.ts index 9b182cce..09631203 100644 --- a/frontend/src/api/ai-settings.schemas.ts +++ b/frontend/src/api/ai-settings.schemas.ts @@ -19,6 +19,7 @@ export const tenantAiProfileSchema = z.object({ keepAlive: z.string(), allowExternalResearch: z.boolean(), webResearchMode: z.string(), + researchSourceKey: z.string(), includeCitations: z.boolean(), maxResearchSources: z.number(), allowedDomains: z.string(), @@ -48,6 +49,7 @@ export const saveTenantAiProfileSchema = z.object({ keepAlive: z.string(), allowExternalResearch: z.boolean(), webResearchMode: z.enum(['Disabled', 'ProviderNative', 'PatchHoundManaged', 'LocalVulnerabilityIntel']), + researchSourceKey: z.string(), includeCitations: z.boolean(), maxResearchSources: z.number().int().positive(), allowedDomains: z.string(), diff --git a/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.test.tsx b/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.test.tsx index 6c61baae..039c1d43 100644 --- a/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.test.tsx +++ b/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.test.tsx @@ -43,7 +43,9 @@ const nvdSource: EnrichmentSource = { displayName: 'NVD API', enabled: true, credentialMode: 'no-credential', + targets: ['Scheduled'], refreshTtlHours: null, + options: { jinaReader: null }, credentials: { storedCredentialId: null, acceptedCredentialTypes: ['api-key'], diff --git a/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.tsx b/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.tsx index 94c0ae25..32d3319f 100644 --- a/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.tsx +++ b/frontend/src/components/features/admin/GlobalEnrichmentSourceManagement.tsx @@ -125,7 +125,9 @@ export function GlobalEnrichmentSourceManagement({ key: source.key, displayName: source.displayName, enabled: source.enabled, + targets: source.targets, refreshTtlHours: source.refreshTtlHours, + options: source.options, credentials: { storedCredentialId: source.credentials.storedCredentialId ?? null, secret: source.credentials.secret, @@ -285,6 +287,18 @@ export function GlobalEnrichmentSourceManagement({ {source.key} + {source.targets.length > 0 ? ( +
Enable provider
- When enabled, the worker will invoke this enrichment source during vulnerability processing. + When enabled, selected PatchHound processes can invoke this enrichment source.
+ +Process targets
+ + +