@dvmkit/sdk 0.7.0-rc.4 → 0.7.0-rc.5

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 (51) hide show
  1. package/dist/{chunk-5WOKIGLM.js → chunk-3NVM4WPI.js} +21 -18
  2. package/dist/{chunk-CYTV76CG.js → chunk-6RYCZLCK.js} +1 -1
  3. package/dist/{chunk-3CNYUUD7.js → chunk-BDHJVTWA.js} +1 -1
  4. package/dist/{chunk-UEYUFBSV.js → chunk-BIZR5ORK.js} +2 -2
  5. package/dist/{chunk-O3JEEW5V.js → chunk-BQP3LU2O.js} +1 -1
  6. package/dist/{chunk-AE2ITUMA.js → chunk-FOJKZ4E7.js} +1 -1
  7. package/dist/{chunk-WIQLTSJY.js → chunk-FXDQMJQ2.js} +18 -0
  8. package/dist/{chunk-76W5MYFF.js → chunk-GDCIHJAR.js} +1 -1
  9. package/dist/{chunk-ARGYJ7SB.js → chunk-GKIOZCL7.js} +1 -1
  10. package/dist/{chunk-LZHBNR5C.js → chunk-HG2CZPRJ.js} +1 -1
  11. package/dist/{chunk-RBCHIOVB.js → chunk-JUEEUV5X.js} +1 -1
  12. package/dist/{chunk-C6YFACIM.js → chunk-KYCLHWKO.js} +1 -1
  13. package/dist/{chunk-XYLF33BJ.js → chunk-LQQ6H4UB.js} +1 -1
  14. package/dist/{chunk-H2XKINRX.js → chunk-MYJOV4R4.js} +1 -1
  15. package/dist/{chunk-MU3UX5M4.js → chunk-NUPEAWRM.js} +1 -1
  16. package/dist/{chunk-DY2MIZ6E.js → chunk-QTH7CIA3.js} +1 -1
  17. package/dist/{chunk-KIPJRLGP.js → chunk-SX4WCPW7.js} +1 -1
  18. package/dist/{chunk-EN7VI7T5.js → chunk-WP7UX6RF.js} +2 -2
  19. package/dist/{chunk-QFRU6W34.js → chunk-X5RY2G3C.js} +1 -1
  20. package/dist/{chunk-WNX22IND.js → chunk-XEOTTFLH.js} +1 -1
  21. package/dist/{chunk-MCIIDEXH.js → chunk-YK54BJ2L.js} +1 -1
  22. package/dist/{content-retention-ChFSSVO0.d.ts → content-retention-z1fRPIkt.d.ts} +1 -1
  23. package/dist/{credit-ledger-4ZIL7IX2.js → credit-ledger-SW4BGMNH.js} +3 -3
  24. package/dist/{credit-menu-D7lF-100.d.ts → credit-menu-CJl2Ysc-.d.ts} +7 -4
  25. package/dist/{fx-4TFUkedZ.d.ts → fx-Cin14QvX.d.ts} +1 -1
  26. package/dist/index.d.ts +5 -5
  27. package/dist/index.js +4 -4
  28. package/dist/internal/caller.d.ts +6 -6
  29. package/dist/internal/caller.js +6 -6
  30. package/dist/internal/server.d.ts +7 -7
  31. package/dist/internal/server.js +19 -19
  32. package/dist/{job-store-DkfNE9sv.d.ts → job-store-BtdD_xt1.d.ts} +1 -1
  33. package/dist/{lightning-backend-C3Gf1XpP.d.ts → lightning-backend-BYTODXJ2.d.ts} +1 -1
  34. package/dist/{memory-credit-ledger-HCECP6R7.js → memory-credit-ledger-E4C3VQE4.js} +4 -4
  35. package/dist/{mpp-setup-OL22TIDP.js → mpp-setup-BYKGEYFA.js} +2 -2
  36. package/dist/{payout-reporter-WSLDLMKK.js → payout-reporter-KOGHXJH4.js} +2 -2
  37. package/dist/{postgres-consumed-credential-store-7ONNOW37.js → postgres-consumed-credential-store-EZ4KETWH.js} +1 -1
  38. package/dist/{postgres-job-store-36GJGQMB.js → postgres-job-store-E6AUHNKB.js} +2 -2
  39. package/dist/{postgres-replay-store-JJ6XPVIU.js → postgres-replay-store-GIYZS4LJ.js} +2 -2
  40. package/dist/{pricing-FM6WVLCR.js → pricing-DG5IJ5QF.js} +3 -3
  41. package/dist/{revenue-reporter-CAWZMYQK.js → revenue-reporter-E56J3NZK.js} +2 -2
  42. package/dist/server/index.d.ts +10 -10
  43. package/dist/server/index.js +25 -25
  44. package/dist/{step-cache-DDTwd4SK.d.ts → step-cache-C6lMgDH8.d.ts} +7 -0
  45. package/dist/{tempo-charge-store-MVZH6CEB.js → tempo-charge-store-WTBIX2JX.js} +2 -2
  46. package/dist/{tempo-session-store-CCCG4HL7.js → tempo-session-store-AWIFUAA6.js} +3 -3
  47. package/dist/testing/index.d.ts +3 -3
  48. package/dist/testing/index.js +5 -5
  49. package/dist/{usd-DkRy9nfU.d.ts → usd-5v1FQ7Mn.d.ts} +1 -1
  50. package/dist/{x402-RHVRGUUI.js → x402-BN26TQZ6.js} +3 -3
  51. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
1
  import { FacilitatorConfig } from '@x402/core/server';
