Creates resolved JMAP configuration with defaults for email clients.
// Source: https://github.com/dahlia/upyo | License: MIT | Copyright 2025 Hong Minhee
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Configuration interface for JMAP transport connection settings.
* @since 0.4.0
*/
export interface JmapConfig {
/**
* The JMAP session URL (e.g., `https://server/.well-known/jmap`).
* This is used for session discovery per RFC 8620 Section 2.
*/
readonly sessionUrl: string;
/**
* Bearer token for authentication.
* Used in Authorization header as `Bearer {token}`.
* Either `bearerToken` or `basicAuth` must be provided.
*/
readonly bearerToken?: string;
/**
* Basic authentication credentials.
* Used in Authorization header as `Basic {base64(username:password)}`.
* Either `bearerToken` or `basi
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key