@elisym/sdk 0.24.0 → 0.25.0

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.
@@ -13,7 +13,11 @@ type LlmHealthStatus = 'unknown' | 'healthy' | 'invalid' | 'billing' | 'unavaila
13
13
  * - `billing`: HTTP 402, or 400 with credit/billing/insufficient marker,
14
14
  * or OpenAI's 429 with `insufficient_quota`. Operator out of credits.
15
15
  * - `unavailable`: transient (HTTP 429 without quota marker, 5xx, network
16
- * error). May resolve on retry.
16
+ * error). May resolve on retry. `status` carries the HTTP status when the
17
+ * failure was an HTTP response (absent for a network throw), letting callers
18
+ * distinguish a transient 5xx/429 from a permanent 404 "model no longer
19
+ * exists" without re-parsing `error`. Unlike `invalid`/`billing`,
20
+ * `unavailable` is per-model and never cascades to sibling models.
17
21
  */
18
22
  type LlmKeyVerification = {
19
23
  ok: true;
@@ -30,6 +34,7 @@ type LlmKeyVerification = {
30
34
  } | {
31
35
  ok: false;
32
36
  reason: 'unavailable';
37
+ status?: number;
33
38
  error: string;
34
39
  };
35
40
  type LlmHealthErrorReason = 'invalid' | 'billing' | 'unavailable';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elisym/sdk",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "TypeScript SDK for elisym - AI agent discovery, marketplace, and payments on Nostr",
5
5
  "keywords": [
6
6
  "ai-agents",