@haven_ai/sdk 0.0.0-dev.202609301629.325d86c → 0.0.0-dev.202609302044.2340eeb

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.
package/README.md CHANGED
@@ -470,9 +470,11 @@ answers HTTP 410 at every agent-payment entry point.
470
470
  If an agent requests a payment outside that policy, Haven **declines it before
471
471
  any money moves** — during prepare, before anything is written and before the
472
472
  agent is asked to sign. `POST /payments` answers `403` when no active delegation
473
- authorizes that token and recipient, and `502` when the on-chain caveat check
474
- rejects the amount, recipient or expiry; the x402 authorize path answers `403
475
- delegation_budget_exceeded`. In every case the SDK raises `HavenApiError` and no
473
+ authorizes that token and recipient, `403 delegation_budget_exceeded` when the
474
+ remaining period budget cannot cover the amount (#3503; the x402 authorize path
475
+ answers the same), and `502` when the on-chain caveat check rejects a
476
+ redemption anyway (a recipient outside a pin or an expired grant already gets
477
+ the first `403`, since no active delegation matches). In every case the SDK raises `HavenApiError` and no
476
478
  `payment_id` exists to poll.
477
479
 
478
480
  Surface that to the user as a decline, not a wait: **nothing will arrive later.**
@@ -2090,7 +2090,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
2090
2090
  * This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
2091
2091
  * it with the package version on every release — never hand-edit it.
2092
2092
  */
2093
- declare const SDK_VERSION = "0.0.0-dev.202609301629.325d86c";
2093
+ declare const SDK_VERSION = "0.0.0-dev.202609302044.2340eeb";
2094
2094
  /** The request header every published Haven client sends. */
2095
2095
  declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
2096
2096
  /** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
@@ -2090,7 +2090,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
2090
2090
  * This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
2091
2091
  * it with the package version on every release — never hand-edit it.
2092
2092
  */
2093
- declare const SDK_VERSION = "0.0.0-dev.202609301629.325d86c";
2093
+ declare const SDK_VERSION = "0.0.0-dev.202609302044.2340eeb";
2094
2094
  /** The request header every published Haven client sends. */
2095
2095
  declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
2096
2096
  /** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
@@ -787,7 +787,7 @@ function stableStringify2(value) {
787
787
  }
788
788
 
789
789
  // src/client-identity.ts
790
- var SDK_VERSION = "0.0.0-dev.202609301629.325d86c";
790
+ var SDK_VERSION = "0.0.0-dev.202609302044.2340eeb";
791
791
  var HAVEN_CLIENT_HEADER = "X-Haven-Client";
792
792
  function havenClientIdentity(pkg, version) {
793
793
  return `${pkg}/${version}`;
@@ -1475,5 +1475,5 @@ exports.x402FacilitatorAddresses = x402FacilitatorAddresses;
1475
1475
  exports.x402PaymentHeaderNamesFor = x402PaymentHeaderNamesFor;
1476
1476
  exports.x402PaymentHeaderNamesSent = x402PaymentHeaderNamesSent;
1477
1477
  exports.x402V2PaymentEnvelope = x402V2PaymentEnvelope;
1478
- //# sourceMappingURL=chunk-2OILYZQC.cjs.map
1479
- //# sourceMappingURL=chunk-2OILYZQC.cjs.map
1478
+ //# sourceMappingURL=chunk-AEUE6UJM.cjs.map
1479
+ //# sourceMappingURL=chunk-AEUE6UJM.cjs.map