Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

579 B
Raw Blame
import { type Sketch } from './sketch'
import { type Profile } from './profile'
import { type Analysis } from './analysis'

export type InvestigationRole = 'owner' | 'admin' | 'editor' | 'viewer'

export interface Investigation {
  id: string
  name: string
  description: string
  sketches: Sketch[]
  analyses: Analysis[]
  created_at: string
  last_updated_at: string
  owner: Profile
  owner_id: string
  status: string
  current_user_role: InvestigationRole | null
}

export interface Collaborator {
  id: string
  user_id: string
  roles: string[]
  user: Profile | null
}