@dvmkit/sdk 0.17.1 → 0.19.0

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.
Files changed (31) hide show
  1. package/dist/{chunk-ORBWKYDE.js → chunk-34H4ZKBM.js} +1 -1
  2. package/dist/{chunk-WMGXJQI3.js → chunk-5RGZN6WQ.js} +1 -1
  3. package/dist/{chunk-3KRFFLAT.js → chunk-C65P6MGZ.js} +1 -1
  4. package/dist/{chunk-C5XNZLZ7.js → chunk-DJRTYBEE.js} +1 -1
  5. package/dist/{chunk-B5MPLDRC.js → chunk-I5MXADJS.js} +1 -1
  6. package/dist/{chunk-EIDRCGTY.js → chunk-INYFUPXV.js} +41 -13
  7. package/dist/{chunk-5CCQEAQV.js → chunk-MXESSBXF.js} +47 -0
  8. package/dist/{chunk-YRQMDRI4.js → chunk-NLMRNLKA.js} +14270 -13793
  9. package/dist/{chunk-62FI3NJF.js → chunk-NUDHO4HV.js} +4 -2
  10. package/dist/{chunk-VKFR5PCW.js → chunk-OTNHKRHA.js} +2 -2
  11. package/dist/{content-retention-B_hOQS36.d.ts → content-retention-sUCPlA1J.d.ts} +1 -1
  12. package/dist/{credit-ledger-5HMJ6VUX.js → credit-ledger-ZCJXJG6R.js} +2 -2
  13. package/dist/{credit-menu-D-h0zJCZ.d.ts → credit-menu-D88XuTLU.d.ts} +145 -6
  14. package/dist/{fx-CpqQaIfg.d.ts → fx-QoVA2oBc.d.ts} +1 -1
  15. package/dist/index.d.ts +5 -5
  16. package/dist/index.js +18 -3
  17. package/dist/internal/caller.d.ts +12 -8
  18. package/dist/internal/caller.js +3 -3
  19. package/dist/internal/server.d.ts +7 -7
  20. package/dist/internal/server.js +9 -9
  21. package/dist/{job-store-CgXT79tS.d.ts → job-store-Dy-ogco6.d.ts} +1 -1
  22. package/dist/{lightning-backend-B1hRUIOb.d.ts → lightning-backend-B2wMBR-x.d.ts} +1 -1
  23. package/dist/{memory-credit-ledger-ME6FH462.js → memory-credit-ledger-N4PZKTT5.js} +3 -3
  24. package/dist/server/index.d.ts +10 -10
  25. package/dist/server/index.js +10 -10
  26. package/dist/{step-cache-Bezn-_ZL.d.ts → step-cache-B83Y9T9p.d.ts} +73 -9
  27. package/dist/{tempo-session-store-EWBE5HJM.js → tempo-session-store-XJE6GIXN.js} +2 -2
  28. package/dist/testing/index.d.ts +3 -3
  29. package/dist/{usd-CJwU3-A4.d.ts → usd-g9kCw86F.d.ts} +1 -1
  30. package/dist/{x402-HVCUEWWU.js → x402-XLFD43RF.js} +4 -4
  31. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PostgresTempoSessionStore
3
- } from "../chunk-ORBWKYDE.js";
3
+ } from "../chunk-34H4ZKBM.js";
4
4
  import {
5
5
  verifyX402Payment
6
- } from "../chunk-VKFR5PCW.js";
6
+ } from "../chunk-OTNHKRHA.js";
7
7
  import {
8
8
  RevenueReporter
9
9
  } from "../chunk-CVN2YNMG.js";
@@ -61,7 +61,7 @@ import {
61
61
  verifyUpfrontPayment,
62
62
  x402RequiredUsdcMicro,
63
63
  x402SettledShare
64
- } from "../chunk-YRQMDRI4.js";
64
+ } from "../chunk-NLMRNLKA.js";
65
65
  import "../chunk-XRLKGCAW.js";
