/** * Live sandbox registration smoke. * * Runs sw_register against Horizon (test mode) with the Vibn corporate * contact. Horizon doesn't actually allocate a name at any registry — it's * purely a protocol simulator — so this is safe to run repeatedly. * * Usage: source .opensrs.env && npx tsx scripts/smoke-opensrs-register.ts */ import { registerDomain, type RegistrationContact } from '../lib/opensrs'; const CONTACT: RegistrationContact = { first_name: 'Mark', last_name: 'Henderson', org_name: 'Get Acquired Inc', address1: '123 King St W', city: 'Toronto', state: 'ON', country: 'CA', postal_code: 'M5H 1A1', phone: '+1.4165551234', email: 'mark@getacquired.com', }; async function main() { const domain = `vibnai-smoke-${Date.now()}.com`; console.log('[register-smoke] registering', domain); const result = await registerDomain({ domain, period: 1, contact: CONTACT, whoisPrivacy: true, }); console.log('[register-smoke] result:', result); } main().catch(err => { console.error('[register-smoke] FAILED:', err); process.exit(1); });