import { z } from 'zod';

/** A persisted entry in a campaign's live-session recap (rolls + chat). */
export const sessionLogEntrySchema = z.object({
  id: z.string(),
  campaignId: z.string(),
  kind: z.enum(['roll', 'chat']),
  from: z.string(),
  text: z.string(),
  scope: z.enum(['table', 'whisper']).optional(),
  ts: z.string(), // ISO timestamp
});
export type SessionLogEntry = z.infer<typeof sessionLogEntrySchema>;
