export type IssueApiKeyInput = {
  owner: string
  issuedBy: {
    owner: string
  }
  scopes: string[]
  expiresAt?: Date | null
}

export type IssuedApiKey = {
  id: string
  key: string
}

export type VerifiedApiKey = {
  owner: string
  scopes: string[]
}

export type VerifyApiKeyOptions = {
  now?: Date
  onLastUsedAtUpdateError?: (error: import('./errors.js').ApiKeyLastUsedAtUpdateError) => void
}
