(instanceUrl: string)
| 23 | * lookup. Server-only — uses node:dns/promises. |
| 24 | */ |
| 25 | export async function resolveAgiloftInstance(instanceUrl: string): Promise<string> { |
| 26 | const validation = await validateUrlWithDNS(instanceUrl, 'instanceUrl') |
| 27 | if (!validation.isValid || !validation.resolvedIP) { |
| 28 | throw new Error(validation.error || 'Invalid Agiloft instance URL') |
| 29 | } |
| 30 | return validation.resolvedIP |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * DNS-pinned variant of agiloftLogin. Requires a pre-resolved IP so the |
no test coverage detected