accessToken? | string | JWT bearer token for authentication | 4Players/cortex-typescript-sdk/src/client.ts:33 |
apiKey? | string | API key for authentication (prefix: ots_live_) | 4Players/cortex-typescript-sdk/src/client.ts:31 |
baseUrl | string | Base URL of the Cortex API (e.g. "https://ots.odin.4players.io") | 4Players/cortex-typescript-sdk/src/client.ts:29 |
debug? | boolean | Enable debug logging — logs method, URL, status, and response body for every request | 4Players/cortex-typescript-sdk/src/client.ts:41 |
fetch? | (input: RequestInfo | URL, init?: RequestInit) => Promise<Response> | Custom fetch implementation | 4Players/cortex-typescript-sdk/src/client.ts:39 |
projectId? | string | Project ID (required for HMAC auth, will be used more broadly in future) | 4Players/cortex-typescript-sdk/src/client.ts:35 |
projectSecret? | string | Project secret for HMAC-SHA256 authentication (used by ODIN platform services) | 4Players/cortex-typescript-sdk/src/client.ts:37 |
realtime? | object | Real-time (SSE) tuning for watch() subscriptions | 4Players/cortex-typescript-sdk/src/client.ts:43 |
realtime.idleTimeoutMs? | number | Idle/stall timeout in milliseconds for event streams. If no bytes (events or heartbeats) arrive within this window, the connection is reconnected and resynced — a defense against half-open sockets. The backend sends a heartbeat every ~15s. Defaults to 45000 (3 missed heartbeats). Set to 0 to disable. | 4Players/cortex-typescript-sdk/src/client.ts:51 |