@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 +5 -3
- package/dist/{base64-CFJN9y6o.d.cts → base64-DYd43iOS.d.cts} +1 -1
- package/dist/{base64-CFJN9y6o.d.ts → base64-DYd43iOS.d.ts} +1 -1
- package/dist/{chunk-2OILYZQC.cjs → chunk-AEUE6UJM.cjs} +3 -3
- package/dist/{chunk-2OILYZQC.cjs.map → chunk-AEUE6UJM.cjs.map} +1 -1
- package/dist/{chunk-X2SETPMZ.js → chunk-C2K3VCVH.js} +3 -3
- package/dist/{chunk-X2SETPMZ.js.map → chunk-C2K3VCVH.js.map} +1 -1
- package/dist/edge.cjs +49 -49
- package/dist/edge.d.cts +2 -2
- package/dist/edge.d.ts +2 -2
- package/dist/edge.js +2 -2
- package/dist/index.cjs +132 -132
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
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,
|
|
474
|
-
|
|
475
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
1479
|
-
//# sourceMappingURL=chunk-
|
|
1478
|
+
//# sourceMappingURL=chunk-AEUE6UJM.cjs.map
|
|
1479
|
+
//# sourceMappingURL=chunk-AEUE6UJM.cjs.map
|