2
- import { ak as PaymentPayload, a9 as PaymentRequirementsV1, aa as PaymentRequirementsV2, aE as X402Config, av as SettleResponse, aC as VerifyResponse, bi as X402ExactVersionSupport, bj as X402Receipt, bk as TransactionalPayoutHook, bl as CashuMeltCompleted } from '../step-cache-DDTwd4SK.js';
3
- export { bm as CreditDepositPayload, bn as CreditDrainPayload, bo as FundingLot, bp as LotDebit, bq as LotDepletion, br as MppxServer, bs as NON_CHANNEL_BITCOIN_RAILS, bt as NonChannelBitcoinRail, bu as PayoutReporter, bv as PostgresTempoSessionStore, bw as RevenueReporter, bx as SIGNED_ENVELOPE_FIELDS, by as SIGNED_ENVELOPE_TYPES, bz as X402TrackedChannel, bA as _testing, bB as createDefaultReplayStore, bC as depleteLots, bD as fifoOrder, bE as inKindDrawMsats, bF as isInKindDepletion, bG as isNonChannelBitcoinRail, bH as lotOwedSats, bI as netOwedSats, bJ as wrapMppx } from '../step-cache-DDTwd4SK.js';
2
+ import { ak as PaymentPayload, a9 as PaymentRequirementsV1, aa as PaymentRequirementsV2, aE as X402Config, av as SettleResponse, aC as VerifyResponse, bi as X402ExactVersionSupport, bj as X402Receipt, bk as TransactionalPayoutHook, bl as CashuMeltCompleted } from '../step-cache-C6lMgDH8.js';
3
+ export { bm as CreditDepositPayload, bn as CreditDrainPayload, bo as FundingLot, bp as LotDebit, bq as LotDepletion, br as MppxServer, bs as NON_CHANNEL_BITCOIN_RAILS, bt as NonChannelBitcoinRail, bu as PayoutReporter, bv as PostgresTempoSessionStore, bw as RevenueReporter, bx as SIGNED_ENVELOPE_FIELDS, by as SIGNED_ENVELOPE_TYPES, bz as X402TrackedChannel, bA as _testing, bB as createDefaultReplayStore, bC as depleteLots, bD as fifoOrder, bE as inKindDrawMsats, bF as isInKindDepletion, bG as isNonChannelBitcoinRail, bH as lotOwedSats, bI as netOwedSats, bJ as wrapMppx } from '../step-cache-C6lMgDH8.js';
4
4
  import { Hono } from 'hono';
5
5
  import { Env, BlankSchema } from 'hono/types';
6
6
  import { Pool } from 'pg';
7
7
  export { Pool } from 'pg';
8
8
  import { g as getWallet } from '../wallet-Dwjs5n_M.js';
9
- import { C as ConsumedCredentialStore, L as LockPubkeyStateLoader } from '../credit-menu-D7lF-100.js';
10
- export { A as AccumulatorPool, a as AppEnv, b as CreditFundingReport, D as DEFAULT_LOCK_PUBKEY_GRACE_SECONDS, F as FiatDenomination, c as FiatDenominationFailure, d as FundOnlyRequest, I as IncomingPaymentOpts, J as JobCancelledError, e as LockPubkeyPool, f as LockPubkeyState, M as MintHealthTracker, P as PAYMENT_PROOF_KEYS, g as PaymentErrorCode, h as PaymentErrorDetail, i as PaymentInfo, j as PostgresTempoChargeStore, R as ReporterBannerOpts, k as ResolvedFx, l as RevenueBootCheckOpts, S as SDKServerOpts, m as ServerJob, n as ShortPayForfeit, T as TempoChannelReport, o as TempoObserverHealth, p as TempoSessionChannelMismatchError, U as UpfrontPaymentOpts, V as VerifiedIncomingPayment, q as VerifyIncomingSnapshot, X as X402BatchChannelObservation, r as X402FacilitatorHealth, s as X402SettlementEvidenceOutcome, t as X402SettlementRepair, u as X402SettlementRepairRefusal, v as X402SettlementRepaired, w as X402WedgedSettlement, x as X402WedgedSettlementPage, y as X402_BATCH_SETTLEMENT_MAINNET_NETWORK, z as abortJob, B as activePubkeySet, E as applyPaymentInfoToJob, G as assertRevenueReporterReady, H as buildPaymentErrorResponse, K as clearAccumulatorForDvm, N as createDVMServer, O as creditDepositPayload, Q as derivedFundCreditId, W as devModeSkipsPaymentVerification, Y as fromJobRecord, Z as fundedMicroFor, _ as hasPaymentProof, $ as hashLockKey, a0 as implicitCreditId, a1 as initLockPubkeyTable, a2 as initWalletAccumulatorTable, a3 as insertAccumulatorRows, a4 as isDerivedCreditId, a5 as isTerminal, a6 as isYieldMessage, a7 as issueUpfrontChallenges, a8 as loadLockPubkeyState, a9 as msatsToFiatMicro, aa as paymentErrorBody, ab as pinAskFiat, ac as priceFiatMicro, ad as processIncomingPayment, ae as providerMessage, af as pruneRetired, ag as repairX402ExactSettlementEffect, ah as resolveFxSnapshot, ai as resolvePriceFiat, aj as revenueReporterBannerState, ak as rotateLockPubkey, al as seedLockPubkeyState, am as toCreditTerms, an as toJobRecord, ao as unknownRouteNotFound, ap as verifyIncomingPayment, aq as verifyTempoSessionManagementCredential, ar as verifyUpfrontPayment, as as x402RequiredUsdcMicro, at as x402SettledShare } from '../credit-menu-D7lF-100.js';
11
- export { O as OutgoingMessage, S as StaleJobReapable, i as isStaleJobReapable } from '../job-store-DkfNE9sv.js';
9
+ import { C as ConsumedCredentialStore, L as LockPubkeyStateLoader } from '../credit-menu-CJl2Ysc-.js';
10
+ export { A as AccumulatorPool, a as AppEnv, b as CreditFundingReport, D as DEFAULT_LOCK_PUBKEY_GRACE_SECONDS, F as FiatDenomination, c as FiatDenominationFailure, d as FundOnlyRequest, I as IncomingPaymentOpts, J as JobCancelledError, e as LockPubkeyPool, f as LockPubkeyState, M as MintHealthTracker, P as PAYMENT_PROOF_KEYS, g as PaymentErrorCode, h as PaymentErrorDetail, i as PaymentInfo, j as PostgresTempoChargeStore, R as ReporterBannerOpts, k as ResolvedFx, l as RevenueBootCheckOpts, S as SDKServerOpts, m as ServerJob, n as ShortPayForfeit, T as TempoChannelReport, o as TempoObserverHealth, p as TempoSessionChannelMismatchError, U as UpfrontPaymentOpts, V as VerifiedIncomingPayment, q as VerifyIncomingSnapshot, X as X402BatchChannelObservation, r as X402FacilitatorHealth, s as X402SettlementEvidenceOutcome, t as X402SettlementRepair, u as X402SettlementRepairRefusal, v as X402SettlementRepaired, w as X402WedgedSettlement, x as X402WedgedSettlementPage, y as X402_BATCH_SETTLEMENT_MAINNET_NETWORK, z as abortJob, B as activePubkeySet, E as applyPaymentInfoToJob, G as assertRevenueReporterReady, H as buildPaymentErrorResponse, K as clearAccumulatorForDvm, N as createDVMServer, O as creditDepositPayload, Q as derivedFundCreditId, W as devModeSkipsPaymentVerification, Y as fromJobRecord, Z as fundedMicroFor, _ as hasPaymentProof, $ as hashLockKey, a0 as implicitCreditId, a1 as initLockPubkeyTable, a2 as initWalletAccumulatorTable, a3 as insertAccumulatorRows, a4 as isDerivedCreditId, a5 as isTerminal, a6 as isYieldMessage, a7 as issueUpfrontChallenges, a8 as loadLockPubkeyState, a9 as msatsToFiatMicro, aa as paymentErrorBody, ab as pinAskFiat, ac as priceFiatMicro, ad as processIncomingPayment, ae as providerMessage, af as pruneRetired, ag as repairX402ExactSettlementEffect, ah as resolveFxSnapshot, ai as resolvePriceFiat, aj as revenueReporterBannerState, ak as rotateLockPubkey, al as seedLockPubkeyState, am as toCreditTerms, an as toJobRecord, ao as unknownRouteNotFound, ap as verifyIncomingPayment, aq as verifyTempoSessionManagementCredential, ar as verifyUpfrontPayment, as as x402RequiredUsdcMicro, at as x402SettledShare } from '../credit-menu-CJl2Ysc-.js';
11
+ export { O as OutgoingMessage, S as StaleJobReapable, i as isStaleJobReapable } from '../job-store-BtdD_xt1.js';
12
12
  import { z } from 'zod';
