Skip to main content

TypeAlias.TrustAuditPromptRankingItem

type TrustAuditPromptRankingItem = {
auditedAt: string;
bestRank: number | null;
competitive: number;
intent: | "brand"
| "origin"
| "category"
| "comparison"
| "problem"
| "quality"
| "warranty"
| "certification";
leader: | {
domain: string;
isSelf: boolean;
}
| null;
passportId: string;
productName: string;
subjectId: string;
text: string;
visibility: number;
};

One prompt of the AI-visibility prompt ranking: the query text and intent, the product it audits, and the visibility/competitive scores it earned in the latest audit. Returned by the audit prompts ranking endpoint.

Type Declaration

NameTypeDefault value
auditedAtstring-
bestRanknumbernull
competitivenumber-
intent"brand"
leader{ domain: string; isSelf: boolean; }
passportIdstring-
productNamestring-
subjectIdstring-
textstringtrustAuditQuerySchema.shape.text
visibilitynumber-