import { apiRequest } from './client'

export function listApiKeys() {
  return apiRequest('/api-keys')
}

export function createApiKey(body) {
  return apiRequest('/api-keys', { method: 'POST', body })
}

export function revokeApiKey(id) {
  return apiRequest(`/api-keys/${id}/revoke`, { method: 'POST' })
}

export function deleteApiKey(id) {
  return apiRequest(`/api-keys/${id}`, { method: 'DELETE' })
}
