Base URL, optional API key, timeout (default 10000 ms) and fetch.
const watcher = createWatcherClient({
baseUrl: 'http://watcher.internal.example:1936',
apiKey: process.env.WATCHER_API_KEY,
});
await watcher.documents.notify([{ source: 'app://chat/thread/123', rule: 'chat-thread' }]);
WatcherError invalid_options when the options are invalid.
Create a watcher API client.