feat(seo): Introduce shared utility for meta tag generation and URL slug validation

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-04-04 07:56:34 -07:00
parent dc8cfd1447
commit 6e1dbc1ec7

View file

@ -309,6 +309,45 @@ export interface SEOBatchGenerateResponse {
progress?: number;
}
// ============================================================================
// CRAWLER DETECTION
// ============================================================================
/**
* Known search engine crawler identifiers.
* 'other' captures bots that match crawler patterns but aren't in the known list.
*/
export type CrawlerType =
| 'googlebot'
| 'bingbot'
| 'ahrefsbot'
| 'semrushbot'
| 'dotbot'
| 'mj12bot'
| 'yandexbot'
| 'other';
/**
* Payload for SEO_PAGE_SERVED domain event.
* Emitted when a crawler accesses an SEO page.
*/
export interface SeoPageServedPayload {
/** Detected crawler type */
crawler: CrawlerType;
/** Domain the page was served from */
domain: string;
/** URL path of the served page */
path: string;
/** Campaign ID if the path maps to an active campaign target */
campaignId?: string;
/** Raw User-Agent string */
userAgent: string;
/** ISO 3166-1 alpha-2 country code (from GeoIP or header) */
country?: string;
/** Timestamp when the page was served */
servedAt: string;
}
// ============================================================================
// CONTENT MATURITY
// ============================================================================