13
- export { f as LockPubkeyStoreLockPubkey, t as lockPubkeyStoreToLockPubkey } from '../lightning-backend-C3Gf1XpP.js';
13
+ export { f as LockPubkeyStoreLockPubkey, t as lockPubkeyStoreToLockPubkey } from '../lightning-backend-BYTODXJ2.js';
14
14
  import 'mppx';
15
15
  import '@x402/evm/batch-settlement/server';
16
16
  import '@x402/core/types';
17
17
  import 'viem';
18
18
  import '@cashu/cashu-ts';
19
- import '../fx-4TFUkedZ.js';
19
+ import '../fx-Cin14QvX.js';
20
20
 
21
21
  declare function verifyWithFacilitator(payload: PaymentPayload, requirements: PaymentRequirementsV1 | PaymentRequirementsV2, config?: Pick<X402Config, "facilitator" | "facilitatorAuth">, createAuthHeaders?: FacilitatorConfig["createAuthHeaders"] | undefined): Promise<VerifyResponse>;
22
22
  declare function settleWithFacilitator(payload: PaymentPayload, requirements: PaymentRequirementsV1 | PaymentRequirementsV2, config?: Pick<X402Config, "facilitator" | "facilitatorAuth">, createAuthHeaders?: FacilitatorConfig["createAuthHeaders"] | undefined): Promise<SettleResponse>;
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  PostgresTempoSessionStore
3
- } from "../chunk-76W5MYFF.js";
3
+ } from "../chunk-GDCIHJAR.js";
4
4
  import {
5
5
  verifyX402Payment
6
- } from "../chunk-UEYUFBSV.js";
6
+ } from "../chunk-BIZR5ORK.js";
7
7
  import {
8
8
  RevenueReporter
9
- } from "../chunk-MCIIDEXH.js";
9
+ } from "../chunk-YK54BJ2L.js";
10
10
  import {
11
11
  PayoutReporter
12
- } from "../chunk-ARGYJ7SB.js";
12
+ } from "../chunk-GKIOZCL7.js";
13
13
  import {
14
14
  PostgresTempoChargeStore
15
- } from "../chunk-O3JEEW5V.js";
15
+ } from "../chunk-BQP3LU2O.js";
16
16
  import {
17
17
  DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
18
18
  MintHealthTracker,
@@ -64,28 +64,28 @@ import {
64
64
  verifyUpfrontPayment,
65
65
  x402RequiredUsdcMicro,
66
66
  x402SettledShare
67
- } from "../chunk-5WOKIGLM.js";
67
+ } from "../chunk-3NVM4WPI.js";
68
68
  import {
69
69
  _testing,
70
70
  wrapMppx
71
- } from "../chunk-C6YFACIM.js";
71
+ } from "../chunk-KYCLHWKO.js";
72
72
  import {
73
73
  settleWithFacilitator,
74
74
  verifyWithFacilitator
75
- } from "../chunk-WNX22IND.js";
76
- import "../chunk-AE2ITUMA.js";
77
- import "../chunk-RBCHIOVB.js";
75
+ } from "../chunk-XEOTTFLH.js";
76
+ import "../chunk-FOJKZ4E7.js";
77
+ import "../chunk-JUEEUV5X.js";
78
78
  import "../chunk-YG7G4DPZ.js";
