Package-level declarations
Types
Main entry point for the AgentMail SDK. Holds all top-level API resources (inboxes, threads, drafts, domains, pods, webhooks, lists, metrics, apiKeys, organization). Created via companion object invoke with optional DSL configuration. Implements Closeable to release the underlying HTTP client. Supports scoped access via inboxes and pods for nested resources.
Immutable configuration for the AgentMail HTTP client.
DSL builder for configuring an AgentMailClient instance. Allows setting the API key, base URL, timeout, and retry settings.
DSL marker annotation used to restrict scope in AgentMail builder lambdas.
Action to take when a rate limit is exceeded.
DSL builder for configuring a per-key rate limiter with max messages and time window.
Immutable rate limiter configuration with max messages allowed within a sliding time window.
Thrown when a rate limit is exceeded and the action is RateLimitAction.STOP.
DSL builder for configuring HTTP retry behavior.
Immutable retry configuration with max retries and server error retry toggle.
DSL builder for configuring HTTP timeout durations.
Immutable timeout configuration with connect, request, and socket durations.