@healthcloudai/hc-settings-connector 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -732,17 +732,12 @@ The client returns the raw backend response from the authenticated `PUT` request
732
732
 
733
733
  ## API Key
734
734
 
735
- All outgoing requests from `HCSettingsClient` can include an optional API key header.
735
+ Use `setApiKey(...)` to attach an API key header to requests from `HCSettingsClient`.
736
736
 
737
737
  ```ts
738
738
  const apiKey = process.env.HEALTHCLOUD_API_KEY;
739
-
740
- if (apiKey) {
741
- settingsClient.setApiKey("x-api-key", apiKey);
742
- }
739
+ settingsClient.setApiKey("x-api-key", apiKey);
743
740
  ```
744
741
 
745
742
  - Header name should be `x-api-key`.
746
- - API key is optional unless required by the backend.
747
- - If not set, behavior remains unchanged and the header is omitted.
748
743
  - The API key is also included on the internal patient header lookup used to resolve the active `EHR`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-settings-connector",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Healthcheck Settings SDK with TypeScript",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",