@haven_ai/sdk 0.0.0-dev.202609282018.d7956ad → 0.0.0-dev.202609291042.e2cc5e2

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
@@ -425,6 +425,7 @@ x402 tool-window failures:
425
425
  | `rejected` | The payment was rejected and cannot proceed. | yes |
426
426
  | `expired` | Payment expired before completion. | yes |
427
427
  | `failed` | Haven could not complete the payment. | yes |
428
+ | `delivered_unverified` | **#3420: terminal.** The merchant delivered, but the settlement window and the sweep's last attribution chance have both passed with no verified on-chain evidence. Polling cannot change this; the only remedy is reporting a real settlement hash (`haven_report_settlement_evidence`). | yes |
428
429
 
429
430
  The merchant settlement leg of x402 (and the MPP retry) is the agent's own request to the merchant — it does not have a Haven `phase`. The payment is `funding_sent` until the agent retries with the payment header (`PAYMENT-SIGNATURE`, plus `X-PAYMENT` on this bridged path) (x402) or the MPP proof header; from Haven's perspective the payment becomes `executed` only after the agent successfully resumes.
430
431
 
@@ -435,10 +436,11 @@ The merchant settlement leg of x402 (and the MPP retry) is the agent's own reque
435
436
  | `sign_and_submit_payment` | Sign with the delegate key and submit the payment to Haven. |
436
437
  | `check_status_later` | Poll `getPaymentStatus(payment_id)` later. |
437
438
  | `none` | Stop polling; no more action is needed for this payment id. |
439
+ | `awaiting_settlement_evidence` | #2970/#3420: the erc7710 settlement window passed with no verified evidence. Poll `getPaymentStatus(payment_id)` once more shortly after the payment's expiry; if it still shows nothing (or already answers the terminal `delivered_unverified` phase), tell the user the goods were delivered but unverified. |
438
440
  | `wait_for_user_approval` | **No longer produced — nothing maps to it.** Retired with the Safe rail's approval queue; kept in the exported enum for wire compatibility. The SDK's own status mapping now answers `stop_and_tell_user` for the statuses that used to yield this. |
439
441
  | `wait_for_user_to_complete_payment` | **No longer produced — nothing maps to it.** Same retirement as above. |
440
442
  | `retry_original_x402_request` | Haven's funding leg confirmed but no merchant response was ever recorded — most often because the process crashed between the funding confirmation and the merchant retry (a 15-minute grace window applies before this fires; a client-reported merchant rejection instead yields `sweep_stranded_funds`). Call `resumeX402Payment()` with the preserved `resumeState`, or rehydrate it first with `getResumeState(payment_id)`. Do not start a new payment for the same purchase. |
