SdkConfig

data class SdkConfig(val baseUrl: String = PUBLIC_GATEWAY_URL, val userId: String = "", val tenantId: String = "", val email: String = "", val token: String = "", val timeoutMillis: Int, val mode: String = "gateway", val maxRetries: Int = 1, val apiKeyProvider: ApiKeyProvider? = null)

Immutable client configuration.

Credentials may be supplied by apiKeyProvider so long-lived clients can observe rotation without being rebuilt. Timeouts must be positive and retry counts must not be negative.

Constructors

Link copied to clipboard
constructor(baseUrl: String = PUBLIC_GATEWAY_URL, userId: String = "", tenantId: String = "", email: String = "", token: String = "", timeoutMillis: Int, mode: String = "gateway", maxRetries: Int = 1, apiKeyProvider: ApiKeyProvider? = null)

Types

Link copied to clipboard
object Companion

Environment-based configuration factory.

Properties

Link copied to clipboard

optional rotating credential provider

Link copied to clipboard

service base URL

Link copied to clipboard

Sanitized network diagnostics configuration; disabled by default.

Link copied to clipboard

optional resolved user email

Link copied to clipboard

maximum safe-read retries

Link copied to clipboard

gateway or trusted-direct mode

Link copied to clipboard

Normalized service base URL.

Link copied to clipboard

Trimmed email address.

Link copied to clipboard

Validated safe-read retry count.

Link copied to clipboard

Normalized connection mode.

Link copied to clipboard

Trimmed tenant identifier.

Link copied to clipboard

Trimmed static credential.

Link copied to clipboard

Trimmed user identifier.

Link copied to clipboard

optional resolved tenant identifier

Link copied to clipboard

request timeout in milliseconds

Link copied to clipboard

static API credential

Link copied to clipboard

optional resolved user identifier

Functions

Link copied to clipboard
open override fun toString(): String

Returns redacted configuration diagnostics.

Link copied to clipboard

Returns an otherwise identical configuration with explicitly selected diagnostics.