Constructor
new AdeiaClient(options)
new AdeiaClient(options: AdeiaClientOptions): AdeiaClient
- apiKey required
- The key the dashboard or npm run seed printed once. Sent as authorization: Bearer <key> on every request.
- baseUrl localhost:3000
- Where the layer is listening. Trailing slashes are trimmed, so a URL out of an env file does not produce a double slash.
- fetch global fetch
- Injectable purely so tests need no live server. Anything matching the fetch signature will do.
- Throws
- A plain Error — AdeiaClient requires an apiKey — when the key is empty. Construction is synchronous and sends nothing; the first request happens when you call a method.