:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(replay_vision): add indexer to ScannerType union and export IndexerScannerConfig (#60751)
mendral-app[bot]5dbeca10ef2a
diff --git a/products/replay_vision/frontend/replay_scanners/scannerTemplates.ts b/products/replay_vision/frontend/replay_scanners/scannerTemplates.tsindex 045e2445b5c7..a319538c25d7 100644--- a/products/replay_vision/frontend/replay_scanners/scannerTemplates.ts+++ b/products/replay_vision/frontend/replay_scanners/scannerTemplates.ts@@ -83,6 +83,7 @@ export const defaultScannerTemplates: readonly ScannerTemplate[] = [scanner_config: {prompt: 'Summarize what the user did in this session. Mention the main pages they visited, the primary actions they took, and any notable moments (errors, confusion, completed flows). Be concrete and avoid speculation.',length: 'medium',+ emits_embeddings: false,},},{diff --git a/products/replay_vision/frontend/replay_scanners/types.ts b/products/replay_vision/frontend/replay_scanners/types.tsindex f81863a9b878..d4d7106a2e2a 100644--- a/products/replay_vision/frontend/replay_scanners/types.ts+++ b/products/replay_vision/frontend/replay_scanners/types.ts@@ -3,7 +3,7 @@ import { RecordingsQuery } from '~/queries/schema/schema-general'import { ScannerModelEnumApi } from '../generated/api.schemas'import type { PatchedReplayScannerApi, ReplayScannerApi } from '../generated/api.schemas'-export type ScannerType = 'monitor' | 'classifier' | 'scorer' | 'summarizer'+export type ScannerType = 'monitor' | 'classifier' | 'scorer' | 'summarizer' | 'indexer'export type EnabledFilter = 'enabled' | 'disabled'@@ -159,11 +159,17 @@ export interface ScorerScannerConfig {scale: { min: number; max: number; label?: string }}+export interface IndexerScannerConfig {+ prompt: string+ emits_embeddings: boolean+}+export type ScannerConfig =| MonitorScannerConfig| SummarizerScannerConfig| ClassifierScannerConfig| ScorerScannerConfig+ | IndexerScannerConfigexport interface BaseReplayScanner {id: string@@ -203,7 +209,12 @@ export interface ScorerScanner extends BaseReplayScanner {scanner_config: ScorerScannerConfig}-export type ReplayScanner = MonitorScanner | SummarizerScanner | ClassifierScanner | ScorerScanner+export interface IndexerScanner extends BaseReplayScanner {+ scanner_type: 'indexer'+ scanner_config: IndexerScannerConfig+}++export type ReplayScanner = MonitorScanner | SummarizerScanner | ClassifierScanner | ScorerScanner | IndexerScannerexport type { VisionQuotaApi as VisionQuota } from '../generated/api.schemas'