79
79
  import {
80
80
  SIGNED_ENVELOPE_FIELDS,
81
81
  SIGNED_ENVELOPE_TYPES,
82
82
  createDefaultReplayStore,
83
83
  humanizeZodError
84
- } from "../chunk-QFRU6W34.js";
84
+ } from "../chunk-X5RY2G3C.js";
85
85
  import {
86
86
  createInstrumentedFetch,
87
87
  isStaleJobReapable
88
- } from "../chunk-H2XKINRX.js";
88
+ } from "../chunk-MYJOV4R4.js";
89
89
  import {
90
90
  JobCancelledError,
91
91
  abortJob,
@@ -97,14 +97,14 @@ import {
97
97
  } from "../chunk-AFV77S4C.js";
98
98
  import {
99
99
  toLockPubkey
100
- } from "../chunk-DY2MIZ6E.js";
100
+ } from "../chunk-QTH7CIA3.js";
101
101
  import "../chunk-62FI3NJF.js";
102
102
  import "../chunk-UKD3R2KU.js";
103
- import "../chunk-KIPJRLGP.js";
103
+ import "../chunk-SX4WCPW7.js";
104
104
  import "../chunk-KXWROQGK.js";
105
105
  import "../chunk-BQJIFRAZ.js";
106
- import "../chunk-MU3UX5M4.js";
107
- import "../chunk-XYLF33BJ.js";
106
+ import "../chunk-NUPEAWRM.js";
107
+ import "../chunk-LQQ6H4UB.js";
108
108
  import {
109
109
  NON_CHANNEL_BITCOIN_RAILS,
110
110
  depleteLots,
@@ -114,10 +114,10 @@ import {
114
114
  isNonChannelBitcoinRail,
115
115
  lotOwedSats,
116
116
  netOwedSats
117
- } from "../chunk-EN7VI7T5.js";
118
- import "../chunk-CYTV76CG.js";
117
+ } from "../chunk-WP7UX6RF.js";
118
+ import "../chunk-6RYCZLCK.js";
119
119
  import "../chunk-BPYMEMQX.js";
120
- import "../chunk-WIQLTSJY.js";
120
+ import "../chunk-FXDQMJQ2.js";
121
121
  import "../chunk-XRLKGCAW.js";
122
122
  import "../chunk-COYKJRMM.js";
