// Data — realistic enterprise-feeling mock data for Swivy
const ORG = {
  name: "Northbridge Labs",
  handle: "northbridge",
  plan: "Enterprise",
};

const PROJECTS = [
  { id: "prj_7QkA2vN", name: "Ledger Payments", envs: ["dev", "staging", "prod"], current: true },
  { id: "prj_Bm9rX4c", name: "Custody API", envs: ["dev", "prod"] },
  { id: "prj_yTq1eW8", name: "Internal Tools", envs: ["dev"] },
];

const API_KEYS = [
  { id: "key_01JN5FQ2D9T", label: "Server — prod backend", prefix: "sk_live_a94f", scopes: ["wallets:write", "signing:write", "audit:read"], lastUsed: "3 min ago", created: "Jan 14, 2026", createdBy: "Lena Osei", status: "active", env: "prod" },
  { id: "key_01JN5FQ2D9S", label: "Webhooks receiver", prefix: "sk_live_c3b1", scopes: ["webhooks:read"], lastUsed: "12 min ago", created: "Dec 02, 2025", createdBy: "Omar Vega", status: "active", env: "prod" },
  { id: "key_01JN5FQ2D9X", label: "CI — integration tests", prefix: "sk_test_88aa", scopes: ["wallets:write", "signing:write"], lastUsed: "2 hr ago", created: "Nov 11, 2025", createdBy: "Kira Patel", status: "active", env: "dev" },
  { id: "key_01JN5FQ2D9R", label: "Analytics read-only", prefix: "sk_live_ff20", scopes: ["audit:read"], lastUsed: "Yesterday", created: "Oct 28, 2025", createdBy: "Lena Osei", status: "pending", env: "prod" },
  { id: "key_01JN5FQ2D9N", label: "Legacy — payments v1", prefix: "sk_live_1209", scopes: ["wallets:write"], lastUsed: "28 days ago", created: "Apr 02, 2025", createdBy: "Priya Rao", status: "revoked", env: "prod" },
];

const OIDC_CLIENTS = [
  { id: "oidc_NRT3jW", name: "Sign in with Swop — Web", type: "confidential", redirect: "https://app.northbridge.io/callback", created: "Feb 11, 2026" },
  { id: "oidc_qQ44pk", name: "Partner Portal", type: "confidential", redirect: "https://partners.northbridge.io/auth", created: "Jan 20, 2026" },
  { id: "oidc_8sZxAb", name: "Mobile (iOS/Android)", type: "public (PKCE)", redirect: "swop.northbridge://callback", created: "Dec 30, 2025" },
];

const WALLETS = [
  { id: "wlt_7bf24xA", owner: "user_29Kxa", chain: "ETH", address: "0x9a4c...e21f", balance: "0.214 ETH", created: "2d ago", status: "active" },
  { id: "wlt_0Qm18vC", owner: "user_29Kxa", chain: "SOL", address: "7xKz...mF92", balance: "12.04 SOL", created: "2d ago", status: "active" },
  { id: "wlt_NzqV44r", owner: "user_3Ptb2", chain: "ETH", address: "0xe117...a8b4", balance: "0 ETH", created: "5h ago", status: "pending" },
  { id: "wlt_MmE92Qs", owner: "user_19Xkp", chain: "BASE", address: "0x04fa...c923", balance: "0.42 ETH", created: "1d ago", status: "active" },
  { id: "wlt_TlbK82L", owner: "user_07Zjv", chain: "POLY", address: "0x1ab4...df10", balance: "0 MATIC", created: "6d ago", status: "revoked" },
];

const AUDIT_EVENTS = [
  { id: "evt_AG72x", t: "11:42:08", who: "Lena Osei", action: "Rotated API key", target: "sk_live_a94f…", meta: "via console · passkey verified", sev: "high" },
  { id: "evt_AG71s", t: "11:18:54", who: "system", action: "Webhook retry", target: "wh_2kA · POST /ingest", meta: "attempt 2/5 · 500", sev: "med" },
  { id: "evt_AG70w", t: "10:47:20", who: "Omar Vega", action: "Updated policy", target: "policy_payments_v3", meta: "added daily cap 250 ETH", sev: "high" },
  { id: "evt_AG6Yt", t: "09:12:02", who: "user_29Kxa", action: "Signed transaction", target: "0x9a4c…e21f", meta: "ERC-20 transfer · 0.05 ETH", sev: "low" },
  { id: "evt_AG6Xp", t: "08:55:33", who: "system", action: "Passkey enrolled", target: "user_29Kxa", meta: "device: MacBook Pro · Chrome", sev: "med" },
  { id: "evt_AG6Wc", t: "08:11:48", who: "Kira Patel", action: "Created OIDC client", target: "oidc_NRT3jW", meta: "confidential · Web", sev: "med" },
  { id: "evt_AG6Vb", t: "07:40:11", who: "system", action: "MFA challenge issued", target: "user_3Ptb2", meta: "passkey · passed", sev: "low" },
];

const MEMBERS = [
  { name: "Lena Osei", email: "lena@northbridge.io", role: "Owner", mfa: true },
  { name: "Omar Vega", email: "omar@northbridge.io", role: "Admin", mfa: true },
  { name: "Kira Patel", email: "kira@northbridge.io", role: "Developer", mfa: true },
  { name: "Priya Rao", email: "priya@northbridge.io", role: "Developer", mfa: false },
  { name: "Taye Brooks", email: "taye@northbridge.io", role: "Viewer", mfa: true },
];

const CHAINS = [
  { key: "ETH", label: "Ethereum", glyph: "Ξ" },
  { key: "BASE", label: "Base", glyph: "B" },
  { key: "POLY", label: "Polygon", glyph: "P" },
  { key: "SOL", label: "Solana", glyph: "S" },
  { key: "ARB", label: "Arbitrum", glyph: "A" },
  { key: "OP", label: "Optimism", glyph: "O" },
];

Object.assign(window, { ORG, PROJECTS, API_KEYS, OIDC_CLIENTS, WALLETS, AUDIT_EVENTS, MEMBERS, CHAINS });
