@haven_ai/sdk 0.0.0-dev.202609140826.24a08ec → 0.0.0-dev.202609141522.72645b4

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 CHANGED
@@ -1116,6 +1116,15 @@ var HavenApiTransport = class {
1116
1116
  };
1117
1117
 
1118
1118
  // src/payment-mappers.ts
1119
+ function mapParties(raw) {
1120
+ if (!raw) return void 0;
1121
+ return {
1122
+ treasuryAccount: raw.treasury_account,
1123
+ delegate: raw.delegate,
1124
+ delegateAccount: raw.delegate_account,
1125
+ merchant: raw.merchant
1126
+ };
1127
+ }
1119
1128
  function mapPaymentResult(raw, buildExplorerUrl2) {
1120
1129
  return {
1121
1130
  paymentId: raw.payment_id,
@@ -1155,6 +1164,7 @@ function mapPaymentStatusResult(raw) {
1155
1164
  resourceUrl: raw.resource_url,
1156
1165
  merchantAddress: raw.merchant_address,
1157
1166
  payerAddress: raw.payer_address ?? null,
1167
+ parties: mapParties(raw.parties),
1158
1168
  txHash: raw.tx_hash,
1159
1169
  expiresAt: raw.expires_at,
1160
1170
  chainId: raw.chain_id,
@@ -1192,6 +1202,7 @@ function mapPaymentReceipt(raw) {
1192
1202
  resourceUrl: raw.resource_url,
1193
1203
  merchantAddress: raw.merchant_address,
1194
1204
  payerAddress: raw.payer_address,
1205
+ parties: mapParties(raw.parties),
1195
1206
  settlementAddress: raw.settlement_address,
1196
1207
  tokenSymbol: raw.token_symbol,
1197
1208
  tokenAddress: raw.token_address,
@@ -4082,7 +4093,7 @@ var toolDescriptions = {
4082
4093
  // deleted `/demo/mpp/*` route. Use the x402 fragments above instead.
4083
4094
  getPaymentStatus: {
4084
4095
  summary: "Fetch structured Haven payment status, including phase and nextAction taxonomy for agent recovery.",
4085
- behavior: "Accepts a payment intent id and returns the full state taxonomy (phase, nextAction, rail, amount, merchant, resource url, idempotency key, message).",
4096
+ behavior: "State for id: phase, nextAction, rail, amount, merchant, resource, idempotency, message. parties: treasuryAccount/delegate/delegateAccount/merchant.",
4086
4097
  nextActionGuidance: ""
4087
4098
  },
4088
4099
  getResumeState: {