/** 与后端 /api/accounts 一致的账号结构 */
export type CfAccount = {
  id: string;
  name: string;
  token: string;
  created_at?: number;
};

/** Cloudflare Zone 列表项（精简字段） */
export type CfZone = {
  id: string;
  name: string;
  status: string;
  plan?: { name?: string };
};

/** DNS 记录（表单与表格用到的字段） */
export type DnsRecord = {
  id: string;
  type: string;
  name: string;
  content?: string;
  ttl: number;
  proxiable?: boolean;
  proxied?: boolean;
  priority?: number;
  comment?: string;
  data?: Record<string, unknown>;
};
