export interface ApiKey {
  id: string;
  name: string;
  key_prefix: string;
  is_active: boolean;
  last_used_at: string | null;
  usage_count: number;
  created_at: string;
}

export interface ApiKeyCreateResponse {
  id: string;
  key: string;
  name: string;
  key_prefix: string;
  created_at: string;
}

export interface ApiKeysListResponse {
  data: ApiKey[];
  meta: {
    total: number;
  };
}

export interface ApiKeyCreateApiResponse {
  data: ApiKeyCreateResponse;
  meta: Record<string, unknown>;
}

export interface ApiKeyRevokeResponse {
  data: {
    id: string;
    revoked: boolean;
    revoked_at: string;
  };
  meta: Record<string, unknown>;
}

export const MAX_API_KEYS = 10;
