/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { domainsAutoConfigureRetrieve } from "../funcs/domainsAutoConfigureRetrieve.js"; import { domainsAutoConfigureStart } from "../funcs/domainsAutoConfigureStart.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class AutoConfigure extends ClientSDK { /** * Retrieve auto-configuration availability * * @remarks * Returns whether DNS auto-configuration (Domain Connect) is available for this domain. When `available` is `false`, `manualRecords` lists the DNS records the customer must add manually. */ async retrieve( domain: string, idempotencyKey?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(domainsAutoConfigureRetrieve( this, domain, idempotencyKey, options, )); } /** * Start DNS auto-configuration * * @remarks * Generates a signed redirect URL the customer can follow to apply Novu DNS records at their DNS provider. After the provider completes the flow, it redirects back to `redirectUri`. */ async start( createDomainConnectApplyUrlDto: components.CreateDomainConnectApplyUrlDto, domain: string, idempotencyKey?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(domainsAutoConfigureStart( this, createDomainConnectApplyUrlDto, domain, idempotencyKey, options, )); } }