import { loadAccountKey } from "../lib/propertydata-api.js"; export async function keyList(params: { accountId: string }): Promise { const key = await loadAccountKey(params.accountId); console.error(`[property-data] key-op op=list account=${params.accountId}`); if (!key) { return "No PropertyData API key registered. Use property-data-key-register to add one."; } return `PropertyData API key registered (created: ${key.createdAt}, updated: ${key.updatedAt}). Key value is encrypted and cannot be retrieved.`; }