@haven_ai/sdk 0.0.0-dev.202609150832.34a1eec → 0.0.0-dev.202609151051.230b1b4
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/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -304,7 +304,16 @@ var AgentPaymentWarningCode = {
|
|
|
304
304
|
* read from Haven, so `expected_settlement_scheme` is `null` rather than a
|
|
305
305
|
* guess. `accepted_scheme` (the merchant's offer) is unaffected.
|
|
306
306
|
*/
|
|
307
|
-
X402SchemeUnknown: "X402_SCHEME_UNKNOWN"
|
|
307
|
+
X402SchemeUnknown: "X402_SCHEME_UNKNOWN",
|
|
308
|
+
/**
|
|
309
|
+
* #2968: the merchant answered 200 and handed over goods, but Haven holds NO
|
|
310
|
+
* on-chain evidence that the payment moved. `settled: false` beside this code
|
|
311
|
+
* is not a failure — it is the absence of proof, and the two must travel
|
|
312
|
+
* together so an agent can tell "the user has the goods" apart from "the
|
|
313
|
+
* money moved". Carries the intent's `expires_at`: after that instant the
|
|
314
|
+
* settlement can no longer land at all.
|
|
315
|
+
*/
|
|
316
|
+
SettlementUnconfirmed: "SETTLEMENT_UNCONFIRMED"
|
|
308
317
|
};
|
|
309
318
|
var AgentPaymentRailDescriptions = {
|
|
310
319
|
[AgentPaymentRail.Direct]: "Standard Haven payment from the user-controlled account, redeeming the agent's on-chain budget delegation.",
|
|
@@ -1259,6 +1268,8 @@ function mapPaymentReceipt(raw) {
|
|
|
1259
1268
|
rail: raw.rail,
|
|
1260
1269
|
proofStatus: raw.proof_status,
|
|
1261
1270
|
txHash: raw.tx_hash,
|
|
1271
|
+
fundingTxHash: raw.funding_tx_hash ?? null,
|
|
1272
|
+
settlementTxHash: raw.settlement_tx_hash ?? null,
|
|
1262
1273
|
chainId: raw.chain_id,
|
|
1263
1274
|
resourceUrl: raw.resource_url,
|
|
1264
1275
|
merchantAddress: raw.merchant_address,
|