github-actions[bot] commited on
Commit ·
fa187d0
1
Parent(s): f95d88d
Deploy Docker Space from GitHub d3e60b751f56fc2f4fe1f34e4a2c99573141cf2b
Browse files- src/types.ts +51 -1
src/types.ts
CHANGED
|
@@ -132,6 +132,54 @@ export type RagDocument = {
|
|
| 132 |
metadata: Record<string, JsonValue>;
|
| 133 |
};
|
| 134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
export type Snapshot = {
|
| 136 |
meta: Record<string, unknown>;
|
| 137 |
url: string;
|
|
@@ -164,6 +212,8 @@ export type IntelligenceResult = {
|
|
| 164 |
name: EvidenceField<string>;
|
| 165 |
description?: EvidenceField<string>;
|
| 166 |
};
|
|
|
|
|
|
|
| 167 |
seo: AuditResult;
|
| 168 |
security: AuditResult;
|
| 169 |
quality: AuditResult;
|
|
@@ -210,4 +260,4 @@ export type BenchmarkResult = {
|
|
| 210 |
elapsedMs: number;
|
| 211 |
assertions: { name: string; ok: boolean; actual?: JsonValue }[];
|
| 212 |
error?: string;
|
| 213 |
-
};
|
|
|
|
| 132 |
metadata: Record<string, JsonValue>;
|
| 133 |
};
|
| 134 |
|
| 135 |
+
export type WebEvidenceSource = {
|
| 136 |
+
url: string;
|
| 137 |
+
finalUrl?: string;
|
| 138 |
+
host: string;
|
| 139 |
+
sourceClass: "first-party" | "platform" | "third-party";
|
| 140 |
+
discoveredBy: string[];
|
| 141 |
+
searchProvider?: string;
|
| 142 |
+
searchTitle?: string;
|
| 143 |
+
searchSnippet?: string;
|
| 144 |
+
status?: number;
|
| 145 |
+
title?: string;
|
| 146 |
+
description?: string;
|
| 147 |
+
publishedAt?: string;
|
| 148 |
+
mentionsEntity: boolean;
|
| 149 |
+
fetched: boolean;
|
| 150 |
+
observedAt: string;
|
| 151 |
+
error?: string;
|
| 152 |
+
};
|
| 153 |
+
|
| 154 |
+
export type WebResearchReport = {
|
| 155 |
+
enabled: boolean;
|
| 156 |
+
searchConfigured: boolean;
|
| 157 |
+
searchProvider?: string;
|
| 158 |
+
queries: string[];
|
| 159 |
+
candidateUrls: number;
|
| 160 |
+
fetchedSources: number;
|
| 161 |
+
thirdPartySources: number;
|
| 162 |
+
thirdPartyDomains: number;
|
| 163 |
+
corroboratingThirdPartySources: number;
|
| 164 |
+
corroboratingThirdPartyDomains: number;
|
| 165 |
+
platformSources: number;
|
| 166 |
+
sourceCoverageScore: number;
|
| 167 |
+
coverageLevel: "none" | "limited" | "moderate" | "strong";
|
| 168 |
+
sources: WebEvidenceSource[];
|
| 169 |
+
notes: string[];
|
| 170 |
+
};
|
| 171 |
+
|
| 172 |
+
export type ConfidenceAssessment = {
|
| 173 |
+
extractionConfidence: number;
|
| 174 |
+
externalCorroboration: number;
|
| 175 |
+
externalCoverageLevel: "none" | "limited" | "moderate" | "strong";
|
| 176 |
+
firstPartyEvidencePages: number;
|
| 177 |
+
thirdPartyEvidenceSources: number;
|
| 178 |
+
thirdPartyEvidenceDomains: number;
|
| 179 |
+
searchProvider?: string;
|
| 180 |
+
interpretation: string;
|
| 181 |
+
};
|
| 182 |
+
|
| 183 |
export type Snapshot = {
|
| 184 |
meta: Record<string, unknown>;
|
| 185 |
url: string;
|
|
|
|
| 212 |
name: EvidenceField<string>;
|
| 213 |
description?: EvidenceField<string>;
|
| 214 |
};
|
| 215 |
+
confidenceAssessment: ConfidenceAssessment;
|
| 216 |
+
webResearch: WebResearchReport;
|
| 217 |
seo: AuditResult;
|
| 218 |
security: AuditResult;
|
| 219 |
quality: AuditResult;
|
|
|
|
| 260 |
elapsedMs: number;
|
| 261 |
assertions: { name: string; ok: boolean; actual?: JsonValue }[];
|
| 262 |
error?: string;
|
| 263 |
+
};
|