/**
 * Activity SSE Event Types
 *
 * Type-safe definitions for activity-related SSE events
 */

import type { Activity } from './types'

/**
 * Event sent when new activity is created
 */
export interface ActivityCreatedEvent {
  type: 'activity'
  timestamp: number
  data: Activity
}

/**
 * Connection confirmation event
 */
export interface ActivityConnectedEvent {
  type: 'connected'
  timestamp: number
  data?: undefined
}

/**
 * Union of all activity SSE events
 */
export type ActivitySSEEvent = ActivityCreatedEvent | ActivityConnectedEvent