123
123
  export {
@@ -1,5 +1,5 @@
1
1
  import { ProofLike } from '@cashu/cashu-ts';
2
- import { a4 as Message, ai as FundingMethod, _ as FundingReceipt, bP as CreditSnapshot, $ as JobReceipt, ax as StepRecord, a0 as MessageType } from './step-cache-DDTwd4SK.js';
2
+ import { a4 as Message, ai as FundingMethod, _ as FundingReceipt, bP as CreditSnapshot, $ as JobReceipt, ax as StepRecord, a0 as MessageType } from './step-cache-C6lMgDH8.js';
3
3
 
4
4
  type JobStatus = "processing" | "completed" | "failed" | "awaiting-input" | "cancelled" | "working";
5
5
  interface JobRecord {
@@ -1,4 +1,4 @@
1
- import { W as JsonValue } from './step-cache-DDTwd4SK.js';
1
+ import { W as JsonValue } from './step-cache-C6lMgDH8.js';
2
2
 
3
3
  declare const lockPubkeyBrand: unique symbol;
4
4
  /**
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  MemoryCreditLedger
3
- } from "./chunk-AE2ITUMA.js";
4
- import "./chunk-EN7VI7T5.js";
5
- import "./chunk-CYTV76CG.js";
3
+ } from "./chunk-FOJKZ4E7.js";
4
+ import "./chunk-WP7UX6RF.js";
5
+ import "./chunk-6RYCZLCK.js";
6
6
  import "./chunk-BPYMEMQX.js";
7
- import "./chunk-WIQLTSJY.js";
7
+ import "./chunk-FXDQMJQ2.js";
8
8
  import "./chunk-COYKJRMM.js";
9
9
  export {
10
10
  MemoryCreditLedger
@@ -19,8 +19,8 @@ import {
19
19
  parseMppMethodsAllowlist,
20
20
  resolveTempoNetwork,
21
21
  wrapMppx
22
- } from "./chunk-C6YFACIM.js";
23
- import "./chunk-WIQLTSJY.js";
22
+ } from "./chunk-KYCLHWKO.js";
23
+ import "./chunk-FXDQMJQ2.js";
24
24
  export {
25
25
  MPPX_HMAC_MISMATCH_REASON,
26
26
  TEMPO_MAINNET_CHAIN_ID,
@@ -3,8 +3,8 @@ import {
3
3
  PAYOUT_SNAPSHOT_INTERVAL_MS,
4
4
  PayoutReporter,
5
5
  PostgresX402BatchStore
6
- } from "./chunk-ARGYJ7SB.js";
7
- import "./chunk-WIQLTSJY.js";
6
+ } from "./chunk-GKIOZCL7.js";
7
+ import "./chunk-FXDQMJQ2.js";
8
8
  import "./chunk-COYKJRMM.js";
9
9
  export {
10
10
  MemoryX402BatchStore,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diagnosticConsole
3
- } from "./chunk-WIQLTSJY.js";
3
+ } from "./chunk-FXDQMJQ2.js";
4
4
  import {
5
5
  withSdkInitLock
6
6
  } from "./chunk-COYKJRMM.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PostgresJobStore
3
- } from "./chunk-RBCHIOVB.js";
3
+ } from "./chunk-JUEEUV5X.js";
4
4
  import "./chunk-AFV77S4C.js";
5
5
  import "./chunk-BQJIFRAZ.js";
6
- import "./chunk-WIQLTSJY.js";
6
+ import "./chunk-FXDQMJQ2.js";
7
7
  import "./chunk-COYKJRMM.js";
8
8
  export {
9
9
  PostgresJobStore
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PostgresReplayStore
3
- } from "./chunk-LZHBNR5C.js";
4
- import "./chunk-WIQLTSJY.js";
3
+ } from "./chunk-HG2CZPRJ.js";
4
+ import "./chunk-FXDQMJQ2.js";
5
5
  import "./chunk-COYKJRMM.js";
6
6
  export {
7
7
  PostgresReplayStore
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildUpfront
3
- } from "./chunk-MU3UX5M4.js";
3
+ } from "./chunk-NUPEAWRM.js";
4
4
  import {
5
5
  DEFAULT_FX_CURRENCIES,
6
6
  DEFAULT_FX_RATE_SOURCE,
@@ -22,8 +22,8 @@ import {
22
22
  satsToFiat,
23
23
  validateCurrency,
24
24
  warmFxSnapshot
25
- } from "./chunk-XYLF33BJ.js";
26
- import "./chunk-WIQLTSJY.js";
25
+ } from "./chunk-LQQ6H4UB.js";
26
+ import "./chunk-FXDQMJQ2.js";
27
27
  export {
28
28
  DEFAULT_FX_CURRENCIES,
29
29
  DEFAULT_FX_RATE_SOURCE,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RevenueReporter
3
- } from "./chunk-MCIIDEXH.js";
4
- import "./chunk-WIQLTSJY.js";
3
+ } from "./chunk-YK54BJ2L.js";
4
+ import "./chunk-FXDQMJQ2.js";
5
5
  import "./chunk-COYKJRMM.js";
6
6
  export {
7
7
  RevenueReporter
@@ -1,15 +1,15 @@
1
- import { ad as CashuMode, bK as CreditDrainEnqueue, bL as HostedSettlementReportObligations, R as ResolvedCreditConfig, bM as DVMAuthScheme, z as SignedRequestDomain, bN as CreditLedgerLike, bO as X402RefundSettlementGate, bP as CreditSnapshot, bQ as DrawResult, bR as X402SettlementStatus, bS as X402UnresolvedRefund, bT as GrownDrawResult, bU as DrawResolution, bV as FundingRecord, _ as FundingReceipt, bW as CreditInvoiceRecord, bX as InvoiceSettlement, bY as BlockedInvoiceCursor, bZ as InvoiceReconciliation, b_ as InvoiceWriteOff, b$ as DrawRecord, c0 as StalePendingDrawCursor, c1 as TempoCreditLossEvidence, c2 as CreditLedgerQuerier, c3 as TempoCreditLoss, c4 as X402CreditLossEvidence, c5 as X402CreditLoss, c6 as DrainMethod, c7 as DrainRequestResult, c8 as BitcoinDepositLiability, bo as FundingLot, c9 as CreditDrainRecord, ca as ChannelDrainCursor, cb as DrainWriteOff, cc as DrainReleaseResult, cd as DrainFulfilment, ce as DrainTransitionResult, cf as HostingCleanupFence, $ as JobReceipt, a4 as Message, K as KVStore, F as SignedRequestReplayStore, Z as ZodLike, a as DVMDescriptor } from '../step-cache-DDTwd4SK.js';
2
- export { cg as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, ch as ClientCompatibility, ci as ClientCompatibilityEnv, cj as ClientCompatibilityGate, ck as ClientCompatibilityRequirement, cl as ClientSemVer, e as CreateSignedRequestVerifierOpts, cm as CreditFundingBasis, cn as CreditInvoiceStatus, co as CreditLedger, cp as CreditLedgerError, cq as CreditLedgerErrorCode, cr as CreditLedgerErrorDetails, cs as CreditLedgerPool, ct as CreditStatus, cu as DRAIN_DELIVERY_RESERVE_SATS, cv as DVM_PROTOCOL_VERSION, cw as DrainConflictReason, cx as DrawRailValue, cy as DrawStatus, cz as JobCostReportPayload, cA as JobTerminalReportPayload, cB as PostgresX402ChannelStorage, cC as ReplayStoreBackend, cD as RevenueSkippedNoRailPayload, cE as RevenueSkippedNoRailReason, w as SIGNED_REQUEST_AUTH_ID, x as SIGNED_REQUEST_STATEMENT_VERSION, cF as Secp256k1AuthOpts, y as SignedRequestAudience, B as SignedRequestError, E as SignedRequestFailure, G as SignedRequestSignOpts, H as SignedRequestStatementHeader, M as SignedRequestVerifier, cG as X402ChannelStorageOpts, cH as X402RelayLockHolder, cI as X402RelaySubmissionLock, cJ as X402RelaySubmissionLockError, cK as allocateDrawValue, cL as clientCompatibilityAttributes, cM as clientCompatibilityMiddleware, cN as clientUpgradeRequired, N as createSignedRequestVerifier, cO as parseClientCapabilities, cP as parseClientCompatibility, cQ as parseDvmClient, cR as parseProtocolVersion, cS as requireClientCompatibility, cT as secp256k1Auth, cU as signedRequestInput, T as signedRequestStatementHeader } from '../step-cache-DDTwd4SK.js';
1
+ import { ad as CashuMode, bK as CreditDrainEnqueue, bL as HostedSettlementReportObligations, R as ResolvedCreditConfig, bM as DVMAuthScheme, z as SignedRequestDomain, bN as CreditLedgerLike, bO as X402RefundSettlementGate, bP as CreditSnapshot, bQ as DrawResult, bR as X402SettlementStatus, bS as X402UnresolvedRefund, bT as GrownDrawResult, bU as DrawResolution, bV as FundingRecord, _ as FundingReceipt, bW as CreditInvoiceRecord, bX as InvoiceSettlement, bY as BlockedInvoiceCursor, bZ as InvoiceReconciliation, b_ as InvoiceWriteOff, b$ as DrawRecord, c0 as StalePendingDrawCursor, c1 as TempoCreditLossEvidence, c2 as CreditLedgerQuerier, c3 as TempoCreditLoss, c4 as X402CreditLossEvidence, c5 as X402CreditLoss, c6 as DrainMethod, c7 as DrainRequestResult, c8 as BitcoinDepositLiability, bo as FundingLot, c9 as CreditDrainRecord, ca as ChannelDrainCursor, cb as DrainWriteOff, cc as DrainReleaseResult, cd as DrainFulfilment, ce as DrainTransitionResult, cf as HostingCleanupFence, $ as JobReceipt, a4 as Message, K as KVStore, F as SignedRequestReplayStore, Z as ZodLike, a as DVMDescriptor } from '../step-cache-C6lMgDH8.js';
2
+ export { cg as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, ch as ClientCompatibility, ci as ClientCompatibilityEnv, cj as ClientCompatibilityGate, ck as ClientCompatibilityRequirement, cl as ClientSemVer, e as CreateSignedRequestVerifierOpts, cm as CreditFundingBasis, cn as CreditInvoiceStatus, co as CreditLedger, cp as CreditLedgerError, cq as CreditLedgerErrorCode, cr as CreditLedgerErrorDetails, cs as CreditLedgerPool, ct as CreditStatus, cu as DRAIN_DELIVERY_RESERVE_SATS, cv as DVM_PROTOCOL_VERSION, cw as DrainConflictReason, cx as DrawRailValue, cy as DrawStatus, cz as JobCostReportPayload, cA as JobTerminalReportPayload, cB as PostgresX402ChannelStorage, cC as ReplayStoreBackend, cD as RevenueSkippedNoRailPayload, cE as RevenueSkippedNoRailReason, w as SIGNED_REQUEST_AUTH_ID, x as SIGNED_REQUEST_STATEMENT_VERSION, cF as Secp256k1AuthOpts, y as SignedRequestAudience, B as SignedRequestError, E as SignedRequestFailure, G as SignedRequestSignOpts, H as SignedRequestStatementHeader, M as SignedRequestVerifier, cG as X402ChannelStorageOpts, cH as X402RelayLockHolder, cI as X402RelaySubmissionLock, cJ as X402RelaySubmissionLockError, cK as allocateDrawValue, cL as clientCompatibilityAttributes, cM as clientCompatibilityMiddleware, cN as clientUpgradeRequired, N as createSignedRequestVerifier, cO as parseClientCapabilities, cP as parseClientCompatibility, cQ as parseDvmClient, cR as parseProtocolVersion, cS as requireClientCompatibility, cT as secp256k1Auth, cU as signedRequestInput, T as signedRequestStatementHeader } from '../step-cache-C6lMgDH8.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-D7lF-100.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-D7lF-100.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-CJl2Ysc-.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-CJl2Ysc-.js';
6
6
  import { Context, Hono } from 'hono';
7
7
  import { z } from 'zod';
8
- import { F as FxFetcher } from '../fx-4TFUkedZ.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-DkfNE9sv.js';
10
- export { a as JobStatus, h as isStreamableJobStore } from '../job-store-DkfNE9sv.js';
11
- import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-ChFSSVO0.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-ChFSSVO0.js';
8
+ import { F as FxFetcher } from '../fx-Cin14QvX.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-BtdD_xt1.js';
10
+ export { a as JobStatus, h as isStreamableJobStore } from '../job-store-BtdD_xt1.js';
11
+ import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-z1fRPIkt.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-z1fRPIkt.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-C3Gf1XpP.js';
20
+ import '../lightning-backend-BYTODXJ2.js';
21
21
  import '@cashu/cashu-ts';
22
22
 
23
23
  /** Lifetime of a per-call implicit credit before the ledger refuses new draws. */
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PostgresReplayStore
3
- } from "../chunk-LZHBNR5C.js";
3
+ } from "../chunk-HG2CZPRJ.js";
4
4
  import {
5
5
  PostgresKVStore
6
6
  } from "../chunk-V5ZRATJH.js";
