import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; export declare class Routes extends ClientSDK { /** * List routes for a domain * * @remarks * Returns a paginated list of routes attached to the domain. Optionally filter by an agent identifier to find routes pointing to a specific agent. */ list(request: operations.DomainsControllerListDomainRoutesRequest, options?: RequestOptions): Promise; /** * Create a route * * @remarks * Creates a route on the domain that forwards inbound mail addressed to `
@` to either a webhook or an agent. Each address on a domain may only have a single route. */ create(domainRouteDto: components.DomainRouteDto, domain: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Retrieve a route by address * * @remarks * Returns the route bound to `
@`. Use `*` as the address to retrieve the wildcard route for the domain. */ retrieve(domain: string, address: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Update a route * * @remarks * Updates the destination of the route bound to `
@`. The address itself is the resource identity and cannot be changed; delete and recreate the route to rename it. */ update(updateDomainRouteDto: components.UpdateDomainRouteDto, domain: string, address: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Delete a route * * @remarks * Removes the route bound to `
@`. Inbound mail for that address will no longer be processed. */ delete(domain: string, address: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Test an inbound route * * @remarks * Sends a synthetic inbound email through the same delivery path as production (outbound webhooks for webhook routes, signed HTTP to the agent for agent routes). Use `dryRun: true` to preview the payload without delivering. */ test(testDomainRouteDto: components.TestDomainRouteDto, domain: string, address: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; } //# sourceMappingURL=routes.d.ts.map