66
66
  import {
67
67
  PayoutReporter
@@ -69,15 +69,15 @@ import {
69
69
  import {
70
70
  settleWithFacilitator,
71
71
  verifyWithFacilitator
72
- } from "../chunk-3KRFFLAT.js";
73
- import "../chunk-C5XNZLZ7.js";
72
+ } from "../chunk-C65P6MGZ.js";
73
+ import "../chunk-DJRTYBEE.js";
74
74
  import "../chunk-A6EY4K46.js";
75
75
  import {
76
76
  SIGNED_ENVELOPE_FIELDS,
77
77
  SIGNED_ENVELOPE_TYPES,
78
78
  createDefaultReplayStore,
79
79
  humanizeZodError
80
- } from "../chunk-5CCQEAQV.js";
80
+ } from "../chunk-MXESSBXF.js";
81
81
  import {
82
82
  createInstrumentedFetch,
83
83
  isStaleJobReapable
@@ -94,7 +94,7 @@ import {
94
94
  import {
95
95
  toLockPubkey
96
96
  } from "../chunk-7RWE6ELV.js";
97
- import "../chunk-62FI3NJF.js";
97
+ import "../chunk-NUDHO4HV.js";
98
98
  import "../chunk-SXL44PL5.js";
99
99
  import "../chunk-QTKGFG3I.js";
100
100
  import "../chunk-FUJ36YDV.js";
@@ -110,11 +110,11 @@ import {
110
110
  isNonChannelBitcoinRail,
111
111
  lotOwedSats,
112
112
  netOwedSats
113
- } from "../chunk-B5MPLDRC.js";
113
+ } from "../chunk-I5MXADJS.js";
114
114
  import "../chunk-YG7G4DPZ.js";
115
115
  import "../chunk-COYKJRMM.js";
116
116
  import "../chunk-5UC7TOQC.js";
117
- import "../chunk-EIDRCGTY.js";
117
+ import "../chunk-INYFUPXV.js";
118
118
  import "../chunk-BPYMEMQX.js";
119
119
  import "../chunk-H3GGFEE5.js";
120
120
  import {
@@ -1,4 +1,4 @@
1
- import { a7 as Message, O as UpfrontPayment, al as FundingMethod, a1 as FundingReceipt, bX as CreditSnapshot, a2 as JobReceipt, aA as StepRecord, a3 as MessageType } from './step-cache-Bezn-_ZL.js';
1
+ import { a9 as Message, V as UpfrontPayment, an as FundingMethod, a3 as FundingReceipt, bZ as CreditSnapshot, a4 as JobReceipt, aC as StepRecord, a5 as MessageType } from './step-cache-B83Y9T9p.js';
2
2
  import { ProofLike } from '@cashu/cashu-ts';
3
3
 
4
4
  type JobStatus = "processing" | "completed" | "failed" | "awaiting-input" | "cancelled" | "working";
@@ -1,4 +1,4 @@
1
- import { Y as JsonValue } from './step-cache-Bezn-_ZL.js';
1
+ import { $ as JsonValue } from './step-cache-B83Y9T9p.js';
2
2
 
3
3
  declare const lockPubkeyBrand: unique symbol;
4
4
  /**
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  MemoryCreditLedger
3
- } from "./chunk-C5XNZLZ7.js";
4
- import "./chunk-B5MPLDRC.js";
3
+ } from "./chunk-DJRTYBEE.js";
4
+ import "./chunk-I5MXADJS.js";
5
5
  import "./chunk-YG7G4DPZ.js";
6
6
  import "./chunk-COYKJRMM.js";
7
7
  import "./chunk-5UC7TOQC.js";
8
- import "./chunk-EIDRCGTY.js";
8
+ import "./chunk-INYFUPXV.js";
9
9
  import "./chunk-BPYMEMQX.js";
10
10
  import "./chunk-H3GGFEE5.js";
11
11
  import "./chunk-ALTE7I6C.js";
@@ -1,15 +1,15 @@
1
- import { ag as CashuMode, bR as CreditLedgerQuerier, bS as CreditDrainEnqueue, bT as HostedSettlementReportObligations, R as ResolvedCreditConfig, bU as DVMAuthScheme, B as SignedRequestDomain, bV as CreditLedgerLike, bW as X402RefundSettlementGate, bX as CreditSnapshot, bY as CreditDrawRefundArgs, bZ as CreditDrawRefundResult, b_ as DrawResult, b$ as X402SettlementStatus, c0 as X402UnresolvedRefund, c1 as GrownDrawResult, c2 as DrawResolution, c3 as FundingRecord, c4 as CreditFundingEvidence, c5 as CreditInvoiceRecord, c6 as InvoiceSettlement, c7 as BlockedInvoiceCursor, c8 as InvoiceReconciliation, c9 as InvoiceWriteOff, ca as DrawRecord, cb as StalePendingDrawCursor, cc as TempoCreditLossEvidence, cd as TempoCreditLoss, ce as X402CreditLossEvidence, cf as X402CreditLoss, cg as DrainMethod, ch as DrainRequestResult, ci as BitcoinDepositLiability, bv as FundingLot, cj as CreditDrainRecord, ck as ChannelDrainCursor, cl as DrainWriteOff, cm as DrainTransitionResult, cn as DrainReleaseResult, co as DrainFulfilment, cp as HostingCleanupFence, aA as StepRecord, a2 as JobReceipt, a7 as Message, K as KVStore, G as SignedRequestReplayStore, Z as ZodLike, a as DVMDescriptor } from '../step-cache-Bezn-_ZL.js';
2
- export { cq as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, cr as ClientCompatibility, cs as ClientCompatibilityEnv, ct as ClientCompatibilityGate, cu as ClientCompatibilityRequirement, cv as ClientSemVer, f as CreateSignedRequestVerifierOpts, cw as CreditFundingBasis, cx as CreditInvoiceStatus, cy as CreditLedger, cz as CreditLedgerError, cA as CreditLedgerErrorCode, cB as CreditLedgerErrorDetails, cC as CreditLedgerPool, cD as CreditStatus, cE as DRAIN_DELIVERY_RESERVE_SATS, cF as DVM_PROTOCOL_VERSION, cG as DrainConflictReason, cH as DrawRailValue, cI as DrawStatus, cJ as HostedTempoCloseReportWriteOff, cK as JobCostReportPayload, cL as JobTerminalReportPayload, cM as PostgresX402ChannelStorage, cN as ReplayStoreBackend, cO as RevenueSkippedNoRailPayload, cP as RevenueSkippedNoRailReason, x as SIGNED_REQUEST_AUTH_ID, y as SIGNED_REQUEST_STATEMENT_VERSION, cQ as Secp256k1AuthOpts, z as SignedRequestAudience, E as SignedRequestError, F as SignedRequestFailure, H as SignedRequestSignOpts, M as SignedRequestStatementHeader, N as SignedRequestVerifier, cR as TempoDrainDecision, cS as TempoDrainDecisionArgs, cT as TempoDrainDecisionResult, cU as TempoDrainHoldReason, O as UpfrontPayment, cV as X402ChannelStorageOpts, cW as X402RelayLockHolder, cX as X402RelaySubmissionLock, cY as X402RelaySubmissionLockError, cZ as allocateDrawValue, c_ as clientCompatibilityAttributes, c$ as clientCompatibilityMiddleware, d0 as clientUpgradeRequired, T as createSignedRequestVerifier, d1 as parseClientCapabilities, d2 as parseClientCompatibility, d3 as parseDvmClient, d4 as parseProtocolVersion, d5 as requireClientCompatibility, d6 as retryHostedTempoCloseReport, d7 as secp256k1Auth, d8 as signedRequestInput, W as signedRequestStatementHeader, d9 as writeOffHostedTempoCloseReport } from '../step-cache-Bezn-_ZL.js';
1
+ import { ai as CashuMode, bT as CreditLedgerQuerier, bU as CreditDrainEnqueue, bV as HostedSettlementReportObligations, w as ResolvedCreditConfig, bW as DVMAuthScheme, F as SignedRequestDomain, bX as CreditLedgerLike, bY as X402RefundSettlementGate, bZ as CreditSnapshot, b_ as CreditDrawRefundArgs, b$ as CreditDrawRefundResult, c0 as DrawResult, c1 as X402SettlementStatus, c2 as X402UnresolvedRefund, c3 as GrownDrawResult, c4 as DrawResolution, c5 as FundingRecord, c6 as CreditFundingEvidence, c7 as CreditInvoiceRecord, c8 as InvoiceSettlement, c9 as BlockedInvoiceCursor, ca as InvoiceReconciliation, cb as InvoiceWriteOff, cc as DrawRecord, cd as StalePendingDrawCursor, ce as TempoCreditLossEvidence, cf as TempoCreditLoss, cg as X402CreditLossEvidence, ch as X402CreditLoss, ci as DrainMethod, cj as DrainRequestResult, ck as BitcoinDepositLiability, bx as FundingLot, cl as CreditDrainRecord, cm as ChannelDrainCursor, cn as DrainWriteOff, co as DrainTransitionResult, cp as DrainReleaseResult, cq as DrainFulfilment, cr as HostingCleanupFence, aC as StepRecord, a4 as JobReceipt, a9 as Message, K as KVStore, M as SignedRequestReplayStore, Z as ZodLike, a as DVMDescriptor } from '../step-cache-B83Y9T9p.js';
2
+ export { cs as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, ct as ClientCompatibility, cu as ClientCompatibilityEnv, cv as ClientCompatibilityGate, cw as ClientCompatibilityRequirement, cx as ClientSemVer, g as CreateSignedRequestVerifierOpts, cy as CreditFundingBasis, cz as CreditInvoiceStatus, cA as CreditLedger, cB as CreditLedgerError, cC as CreditLedgerErrorCode, cD as CreditLedgerErrorDetails, cE as CreditLedgerPool, cF as CreditStatus, cG as DRAIN_DELIVERY_RESERVE_SATS, cH as DVM_PROTOCOL_VERSION, cI as DrainConflictReason, cJ as DrawRailValue, cK as DrawStatus, cL as HostedTempoCloseReportWriteOff, cM as JobCostReportPayload, cN as JobTerminalReportPayload, cO as PostgresX402ChannelStorage, cP as ReplayStoreBackend, cQ as RevenueSkippedNoRailPayload, cR as RevenueSkippedNoRailReason, z as SIGNED_REQUEST_AUTH_ID, B as SIGNED_REQUEST_STATEMENT_VERSION, cS as Secp256k1AuthOpts, E as SignedRequestAudience, G as SignedRequestError, H as SignedRequestFailure, N as SignedRequestSignOpts, O as SignedRequestStatementHeader, T as SignedRequestVerifier, cT as TempoDrainDecision, cU as TempoDrainDecisionArgs, cV as TempoDrainDecisionResult, cW as TempoDrainHoldReason, V as UpfrontPayment, cX as X402ChannelStorageOpts, cY as X402RelayLockHolder, cZ as X402RelaySubmissionLock, c_ as X402RelaySubmissionLockError, c$ as allocateDrawValue, d0 as clientCompatibilityAttributes, d1 as clientCompatibilityMiddleware, d2 as clientUpgradeRequired, W as createSignedRequestVerifier, d3 as parseClientCapabilities, d4 as parseClientCompatibility, d5 as parseDvmClient, d6 as parseProtocolVersion, d7 as requireClientCompatibility, d8 as retryHostedTempoCloseReport, d9 as secp256k1Auth, da as signedRequestInput, Y as signedRequestStatementHeader, db as writeOffHostedTempoCloseReport } from '../step-cache-B83Y9T9p.js';
3
3
  import { Pool } from 'pg';
4
- import { au as CreditMenu, a as AppEnv, U as UpfrontPaymentOpts, i as PaymentInfo, av as ReceiptIssuer, aw as LightningReceive, ax as TempoSettlementReadiness, ay as DVMHostOpts, az as DVMServeResult, L as LockPubkeyStateLoader, C as ConsumedCredentialStore } from '../credit-menu-D-h0zJCZ.js';
5
- export { aA as BuildCreditMenuArgs, aB as BuilderIdentity, aC as CREDIT_ENVELOPE_KEYS, aD as CreateX402BatchSettlementServerOpts, aE as CreditEnvelope, aF as CreditEnvelopeError, aG as CreditFundCommitment, aH as CreditTerms, aI as DEFAULT_INVOICE_TTL_SECONDS, aJ as DVMHost, aK as HostingClosureCommand, aL as HostingClosureEvidence, aM as HostingControlCommand, aN as HostingControlConfig, aO as HostingControlStatus, aP as JobManager, aQ as JobManagerOpts, aR as LightningReceiveConfig, aS as MIN_INVOICE_TTL_SECONDS, aT as MemoryConsumedCredentialStore, aU as MemoryConsumedCredentialStoreOpts, aV as MemoryProcessedPaymentStore, aW as MemoryX402ExactSettlementStore, aX as MountOpts, aY as OwnerDisplay, aZ as PaidJobCompletion, a_ as PaymentMode, a$ as PlatformReporterOpts, b0 as PostgresProcessedPaymentStore, b1 as PostgresX402ExactSettlementStore, b2 as PriceFiat, b3 as ProcessedPaymentQuerier, b4 as ProcessedPaymentRail, b5 as ProcessedPaymentRecord, b6 as ProcessedPaymentReplayError, b7 as ProcessedPaymentStore, b8 as X402BatchAcceptance, b9 as X402BatchFunding, ba as X402BatchRefusal, bb as X402BatchSettlementServer, bc as X402ExactAcceptance, bd as X402ExactIntentConflictError, be as X402ExactSettlementAttempt, bf as X402ExactSettlementChainEvidence, bg as X402ExactSettlementEffect, bh as X402ExactSettlementEvidenceMissingError, bi as X402ExactSettlementEvidenceReader, bj as X402ExactSettlementIntent, bk as X402ExactSettlementNotReadyError, bl as X402ExactSettlementServer, bm as X402ExactSettlementServerOpts, bn as X402ExactSettlementStatus, bo as X402ExactSettlementStore, bp as X402SettlementChainEvidence, bq as X402SettlementEvidenceReader, br as X402SettlementSubmissionError, bs as X402_BATCH_AUTO_SETTLEMENT, bt as X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS, bu as X402_BATCH_SETTLEMENT_NETWORK, bv as attachCreditMenu, bw as buildCreditMenu, bx as createDVMHost, by as createX402BatchSettlementServer, bz as creditEnvelopeIgnoreFields, bA as drawSettlementRef, bB as extractCreditEnvelope, bC as fundingCommitment, bD as selectPrimaryCredit, bE as signHostingClosure, bF as signHostingControl, bG as stripCreditEnvelope, bH as toCreditView } from '../credit-menu-D-h0zJCZ.js';
4
+ import { au as CreditMenu, a as AppEnv, U as UpfrontPaymentOpts, i as PaymentInfo, av as ReceiptIssuer, aw as LightningReceive, ax as TempoSettlementReadiness, ay as DVMHostOpts, az as DVMServeResult, L as LockPubkeyStateLoader, C as ConsumedCredentialStore } from '../credit-menu-D88XuTLU.js';
5
+ export { aA as BuildCreditMenuArgs, aB as BuilderIdentity, aC as CREDIT_ENVELOPE_KEYS, aD as CreateX402BatchSettlementServerOpts, aE as CreditEnvelope, aF as CreditEnvelopeError, aG as CreditFundCommitment, aH as CreditTerms, aI as DEFAULT_INVOICE_TTL_SECONDS, aJ as DVMHost, aK as HostingClosureCommand, aL as HostingClosureEvidence, aM as HostingControlCommand, aN as HostingControlConfig, aO as HostingControlStatus, aP as JobManager, aQ as JobManagerOpts, aR as LightningReceiveConfig, aS as MIN_INVOICE_TTL_SECONDS, aT as MemoryConsumedCredentialStore, aU as MemoryConsumedCredentialStoreOpts, aV as MemoryProcessedPaymentStore, aW as MemoryX402ExactSettlementStore, aX as MountOpts, aY as OwnerDisplay, aZ as PaidJobCompletion, a_ as PaymentMode, a$ as PlatformReporterOpts, b0 as PostgresProcessedPaymentStore, b1 as PostgresX402ExactSettlementStore, b2 as PriceFiat, b3 as ProcessedPaymentQuerier, b4 as ProcessedPaymentRail, b5 as ProcessedPaymentRecord, b6 as ProcessedPaymentReplayError, b7 as ProcessedPaymentStore, b8 as X402BatchAcceptance, b9 as X402BatchFunding, ba as X402BatchRefusal, bb as X402BatchSettlementServer, bc as X402ExactAcceptance, bd as X402ExactIntentConflictError, be as X402ExactSettlementAttempt, bf as X402ExactSettlementChainEvidence, bg as X402ExactSettlementEffect, bh as X402ExactSettlementEvidenceMissingError, bi as X402ExactSettlementEvidenceReader, bj as X402ExactSettlementIntent, bk as X402ExactSettlementNotReadyError, bl as X402ExactSettlementServer, bm as X402ExactSettlementServerOpts, bn as X402ExactSettlementStatus, bo as X402ExactSettlementStore, bp as X402SettlementChainEvidence, bq as X402SettlementEvidenceReader, br as X402SettlementSubmissionError, bs as X402_BATCH_AUTO_SETTLEMENT, bt as X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS, bu as X402_BATCH_SETTLEMENT_NETWORK, bv as attachCreditMenu, bw as buildCreditMenu, bx as createDVMHost, by as createX402BatchSettlementServer, bz as creditEnvelopeIgnoreFields, bA as drawSettlementRef, bB as extractCreditEnvelope, bC as fundingCommitment, bD as selectPrimaryCredit, bE as signHostingClosure, bF as signHostingControl, bG as stripCreditEnvelope, bH as toCreditView } from '../credit-menu-D88XuTLU.js';
6
6
  import { Context, Hono } from 'hono';
7
7
  import { z } from 'zod';
8
- import { F as FxFetcher } from '../fx-CpqQaIfg.js';
9
- import { c as StreamableJobStore, R as ReceiptIssuingStore, J as JobRecord, d as RequestIdClaim, e as RequestIdClaimResult, f as JobRetentionCursor, O as OutgoingMessage, A as AppendOutgoingOptions, P as PaymentCreditDelta, V as VerifyAndCreditResult, g as JobCounters, b as JobStore } from '../job-store-CgXT79tS.js';
10
- export { a as JobStatus, h as isStreamableJobStore } from '../job-store-CgXT79tS.js';
11
- import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-B_hOQS36.js';
12
- export { b as ContentHold, c as ContentHoldError, d as ContentHoldEvent, e as ContentHoldStore, f as ContentHoldsResponse, J as JobContentMetadata, g as baselineContentExpiry, h as contentMetadata, i as isContentHoldStore } from '../content-retention-B_hOQS36.js';
8
+ import { F as FxFetcher } from '../fx-QoVA2oBc.js';
9
+ import { c as StreamableJobStore, R as ReceiptIssuingStore, J as JobRecord, d as RequestIdClaim, e as RequestIdClaimResult, f as JobRetentionCursor, O as OutgoingMessage, A as AppendOutgoingOptions, P as PaymentCreditDelta, V as VerifyAndCreditResult, g as JobCounters, b as JobStore } from '../job-store-Dy-ogco6.js';
10
+ export { a as JobStatus, h as isStreamableJobStore } from '../job-store-Dy-ogco6.js';
11
+ import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-sUCPlA1J.js';
12
+ export { b as ContentHold, c as ContentHoldError, d as ContentHoldEvent, e as ContentHoldStore, f as ContentHoldsResponse, J as JobContentMetadata, g as baselineContentExpiry, h as contentMetadata, i as isContentHoldStore } from '../content-retention-sUCPlA1J.js';
13
13
  export { P as PinnedFetch, S as SSRFError, a as SSRFGuardOpts, b as SSRFReason, c as SSRFResolver, d as assertSafeUrl, e as createPinnedFetch } from '../ssrf-dMooihtY.js';
14
14
  import { Env, BlankSchema } from 'hono/types';
15
15
  import 'mppx';
@@ -17,7 +17,7 @@ import '@x402/core/server';
17
17
  import '@x402/evm/batch-settlement/server';
18
18
  import '@x402/core/types';
19
19
  import 'viem';
20
- import '../lightning-backend-B1hRUIOb.js';
20
+ import '../lightning-backend-B2wMBR-x.js';
21
21
  import '@cashu/cashu-ts';
22
22
 
23
23
  /** Default lifetime of a per-call implicit credit: 90 days before the ledger refuses new draws. */
@@ -82,17 +82,17 @@ import {
82
82
  toCreditView,
83
83
  unknownRouteNotFound,
84
84
  writeOffHostedTempoCloseReport
85
- } from "../chunk-YRQMDRI4.js";
85
+ } from "../chunk-NLMRNLKA.js";
86
86
  import {
87
87
  MemoryProcessedPaymentStore,
88
88
  PostgresProcessedPaymentStore,
89
89
  ProcessedPaymentReplayError
90
90
  } from "../chunk-XRLKGCAW.js";
91
91
  import "../chunk-KRX7VNBG.js";
92
- import "../chunk-3KRFFLAT.js";
92
+ import "../chunk-C65P6MGZ.js";
93
93
  import {
94
94
  MemoryCreditLedger
95
- } from "../chunk-C5XNZLZ7.js";
95
+ } from "../chunk-DJRTYBEE.js";
96
96
  import {
97
97
  PostgresJobStore
98
98
  } from "../chunk-A6EY4K46.js";
