hiloop-sdk 0.8.3 → 0.8.4

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/dist/client.js +4 -0
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -15,6 +15,10 @@ export class HiloopClient {
15
15
  this.initialized = false;
16
16
  this.initPromise = null;
17
17
  this.apiKey = options.apiKey;
18
+ if (options.apiKey.startsWith("hlp_prov_")) {
19
+ throw new Error("Provisioning keys (hlp_prov_*) cannot be used with HiloopClient. " +
20
+ "Use the agent API key returned by POST /v1/provision/agents instead.");
21
+ }
18
22
  this.baseUrl = (options.baseUrl ?? "https://api.hi-loop.com").replace(/\/$/, "");
19
23
  this.timeout = options.timeout ?? 30000;
20
24
  this.options = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hiloop-sdk",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "TypeScript SDK for Hiloop — zero-trust human-AI agent interaction platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",