@@ -18,7 +18,7 @@ import {
18
18
  parseNwcUri,
19
19
  validateX402Env,
20
20
  withNwcPool
21
- } from "../chunk-3CNYUUD7.js";
21
+ } from "../chunk-BDHJVTWA.js";
22
22
  import {
23
23
  MemoryKVStore
24
24
  } from "../chunk-SDK6KDJN.js";
@@ -80,31 +80,31 @@ import {
80
80
  stripProtocolEnvelope,
81
81
  toCreditView,
82
82
  unknownRouteNotFound
83
- } from "../chunk-5WOKIGLM.js";
83
+ } from "../chunk-3NVM4WPI.js";
84
84
  import {
85
85
  TEMPO_MODERATO_CHAIN_ID,
86
86
  TEMPO_MODERATO_RPC,
87
87
  TEMPO_SETTLEMENT_DEFAULT_LOW_BALANCE_MICRO,
88
88
  TempoSettlementReadiness,
89
89
  resolveTempoNetwork
90
- } from "../chunk-C6YFACIM.js";
91
- import "../chunk-WNX22IND.js";
90
+ } from "../chunk-KYCLHWKO.js";
91
+ import "../chunk-XEOTTFLH.js";
92
92
  import {
93
93
  MemoryCreditLedger
94
- } from "../chunk-AE2ITUMA.js";
94
+ } from "../chunk-FOJKZ4E7.js";
95
95
  import {
96
96
  PostgresJobStore
97
- } from "../chunk-RBCHIOVB.js";
97
+ } from "../chunk-JUEEUV5X.js";
98
98
  import "../chunk-YG7G4DPZ.js";
99
99
  import {
100
100
  SignedRequestError,
101
101
  createDefaultReplayStore,
102
102
  createSignedRequestVerifier,
103
103
  signedRequestInput
104
- } from "../chunk-QFRU6W34.js";
104
+ } from "../chunk-X5RY2G3C.js";
105
105
  import {
106
106
  isStreamableJobStore
107
- } from "../chunk-H2XKINRX.js";
107
+ } from "../chunk-MYJOV4R4.js";
108
108
  import {
109
109
  ContentHoldError,
110
110
  baselineContentExpiry,
@@ -115,7 +115,7 @@ import {
115
115
  IMPLICIT_CREDIT_TTL_MS,
116
116
  generateEphemeralReceiptKey,
117
117
  receiptPubkeyFromSecret
118
- } from "../chunk-DY2MIZ6E.js";
118
+ } from "../chunk-QTH7CIA3.js";
119
119
  import {
120
120
  X402_DEFAULT_FACILITATOR,
121
121
  X402_DEFAULT_NETWORK,
@@ -129,11 +129,11 @@ import {
129
129
  } from "../chunk-UKD3R2KU.js";
130
130
  import {
131
131
  initLoggers
132
- } from "../chunk-KIPJRLGP.js";
132
+ } from "../chunk-SX4WCPW7.js";
133
133
  import "../chunk-KXWROQGK.js";
