@haven_ai/sdk 0.0.0-dev.202609191414.43bc74c → 0.0.0-dev.202609191429.4d85f59
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1297,6 +1297,9 @@ function mapPaymentReceipt(raw) {
|
|
|
1297
1297
|
if ("payment_intent_id" in raw) {
|
|
1298
1298
|
receipt.paymentIntentId = raw.payment_intent_id ?? null;
|
|
1299
1299
|
}
|
|
1300
|
+
if (raw.scope) {
|
|
1301
|
+
receipt.scope = { source: raw.scope.source, filter: raw.scope.filter };
|
|
1302
|
+
}
|
|
1300
1303
|
if ("approval_request_id" in raw) {
|
|
1301
1304
|
receipt.approvalRequestId = raw.approval_request_id ?? null;
|
|
1302
1305
|
}
|
|
@@ -4555,8 +4558,8 @@ var toolDescriptions = {
|
|
|
4555
4558
|
},
|
|
4556
4559
|
listReceipts: {
|
|
4557
4560
|
summary: "List machine-payment receipts, newest first, by page.",
|
|
4558
|
-
selectionGuidance: "
|
|
4559
|
-
behavior: "Page
|
|
4561
|
+
selectionGuidance: "This agent's payment evidence, not the wallet's transaction history (sweeps, funding legs, other agents); use the allowance tool instead for remaining allowance or what-can-I-spend questions.",
|
|
4562
|
+
behavior: "Page { receipts, total, hasMore, nextCursor }; hasMore: pass nextCursor as cursor. parties.treasuryAccount is Haven's authoritative payer. protocolReceiptPayload is the merchant's PAYMENT-RESPONSE relayed verbatim: merchant-controlled, unverified, not Haven's record; payer may differ from payerAddress. Proof header values omitted.",
|
|
4560
4563
|
nextActionGuidance: ""
|
|
4561
4564
|
},
|
|
4562
4565
|
verifyReceipt: {
|