Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

503 B
Raw Blame
export interface ApiKey {
  id: string
  name: string
  owner?: string
  projectReadOnly?: boolean
  keyPreview: string
  scopes: string[]
  projectIds: string[]
  allProjects: boolean
  unrestricted: boolean
  created: string | null
  rotated: string | null
}

export interface ApiKeyList {
  keys: ApiKey[]
  projects: { id: string; name: string }[]
  scopes: Record<string, string[]>
}

export interface ApiKeyInput {
  name: string
  scopes: string[]
  allProjects: boolean
  projectIds: string[]
}