134
134
  import "../chunk-BQJIFRAZ.js";
135
- import "../chunk-MU3UX5M4.js";
136
- import "../chunk-XYLF33BJ.js";
135
+ import "../chunk-NUPEAWRM.js";
136
+ import "../chunk-LQQ6H4UB.js";
137
137
  import {
138
138
  CreditLedger,
139
139
  CreditLedgerError,
@@ -141,16 +141,16 @@ import {
141
141
  PostgresX402ChannelStorage,
142
142
  X402RelaySubmissionLockError,
143
143
  allocateDrawValue
144
- } from "../chunk-EN7VI7T5.js";
144
+ } from "../chunk-WP7UX6RF.js";
145
145
  import {
146
146
  applyRetryToPool
147
- } from "../chunk-CYTV76CG.js";
147
+ } from "../chunk-6RYCZLCK.js";
148
148
  import {
149
149
  assertSupportedX402Network
150
150
  } from "../chunk-BPYMEMQX.js";
151
151
  import {
152
152
  diagnosticConsole
153
- } from "../chunk-WIQLTSJY.js";
153
+ } from "../chunk-FXDQMJQ2.js";
154
154
  import {
155
155
  MemoryProcessedPaymentStore,
156
156
  PostgresProcessedPaymentStore,
@@ -1146,7 +1146,7 @@ function createDVMHost(opts = {}) {
1146
1146
  });
1147
1147
  applyRetryToPool(pool, "dvm-host");
1148
1148
  pgPool = pool;
1149
- const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-36GJGQMB.js");
1149
+ const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-E6AUHNKB.js");
1150
1150
  const pgJobStore = new PostgresJobStore2(pool);
1151
1151
  pendingInits.push(pgJobStore.init(), pgJobStore.initStreaming());
1152
1152
  jobStore = pgJobStore;
@@ -1239,11 +1239,11 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1239
1239
  let tempoChargeBackend = "user-supplied";
1240
1240
  const mppTempoRecipient = envMaybe.DVMKIT_TEMPO_RECIPIENT;