441
- | `stop_and_tell_user` | Stop retrying and tell the user the payment failed or was rejected. |
443
+ | `stop_and_tell_user` | Stop retrying and tell the user what happened — the payment failed, was rejected, or (#3420) was delivered but its settlement can no longer be verified. |
442
444
  | `request_again_if_user_still_wants_it` | The request expired; ask again only if the user still wants the payment. |
443
445
  | `payment_window_expired` | The x402 funding/quote window expired. Re-quote the same paid MCP tool call with the same `idempotency_key`, then sign the fresh `payload_hash`. |
444
446
  | `sweep_stranded_funds` | A funding leg succeeded but the merchant/protocol leg did not settle. Stop retrying and use `haven_sweep_delegate` to recover stranded delegate funds. |
@@ -74,6 +74,14 @@ interface PaymentRequest {
74
74
  * token/recipient/parent disagree with this request.
75
75
  */
76
76
  taskBudgetId?: string;
77
+ /**
78
+ * #3330: redeem against this open sub-budget's grant (this agent is the
79
+ * sub-agent B) instead of the agent's budget delegation directly —
80
+ * `[grant, parent-child, budget]`. The backend refuses (404/409) when the
81
+ * id is unknown, not open, or its token/recipient/parent disagree with
82
+ * this request. Mutually exclusive with `taskBudgetId`.
83
+ */
84
+ subBudgetId?: string;
77
85
  }
78
86
  interface SignData {
79
87
  /** The hash to sign (keccak256, 0x-prefixed) */
@@ -283,6 +291,17 @@ interface X402AuthorizationOptions {
283
291
  * new key instead.
284
292
  */
285
293
  taskBudgetId?: string;
294
+ /**
295
+ * #3330: redeem against this open sub-budget's grant (this agent is the
296
+ * sub-agent B) for the funding leg / erc7710 settlement instead of the
297
+ * agent's budget delegation directly. Same refusal contract as
298
+ * `PaymentRequest.subBudgetId`; mutually exclusive with `taskBudgetId`.
299
+ * The receipt cache and in-flight map pin this id per entry exactly as
300
+ * they pin `taskBudgetId` (#3392) — a key reused under a different
301
+ * authorizing child throws the typed mismatch error before any network
302
+ * call.
303
+ */
304
+ subBudgetId?: string;
286
305
  }
287
306
  /**
288
307
  * Keyless x402 construct result.
@@ -1106,6 +1125,20 @@ declare const AgentPaymentPhase: {
1106
1125
  * the funds.
1107
1126
  */
1108
1127
  readonly FundedButUnsettled: "funded_but_unsettled";
1128
+ /**
1129
+ * #3420: TERMINAL — a `submitted` erc7710 x402 intent whose settlement
1130
+ * window AND the sweep's last attribution chance have both passed with no
1131
+ * verified evidence. The sweep's tick (120s) only ever confirms a
1132
+ * transaction mined inside the payment's own settlement window (the child
1133
+ * delegation's on-chain `timestamp` caveat, plus the verifier's 120s
1134
+ * clock-skew allowance), so once authorize + window + skew is behind the
1135
+ * payment, no poll — and no sweep tick — can ever change the answer.
1136
+ * The paired `next_action` is `stop_and_tell_user`: tell the user the goods
1137
+ * were delivered but Haven holds no verified settlement evidence; reporting
1138
+ * a real settlement hash (`haven_report_settlement_evidence`) still works
1139
+ * at any age.
1140
+ */
1141
+ readonly DeliveredUnverified: "delivered_unverified";
1109
1142
  };
1110
1143
  type AgentPaymentPhase = (typeof AgentPaymentPhase)[keyof typeof AgentPaymentPhase];
1111
1144
  declare const AgentPaymentNextAction: {
@@ -1263,7 +1296,7 @@ declare const AgentPaymentRail: {
1263
1296
  type AgentPaymentRail = (typeof AgentPaymentRail)[keyof typeof AgentPaymentRail];
1264
1297
  type PaymentPhase = AgentPaymentPhase;
1265
1298
  type PaymentNextAction = AgentPaymentNextAction;
1266
- declare const AGENT_PAYMENT_PHASE_VALUES: ("rejected" | "expired" | "failed" | "agent_signature_required" | "payment_submitted" | "payment_confirmed" | "user_approval_required" | "user_execution_required" | "waiting_for_additional_approvals" | "funding_sent" | "insufficient_funds" | "funded_but_unsettled")[];
1299
+ declare const AGENT_PAYMENT_PHASE_VALUES: ("rejected" | "expired" | "failed" | "agent_signature_required" | "payment_submitted" | "payment_confirmed" | "user_approval_required" | "user_execution_required" | "waiting_for_additional_approvals" | "funding_sent" | "insufficient_funds" | "funded_but_unsettled" | "delivered_unverified")[];
1267
1300
  declare const AGENT_PAYMENT_NEXT_ACTION_VALUES: ("sign_and_submit_payment" | "check_status_later" | "none" | "wait_for_user_approval" | "wait_for_user_to_complete_payment" | "retry_original_x402_request" | "stop_and_tell_user" | "request_again_if_user_still_wants_it" | "retry_with_explicit_context" | "payment_window_expired" | "fund_account_or_raise_allowance" | "sweep_stranded_funds" | "awaiting_settlement_evidence")[];
1268
1301
  declare const AGENT_PAYMENT_FAILURE_CODE_VALUES: ("PRICE_EXCEEDS_MAX" | "PAYMENT_WINDOW_EXPIRED" | "MERCHANT_REJECTED_AFTER_FUNDING" | "MERCHANT_UNRESPONSIVE_AFTER_FUNDING" | "MERCHANT_CALL_CONTEXT_UNAVAILABLE" | "AMBIGUOUS_MAX_AMOUNT" | "MAX_AMOUNT_UNCONVERTIBLE" | "MERCHANT_NOT_READY")[];
1269
1302
  declare const AGENT_PAYMENT_RAIL_VALUES: ("x402" | "mpp_demo" | "mpp_crypto" | "stripe_deposit" | "spt" | "direct" | "mpp")[];
@@ -1449,6 +1482,11 @@ interface PaymentStatusResult {
1449
1482
  expiresAt: string;
1450
1483
  chainId: number;
1451
1484
  message: string;
1485
+ /**
1486
+ * #3420: `true` = the merchant answered 2xx (a `machine_payment_evidence`
1487
+ * row records its response); absent = unknown. See the raw field's doc.
1488
+ */
1489
+ delivered?: boolean;
1452
1490
  /** Platform fee surfaced so it's never silently collected (#386). */
1453
1491
  fee?: PaymentFee | null;
1454
1492
  amountAtomic?: string | null;
@@ -1995,7 +2033,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
1995
2033
  * This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
1996
2034
  * it with the package version on every release — never hand-edit it.
1997
2035
  */
1998
- declare const SDK_VERSION = "0.0.0-dev.202609282018.d7956ad";
2036
+ declare const SDK_VERSION = "0.0.0-dev.202609291042.e2cc5e2";
1999
2037
  /** The request header every published Haven client sends. */
2000
2038
  declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
2001
2039
  /** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
@@ -2631,6 +2669,19 @@ declare function resolveTokenBySymbol(chainId: number, symbol: string): {
2631
2669
  */
2632
2670
  /** Version of the direct-payment sign context (`GET /payments/:id/sign-context`). */
2633
2671
  declare const DIRECT_SIGN_CONTEXT_VERSION = 1;
2672
+ /**
2673
+ * #3419: version of the task-budget sign context (`GET
2674
+ * /task-budgets/:id/sign-context`), the sign-then-submit envelope every
2675
+ * `haven_sign { task_budget_id }` call fetches. The backend emits it
2676
+ * (`task-budget-service.ts`, `task_sign_context_version: 1`); the signer
2677
+ * derives its enforced set `SUPPORTED_TASK_SIGN_CONTEXT_VERSIONS` from this
2678
+ * constant — never a second literal — and the hosted/local task-budget
2679
+ * handoffs report it in `signer_compatibility.task_sign_context_version`.
2680
+ * The signer could not carry the single source itself (a published package
2681
+ * cannot host a constant the backend also serves), so it lives beside the
2682
+ * other binding constants here, exactly as `DIRECT_SIGN_CONTEXT_VERSION` does.
2683
+ */
2684
+ declare const TASK_SIGN_CONTEXT_VERSION = 1;
2634
2685
  /** The ERC-4337 v0.7 EntryPoint — the only one the delegation rail submits to. */
2635
2686
  declare const ENTRY_POINT_V07 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
2636
2687
  /**
@@ -3084,4 +3135,4 @@ declare function encodeBase64Json(value: unknown): string;
3084
3135
  */
3085
3136
  declare function decodeBase64Json<T>(value: string, label?: string): T;
3086
3137
 
3087
- export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, resolveTokenFromAddress as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TRANSFER_WITH_AUTHORIZATION_TYPES as b3, TYPED_DATA_NOT_ALLOWED as b4, type TaskBudgetCloseExpectation as b5, type TaskChildExpectation as b6, type TaskChildTypedData as b7, type UnsupportedNodeVersionMessageOptions as b8, X402AlreadySettledError as b9, connectorSpec as bA, connectorUpgradeCommand as bB, createNextStepBuilder as bC, decodeBase64Json as bD, decodeBase64Utf8 as bE, defaultNextToolFor as bF, deriveDelegateAccountAddress as bG, encodeBase64Json as bH, encodeBase64Utf8 as bI, encodePaymentProof as bJ, hashDelegation as bK, havenClientIdentity as bL, isConnectorChannel as bM, isErc7710Option as bN, isPackedUserOperationTypedData as bO, isSupportedNodeVersion as bP, isSweepableChain as bQ, isTaskChildTypedData as bR, normalizePaymentRequired as bS, packedUserOperationHash as bT, parseNextTool as bU, parsePaymentRequired as bV, parsePaymentRequiredResponse as bW, readClientUpdate as bX, renderNextTool as bY, resolveConnectorChannel as bZ, resolveTokenBySymbol as b_, X402Erc7710AlreadySettledError as ba, type X402ExpectedAuth as bb, type X402ExpectedContext as bc, type X402PaymentHeaderContext as bd, X402PaymentHeaderValidationError as be, type X402PaymentOption as bf, type X402RequestSnapshot as bg, type X402SchemeSelection as bh, X402TaskBudgetMismatchError as bi, X402UnexpectedStatusError as bj, X402_LEGACY_PAYMENT_HEADER_NAME as bk, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bl, X402_PAYMENT_HEADER_NAME as bm, X402_PAYMENT_HEADER_NAMES_SENT as bn, X402_PAYMENT_REQUIRED_HEADER_NAME as bo, X402_PAYMENT_RESPONSE_HEADER_NAME as bp, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bq, assertBoundDirectPaymentUserOp as br, assertOwnTaskBudgetCloseUserOp as bs, assertOwnTaskChild as bt, assertUserOpTypedDataBinding as bu, buildSweepAuthorizationMessage as bv, buildSweepTypedData as bw, buildX402ExpectedMessage as bx, compareNodeVersions as by, connectorRerunCommand as bz, type PaymentIntent as c, selectErc7710PaymentOption as c0, selectPaymentOption as c1, selectStandardPaymentOption as c2, selectX402SettlementScheme as c3, signerUpdateFallback as c4, sweepUsdcAddress as c5, sweepUsdcDomain as c6, toStandardPaymentRequirements as c7, unsupportedNodeVersionMessage as c8, validateStandardX402PaymentHeader as c9, verifySettlementChild as ca, x402AssetTransferMethod as cb, x402AuthorizationAmount as cc, x402FacilitatorAddresses as cd, x402V2PaymentEnvelope as ce, CAVEAT_ENFORCERS as cf, CAVEAT_TYPEHASH as cg, DELEGATION_MANAGER as ch, DELEGATION_TYPEHASH as ci, DIRECT_PAYMENT_CHAIN_IDS as cj, type DelegationForHashing as ck, EXECUTE_ABI as cl, HYBRID_DELEGATOR_IMPLEMENTATION as cm, MAX_SETTLEMENT_WINDOW_SECONDS as cn, SIMPLE_FACTORY_ADDRESS as co, type SettlementChildTypedData as cp, assertFundingLegPaysDelegate as cq, assertOwnSettlementChild as cr, chainIdForNetwork as cs, isSettlementChildTypedData as ct, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
3138
+ export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, resolveTokenBySymbol as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TASK_SIGN_CONTEXT_VERSION as b3, TRANSFER_WITH_AUTHORIZATION_TYPES as b4, TYPED_DATA_NOT_ALLOWED as b5, type TaskBudgetCloseExpectation as b6, type TaskChildExpectation as b7, type TaskChildTypedData as b8, type UnsupportedNodeVersionMessageOptions as b9, connectorRerunCommand as bA, connectorSpec as bB, connectorUpgradeCommand as bC, createNextStepBuilder as bD, decodeBase64Json as bE, decodeBase64Utf8 as bF, defaultNextToolFor as bG, deriveDelegateAccountAddress as bH, encodeBase64Json as bI, encodeBase64Utf8 as bJ, encodePaymentProof as bK, hashDelegation as bL, havenClientIdentity as bM, isConnectorChannel as bN, isErc7710Option as bO, isPackedUserOperationTypedData as bP, isSupportedNodeVersion as bQ, isSweepableChain as bR, isTaskChildTypedData as bS, normalizePaymentRequired as bT, packedUserOperationHash as bU, parseNextTool as bV, parsePaymentRequired as bW, parsePaymentRequiredResponse as bX, readClientUpdate as bY, renderNextTool as bZ, resolveConnectorChannel as b_, X402AlreadySettledError as ba, X402Erc7710AlreadySettledError as bb, type X402ExpectedAuth as bc, type X402ExpectedContext as bd, type X402PaymentHeaderContext as be, X402PaymentHeaderValidationError as bf, type X402PaymentOption as bg, type X402RequestSnapshot as bh, type X402SchemeSelection as bi, X402TaskBudgetMismatchError as bj, X402UnexpectedStatusError as bk, X402_LEGACY_PAYMENT_HEADER_NAME as bl, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bm, X402_PAYMENT_HEADER_NAME as bn, X402_PAYMENT_HEADER_NAMES_SENT as bo, X402_PAYMENT_REQUIRED_HEADER_NAME as bp, X402_PAYMENT_RESPONSE_HEADER_NAME as bq, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as br, assertBoundDirectPaymentUserOp as bs, assertOwnTaskBudgetCloseUserOp as bt, assertOwnTaskChild as bu, assertUserOpTypedDataBinding as bv, buildSweepAuthorizationMessage as bw, buildSweepTypedData as bx, buildX402ExpectedMessage as by, compareNodeVersions as bz, type PaymentIntent as c, resolveTokenFromAddress as c0, selectErc7710PaymentOption as c1, selectPaymentOption as c2, selectStandardPaymentOption as c3, selectX402SettlementScheme as c4, signerUpdateFallback as c5, sweepUsdcAddress as c6, sweepUsdcDomain as c7, toStandardPaymentRequirements as c8, unsupportedNodeVersionMessage as c9, validateStandardX402PaymentHeader as ca, verifySettlementChild as cb, x402AssetTransferMethod as cc, x402AuthorizationAmount as cd, x402FacilitatorAddresses as ce, x402V2PaymentEnvelope as cf, type DelegationForHashing as cg, CAVEAT_ENFORCERS as ch, CAVEAT_TYPEHASH as ci, DELEGATION_MANAGER as cj, DELEGATION_TYPEHASH as ck, DIRECT_PAYMENT_CHAIN_IDS as cl, EXECUTE_ABI as cm, HYBRID_DELEGATOR_IMPLEMENTATION as cn, MAX_SETTLEMENT_WINDOW_SECONDS as co, SIMPLE_FACTORY_ADDRESS as cp, type SettlementChildTypedData as cq, assertFundingLegPaysDelegate as cr, assertOwnSettlementChild as cs, chainIdForNetwork as ct, isSettlementChildTypedData as cu, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
@@ -74,6 +74,14 @@ interface PaymentRequest {
74
74
  * token/recipient/parent disagree with this request.
75
75
  */
76
76
  taskBudgetId?: string;
77
+ /**
78
+ * #3330: redeem against this open sub-budget's grant (this agent is the
79
+ * sub-agent B) instead of the agent's budget delegation directly —
80
+ * `[grant, parent-child, budget]`. The backend refuses (404/409) when the
81
+ * id is unknown, not open, or its token/recipient/parent disagree with
82
+ * this request. Mutually exclusive with `taskBudgetId`.
83
+ */
84
+ subBudgetId?: string;
77
85
  }
78
86
  interface SignData {
79
87
  /** The hash to sign (keccak256, 0x-prefixed) */
@@ -283,6 +291,17 @@ interface X402AuthorizationOptions {
283
291
  * new key instead.
284
292
  */
285
293
  taskBudgetId?: string;
294
+ /**
295
+ * #3330: redeem against this open sub-budget's grant (this agent is the
296
+ * sub-agent B) for the funding leg / erc7710 settlement instead of the
297
+ * agent's budget delegation directly. Same refusal contract as
298
+ * `PaymentRequest.subBudgetId`; mutually exclusive with `taskBudgetId`.
299
+ * The receipt cache and in-flight map pin this id per entry exactly as
300
+ * they pin `taskBudgetId` (#3392) — a key reused under a different
301
+ * authorizing child throws the typed mismatch error before any network
302
+ * call.
303
+ */
304
+ subBudgetId?: string;
286
305
  }
287
306
  /**
288
307
  * Keyless x402 construct result.
@@ -1106,6 +1125,20 @@ declare const AgentPaymentPhase: {
1106
1125
  * the funds.
1107
1126
  */
1108
1127
  readonly FundedButUnsettled: "funded_but_unsettled";
1128
+ /**
1129
+ * #3420: TERMINAL — a `submitted` erc7710 x402 intent whose settlement
1130
+ * window AND the sweep's last attribution chance have both passed with no
1131
+ * verified evidence. The sweep's tick (120s) only ever confirms a
1132
+ * transaction mined inside the payment's own settlement window (the child
1133
+ * delegation's on-chain `timestamp` caveat, plus the verifier's 120s
1134
+ * clock-skew allowance), so once authorize + window + skew is behind the
1135
+ * payment, no poll — and no sweep tick — can ever change the answer.
1136
+ * The paired `next_action` is `stop_and_tell_user`: tell the user the goods
1137
+ * were delivered but Haven holds no verified settlement evidence; reporting
1138
+ * a real settlement hash (`haven_report_settlement_evidence`) still works
1139
+ * at any age.
1140
+ */
1141
+ readonly DeliveredUnverified: "delivered_unverified";
1109
1142
  };
1110
1143
  type AgentPaymentPhase = (typeof AgentPaymentPhase)[keyof typeof AgentPaymentPhase];
1111
1144
  declare const AgentPaymentNextAction: {
@@ -1263,7 +1296,7 @@ declare const AgentPaymentRail: {
1263
1296
  type AgentPaymentRail = (typeof AgentPaymentRail)[keyof typeof AgentPaymentRail];
1264
1297
  type PaymentPhase = AgentPaymentPhase;
1265
1298
  type PaymentNextAction = AgentPaymentNextAction;
1266
- declare const AGENT_PAYMENT_PHASE_VALUES: ("rejected" | "expired" | "failed" | "agent_signature_required" | "payment_submitted" | "payment_confirmed" | "user_approval_required" | "user_execution_required" | "waiting_for_additional_approvals" | "funding_sent" | "insufficient_funds" | "funded_but_unsettled")[];
1299
+ declare const AGENT_PAYMENT_PHASE_VALUES: ("rejected" | "expired" | "failed" | "agent_signature_required" | "payment_submitted" | "payment_confirmed" | "user_approval_required" | "user_execution_required" | "waiting_for_additional_approvals" | "funding_sent" | "insufficient_funds" | "funded_but_unsettled" | "delivered_unverified")[];
1267
1300
  declare const AGENT_PAYMENT_NEXT_ACTION_VALUES: ("sign_and_submit_payment" | "check_status_later" | "none" | "wait_for_user_approval" | "wait_for_user_to_complete_payment" | "retry_original_x402_request" | "stop_and_tell_user" | "request_again_if_user_still_wants_it" | "retry_with_explicit_context" | "payment_window_expired" | "fund_account_or_raise_allowance" | "sweep_stranded_funds" | "awaiting_settlement_evidence")[];
1268
1301
  declare const AGENT_PAYMENT_FAILURE_CODE_VALUES: ("PRICE_EXCEEDS_MAX" | "PAYMENT_WINDOW_EXPIRED" | "MERCHANT_REJECTED_AFTER_FUNDING" | "MERCHANT_UNRESPONSIVE_AFTER_FUNDING" | "MERCHANT_CALL_CONTEXT_UNAVAILABLE" | "AMBIGUOUS_MAX_AMOUNT" | "MAX_AMOUNT_UNCONVERTIBLE" | "MERCHANT_NOT_READY")[];
1269
1302
  declare const AGENT_PAYMENT_RAIL_VALUES: ("x402" | "mpp_demo" | "mpp_crypto" | "stripe_deposit" | "spt" | "direct" | "mpp")[];
@@ -1449,6 +1482,11 @@ interface PaymentStatusResult {
1449
1482
  expiresAt: string;
1450
1483
  chainId: number;
1451
1484
  message: string;
1485
+ /**
1486
+ * #3420: `true` = the merchant answered 2xx (a `machine_payment_evidence`
1487
+ * row records its response); absent = unknown. See the raw field's doc.
1488
+ */
1489
+ delivered?: boolean;
1452
1490
  /** Platform fee surfaced so it's never silently collected (#386). */
1453
1491
  fee?: PaymentFee | null;
1454
1492
  amountAtomic?: string | null;
@@ -1995,7 +2033,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
1995
2033
  * This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
1996
2034
  * it with the package version on every release — never hand-edit it.
1997
2035
  */
1998
- declare const SDK_VERSION = "0.0.0-dev.202609282018.d7956ad";
2036
+ declare const SDK_VERSION = "0.0.0-dev.202609291042.e2cc5e2";
1999
2037
  /** The request header every published Haven client sends. */
2000
2038
  declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
2001
2039
  /** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
@@ -2631,6 +2669,19 @@ declare function resolveTokenBySymbol(chainId: number, symbol: string): {
2631
2669
  */
2632
2670
  /** Version of the direct-payment sign context (`GET /payments/:id/sign-context`). */
2633
2671
  declare const DIRECT_SIGN_CONTEXT_VERSION = 1;
2672
+ /**
2673
+ * #3419: version of the task-budget sign context (`GET
2674
+ * /task-budgets/:id/sign-context`), the sign-then-submit envelope every
2675
+ * `haven_sign { task_budget_id }` call fetches. The backend emits it
2676
+ * (`task-budget-service.ts`, `task_sign_context_version: 1`); the signer
2677
+ * derives its enforced set `SUPPORTED_TASK_SIGN_CONTEXT_VERSIONS` from this
2678
+ * constant — never a second literal — and the hosted/local task-budget
2679
+ * handoffs report it in `signer_compatibility.task_sign_context_version`.
2680
+ * The signer could not carry the single source itself (a published package
2681
+ * cannot host a constant the backend also serves), so it lives beside the
2682
+ * other binding constants here, exactly as `DIRECT_SIGN_CONTEXT_VERSION` does.
2683
+ */
2684
+ declare const TASK_SIGN_CONTEXT_VERSION = 1;
2634
2685
  /** The ERC-4337 v0.7 EntryPoint — the only one the delegation rail submits to. */
2635
2686
  declare const ENTRY_POINT_V07 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
2636
2687
  /**
@@ -3084,4 +3135,4 @@ declare function encodeBase64Json(value: unknown): string;
3084
3135
  */
3085
3136
  declare function decodeBase64Json<T>(value: string, label?: string): T;
3086
3137
 
3087
- export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, resolveTokenFromAddress as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TRANSFER_WITH_AUTHORIZATION_TYPES as b3, TYPED_DATA_NOT_ALLOWED as b4, type TaskBudgetCloseExpectation as b5, type TaskChildExpectation as b6, type TaskChildTypedData as b7, type UnsupportedNodeVersionMessageOptions as b8, X402AlreadySettledError as b9, connectorSpec as bA, connectorUpgradeCommand as bB, createNextStepBuilder as bC, decodeBase64Json as bD, decodeBase64Utf8 as bE, defaultNextToolFor as bF, deriveDelegateAccountAddress as bG, encodeBase64Json as bH, encodeBase64Utf8 as bI, encodePaymentProof as bJ, hashDelegation as bK, havenClientIdentity as bL, isConnectorChannel as bM, isErc7710Option as bN, isPackedUserOperationTypedData as bO, isSupportedNodeVersion as bP, isSweepableChain as bQ, isTaskChildTypedData as bR, normalizePaymentRequired as bS, packedUserOperationHash as bT, parseNextTool as bU, parsePaymentRequired as bV, parsePaymentRequiredResponse as bW, readClientUpdate as bX, renderNextTool as bY, resolveConnectorChannel as bZ, resolveTokenBySymbol as b_, X402Erc7710AlreadySettledError as ba, type X402ExpectedAuth as bb, type X402ExpectedContext as bc, type X402PaymentHeaderContext as bd, X402PaymentHeaderValidationError as be, type X402PaymentOption as bf, type X402RequestSnapshot as bg, type X402SchemeSelection as bh, X402TaskBudgetMismatchError as bi, X402UnexpectedStatusError as bj, X402_LEGACY_PAYMENT_HEADER_NAME as bk, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bl, X402_PAYMENT_HEADER_NAME as bm, X402_PAYMENT_HEADER_NAMES_SENT as bn, X402_PAYMENT_REQUIRED_HEADER_NAME as bo, X402_PAYMENT_RESPONSE_HEADER_NAME as bp, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bq, assertBoundDirectPaymentUserOp as br, assertOwnTaskBudgetCloseUserOp as bs, assertOwnTaskChild as bt, assertUserOpTypedDataBinding as bu, buildSweepAuthorizationMessage as bv, buildSweepTypedData as bw, buildX402ExpectedMessage as bx, compareNodeVersions as by, connectorRerunCommand as bz, type PaymentIntent as c, selectErc7710PaymentOption as c0, selectPaymentOption as c1, selectStandardPaymentOption as c2, selectX402SettlementScheme as c3, signerUpdateFallback as c4, sweepUsdcAddress as c5, sweepUsdcDomain as c6, toStandardPaymentRequirements as c7, unsupportedNodeVersionMessage as c8, validateStandardX402PaymentHeader as c9, verifySettlementChild as ca, x402AssetTransferMethod as cb, x402AuthorizationAmount as cc, x402FacilitatorAddresses as cd, x402V2PaymentEnvelope as ce, CAVEAT_ENFORCERS as cf, CAVEAT_TYPEHASH as cg, DELEGATION_MANAGER as ch, DELEGATION_TYPEHASH as ci, DIRECT_PAYMENT_CHAIN_IDS as cj, type DelegationForHashing as ck, EXECUTE_ABI as cl, HYBRID_DELEGATOR_IMPLEMENTATION as cm, MAX_SETTLEMENT_WINDOW_SECONDS as cn, SIMPLE_FACTORY_ADDRESS as co, type SettlementChildTypedData as cp, assertFundingLegPaysDelegate as cq, assertOwnSettlementChild as cr, chainIdForNetwork as cs, isSettlementChildTypedData as ct, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
3138
+ export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, resolveTokenBySymbol as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TASK_SIGN_CONTEXT_VERSION as b3, TRANSFER_WITH_AUTHORIZATION_TYPES as b4, TYPED_DATA_NOT_ALLOWED as b5, type TaskBudgetCloseExpectation as b6, type TaskChildExpectation as b7, type TaskChildTypedData as b8, type UnsupportedNodeVersionMessageOptions as b9, connectorRerunCommand as bA, connectorSpec as bB, connectorUpgradeCommand as bC, createNextStepBuilder as bD, decodeBase64Json as bE, decodeBase64Utf8 as bF, defaultNextToolFor as bG, deriveDelegateAccountAddress as bH, encodeBase64Json as bI, encodeBase64Utf8 as bJ, encodePaymentProof as bK, hashDelegation as bL, havenClientIdentity as bM, isConnectorChannel as bN, isErc7710Option as bO, isPackedUserOperationTypedData as bP, isSupportedNodeVersion as bQ, isSweepableChain as bR, isTaskChildTypedData as bS, normalizePaymentRequired as bT, packedUserOperationHash as bU, parseNextTool as bV, parsePaymentRequired as bW, parsePaymentRequiredResponse as bX, readClientUpdate as bY, renderNextTool as bZ, resolveConnectorChannel as b_, X402AlreadySettledError as ba, X402Erc7710AlreadySettledError as bb, type X402ExpectedAuth as bc, type X402ExpectedContext as bd, type X402PaymentHeaderContext as be, X402PaymentHeaderValidationError as bf, type X402PaymentOption as bg, type X402RequestSnapshot as bh, type X402SchemeSelection as bi, X402TaskBudgetMismatchError as bj, X402UnexpectedStatusError as bk, X402_LEGACY_PAYMENT_HEADER_NAME as bl, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bm, X402_PAYMENT_HEADER_NAME as bn, X402_PAYMENT_HEADER_NAMES_SENT as bo, X402_PAYMENT_REQUIRED_HEADER_NAME as bp, X402_PAYMENT_RESPONSE_HEADER_NAME as bq, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as br, assertBoundDirectPaymentUserOp as bs, assertOwnTaskBudgetCloseUserOp as bt, assertOwnTaskChild as bu, assertUserOpTypedDataBinding as bv, buildSweepAuthorizationMessage as bw, buildSweepTypedData as bx, buildX402ExpectedMessage as by, compareNodeVersions as bz, type PaymentIntent as c, resolveTokenFromAddress as c0, selectErc7710PaymentOption as c1, selectPaymentOption as c2, selectStandardPaymentOption as c3, selectX402SettlementScheme as c4, signerUpdateFallback as c5, sweepUsdcAddress as c6, sweepUsdcDomain as c7, toStandardPaymentRequirements as c8, unsupportedNodeVersionMessage as c9, validateStandardX402PaymentHeader as ca, verifySettlementChild as cb, x402AssetTransferMethod as cc, x402AuthorizationAmount as cd, x402FacilitatorAddresses as ce, x402V2PaymentEnvelope as cf, type DelegationForHashing as cg, CAVEAT_ENFORCERS as ch, CAVEAT_TYPEHASH as ci, DELEGATION_MANAGER as cj, DELEGATION_TYPEHASH as ck, DIRECT_PAYMENT_CHAIN_IDS as cl, EXECUTE_ABI as cm, HYBRID_DELEGATOR_IMPLEMENTATION as cn, MAX_SETTLEMENT_WINDOW_SECONDS as co, SIMPLE_FACTORY_ADDRESS as cp, type SettlementChildTypedData as cq, assertFundingLegPaysDelegate as cr, assertOwnSettlementChild as cs, chainIdForNetwork as ct, isSettlementChildTypedData as cu, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
@@ -1,4 +1,4 @@
1
- import { HavenSigningError, deriveDelegateAccountAddress, DELEGATION_MANAGER, assertRedeemsOwnBudgetDelegation, verifySettlementChild, REDEEM_DELEGATIONS_ABI, ROOT_AUTHORITY, CAVEAT_ENFORCERS, DELEGATION_TUPLE_COMPONENTS } from './chunk-Y2Q4DZVU.js';
1
+ import { HavenSigningError, deriveDelegateAccountAddress, DELEGATION_MANAGER, assertRedeemsOwnBudgetDelegation, verifySettlementChild, REDEEM_DELEGATIONS_ABI, ROOT_AUTHORITY, CAVEAT_ENFORCERS, DELEGATION_TUPLE_COMPONENTS } from './chunk-VAZVUIQN.js';
2
2
  import { decodeFunctionData, encodeFunctionData, encodePacked, recoverTypedDataAddress, encodeAbiParameters, keccak256 } from 'viem';
3
3
  import { createHash } from 'crypto';
4
4
 
@@ -783,7 +783,7 @@ function stableStringify2(value) {
783
783
  }
784
784
 
785
785
  // src/client-identity.ts
786
- var SDK_VERSION = "0.0.0-dev.202609282018.d7956ad";
786
+ var SDK_VERSION = "0.0.0-dev.202609291042.e2cc5e2";
787
787
  var HAVEN_CLIENT_HEADER = "X-Haven-Client";
788
788
  function havenClientIdentity(pkg, version) {
789
789
  return `${pkg}/${version}`;
@@ -1213,5 +1213,5 @@ function hashDelegation(delegation) {
1213
1213
  }
1214
1214
 
1215
1215
  export { CAVEAT_TYPEHASH, DEFAULT_NEXT_TOOL_BY_ACTION, DELEGATION_TYPEHASH, DIRECT_PAYMENT_CHAIN_IDS, ERC7710_ASSET_TRANSFER_METHOD, EXECUTE_ABI, HAVEN_CLIENT_HEADER, HAVEN_MINIMUM_NODE_VERSION, HavenTypedDataRefusedError, MAX_TASK_BUDGET_TTL_SECONDS, NEXT_TOOL_SERVER_NAMES, NEXT_TOOL_SERVER_ROLES, SDK_CLIENT_IDENTITY, SDK_VERSION, SWEEP_BASE_CHAIN_ID, SWEEP_BASE_SEPOLIA_CHAIN_ID, SWEEP_BASE_SEPOLIA_USDC_ADDRESS, SWEEP_BASE_USDC_ADDRESS, TRANSFER_WITH_AUTHORIZATION_TYPES, TYPED_DATA_NOT_ALLOWED, X402PaymentHeaderValidationError, X402_LEGACY_PAYMENT_HEADER_NAME, X402_MAX_AUTHORIZATION_WINDOW_SECONDS, X402_PAYMENT_HEADER_NAME, X402_PAYMENT_HEADER_NAMES, X402_PAYMENT_HEADER_NAMES_SENT, X402_PAYMENT_REQUIRED_HEADER_NAME, X402_PAYMENT_RESPONSE_HEADER_NAME, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS, assertBoundDirectPaymentUserOp, assertFundingLegPaysDelegate, assertOwnSettlementChild, assertOwnTaskBudgetCloseUserOp, assertOwnTaskChild, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, buildX402IdempotencyKey, compareNodeVersions, createNextStepBuilder, decodeBase64Json, decodeBase64Utf8, defaultNextToolFor, encodeBase64Json, encodeBase64Utf8, encodePaymentProof, hashDelegation, havenClientIdentity, isErc7710Option, isSupportedNodeVersion, isSweepableChain, isTaskChildTypedData, normalizePaymentRequired, parseNextTool, parsePaymentRequired, parsePaymentRequiredResponse, readClientUpdate, renderNextTool, resolveTokenBySymbol, resolveTokenFromAddress, selectErc7710PaymentOption, selectPaymentOption, selectStandardPaymentOption, selectX402SettlementScheme, sweepUsdcAddress, sweepUsdcDomain, toStandardPaymentRequirements, unsupportedNodeVersionMessage, validateStandardX402PaymentHeader, x402AssetTransferMethod, x402AuthorizationAmount, x402FacilitatorAddresses, x402PaymentHeaderNamesFor, x402PaymentHeaderNamesSent, x402V2PaymentEnvelope };
1216
- //# sourceMappingURL=chunk-LKWXAYWW.js.map
1217
- //# sourceMappingURL=chunk-LKWXAYWW.js.map
1216
+ //# sourceMappingURL=chunk-4TCIZWKV.js.map
1217
+ //# sourceMappingURL=chunk-4TCIZWKV.js.map