import "dotenv/config"
import { searchSubaccounts } from "../src/server/smtp2go"

async function main() {
  try {
    const res = await searchSubaccounts({ page_size: 10 })
    console.log('response keys:', Object.keys(res ?? {}))
    console.dir(res, { depth: 4 })
  } catch (e) {
    console.error('error', e instanceof Error ? e.message : e)
  }
}

main()