@@ -101,7 +101,7 @@ import {
101
101
  createDefaultReplayStore,
102
102
  createSignedRequestVerifier,
103
103
  signedRequestInput
104
- } from "../chunk-5CCQEAQV.js";
104
+ } from "../chunk-MXESSBXF.js";
105
105
  import {
106
106
  isStreamableJobStore
107
107
  } from "../chunk-Y6JJDOGO.js";
@@ -121,7 +121,7 @@ import {
121
121
  X402_DEFAULT_NETWORK,
122
122
  resolveRpcOverride,
123
123
  x402NetworkToCaip2
124
- } from "../chunk-62FI3NJF.js";
124
+ } from "../chunk-NUDHO4HV.js";
125
125
  import {
126
126
  SIGNED_REQUEST_AUTH_ID,
127
127
  SIGNED_REQUEST_STATEMENT_VERSION,
@@ -139,7 +139,7 @@ import {
139
139
  PostgresX402ChannelStorage,
140
140
  X402RelaySubmissionLockError,
141
141
  allocateDrawValue
142
- } from "../chunk-B5MPLDRC.js";
142
+ } from "../chunk-I5MXADJS.js";
143
143
  import "../chunk-YG7G4DPZ.js";
144
144
  import {
145
145
  SDK_INIT_ADVISORY_LOCK,
@@ -148,7 +148,7 @@ import {
148
148
  import "../chunk-5UC7TOQC.js";
149
149
  import {
150
150
  applyRetryToPool
151
- } from "../chunk-EIDRCGTY.js";
151
+ } from "../chunk-INYFUPXV.js";
152
152
  import {
153
153
  assertSupportedX402Network
154
154
  } from "../chunk-BPYMEMQX.js";
@@ -1310,7 +1310,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1310
1310
  { createPublicClient, createWalletClient, erc20Abi, http },
1311
1311
  { tempo: tempoMainnet, tempoModerato }
1312
1312
  ] = await Promise.all([
1313
- import("../tempo-session-store-EWBE5HJM.js"),
1313
+ import("../tempo-session-store-XJE6GIXN.js"),
1314
1314
  import("viem/accounts"),
1315
1315
  import("viem"),
1316
1316
  import("viem/chains")
@@ -1507,7 +1507,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1507
1507
  sharedPgConsumedStore = consumedStore;
1508
1508
  }
1509
1509
  if (pgPool) {
1510
- const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-5HMJ6VUX.js");
1510
+ const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-ZCJXJG6R.js");
1511
1511
  const pgLedger = new CreditLedger2(pgPool, tempoSessionStore);
1512
1512
  pendingInits.push(pgLedger.init());
1513
1513
  creditLedger = pgLedger;
@@ -1516,7 +1516,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1516
1516
  pendingInits.push(pgProcessed.init());
1517
1517
  processedPayments = pgProcessed;
1518
1518
  } else {
1519
- const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-ME6FH462.js");
1519
+ const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-N4PZKTT5.js");
1520
1520
  creditLedger = disposableCashu?.ledger ?? new MemoryCreditLedger2();
1521
1521
  const { MemoryProcessedPaymentStore: MemoryProcessedPaymentStore2 } = await import("../processed-payment-store-GKMAWOM3.js");
1522
1522
  processedPayments = new MemoryProcessedPaymentStore2();
@@ -384,6 +384,12 @@ interface BuildPaymentRequirementsOpts {
384
384
  description?: string;
385
385
  mimeType?: string;
386
386
  version?: X402Version;
387
+ /**
388
+ * Validity window, in seconds, a compliant client gives its authorization.
389
+ * Facilitators do not enforce it; a server that settles after the work must
390
+ * read the signed `validBefore` instead.
391
+ */
392
+ maxTimeoutSeconds?: number;
387
393
  }
388
394
  /**
389
395
  * V1 carries the resource URL in each requirement; v2 carries it in the outer
@@ -5467,14 +5473,17 @@ interface Secp256k1AuthOpts {
5467
5473
  * `nonce` or `auth_statement`) when the job requires a per-call Cashu
5468
5474
  * payment, and advertise `["secp256k1-schnorr-v2", "none"]` on `/v1/info#auth`. A body
5469
5475
  * carrying any envelope field is verified as before and never falls back.
5470
- * Unsigned calls take Cashu only: their 402 and mid-job asks offer Cashu
5471
- * alone, with no credit menu, and an attached x402 or Tempo payment (upfront
5472
- * or mid-job) is refused with `payment_method_requires_signature` before any
5473
- * settlement. A Cashu token is the payment, so a failed job keeping it is
5474
- * ordinary Cashu behaviour; this SDK settles x402 before the job runs, so an
5475
- * anonymous x402 payer would lose money a standard x402 server would not
5476
- * take, and Tempo is held back until checked. A DVM without Cashu serves no
5477
- * unsigned calls. Signed callers keep every rail.
5476
+ * Unsigned calls take Cashu, plus exact x402 on a capability that sets
5477
+ * `maxRuntimeSeconds` when the DVM has Postgres: that payment is verified
5478
+ * before the job and sent for settlement only if the job succeeds, so a
5479
+ * failed or timed-out job costs the payer nothing. Their 402 and mid-job
5480
+ * asks offer no credit menu (mid-job asks offer Cashu alone), and any other
5481
+ * x402 payment, or a Tempo payment, is refused with
5482
+ * `payment_method_requires_signature` before any settlement. A Cashu token is
5483
+ * the payment, so a failed job keeping it is ordinary Cashu behaviour.
5484
+ * Tempo stays signed-only: a push-mode credential is already broadcast when
5485
+ * the DVM sees it. A DVM with neither unsigned rail serves no unsigned
5486
+ * calls. Signed callers keep every rail.
5478
5487
  * Unsigned jobs run as the anonymous requester: the handler sees no
5479
5488
  * `ctx.auth`, the input omits the envelope fields, prepaid credit and
5480
5489
  * `request_id` recovery are refused, a payer whose response is lost recovers
@@ -6002,6 +6011,43 @@ interface ResolvedCreditConfig {
6002
6011
  /** Whether Tempo `charge` and x402 `exact` may fund prepaid credit. */
6003
6012
  allowOneShotStablecoin: boolean;
6004
6013
  }
6014
+ /**
6015
+ * Refund-locktime floors for Cashu payments. A payer may lock proofs with a
6016
+ * NUT-11 `locktime`; the DVM refuses one that passes before the proofs can be
6017
+ * melted. Shortening a floor below its default is safe only when the builder
6018
+ * melts more often than the floor: once a proof's locktime passes, an
6019
+ * unmelted proof can be spent by the payer's refund key or, when the proof
6020
+ * names no refund key, by anyone holding it.
6021
+ */
6022
+ interface CashuConfig {
6023
+ /**
6024
+ * Shortest refund `locktime`, in seconds from now, a signed caller must
6025
+ * use. Advertised as `cashu.min_locktime` on `/v1/info`; the DVM enforces it
6026
+ * less 24 hours so a caller resuming an unacknowledged payment still
6027
+ * clears it. Default 604800 (7 days). A whole number of at least 90000
6028
+ * (25 hours), so the enforced floor is always at least an hour away.
6029
+ */
6030
+ minLocktimeSeconds?: number;
6031
+ /**
6032
+ * Shortest refund `locktime`, in seconds from receipt, for an unsigned
6033
+ * `POST /v1/job` payment sent without `X-Cashu-Request-Id` (a NUT-24
6034
+ * wallet) to a DVM without auth or one built with
6035
+ * `secp256k1Auth({ allowUnsignedPaid: true })`. Such a wallet cannot be
6036
+ * told this floor and locks to its own default, so it is enforced exactly,
6037
+ * with no resume margin, and advertised as `cashu.unsigned_min_locktime`.
6038
+ * A payment carrying `X-Cashu-Request-Id` takes the signed floor. Default
6039
+ * `minLocktimeSeconds` less 24 hours (518400 when that is unset). A whole
6040
+ * number of at least 3600, and no more than `minLocktimeSeconds` less 24
6041
+ * hours: an unsigned payer can send `X-Cashu-Request-Id` to take the signed
6042
+ * floor instead, so a longer unsigned floor would protect nothing.
6043
+ */
6044
+ unsignedMinLocktimeSeconds?: number;
6045
+ }
6046
+ /** A {@link CashuConfig} with both floors filled from their defaults. */
6047
+ interface ResolvedCashuConfig {
6048
+ minLocktimeSeconds: number;
6049
+ unsignedMinLocktimeSeconds: number;
6050
+ }
6005
6051
  /** Platform default for {@link CreditConfig.min} — a dust floor below which rail fees dominate. */
6006
6052
  declare const DEFAULT_CREDIT_MIN: PriceValue;
6007
6053
  /**
@@ -6054,6 +6100,16 @@ interface CapabilityConfig<State = Record<string, unknown>, InputSchema extends
6054
6100
  * change the quote itself.
6055
6101
  */
6056
6102
  rates?: CapabilityRate[];
6103
+ /**
6104
+ * Longest this capability's handler may run, in whole seconds (1 to 600).
6105
+ * The SDK fails a job that is still running when the bound passes and aborts
6106
+ * `ctx.signal`. Setting it lets an unsigned caller pay this capability with
6107
+ * x402 on a DVM configured with `secp256k1Auth({ allowUnsignedPaid: true })`
6108
+ * and Postgres: the payment is verified before the job and settled only if
6109
+ * it succeeds, so the bound also sets how long an authorization must stay
6110
+ * valid. Leave it unset for long, multi-step or metered capabilities.
6111
+ */
6112
+ maxRuntimeSeconds?: number;
6057
6113
  /** Handle a newly submitted job for this capability (required). */
6058
6114
  onJob: (ctx: SDKJobContext<State, InputType<InputSchema>>) => void | Promise<void>;
6059
6115
  /** Handle a client response to a prompt within a job of this capability. */
@@ -6087,6 +6143,8 @@ interface CapabilityDescriptor<State = unknown, InputSchema extends ZodLike | un
6087
6143
  readonly onQuote?: QuoteConfig;
6088
6144
  /** Rate card published on `/v1/info`. See `CapabilityConfig.rates`. */
6089
6145
  readonly rates?: CapabilityRate[];
6146
+ /** Runtime bound in seconds. See `CapabilityConfig.maxRuntimeSeconds`. */
6147
+ readonly maxRuntimeSeconds?: number;
6090
6148
  readonly onJob: (ctx: SDKJobContext<State, InputType<InputSchema>>) => void | Promise<void>;
6091
6149
  /** Handle a client response to a prompt. */
6092
6150
  readonly onResponse?: (ctx: SDKJobContext<State, InputType<InputSchema>>, content: ResponseContent) => void | Promise<void>;
@@ -6229,6 +6287,8 @@ interface DVMConfig<State = Record<string, unknown>, InputSchema extends ZodLike
6229
6287
  onQuote?: QuoteConfig;
6230
6288
  /** Rate card published on `/v1/info`. Flat shape only — see `CapabilityConfig.rates`. */
6231
6289
  rates?: CapabilityRate[];
6290
+ /** Runtime bound in seconds. Flat shape only — see `CapabilityConfig.maxRuntimeSeconds`. */
6291
+ maxRuntimeSeconds?: number;
6232
6292
  /** Payment methods this DVM accepts. Default: derived from configured rails — adds "cashu" when `mints` is set, "x402" when `x402` is set, "tempo" when `tempo` is set. */
6233
6293
  paymentMethods?: PaymentMethod[];
6234
6294
  /** x402 stablecoin payment configuration (provider-side). */
@@ -6241,6 +6301,8 @@ interface DVMConfig<State = Record<string, unknown>, InputSchema extends ZodLike
6241
6301
  * omitting it leaves callers on per-call payment. See {@link CreditConfig}.
6242
6302
  */
6243
6303
  credit?: CreditConfig;
6304
+ /** Cashu refund-locktime floors. See {@link CashuConfig}. */
6305
+ cashu?: CashuConfig;
6244
6306
  /**
6245
6307
  * Register DVM-scoped non-protocol routes on the descriptor's Hono sub-app
6246
6308
  * Invoked once per `host.mount(dvm)` against the sub-app that
@@ -6330,6 +6392,8 @@ interface DVMDescriptor<State = Record<string, unknown>, InputSchema extends Zod
6330
6392
  * `credit` block — the presence check IS the opt-in gate.
6331
6393
  */
6332
6394
  readonly credit?: ResolvedCreditConfig;
6395
+ /** Cashu refund-locktime floors, present iff `configureDVM` was given a `cashu` block. */
6396
+ readonly cashu?: ResolvedCashuConfig;
6333
6397
  /**
6334
6398
  * Descriptor-level auth scheme. Set when `configureDVM` was
6335
6399
  * called with `auth: secp256k1Auth(...)` — the SDK fires this on
@@ -6362,4 +6426,4 @@ declare class StepCache {
6362
6426
  static deserialize(records: StepRecord[]): StepCache;
6363
6427
  }
6364
6428
 
6365
- export { X402_EXACT_SCHEME as $, type ApprovalContent as A, type SignedRequestDomain as B, type Currency as C, type DVMConfig as D, SignedRequestError as E, type SignedRequestFailure as F, type SignedRequestReplayStore as G, type SignedRequestSignOpts as H, type IncomingMessage as I, type JobCost as J, type KVStore as K, type Logger as L, type SignedRequestStatementHeader as M, type SignedRequestVerifier as N, type UpfrontPayment as O, type PaymentContent as P, type QuoteConfig as Q, type ResolvedCreditConfig as R, type SDKJobContext as S, createSignedRequestVerifier as T, UnsupportedCurrencyError as U, isZodSchema as V, signedRequestStatementHeader as W, validateCurrency as X, type JsonValue as Y, type ZodLike as Z, X402_BATCH_SETTLEMENT_SCHEME as _, type DVMDescriptor as a, exactEvmAuthorization as a$, type DrawFundingReceipt as a0, type FundingReceipt as a1, type JobReceipt as a2, type MessageType as a3, type X402Version as a4, type MppxCredential as a5, type PaymentRequired as a6, type Message as a7, type MppxChallenge as a8, type ReceiptCredit as a9, type StepRecord as aA, type TextContent as aB, type UnsignedDrainReceipt as aC, type UnsignedDrawFundingReceipt as aD, type UnsignedFundingReceipt as aE, type UnsignedJobReceipt as aF, type VerifyResponse as aG, type WorkingContent as aH, type X402Config$1 as aI, type X402ResponseBody as aJ, type X402SelfRelayRpcFailureReason as aK, X402_DEFAULT_NETWORK as aL, X402_V1_VERSION as aM, X402_VERSION as aN, buildPaymentRequiredV2 as aO, buildPaymentRequirements as aP, caip2ToX402Network as aQ, canonicalRequestPath as aR, canonicaliseForSigning as aS, canonicalize as aT, chainIdFromCaip2 as aU, computeResultHash as aV, decodePayment as aW, decodePaymentRequiredHeader as aX, encodePayment as aY, encodePaymentRequiredHeader as aZ, encodeSettleResponseHeader as a_, type DrainReceipt as aa, type X402Wallet as ab, type PaymentRequirementsV1 as ac, type PaymentRequirementsV2 as ad, type BuildPaymentRequirementsOpts as ae, type CapabilityDescriptor as af, type CashuMode as ag, type CompleteContent as ah, type DrainReceiptEvent as ai, type ExactEvmPayload as aj, type ExactEvmPayloadAuthorization as ak, type FundingMethod as al, type MessageFrom as am, type PaymentPayload as an, type PaymentPayloadV1 as ao, type PaymentPayloadV2 as ap, type PaymentRequestContent as aq, type PaymentRequiredV2 as ar, type PaymentRequirements as as, type PromptContent as at, RAIL_REFUNDABLE as au, type ReceiptOutcome as av, type ReceiptPayment as aw, type ResourceInfo as ax, type SettleResponse as ay, StepCache as az, type ArtifactContent as b, type X402SettlementStatus as b$, isArtifactMessage as b0, isCancelMessage as b1, isCompleteMessage as b2, isDrainReceipt as b3, isDrawFundingReceipt as b4, isFundingReceipt as b5, isPaymentRequestMessage as b6, isPromptMessage as b7, isSignedJobReceipt as b8, isTextMessage as b9, type NonChannelBitcoinRail as bA, PayoutReporter as bB, PostgresTempoSessionStore as bC, RevenueReporter as bD, SIGNED_ENVELOPE_FIELDS as bE, SIGNED_ENVELOPE_TYPES as bF, type X402TrackedChannel as bG, _testing as bH, createDefaultReplayStore as bI, depleteLots as bJ, fifoOrder as bK, inKindDrawMsats as bL, isInKindDepletion as bM, isNonChannelBitcoinRail as bN, lotOwedSats as bO, netOwedSats as bP, wrapMppx as bQ, type CreditLedgerQuerier as bR, type CreditDrainEnqueue as bS, HostedSettlementReportObligations as bT, type DVMAuthScheme as bU, type CreditLedgerLike as bV, type X402RefundSettlementGate as bW, type CreditSnapshot as bX, type CreditDrawRefundArgs as bY, type CreditDrawRefundResult as bZ, type DrawResult as b_, isWorkingMessage as ba, paymentRequiredV2FromV1 as bb, signDrainReceipt as bc, signDrawFundingReceipt as bd, signFundingReceipt as be, signReceipt as bf, usdcContractByCaip2 as bg, usdcContractFor as bh, usdcDomainNameFor as bi, usdcDomainVersionFor as bj, verifyDrainReceipt as bk, verifyDrawFundingReceipt as bl, verifyFundingReceipt as bm, verifyReceipt as bn, x402NetworkToCaip2 as bo, type X402ExactVersionSupport as bp, type X402Receipt as bq, type TransactionalPayoutHook as br, type CashuMeltCompleted as bs, type CreditDepositPayload as bt, type CreditDrainPayload as bu, type FundingLot as bv, type LotDebit as bw, type LotDepletion as bx, type MppxServer as by, NON_CHANNEL_BITCOIN_RAILS as bz, type CancelContent as c, clientCompatibilityMiddleware as c$, type X402UnresolvedRefund as c0, type GrownDrawResult as c1, type DrawResolution as c2, type FundingRecord as c3, type CreditFundingEvidence as c4, type CreditInvoiceRecord as c5, type InvoiceSettlement as c6, type BlockedInvoiceCursor as c7, type InvoiceReconciliation as c8, type InvoiceWriteOff as c9, type CreditLedgerErrorCode as cA, type CreditLedgerErrorDetails as cB, type CreditLedgerPool as cC, type CreditStatus as cD, DRAIN_DELIVERY_RESERVE_SATS as cE, DVM_PROTOCOL_VERSION as cF, type DrainConflictReason as cG, type DrawRailValue as cH, type DrawStatus as cI, type HostedTempoCloseReportWriteOff as cJ, type JobCostReportPayload as cK, type JobTerminalReportPayload as cL, PostgresX402ChannelStorage as cM, type ReplayStoreBackend as cN, type RevenueSkippedNoRailPayload as cO, type RevenueSkippedNoRailReason as cP, type Secp256k1AuthOpts as cQ, type TempoDrainDecision as cR, type TempoDrainDecisionArgs as cS, type TempoDrainDecisionResult as cT, type TempoDrainHoldReason as cU, type X402ChannelStorageOpts as cV, type X402RelayLockHolder as cW, type X402RelaySubmissionLock as cX, X402RelaySubmissionLockError as cY, allocateDrawValue as cZ, clientCompatibilityAttributes as c_, type DrawRecord as ca, type StalePendingDrawCursor as cb, type TempoCreditLossEvidence as cc, type TempoCreditLoss as cd, type X402CreditLossEvidence as ce, type X402CreditLoss as cf, type DrainMethod as cg, type DrainRequestResult as ch, type BitcoinDepositLiability as ci, type CreditDrainRecord as cj, type ChannelDrainCursor as ck, type DrainWriteOff as cl, type DrainTransitionResult as cm, type DrainReleaseResult as cn, type DrainFulfilment as co, HostingCleanupFence as cp, CLIENT_COMPATIBILITY_HEADERS as cq, type ClientCompatibility as cr, type ClientCompatibilityEnv as cs, type ClientCompatibilityGate as ct, type ClientCompatibilityRequirement as cu, type ClientSemVer as cv, type CreditFundingBasis as cw, type CreditInvoiceStatus as cx, CreditLedger as cy, CreditLedgerError as cz, type CanonicalEnvelope as d, clientUpgradeRequired as d0, parseClientCapabilities as d1, parseClientCompatibility as d2, parseDvmClient as d3, parseProtocolVersion as d4, requireClientCompatibility as d5, retryHostedTempoCloseReport as d6, secp256k1Auth as d7, signedRequestInput as d8, writeOffHostedTempoCloseReport as d9, type HostedIntent as da, type X402SettlementIntent as db, type HostedFundingReservation as dc, type X402SettlementCursor as dd, type X402SettlementWriteOff as de, type X402FacilitatorAuth as df, type X402BatchSettlementConfig as dg, type X402PayoutObserver as dh, type CreditDepositEnqueue as di, type X402SettlementReconciliationReason as dj, type CreditDrawReleaseEnqueue as dk, type CapabilityRate as e, type CreateSignedRequestVerifierOpts as f, type CreditConfig as g, type CreditView as h, DEFAULT_CREDIT_MAX as i, DEFAULT_CREDIT_MIN as j, DEFAULT_CREDIT_TTL_SECONDS as k, DEFAULT_JOB_RETENTION_DAYS as l, type DVMRouteContext as m, type InputType as n, InvalidCurrencyError as o, type PaymentMethod as p, type PriceValue as q, type ProgressContent as r, type PromptOpts as s, type QuoteContext as t, type QuoteResult as u, type ResponseContent as v, type SDKPaymentRequestOpts as w, SIGNED_REQUEST_AUTH_ID as x, SIGNED_REQUEST_STATEMENT_VERSION as y, type SignedRequestAudience as z };
6429
+ export { type JsonValue as $, type ApprovalContent as A, SIGNED_REQUEST_STATEMENT_VERSION as B, type Currency as C, type DVMConfig as D, type SignedRequestAudience as E, type SignedRequestDomain as F, SignedRequestError as G, type SignedRequestFailure as H, type IncomingMessage as I, type JobCost as J, type KVStore as K, type Logger as L, type SignedRequestReplayStore as M, type SignedRequestSignOpts as N, type SignedRequestStatementHeader as O, type PaymentContent as P, type QuoteConfig as Q, type ResolvedCashuConfig as R, type SDKJobContext as S, type SignedRequestVerifier as T, UnsupportedCurrencyError as U, type UpfrontPayment as V, createSignedRequestVerifier as W, isZodSchema as X, signedRequestStatementHeader as Y, type ZodLike as Z, validateCurrency as _, type DVMDescriptor as a, encodePaymentRequiredHeader as a$, X402_BATCH_SETTLEMENT_SCHEME as a0, X402_EXACT_SCHEME as a1, type DrawFundingReceipt as a2, type FundingReceipt as a3, type JobReceipt as a4, type MessageType as a5, type X402Version as a6, type MppxCredential as a7, type PaymentRequired as a8, type Message as a9, type SettleResponse as aA, StepCache as aB, type StepRecord as aC, type TextContent as aD, type UnsignedDrainReceipt as aE, type UnsignedDrawFundingReceipt as aF, type UnsignedFundingReceipt as aG, type UnsignedJobReceipt as aH, type VerifyResponse as aI, type WorkingContent as aJ, type X402Config$1 as aK, type X402ResponseBody as aL, type X402SelfRelayRpcFailureReason as aM, X402_DEFAULT_NETWORK as aN, X402_V1_VERSION as aO, X402_VERSION as aP, buildPaymentRequiredV2 as aQ, buildPaymentRequirements as aR, caip2ToX402Network as aS, canonicalRequestPath as aT, canonicaliseForSigning as aU, canonicalize as aV, chainIdFromCaip2 as aW, computeResultHash as aX, decodePayment as aY, decodePaymentRequiredHeader as aZ, encodePayment as a_, type MppxChallenge as aa, type ReceiptCredit as ab, type DrainReceipt as ac, type X402Wallet as ad, type PaymentRequirementsV1 as ae, type PaymentRequirementsV2 as af, type BuildPaymentRequirementsOpts as ag, type CapabilityDescriptor as ah, type CashuMode as ai, type CompleteContent as aj, type DrainReceiptEvent as ak, type ExactEvmPayload as al, type ExactEvmPayloadAuthorization as am, type FundingMethod as an, type MessageFrom as ao, type PaymentPayload as ap, type PaymentPayloadV1 as aq, type PaymentPayloadV2 as ar, type PaymentRequestContent as as, type PaymentRequiredV2 as at, type PaymentRequirements as au, type PromptContent as av, RAIL_REFUNDABLE as aw, type ReceiptOutcome as ax, type ReceiptPayment as ay, type ResourceInfo as az, type ArtifactContent as b, type CreditDrawRefundResult as b$, encodeSettleResponseHeader as b0, exactEvmAuthorization as b1, isArtifactMessage as b2, isCancelMessage as b3, isCompleteMessage as b4, isDrainReceipt as b5, isDrawFundingReceipt as b6, isFundingReceipt as b7, isPaymentRequestMessage as b8, isPromptMessage as b9, type MppxServer as bA, NON_CHANNEL_BITCOIN_RAILS as bB, type NonChannelBitcoinRail as bC, PayoutReporter as bD, PostgresTempoSessionStore as bE, RevenueReporter as bF, SIGNED_ENVELOPE_FIELDS as bG, SIGNED_ENVELOPE_TYPES as bH, type X402TrackedChannel as bI, _testing as bJ, createDefaultReplayStore as bK, depleteLots as bL, fifoOrder as bM, inKindDrawMsats as bN, isInKindDepletion as bO, isNonChannelBitcoinRail as bP, lotOwedSats as bQ, netOwedSats as bR, wrapMppx as bS, type CreditLedgerQuerier as bT, type CreditDrainEnqueue as bU, HostedSettlementReportObligations as bV, type DVMAuthScheme as bW, type CreditLedgerLike as bX, type X402RefundSettlementGate as bY, type CreditSnapshot as bZ, type CreditDrawRefundArgs as b_, isSignedJobReceipt as ba, isTextMessage as bb, isWorkingMessage as bc, paymentRequiredV2FromV1 as bd, signDrainReceipt as be, signDrawFundingReceipt as bf, signFundingReceipt as bg, signReceipt as bh, usdcContractByCaip2 as bi, usdcContractFor as bj, usdcDomainNameFor as bk, usdcDomainVersionFor as bl, verifyDrainReceipt as bm, verifyDrawFundingReceipt as bn, verifyFundingReceipt as bo, verifyReceipt as bp, x402NetworkToCaip2 as bq, type X402ExactVersionSupport as br, type X402Receipt as bs, type TransactionalPayoutHook as bt, type CashuMeltCompleted as bu, type CreditDepositPayload as bv, type CreditDrainPayload as bw, type FundingLot as bx, type LotDebit as by, type LotDepletion as bz, type CancelContent as c, allocateDrawValue as c$, type DrawResult as c0, type X402SettlementStatus as c1, type X402UnresolvedRefund as c2, type GrownDrawResult as c3, type DrawResolution as c4, type FundingRecord as c5, type CreditFundingEvidence as c6, type CreditInvoiceRecord as c7, type InvoiceSettlement as c8, type BlockedInvoiceCursor as c9, CreditLedger as cA, CreditLedgerError as cB, type CreditLedgerErrorCode as cC, type CreditLedgerErrorDetails as cD, type CreditLedgerPool as cE, type CreditStatus as cF, DRAIN_DELIVERY_RESERVE_SATS as cG, DVM_PROTOCOL_VERSION as cH, type DrainConflictReason as cI, type DrawRailValue as cJ, type DrawStatus as cK, type HostedTempoCloseReportWriteOff as cL, type JobCostReportPayload as cM, type JobTerminalReportPayload as cN, PostgresX402ChannelStorage as cO, type ReplayStoreBackend as cP, type RevenueSkippedNoRailPayload as cQ, type RevenueSkippedNoRailReason as cR, type Secp256k1AuthOpts as cS, type TempoDrainDecision as cT, type TempoDrainDecisionArgs as cU, type TempoDrainDecisionResult as cV, type TempoDrainHoldReason as cW, type X402ChannelStorageOpts as cX, type X402RelayLockHolder as cY, type X402RelaySubmissionLock as cZ, X402RelaySubmissionLockError as c_, type InvoiceReconciliation as ca, type InvoiceWriteOff as cb, type DrawRecord as cc, type StalePendingDrawCursor as cd, type TempoCreditLossEvidence as ce, type TempoCreditLoss as cf, type X402CreditLossEvidence as cg, type X402CreditLoss as ch, type DrainMethod as ci, type DrainRequestResult as cj, type BitcoinDepositLiability as ck, type CreditDrainRecord as cl, type ChannelDrainCursor as cm, type DrainWriteOff as cn, type DrainTransitionResult as co, type DrainReleaseResult as cp, type DrainFulfilment as cq, HostingCleanupFence as cr, CLIENT_COMPATIBILITY_HEADERS as cs, type ClientCompatibility as ct, type ClientCompatibilityEnv as cu, type ClientCompatibilityGate as cv, type ClientCompatibilityRequirement as cw, type ClientSemVer as cx, type CreditFundingBasis as cy, type CreditInvoiceStatus as cz, type CanonicalEnvelope as d, clientCompatibilityAttributes as d0, clientCompatibilityMiddleware as d1, clientUpgradeRequired as d2, parseClientCapabilities as d3, parseClientCompatibility as d4, parseDvmClient as d5, parseProtocolVersion as d6, requireClientCompatibility as d7, retryHostedTempoCloseReport as d8, secp256k1Auth as d9, signedRequestInput as da, writeOffHostedTempoCloseReport as db, type HostedIntent as dc, type X402SettlementIntent as dd, type HostedFundingReservation as de, type X402SettlementCursor as df, type X402SettlementWriteOff as dg, type X402FacilitatorAuth as dh, type X402BatchSettlementConfig as di, type X402PayoutObserver as dj, type CreditDepositEnqueue as dk, type X402SettlementReconciliationReason as dl, type CreditDrawReleaseEnqueue as dm, type CapabilityRate as e, type CashuConfig as f, type CreateSignedRequestVerifierOpts as g, type CreditConfig as h, type CreditView as i, DEFAULT_CREDIT_MAX as j, DEFAULT_CREDIT_MIN as k, DEFAULT_CREDIT_TTL_SECONDS as l, DEFAULT_JOB_RETENTION_DAYS as m, type DVMRouteContext as n, type InputType as o, InvalidCurrencyError as p, type PaymentMethod as q, type PriceValue as r, type ProgressContent as s, type PromptOpts as t, type QuoteContext as u, type QuoteResult as v, type ResolvedCreditConfig as w, type ResponseContent as x, type SDKPaymentRequestOpts as y, SIGNED_REQUEST_AUTH_ID as z };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PostgresTempoSessionStore,
3
3
  assertMonotonicTransition
4
- } from "./chunk-ORBWKYDE.js";
4
+ } from "./chunk-34H4ZKBM.js";
5
5
  import "./chunk-YG7G4DPZ.js";
6
6
  import "./chunk-COYKJRMM.js";
7
- import "./chunk-EIDRCGTY.js";
7
+ import "./chunk-INYFUPXV.js";
8
8
  import "./chunk-ALTE7I6C.js";
9
9
  export {
10
10
  PostgresTempoSessionStore,
@@ -1,6 +1,6 @@
1
- import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-B_hOQS36.js';
2
- import { a2 as JobReceipt, a7 as Message, a3 as MessageType, K as KVStore, L as Logger, v as ResponseContent, P as PaymentContent, S as SDKJobContext } from '../step-cache-Bezn-_ZL.js';
3
- import { c as StreamableJobStore, R as ReceiptIssuingStore, J as JobRecord, d as RequestIdClaim, e as RequestIdClaimResult, f as JobRetentionCursor, O as OutgoingMessage, A as AppendOutgoingOptions, P as PaymentCreditDelta, V as VerifyAndCreditResult, g as JobCounters } from '../job-store-CgXT79tS.js';
1
+ import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-sUCPlA1J.js';
2
+ import { a4 as JobReceipt, a9 as Message, a5 as MessageType, K as KVStore, L as Logger, x as ResponseContent, P as PaymentContent, S as SDKJobContext } from '../step-cache-B83Y9T9p.js';
3
+ import { c as StreamableJobStore, R as ReceiptIssuingStore, J as JobRecord, d as RequestIdClaim, e as RequestIdClaimResult, f as JobRetentionCursor, O as OutgoingMessage, A as AppendOutgoingOptions, P as PaymentCreditDelta, V as VerifyAndCreditResult, g as JobCounters } from '../job-store-Dy-ogco6.js';
4
4
  import 'hono';
5
5
  import 'mppx';
6
6
  import '@x402/core/server';
@@ -1,4 +1,4 @@
1
- import { C as Currency } from './step-cache-Bezn-_ZL.js';
1
+ import { C as Currency } from './step-cache-B83Y9T9p.js';
2
2
 
3
3
  /**
4
4
  * Thrown by `fiatToSatsCeil` / `satsToFiat` when the supplied `ratePerBtc` is
@@ -3,11 +3,11 @@ import {
3
3
  generateX402PrivateKey,
4
4
  getX402Balance,
5
5
  resolveX402Asset
6
- } from "./chunk-WMGXJQI3.js";
6
+ } from "./chunk-5RGZN6WQ.js";
7
7
  import {
8
8
  verifyX402Payment
9
- } from "./chunk-VKFR5PCW.js";
10
- import "./chunk-3KRFFLAT.js";
9
+ } from "./chunk-OTNHKRHA.js";
10
+ import "./chunk-C65P6MGZ.js";
11
11
  import {
12
12
  X402_DEFAULT_FACILITATOR,
13
13
  X402_DEFAULT_NETWORK,
@@ -26,7 +26,7 @@ import {
26
26
  paymentRequiredV2FromV1,
27
27
  usdcContractByCaip2,
28
28
  x402NetworkToCaip2
29
- } from "./chunk-62FI3NJF.js";
29
+ } from "./chunk-NUDHO4HV.js";
30
30
  import "./chunk-FUJ36YDV.js";
31
31
  import {
32
32
  X402_NETWORKS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvmkit/sdk",
3
- "version": "0.17.1",
3
+ "version": "0.19.0",
4
4
  "description": "SDK for building Digital Vending Machines: pay-per-use HTTPS services AI agents can find, pay, and call with no account or API key",
5
5
  "author": "DVM Technologies Ltd",
6
6
  "keywords": [