OptionalapiOptional API key for authentication. If provided, will be sent as Authorization: Bearer {apiKey}
Base URL of the SGRS API (e.g., https://api.sgrs.example.com)
OptionalfetchOptional custom fetch implementation (for Node.js or custom environments) Defaults to global fetch
Optionalinit: RequestInitOptionalnatsOptional NATS configuration for real-time event streaming.
When provided, client.events becomes active. Call await client.connect()
to establish the NATS connection, then subscribe to governance events.
The nats npm package must be installed separately:
npm install nats
OptionaltenantTenant ID sent as X-Tenant-ID on every request. Required by the API server for all authenticated routes.
OptionaltimeoutRequest timeout in milliseconds (default: 30000)
Configuration for the SGRS API client.