UNPKG

@hasna/domains

Version:

Domain portfolio, registrar, marketplace, and DNS management for AI agents — CLI + MCP + HTTP API + SDK, shared account API and PostgreSQL

24 lines • 977 B
/** * Route53 domain-registration polling — pure, reusable by the buy command and * the domain provisioning daemon. The AWS status string is classified into a * terminal/pending verdict; pollRegistrationUntilDone drives it to completion * with an injectable status getter + sleep (so it is fully unit-testable). */ export type RegVerdict = "pending" | "success" | "failed"; export declare function classifyRegistrationStatus(status: string): RegVerdict; export interface PollResult { status: "success" | "failed" | "timeout"; attempts: number; message?: string; } export interface PollOptions { getStatus: (operationId: string) => Promise<{ status: string; message?: string; }>; maxAttempts?: number; intervalMs?: number; sleep?: (ms: number) => Promise<void>; } export declare function pollRegistrationUntilDone(operationId: string, opts: PollOptions): Promise<PollResult>; //# sourceMappingURL=registration-poll.d.ts.map