Getting Started
Configuration
Options accepted by VimConnectBackendClient
| Option | Default | Notes |
|---|---|---|
environment | 'production' | 'production' · 'staging' · 'local'. Mutually exclusive with baseUrl. |
baseUrl | — | For a deployment the presets don't cover. HTTPS is required unless the host is local. |
app | required | clientId + clientSecret from the Vim Connect console. |
accountId | required | Sent as x-account-id, and must match the token's account. |
timeoutMs | 30000 | Per attempt. 0 disables. |
uploadTimeoutMs | 300000 | The whole file transfer of client.vault.artifact.upload. 0 disables. |
retries | 2 | Reads, and client.ehr calls, which carry an Idempotency-Key. A token mint and other writes are never retried. |
requestLogger | — | One event per request: method, path, status, duration. Never bodies or auth headers. |
fetch | global fetch | Override for tests or a non-global-fetch runtime. |