Skip to content

: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.

506 B
Raw Blame
import { z } from 'zod'

export const ReplayIndexEntrySchema = z.object({
    kind: z.enum(['full_snapshot', 'json_ld', 'page']),
    windowId: z.string(),
    eventTimestamp: z.number().finite().positive(),
    eventIndex: z.number().int().nonnegative(),
    fullSnapshotTimestamp: z.number().finite().positive().optional(),
    rootTypes: z.array(z.string().max(100)).max(64).optional(),
    url: z.string().max(4096).optional(),
})

export type ReplayIndexEntry = z.infer<typeof ReplayIndexEntrySchema>