# Prerender EventCatalog Documentation > Living architecture catalog for the Visibility domain ## Events ## Commands ## Queries - [Disconnect Source - DisconnectSource - 1.0.0 ](https://github.com/docs/queries/DisconnectSource/1.0.0.mdx) - Disconnect a source — clears credentials, removes visibility states, sets status to DISCONNECTED. - [Get Connectors - GetConnectors - 1.0.0 ](https://github.com/docs/queries/GetConnectors/1.0.0.mdx) - Lists all registered connector workers with their capabilities and registration timestamps. - [Get Diagnostics - GetDiagnostics - 1.0.0 ](https://github.com/docs/queries/GetDiagnostics/1.0.0.mdx) - Returns non-indexed URLs grouped by exclusion reason with sample URLs per category. Explains why URLs lack visibility. - [Get Health Check - GetHealthCheck - 1.0.0 ](https://github.com/docs/queries/GetHealthCheck/1.0.0.mdx) - Simple liveness check returning module status, version, and name. No authentication required. - [Get Indexation Verdicts - GetIndexationVerdicts - 1.1.0 ](https://github.com/docs/queries/GetIndexationVerdicts/1.1.0.mdx) - Google's index verdicts for a scope: how many pages sit in each coverage state, grouped by the connector's stable coverage state code, counted on each page's latest URL Inspection in the window (30 days by default). Backs the "Google index status" section on Search Performance. Counts use the same predicate as the `/urls` inspection filter, so a row's count equals the `/urls` total on the indexation view filtered to that `coverage_state_code`. - [Get Inspect - GetInspect - 1.2.0 ](https://github.com/docs/queries/GetInspect/1.2.0.mdx) - Deep-dive into a single URL's visibility across all data sources. Shows per-source index status, crawl data, and Prerender state. Optional property_url scopes the read to one Search Console property and its Prerender companion (D052). - [Get Live Inspection Usage - GetLiveInspectionUsage - 1.1.0 ](https://github.com/docs/queries/GetLiveInspectionUsage/1.1.0.mdx) - Today's live-inspection usage for one GSC property of a project: used, budget, remaining, and the UTC reset time. - [Get Operation Detail - GetOperationDetail - 1.0.0 ](https://github.com/docs/queries/GetOperationDetail/1.0.0.mdx) - Returns one operation plus its ordered event timeline. 404 when the operation does not belong to the tenant. - [Get Operations - GetOperations - 1.0.0 ](https://github.com/docs/queries/GetOperations/1.0.0.mdx) - Lists sync operations (daily / manual) for the tenant, newest first, with optional status and type filters. - [Get Overview - GetOverview - 1.1.0 ](https://github.com/docs/queries/GetOverview/1.1.0.mdx) - Returns aggregate visibility metrics including totals, percentages, per-section breakdown, and source coverage for a project. Optional property_url scopes the read to one Search Console property and its Prerender companion (D052). - [Get Ranking Latest - GetRankingLatest - 1.0.0 ](https://github.com/docs/queries/GetRankingLatest/1.0.0.mdx) - Returns the latest URL ranking run for a (tenant, source). Three buckets — `proveValue`, `findProblems`, `expandCoverage` — each carrying count, paginated URL rows, and a stable narrative string. - [Get Schema Actions - GetSchemaActions - 1.0.0 ](https://github.com/docs/queries/GetSchemaActions/1.0.0.mdx) - Lists actions for a source type with per-action field counts and temporal modes. - [Get Schema Fields - GetSchemaFields - 1.0.0 ](https://github.com/docs/queries/GetSchemaFields/1.0.0.mdx) - Returns typed field metadata for a specific source type and action, enabling dynamic UI rendering. - [Get Schema Sources - GetSchemaSources - 1.0.0 ](https://github.com/docs/queries/GetSchemaSources/1.0.0.mdx) - Lists all registered connector source types with action and field counts. - [Get Sections - GetSections - 1.0.0 ](https://github.com/docs/queries/GetSections/1.0.0.mdx) - Returns section-level health aggregation with diagnostic indicators. Health status (HEALTHY/WARNING/CRITICAL) is based on indexation percentage. - [Get Sections Coverage - GetSectionsCoverage - 1.1.0 ](https://github.com/docs/queries/GetSectionsCoverage/1.1.0.mdx) - Section-level coverage rollup: the three role-decomposition buckets (served_and_found / served_only / found_only) plus impressions, clicks, SQL-derived CTR, and delivery-error counts per first-level section. Sortable on every column, paginated, reconciles with the overview url_coverage totals. Optional property_url scopes the read to one Search Console property and its Prerender companion (D052). - [Get Semantic Metadata - GetSemanticMetadata - 1.0.0 ](https://github.com/docs/queries/GetSemanticMetadata/1.0.0.mdx) - Returns resolved `FieldMetadata[]` for a `(workerName, sourceType, action)` triple. Each field carries a `semantic` block plus a `semanticSource` tag — `'declared' | 'heuristic' | 'override'` — so the reviewer UI can highlight what came from where. - [Get Source Detail - GetSourceDetail - 1.0.0 ](https://github.com/docs/queries/GetSourceDetail/1.0.0.mdx) - Detailed view of a single source including capabilities, supported actions, and recent sync job history. - [Get Source Job History - GetSourceJobs - 1.0.0 ](https://github.com/docs/queries/GetSourceJobs/1.0.0.mdx) - Sync job history for a source, filterable by action. Returns up to 50 most recent jobs. - [List Sources - GetSources - 1.0.0 ](https://github.com/docs/queries/GetSources/1.0.0.mdx) - List all configured data sources for a tenant with status, supported actions, and last sync timestamp. - [Get Trends - GetTrends - 1.0.0 ](https://github.com/docs/queries/GetTrends/1.0.0.mdx) - Historical trend data for visibility metrics over time. MVP skeleton — currently returns 422 for all sources as no connector supports TIME_SERIES yet. - [Get URLs - GetUrls - 1.11.0 ](https://github.com/docs/queries/GetUrls/1.11.0.mdx) - Paginated, filterable, sortable URL listing. Each row carries `page_id` and only the columns its listing view's source owns — GSC views: windowed search metrics and `metric_state`; PRERENDER views: crawler-served status and timestamp. Coverage-bucket presence filters and status filters work on every view. Backs the Pages drill-down tabs. Optional property_url scopes the read to one Search Console property and its Prerender companion (D052). `page_ids` pins the listing to an explicit set of pages so a consumer holding one view's rows can fetch the same pages from another view and join on `page_id`. - [Get Version - GetVersion - 1.0.0 ](https://github.com/docs/queries/GetVersion/1.0.0.mdx) - Returns the semver label and git SHA the running visibility-api was deployed from. - [Get View Health - GetViewHealth - 1.0.0 ](https://github.com/docs/queries/GetViewHealth/1.0.0.mdx) - Returns health status for all materialized views including last refresh time and row counts. - [Get Views - GetViews - 1.0.0 ](https://github.com/docs/queries/GetViews/1.0.0.mdx) - Lists all registered materialized views with their source type, action, and refresh schedule. - [OAuth Activate Source - OAuthActivate - 1.0.0 ](https://github.com/docs/queries/OAuthActivate/1.0.0.mdx) - Activate a source after OAuth — test API access to selected property, set status to ACTIVE, store capabilities. - [OAuth Authorize - OAuthAuthorize - 1.0.0 ](https://github.com/docs/queries/OAuthAuthorize/1.0.0.mdx) - Initiate GSC OAuth flow — validates source is PENDING, generates HMAC-signed state, returns Google consent URL. - [OAuth Callback - OAuthCallback - 1.0.0 ](https://github.com/docs/queries/OAuthCallback/1.0.0.mdx) - Handle Google OAuth callback — verify state HMAC, exchange code for tokens, encrypt and store, list GSC properties. - [OAuth Disconnect - OAuthDisconnect - 1.0.0 ](https://github.com/docs/queries/OAuthDisconnect/1.0.0.mdx) - Disconnect OAuth credentials — clear tokens, set source to DISCONNECTED status. - [OAuth Mint Selection Session - OAuthMintSelectionSession - 1.0.0 ](https://github.com/docs/queries/OAuthMintSelectionSession/1.0.0.mdx) - Mint a property selection session from stored OAuth tokens — refresh, list properties, persist — so Manage Domains can re-select GSC properties without re-running the Google consent flow. - [Post Live Inspection - PostLiveInspection - 1.1.1 ](https://github.com/docs/queries/PostLiveInspection/1.1.1.mdx) - Inspects one URL with Google URL Inspection now, saves the result into the normal history → promote flow, and counts it against the property's daily live-inspection budget. - [Register Connector - RegisterConnector - 1.0.0 ](https://github.com/docs/queries/RegisterConnector/1.0.0.mdx) - Registers a connector worker with the Visibility API, providing capabilities and schema metadata. - [Review Semantic Metadata - ReviewSemanticMetadata - 1.0.0 ](https://github.com/docs/queries/ReviewSemanticMetadata/1.0.0.mdx) - Applies a batch of approve / override / reject decisions to the semantic metadata of a connector's fields. Overrides are persisted on the owning worker's `connector_registrations.semanticOverrides` JSONB (CEN-87) so they survive restarts. - [Trigger Daily Sync - TriggerDailySync - 2.0.0 ](https://github.com/docs/queries/TriggerDailySync/2.0.0.mdx) - Dispatch the daily multi-source sync as a Trigger.dev background run. Returns a run id immediately; work executes async on the Trigger.dev worker (CEN-58, 2026-04-27). - [Trigger Source Sync - TriggerSourceSync - 1.0.0 ](https://github.com/docs/queries/TriggerSourceSync/1.0.0.mdx) - Manually trigger a sync for a specific source. Optionally target a single action. ## Agents ## Services - [Connector Factory - ConnectorFactory - 1.0.0 ](https://github.com/docs/services/ConnectorFactory/1.0.0.mdx) - Transitional in-process factory that maps SourceType to SourceConnector implementations. Being replaced by ConnectorRegistryService (CEN-56) with HTTP-based worker delegation. - [GSC Mock Connector - ConnectorGscMock - 1.0.0 ](https://github.com/docs/services/ConnectorGscMock/1.0.0.mdx) - Dev-only GSC simulator — schema-faithful deterministic search-analytics/indexation with configurable latency, QPM and daily-quota dials (CEN-205). - [Connector Registry Service - ConnectorRegistryService - 1.0.0 ](https://github.com/docs/services/ConnectorRegistryService/1.0.0.mdx) - Durable registry of connected connector workers (CEN-87). Persists registrations on `connector_registrations`, hot-caches them in memory, rehydrates cache on bootstrap, and cascades schema metadata into SchemaDictionaryService and ViewRegistryService. Owns per-(sourceType, action, path) semantic overrides (CEN-75 / CEN-87). - [Coverage Service - CoverageService - 1.0.0 ](https://github.com/docs/services/CoverageService/1.0.0.mdx) - Calculates source coverage metrics — how many configured data sources are actively enabled. - [Daily Ranking Job - DailyRankingJob - 1.0.0 ](https://github.com/docs/services/DailyRankingJob/1.0.0.mdx) - Daily orchestrator for the V2 URL ranking pipeline (CEN-115 / 3C.9). Walks the four V2 layers per tenant via the `RankingDataLoader` port; SAW or TOPSIS V2 scorer per the `rankingScorer` flag. - [Daily Sync Cron (Trigger.dev schedule) - DailySyncCronTask - 1.0.0 ](https://github.com/docs/services/DailySyncCronTask/1.0.0.mdx) - Trigger.dev scheduled task firing 03:00 UTC daily. Fetches active tenants from Visibility Worker and dispatches one daily-sync-fanout run per tenant. - [Daily Sync Fanout (Trigger.dev task) - DailySyncFanoutTask - 1.0.0 ](https://github.com/docs/services/DailySyncFanoutTask/1.0.0.mdx) - Trigger.dev task that calls Visibility Worker to execute one tenant daily sync. - [Dashboard Timing Service - DashboardTimingService - 1.0.0 ](https://github.com/docs/services/DashboardTimingService/1.0.0.mdx) - Measures the Prerender dashboard's API calls every morning and stores each run, compared run to run in the playground Fleet → Timings tab (CEN-327). - [Diagnostics Service - DiagnosticsService - 1.0.0 ](https://github.com/docs/services/DiagnosticsService/1.0.0.mdx) - Groups non-indexed URLs by exclusion reason with sample URLs per category. Phase 3D / 3D.6 migrated the service onto the GSC indexation MV — direct `JOIN pages → domains → sources` is gone; predicates use `mv.project_id` / `mv.source_type` directly. - [Execution Config Service - ExecutionConfigService - 1.0.0 ](https://github.com/docs/services/ExecutionConfigService/1.0.0.mdx) - Named immutable snapshots of runtime parallelization knobs — effective-value resolution, nightly run binding, and per-chunk tuning dispatch (CEN-195). - [Failure Mapper Service - FailureMapperService - 1.0.0 ](https://github.com/docs/services/FailureMapperService/1.0.0.mdx) - Converts domain Failure classes to HTTP error responses at the adapter boundary. Maps each failure type to an appropriate HTTP status code and error code. - [Freshness Service - FreshnessService - 1.0.0 ](https://github.com/docs/services/FreshnessService/1.0.0.mdx) - Calculates data freshness and staleness indicators from sync job completion times. Configurable stale threshold (default: 24 hours). - [GSC Cluster Plan Service - GscClusterPlanService - 1.0.0 ](https://github.com/docs/services/GscClusterPlanService/1.0.0.mdx) - Partitions large GSC properties' URL space into page-regex clusters so search-analytics syncs escape the 50k rows/day exposure cap. - [GSC Connector - GscConnector - 1.0.0 ](https://github.com/docs/services/GscConnector/1.0.0.mdx) - Google Search Console connector implementing SourceConnector. Fully functional: testConnection via OAuth, fetchAction for search_analytics and indexation with checkpointed pagination. - [GSC OAuth Service - GscOAuthService - 1.0.0 ](https://github.com/docs/services/GscOAuthService/1.0.0.mdx) - Manages the full GSC OAuth2 lifecycle: authorization, token exchange, encrypted storage, refresh, activation, and disconnection. Port/adapter architecture (D012) with real and mock implementations. - [History Outbox Parity (Trigger.dev schedule) - HistoryOutboxParityTask - 1.0.0 ](https://github.com/docs/services/HistoryOutboxParityTask/1.0.0.mdx) - Nightly read-only check that every outbox table equals the fold computed directly from history. - [History Outbox Retention (Trigger.dev schedule) - HistoryOutboxRetentionTask - 1.0.0 ](https://github.com/docs/services/HistoryOutboxRetentionTask/1.0.0.mdx) - Nightly monthly rollup of the projection tables, then the trim of daily rows past the daily window and of monthly rows past the monthly window. - [Indexation Verdicts Service - IndexationVerdictsService - 1.0.0 ](https://github.com/docs/services/IndexationVerdictsService/1.0.0.mdx) - Counts pages per Google coverage state for a scope, on each page's latest URL Inspection in the window, and reports the scope's indexation freshness and daily inspection limit (CEN-343). - [Inspect Service - InspectService - 1.0.0 ](https://github.com/docs/services/InspectService/1.0.0.mdx) - Deep-dive into a single URL's visibility across all data sources. Shows per-source index status, crawl data, and Prerender rendering state. - [Live Inspection Service - LiveInspectionService - 1.0.0 ](https://github.com/docs/services/LiveInspectionService/1.0.0.mdx) - On-demand Google URL Inspection for one URL: resolves the GSC property, reserves one unit of the property's daily budget, dispatches the connector's existing indexation action, and saves the row through the normal history → promote flow. - [Multi-Source Orchestrator - MultiSourceOrchestrator - 1.0.0 ](https://github.com/docs/services/MultiSourceOrchestrator/1.0.0.mdx) - Orchestrates multi-source sync cycles using a stage-based DAG. Discovers sources and actions via ConnectorRegistryService, builds a SyncDAG with ordered stages (Prerender before GSC), delegates each step to SyncJobRunner, refreshes per-source materialized views after each stage, and refreshes cross-source correlation views after all stages complete. - [Narrative Template Service - NarrativeTemplateService - 1.0.0 ](https://github.com/docs/services/NarrativeTemplateService/1.0.0.mdx) - CEN-78 — single-pass `{name}` placeholder substitution with non-recursive replacement. Substituted values that themselves contain `{x}` are left literal (injection guard); missing keys render as `[unknown]`. - [Nightly Report Service - NightlyReportService - 1.0.0 ](https://github.com/docs/services/NightlyReportService/1.0.0.mdx) - Generates the fleet-wide nightly ops report after the daily sync completes and stores it in DO Spaces (CEN-200). - [Operation Tracker Service - OperationTrackerService - 1.0.0 ](https://github.com/docs/services/OperationTrackerService/1.0.0.mdx) - Records sync runs as tenant-scoped operations with an append-only event timeline. The user-facing audit trail over daily and manual syncs. - [Overview Service - OverviewService - 1.0.0 ](https://github.com/docs/services/OverviewService/1.0.0.mdx) - Computes aggregate visibility metrics (totals, percentages, per-section breakdown) for a project. Phase 3D / 3D.6 migrated the service onto QueryRouter — direct `JOIN pages → domains → sources` is gone; predicates use `mv.project_id` / `mv.source_type` directly. - [Page Discovery Service - PageDiscoveryService - 1.0.0 ](https://github.com/docs/services/PageDiscoveryService/1.0.0.mdx) - Reconciles URLs discovered during sync with existing Page entities. Creates new pages for unknown URLs and matches existing pages using normalized URL comparison. - [Partition Maintenance Service - PartitionMaintenanceService - 1.1.0 ](https://github.com/docs/services/PartitionMaintenanceService/1.1.0.mdx) - Monthly partition reclamation for `page_visibility_states`. Drops monthly partitions outside `max(retentionDays) + bufferDays`; pre-creates next month's partition. - [Prerender API Client - PrerenderAPIClient - 1.0.0 ](https://github.com/docs/services/PrerenderAPIClient/1.0.0.mdx) - HTTP adapter for the Prerender.io API. Implements PrerenderAPIPort with X-Prerender-Token authentication, paginated fetching, and Result-based error handling. - [Prerender Connector - PrerenderConnector - 1.0.0 ](https://github.com/docs/services/PrerenderConnector/1.0.0.mdx) - Prerender.io data source adapter implementing SourceConnector. Provides render status/timing, cache status, and crawler-served page data via the Prerender API. - [Query Router Service - QueryRouterService - 1.0.0 ](https://github.com/docs/services/QueryRouterService/1.0.0.mdx) - Routes metric queries to the correct materialized view. Resolves per-source views by (sourceType, action). Source-agnostic — adding a connector requires zero endpoint changes. - [Quota Tracker Service - QuotaTrackerService - 1.0.0 ](https://github.com/docs/services/QuotaTrackerService/1.0.0.mdx) - In-memory daily quota counter per (source, action). Tracks GSC API usage against configured limits and provides budget-aware gating for sync operations. - [Ranking Exclusion Service - RankingExclusionService - 1.0.0 ](https://github.com/docs/services/RankingExclusionService/1.0.0.mdx) - Layer 0 of the V2 ranking pipeline (CEN-115 / 3C.2). Filters candidate URLs against per-tenant exclusion patterns before scoring; persists the exclusion set per run for inspection. Runtime knob `ranking.exclusionEnabled`, default OFF (CEN-249). - [Ranking Read Service - RankingReadService - 1.0.0 ](https://github.com/docs/services/RankingReadService/1.0.0.mdx) - Read-side projection of the latest ranking run for a (tenant, source). Loads via `UrlRankingRepository.getLatestRun`, paginates per bucket, and renders bucket narratives via `NarrativeTemplateService`. Distinct from `DailyRankingJob` (the write side that executes a pass). - [Read Cache Service - ReadCacheService - 1.0.0 ](https://github.com/docs/services/ReadCacheService/1.0.0.mdx) - Version-keyed Redis cache for dashboard reads — one loader per key per pod, fail-open, invalidated by the tenant data version (CEN-191). - [Response Builder Service - ResponseBuilderService - 1.0.0 ](https://github.com/docs/services/ResponseBuilderService/1.0.0.mdx) - Request-scoped service that assembles the ApiResponse envelope with metadata (sources, freshness, coverage) for every endpoint response. - [Retention Service - RetentionService - 1.0.0 ](https://github.com/docs/services/RetentionService/1.0.0.mdx) - Per-project batched DELETE pass over the partitioned history table. Loops `HistoryQueryExecutor.deleteOlderThan` in 10k-row batches until the cutoff is empty. Daily-cron-driven, idempotent. - [Schema Dictionary Service - SchemaDictionaryService - 1.0.0 ](https://github.com/docs/services/SchemaDictionaryService/1.0.0.mdx) - Aggregates field metadata from all registered connectors and exposes it via REST endpoints. Frontend discovers available columns, filters, and sorts without reading code. - [Section Coverage Service - SectionCoverageService - 1.0.0 ](https://github.com/docs/services/SectionCoverageService/1.0.0.mdx) - Serves the Performance-by-path rollup (CEN-215): the three coverage buckets, search metrics, SQL-derived CTR, and delivery-error counts per section, paginated and sortable. Bucket predicates are shared with the overview url_coverage block, so path totals never drift from the KPI cards. - [Sections Service - SectionsService - 1.0.0 ](https://github.com/docs/services/SectionsService/1.0.0.mdx) - Computes section-level health aggregation (HEALTHY / WARNING / CRITICAL) plus top issues per section. Phase 3D / 3D.6 migrated the service onto the GSC indexation MV — direct `JOIN pages → domains → sources` is gone; predicates use `mv.project_id` / `mv.source_type` directly. - [Semantic Classifier Service - SemanticClassifierService - 1.0.0 ](https://github.com/docs/services/SemanticClassifierService/1.0.0.mdx) - Heuristic-only v1 (D014 amendment, OP-031). Proposes semantic metadata for connector fields lacking a `semantic` block via regex rules over (path | label | description) tokens. No runtime LLM call. Returns proposals tagged `source: 'declared' | 'heuristic'`. - [Semantic Config Proposal Service - SemanticConfigProposalService - 1.0.0 ](https://github.com/docs/services/SemanticConfigProposalService/1.0.0.mdx) - LLM-assisted proposer for connector semantic YAML configs. Operator-driven propose-then-approve flow; runtime ranking never calls the LLM. Default OFF per `enableLlmSemanticClassifier` flag. - [Source Management Service - SourceManagementService - 1.0.0 ](https://github.com/docs/services/SourceManagementService/1.0.0.mdx) - Manages connected sources: list all sources, get source detail, view job history, and disconnect a source. Serves supportedActions from GscCapabilities.config. - [Sync Job Aggregator - SyncJobAggregator - 1.0.0 ](https://github.com/docs/services/SyncJobAggregator/1.0.0.mdx) - Computes per-action observability aggregates from page_visibility_states. Called by SyncJobRunner before each COMPLETED transition (CEN-59, 2026-04-27). - [Sync Job Repository - SyncJobRepository - 1.0.0 ](https://github.com/docs/services/SyncJobRepository/1.0.0.mdx) - Result-returning CRUD for SyncJobEntity with state machine transition guards. Prevents concurrent runs via exclusive job creation. - [Sync Job Runner - SyncJobRunner - 1.1.0 ](https://github.com/docs/services/SyncJobRunner/1.1.0.mdx) - Orchestrates the lifecycle of a single (source, action) sync job: validate source, create exclusive job, run fetch loop with checkpointing, aggregate metadata, mark COMPLETED or FAILED. - [Sync Job Tracker - SyncJobTracker - 1.0.0 ](https://github.com/docs/services/SyncJobTracker/1.0.0.mdx) - Provides read-only progress queries for sync jobs: current status, job history per source, and last checkpoint retrieval for incremental sync. - [Tasks Dispatcher - TasksDispatcher - 1.0.0 ](https://github.com/docs/services/TasksDispatcher/1.0.0.mdx) - Port-and-adapter abstraction for dispatching Trigger.dev runs from the Visibility API. Concrete impl is TriggerDevTasksDispatcher; tests use FakeTasksDispatcher (CEN-58, 2026-04-27). - [URL Normalizer Service - URLNormalizerService - 1.0.0 ](https://github.com/docs/services/URLNormalizerService/1.0.0.mdx) - Deterministic URL normalization with configurable per-domain rules. The "join key" between GSC URLs and Prerender pages. - [URLs Service - UrlsService - 1.0.0 ](https://github.com/docs/services/UrlsService/1.0.0.mdx) - Paginated, filterable, sortable URL listing with per-URL visibility status. Phase 3D / 3D.6 migrated the service onto the GSC indexation MV. URL search uses `mv."normalizedUrl" ILIKE` — accelerated at scale by the `pg_trgm` GIN index added in CEN-86. - [View Refresh Service - ViewRefreshService - 1.0.0 ](https://github.com/docs/services/ViewRefreshService/1.0.0.mdx) - Manages creation and concurrent refresh of PostgreSQL materialized views for per-source data (GSC indexation, GSC search metrics, Prerender rendering). Uses REFRESH MATERIALIZED VIEW CONCURRENTLY for zero-downtime updates. The cross-source views were dropped in CEN-347 (no readers). - [View Registry Service - ViewRegistryService - 1.0.0 ](https://github.com/docs/services/ViewRegistryService/1.0.0.mdx) - Registers and discovers materialized views. Tracks per-source views by (sourceType, action), plus view health including last refresh time and row counts. - [Visibility API - VisibilityAPI - 1.0.0 ](https://github.com/docs/services/VisibilityAPI/1.0.0.mdx) - NestJS REST API serving visibility analytics endpoints under /visibility/*. Multi-tenant, project-scoped, with structured error responses. - [Visibility Worker - VisibilityWorker - 1.0.0 ](https://github.com/docs/services/VisibilityWorker/1.0.0.mdx) - Internal-only NestJS worker pod that executes Trigger.dev visibility tasks through the same /visibility/internal/tasks/* endpoints as the API image. - [Worker Registration Service - WorkerRegistrationService - 1.0.0 ](https://github.com/docs/services/WorkerRegistrationService/1.0.0.mdx) - Registers a connector worker with the Visibility API on startup. Retries with exponential backoff and controls the readiness probe. ## Data Products ## Domains - [GSC Connector Worker - GscConnectorWorker - 1.0.0 ](https://github.com/docs/domains/GscConnectorWorker/1.0.0.mdx) - Google Search Console connector deployed as an independent K8s pod. Fetches search analytics and URL inspection data via OAuth; authenticates and registers with Visibility API on startup. - [Prerender Connector Worker - PrerenderConnectorWorker - 1.0.0 ](https://github.com/docs/domains/PrerenderConnectorWorker/1.0.0.mdx) - Prerender.io connector deployed as an independent K8s pod. Fetches render status, cache health, and crawler-served page data via Prerender API; authenticates and registers with Visibility API on startup. - [Visibility Analytics - Visibility - 1.0.0 ](https://github.com/docs/domains/Visibility/1.0.0.mdx) - Aggregates SEO visibility data from multiple sources (GSC, Bing, GA4, Cloudflare, Prerender) into unified, multi-tenant analytics for monitoring indexation health across web properties. - [Visibility Tasks (Trigger.dev runtime) - VisibilityTasks - 1.0.0 ](https://github.com/docs/domains/VisibilityTasks/1.0.0.mdx) - Trigger.dev task definitions for visibility background work. Tasks are thin HTTP callers into the internal Visibility Worker service. ## Flows - [Connector Registration Cascade - ConnectorRegistrationCascade - 1.0.0 ](https://github.com/docs/flows/ConnectorRegistrationCascade/1.0.0.mdx) - How authenticated worker registration cascades through ConnectorRegistryService to populate SchemaDictionaryService and ViewRegistryService. - [Daily Sync Cycle - DailySyncCycle - 1.0.0 ](https://github.com/docs/flows/DailySyncCycle/1.0.0.mdx) - How the automated daily sync orchestrates across all active sources — from trigger through search analytics import, URL inspection, to materialized view refresh. - [GSC OAuth Connection Flow - OAuthConnection - 1.0.0 ](https://github.com/docs/flows/OAuthConnection/1.0.0.mdx) - How a customer connects their Google Search Console property — from OAuth consent through token exchange, property selection, and source activation. - [Overview Dashboard Query - OverviewDashboard - 1.0.0 ](https://github.com/docs/flows/OverviewDashboard/1.0.0.mdx) - How the visibility overview endpoint aggregates indexation data — 4 parallel queries from JSONB, section breakdown, coverage calculation. - [Schema Discovery - SchemaDiscovery - 1.0.0 ](https://github.com/docs/flows/SchemaDiscovery/1.0.0.mdx) - How the frontend discovers available source types, actions, and field metadata — the API surface that makes JSONB payloads self-describing without hardcoded schemas. - [Source Management Lifecycle - SourceManagement - 1.0.0 ](https://github.com/docs/flows/SourceManagement/1.0.0.mdx) - How sources are managed through their full lifecycle — from OAuth connection through monitoring, manual sync, and disconnection. - [Sync Data Ingestion Pipeline - SyncDataIngestion - 1.1.0 ](https://github.com/docs/flows/SyncDataIngestion/1.1.0.mdx) - How GSC search analytics data flows from Google's API into the visibility domain — implemented in CEN-30 with pagination, URL normalization, and JSONB upsert. - [URL Inspect Query - URLInspect - 1.0.0 ](https://github.com/docs/flows/URLInspect/1.0.0.mdx) - How a single URL deep-dive query flows through the system — from API request through normalization, page lookup, and visibility state aggregation. - [Connector Worker Registration - WorkerRegistration - 1.0.0 ](https://github.com/docs/flows/WorkerRegistration/1.0.0.mdx) - How a connector worker authenticates and registers with Visibility API on startup — the handshake that makes the worker discoverable and ready to receive sync tasks. ## Channels ## Containers (Databases, External Systems) ## Entities - Visibility Analytics Domain - [Project](https://github.com/docs/entities/Project/1.0.0.mdx) - Top-level tenant-scoped container representing a web property being monitored for SEO visibility. - [Domain](https://github.com/docs/entities/Domain/1.0.0.mdx) - A web domain (e.g., example.com) belonging to a project. Groups pages under a single DNS authority. - [Page](https://github.com/docs/entities/Page/1.0.0.mdx) - An individual URL within a domain. Grouped by section for aggregate reporting. URL identity determined by URLNormalizerService (D010). - [Page Visibility State](https://github.com/docs/entities/PageVisibilityState/1.0.0.mdx) - Per-source, per-action visibility state. The core join table: one row per (page, source, action) with full JSONB payload. D006 schema — bigserial PK, no typed columns. - [Source](https://github.com/docs/entities/Source/1.0.0.mdx) - A configured data source (GSC, Bing, GA4, Cloudflare, Prerender) with capabilities, enabled state, and connection configuration. - [Sync Job](https://github.com/docs/entities/SyncJob/1.0.0.mdx) - Tracks data synchronization jobs per source. Records job lifecycle with timing and error metadata. - [Connector Projection](https://github.com/docs/entities/Projection/1.0.0.mdx) - Connector-declared per-day history table (CEN-326, D059): one row per (tenant, page, source, day) of one action, folded from history by the promote. One table per declaration, named proj___v; the columns after the core ones come from the declaration. - [History Promotion](https://github.com/docs/entities/HistoryPromotion/1.0.0.mdx) - History outbox promote ledger (CEN-321, D058): one row per sync job key (tenant, operation, source, action). Records the sticky mode, progress and errors of the promote. Kept 30 days. ## Teams ## Users