export interface ApiError {
  error: string;
  message: string;
  details?: Record<string, unknown>;
}

export interface ApiKey {
  id: string;
  name: string;
  keyPrefix: string;
  scopes: string[];
  expiresAt: string | null;
  createdAt: string;
}

export interface ApiKeyListResponse {
  data: ApiKey[];
}

export interface CreateApiKeyRequest {
  name: string;
  scopes?: string[];
  expiresAt?: string;
}

export interface CreateApiKeyResponse extends ApiKey {
  key: string;
}
