Skip to main content

TypeAlias.TrustAuditSubjectDetail

type TrustAuditSubjectDetail = {
baseline: | {
auditedAt: string;
geo: number;
}
| null;
category: string;
delta: number | null;
details: | {
answerabilitySignals: Record<string, boolean>;
competitors: {
bestRank: number;
domain: string;
queries: string[];
}[];
pageChecks: {
id: string;
status: "pass" | "warn" | "fail";
}[];
queries: {
competitive?: number;
intent: | "brand"
| "origin"
| "category"
| "comparison"
| "problem"
| "quality"
| "warranty"
| "certification";
ranks: Partial<Record<"firecrawl" | "exa", number | null>>;
text: string;
top?: {
domain: string;
rank: number;
}[];
visibility?: number;
}[];
recommendations: {
action: string;
priority: "high" | "medium" | "low";
}[];
}
| null;
id: string;
latest: | {
auditedAt: string;
geo: number;
}
| null;
passportId: string;
productName: string;
recruitedAt: string;
snapshots: {
answerability: number;
auditedAt: string;
competitive: number;
geo: number;
id: string;
kind: "scheduled" | "baseline";
sources: ("firecrawl" | "exa")[];
technicalReadiness: number;
visibility: number;
}[];
state: "active" | "archived" | "baseline_pending";
webPageUrl: string | null;
};

Full detail of a single AI-visibility audit subject: the list fields plus its complete snapshot history and the raw audit material (per-query ranks, competitors, technical checks, recommendations) of the most recent snapshot only.

Type Declaration

NameType
baseline
categorystring
deltanumber
details
idstring
latest
passportIdstring
productNamestring
recruitedAtstring
snapshots{ answerability: number; auditedAt: string; competitive: number; geo: number; id: string; kind: "scheduled"
state"active"
webPageUrlstring