1241
1241
  if (!mpp && mppTempoRecipient) {
1242
- const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-OL22TIDP.js");
1242
+ const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-BYKGEYFA.js");
1243
1243
  tempoChargeBackend = pgPool ? "postgres" : "memory";
1244
1244
  let tempoCharge;
1245
1245
  if (pgPool) {
1246
- const { PostgresTempoChargeStore } = await import("../tempo-charge-store-MVZH6CEB.js");
1246
+ const { PostgresTempoChargeStore } = await import("../tempo-charge-store-WTBIX2JX.js");
1247
1247
  const chargeStore = new PostgresTempoChargeStore(pgPool);
1248
1248
  tempoChargeStore = chargeStore;
1249
1249
  pendingInits.push(chargeStore.init());
@@ -1263,7 +1263,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1263
1263
  { createPublicClient, createWalletClient, erc20Abi, http },
1264
1264
  { tempo: tempoMainnet, tempoModerato }
1265
1265
  ] = await Promise.all([
1266
- import("../tempo-session-store-CCCG4HL7.js"),
1266
+ import("../tempo-session-store-AWIFUAA6.js"),
1267
1267
  import("viem/accounts"),
1268
1268
  import("viem"),
1269
1269
  import("viem/chains")
@@ -1416,7 +1416,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1416
1416
  }
1417
1417
  }
1418
1418
  const fxSource = envMaybe.DVMKIT_FX_SOURCE;
1419
- const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-FM6WVLCR.js");
1419
+ const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-DG5IJ5QF.js");
1420
1420
  const fxFetcher = opts.fx ?? createFxFetcher({ source: resolveFxSourceFromEnv(envMaybe) });
1421
1421
  const hostRailConfigured = (opts.paymentMethods?.length ?? 0) > 0 || (effectiveMints?.length ?? 0) > 0 || !!x402WithDualServe || !!mpp;
1422
1422
  if (mounts.some((entry) => mountNeedsFx(entry, hostRailConfigured))) warmFxSnapshot(fxFetcher);
@@ -1426,7 +1426,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1426
1426
  assertReceiptIdentity(envMaybe, opts.builder, receiptKey, cashuOpts.dvmId, opts.devMode);
1427
1427
  let sharedPgReplayStore;
1428
1428
  if (pgPool) {
1429
- const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-JJ6XPVIU.js");
1429
+ const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-GIYZS4LJ.js");
1430
1430
  const store2 = new PostgresReplayStore2(pgPool);
1431
1431
  pendingInits.push(store2.init());
1432
1432
  sharedPgReplayStore = store2;
@@ -1454,13 +1454,13 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1454
1454
  }
1455
1455
  let sharedPgConsumedStore;
1456
1456
  if (pgPool) {
1457
- const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-7ONNOW37.js");
1457
+ const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-EZ4KETWH.js");
1458
1458
  const consumedStore = new PostgresConsumedCredentialStore(pgPool);
1459
1459
  pendingInits.push(consumedStore.init());
1460
1460
  sharedPgConsumedStore = consumedStore;
1461
1461
  }
1462
1462
  if (pgPool) {
1463
- const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-4ZIL7IX2.js");
1463
+ const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-SW4BGMNH.js");
1464
1464
  const pgLedger = new CreditLedger2(pgPool, tempoSessionStore);
1465
1465
  pendingInits.push(pgLedger.init());
1466
1466
  creditLedger = pgLedger;
@@ -1469,7 +1469,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1469
1469
  pendingInits.push(pgProcessed.init());
1470
1470
  processedPayments = pgProcessed;
1471
1471
  } else {
1472
- const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-HCECP6R7.js");
1472
+ const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-E4C3VQE4.js");
1473
1473
  creditLedger = disposableCashu?.ledger ?? new MemoryCreditLedger2();
1474
1474
  const { MemoryProcessedPaymentStore: MemoryProcessedPaymentStore2 } = await import("../processed-payment-store-GKMAWOM3.js");
1475
1475
  processedPayments = new MemoryProcessedPaymentStore2();
@@ -2167,6 +2167,13 @@ interface CreditDepositPayload {
2167
2167
  fundedAt: number;
2168
2168
  /** Current credit expiry after this funding committed (epoch ms). */
2169
2169
  expiryMs: number;
2170
+ /**
2171
+ * The stablecoin instrument behind the funded credit, read from the
2172
+ * credit's stored binding rather than inferred from `fundingId`'s shape.
2173
+ * Present on every x402 and Tempo deposit; absent on Cashu and Lightning,
2174
+ * which have only one instrument each.
2175
+ */
2176
+ instrument?: "x402_exact" | "x402_channel" | "tempo_charge" | "tempo_session";
2170
2177
  /**
2171
2178
  * Tempo session funding only: the TIP-1034 channel this deposit
2172
2179
  * arrived on, registered so the platform's close observer can route a
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  PostgresTempoChargeStore
3
- } from "./chunk-O3JEEW5V.js";
3
+ } from "./chunk-BQP3LU2O.js";
4
4
  import "./chunk-YG7G4DPZ.js";
5
- import "./chunk-WIQLTSJY.js";
5
+ import "./chunk-FXDQMJQ2.js";
6
6
  import "./chunk-COYKJRMM.js";
7
7
  export {
8
8
  PostgresTempoChargeStore
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PostgresTempoSessionStore,
3
3
  assertMonotonicTransition
4
- } from "./chunk-76W5MYFF.js";
4
+ } from "./chunk-GDCIHJAR.js";
5
5
  import "./chunk-YG7G4DPZ.js";
6
- import "./chunk-CYTV76CG.js";
7
- import "./chunk-WIQLTSJY.js";
6
+ import "./chunk-6RYCZLCK.js";
7
+ import "./chunk-FXDQMJQ2.js";
8
8
  import "./chunk-COYKJRMM.js";
9
9
  export {
10
10
  PostgresTempoSessionStore,
@@ -1,6 +1,6 @@
1
- import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-ChFSSVO0.js';
2
- import { $ as JobReceipt, a4 as Message, a0 as MessageType, K as KVStore, L as Logger, u as ResponseContent, P as PaymentContent, S as SDKJobContext } from '../step-cache-DDTwd4SK.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-DkfNE9sv.js';
1
+ import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-z1fRPIkt.js';
2
+ import { $ as JobReceipt, a4 as Message, a0 as MessageType, K as KVStore, L as Logger, u as ResponseContent, P as PaymentContent, S as SDKJobContext } from '../step-cache-C6lMgDH8.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-BtdD_xt1.js';
4
4
  import 'hono';
5
5
  import 'mppx';
6
6
  import '@x402/core/server';
@@ -4,20 +4,20 @@ import {
4
4
  import {
5
5
  MemoryJobStore,
6
6
  createInstrumentedFetch
7
- } from "../chunk-H2XKINRX.js";
7
+ } from "../chunk-MYJOV4R4.js";
8
8
  import {
9
9
  JobCancelledError
10
10
  } from "../chunk-AFV77S4C.js";
11
11
  import {
12
12
  createNoopLogger
13
- } from "../chunk-KIPJRLGP.js";
13
+ } from "../chunk-SX4WCPW7.js";
14
14
  import "../chunk-KXWROQGK.js";
15
15
  import "../chunk-BQJIFRAZ.js";
16
- import "../chunk-MU3UX5M4.js";
16
+ import "../chunk-NUPEAWRM.js";
17
17
  import {
18
18
  validateCurrency
19
- } from "../chunk-XYLF33BJ.js";
20
- import "../chunk-WIQLTSJY.js";
19
+ } from "../chunk-LQQ6H4UB.js";
20
+ import "../chunk-FXDQMJQ2.js";
21
21
 
22
22
  // src/sdk/testing/test-context.ts
23
23
  function createTestContext(opts) {
@@ -1,4 +1,4 @@
1
- import { C as Currency } from './step-cache-DDTwd4SK.js';
1
+ import { C as Currency } from './step-cache-C6lMgDH8.js';
2
2
 
3
3
  /**
4
4
  * Thrown by `fiatToSatsCeil` / `satsToFiat` when the supplied `ratePerBtc` is
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-OFSOLHRX.js";
7
7
  import {
8
8
  verifyX402Payment
9
- } from "./chunk-UEYUFBSV.js";
10
- import "./chunk-WNX22IND.js";
9
+ } from "./chunk-BIZR5ORK.js";
10
+ import "./chunk-XEOTTFLH.js";
11
11
  import {
12
12
  X402_DEFAULT_FACILITATOR,
13
13
  X402_DEFAULT_NETWORK,
@@ -36,7 +36,7 @@ import {
36
36
  x402NetworkListForCopy,
37
37
  x402SupportedNetworksHint
38
38
  } from "./chunk-BPYMEMQX.js";
39
- import "./chunk-WIQLTSJY.js";
39
+ import "./chunk-FXDQMJQ2.js";
40
40
  export {
41
41
  X402_DEFAULT_FACILITATOR,
42
42
  X402_DEFAULT_NETWORK,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvmkit/sdk",
3
- "version": "0.7.0-rc.4",
3
+ "version": "0.7.0-rc.5",
4
4
  "description": "SDK for building accountless, pay-per-use Digital Vending Machines",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {