@dvmkit/sdk 0.21.1 → 0.22.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.
- package/dist/card-charge-journal-SKMBEPRM.js +44 -0
- package/dist/{chunk-ALTE7I6C.js → chunk-2WWVI32F.js} +56 -1
- package/dist/{chunk-C65P6MGZ.js → chunk-3DGIRHP2.js} +2 -2
- package/dist/{chunk-6RJAE332.js → chunk-5NMHZIIU.js} +1 -1
- package/dist/{chunk-34H4ZKBM.js → chunk-5YJWAJ4N.js} +1 -1
- package/dist/{chunk-2PN4DKZW.js → chunk-CUWSJQGT.js} +1 -1
- package/dist/{chunk-A6AOE63A.js → chunk-DLRPKEAM.js} +5 -1
- package/dist/{chunk-KRX7VNBG.js → chunk-DY5QIHJA.js} +1 -1
- package/dist/{chunk-RX6FT7XA.js → chunk-EHBUAJ5M.js} +1 -1
- package/dist/{chunk-7RWE6ELV.js → chunk-EQIP6TFD.js} +1 -1
- package/dist/{chunk-OTNHKRHA.js → chunk-GDZXGB43.js} +3 -3
- package/dist/{chunk-5RLNRLLB.js → chunk-HEH7YUGE.js} +1 -1
- package/dist/{chunk-DJRTYBEE.js → chunk-HVZIITWW.js} +27 -4
- package/dist/{chunk-MUMZPUYD.js → chunk-JINZMDNK.js} +1231 -85
- package/dist/{chunk-QTKGFG3I.js → chunk-JMTLK2SZ.js} +1 -1
- package/dist/{chunk-INYFUPXV.js → chunk-L35WYOH2.js} +1 -1
- package/dist/{chunk-MWDUGMN2.js → chunk-LCNRFKP7.js} +2 -2
- package/dist/{chunk-CVN2YNMG.js → chunk-QMKGYIBM.js} +1 -1
- package/dist/{chunk-I5MXADJS.js → chunk-SEIMPHIP.js} +225 -11
- package/dist/{chunk-QCZXKUS2.js → chunk-SQOVLAJ2.js} +1 -1
- package/dist/{chunk-72A4PHLD.js → chunk-UVRBD5GR.js} +1 -1
- package/dist/{chunk-5RGZN6WQ.js → chunk-XB644VN3.js} +1 -1
- package/dist/{chunk-CXRI4N4Y.js → chunk-YNHFJE6U.js} +1 -1
- package/dist/{chunk-LY2JYSJS.js → chunk-ZH5CLGO6.js} +1 -1
- package/dist/{content-retention-COnj0QKi.d.ts → content-retention-DEvY5vjM.d.ts} +1 -1
- package/dist/{credit-ledger-ZCJXJG6R.js → credit-ledger-S76KU53A.js} +11 -3
- package/dist/{credit-menu-DbjmA1vK.d.ts → credit-menu-BA2my6hE.d.ts} +229 -8
- package/dist/{fx-DfzQ0Lge.d.ts → fx-J5oXbv9A.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/internal/caller.d.ts +10 -9
- package/dist/internal/caller.js +11 -11
- package/dist/internal/server.d.ts +7 -7
- package/dist/internal/server.js +21 -21
- package/dist/{job-store-p45j28px.d.ts → job-store-CjPnf0dd.d.ts} +1 -1
- package/dist/{lightning-backend-DO7G7VqP.d.ts → lightning-backend-D9Q2KDS-.d.ts} +1 -1
- package/dist/{memory-credit-ledger-N4PZKTT5.js → memory-credit-ledger-5KXHOWB2.js} +4 -4
- package/dist/{mpp-setup-BLIYBORK.js → mpp-setup-3YZMURZL.js} +3 -3
- package/dist/{payout-reporter-5QAHCYIO.js → payout-reporter-KTLBNJJ7.js} +2 -2
- package/dist/{postgres-consumed-credential-store-4PCJEZBD.js → postgres-consumed-credential-store-Y336KNIB.js} +1 -1
- package/dist/{postgres-job-store-QKN5LGAH.js → postgres-job-store-ESEAN7JL.js} +2 -2
- package/dist/{postgres-replay-store-GH5AINQR.js → postgres-replay-store-6SVCZ475.js} +2 -2
- package/dist/{pricing-JJYLTTWK.js → pricing-RP5CGW6I.js} +3 -3
- package/dist/{revenue-reporter-6XARUEG6.js → revenue-reporter-FD3GDQZS.js} +2 -2
- package/dist/server/index.d.ts +20 -11
- package/dist/server/index.js +303 -30
- package/dist/{step-cache-CcCjpZm1.d.ts → step-cache-DXFftnAc.d.ts} +156 -13
- package/dist/{tempo-charge-store-A3CDF7D5.js → tempo-charge-store-SOIRMEFJ.js} +2 -2
- package/dist/{tempo-session-store-XJE6GIXN.js → tempo-session-store-UBDFFHDG.js} +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +6 -6
- package/dist/{usd-BnAFcUai.d.ts → usd-Bc_rva_K.d.ts} +1 -1
- package/dist/{x402-XLFD43RF.js → x402-MFBRORHG.js} +5 -5
- package/package.json +1 -1
- package/dist/{chunk-NUDHO4HV.js → chunk-LABJSMSJ.js} +48 -48
package/dist/internal/server.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5YJWAJ4N.js";
|
|
4
4
|
import {
|
|
5
5
|
verifyX402Payment
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-GDZXGB43.js";
|
|
7
7
|
import {
|
|
8
8
|
RevenueReporter
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-QMKGYIBM.js";
|
|
10
10
|
import {
|
|
11
11
|
PostgresTempoChargeStore
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-YNHFJE6U.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
15
15
|
MintHealthTracker,
|
|
@@ -61,27 +61,27 @@ import {
|
|
|
61
61
|
verifyUpfrontPayment,
|
|
62
62
|
x402RequiredUsdcMicro,
|
|
63
63
|
x402SettledShare
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-JINZMDNK.js";
|
|
65
65
|
import "../chunk-XRLKGCAW.js";
|
|
66
66
|
import {
|
|
67
67
|
PayoutReporter
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-DY5QIHJA.js";
|
|
69
69
|
import {
|
|
70
70
|
settleWithFacilitator,
|
|
71
71
|
verifyWithFacilitator
|
|
72
|
-
} from "../chunk-
|
|
73
|
-
import "../chunk-
|
|
74
|
-
import "../chunk-
|
|
72
|
+
} from "../chunk-3DGIRHP2.js";
|
|
73
|
+
import "../chunk-HVZIITWW.js";
|
|
74
|
+
import "../chunk-SQOVLAJ2.js";
|
|
75
75
|
import {
|
|
76
76
|
SIGNED_ENVELOPE_FIELDS,
|
|
77
77
|
SIGNED_ENVELOPE_TYPES,
|
|
78
78
|
createDefaultReplayStore,
|
|
79
79
|
humanizeZodError
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-DLRPKEAM.js";
|
|
81
81
|
import {
|
|
82
82
|
createInstrumentedFetch,
|
|
83
83
|
isStaleJobReapable
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-5NMHZIIU.js";
|
|
85
85
|
import {
|
|
86
86
|
JobCancelledError,
|
|
87
87
|
abortJob,
|
|
@@ -93,14 +93,14 @@ import {
|
|
|
93
93
|
} from "../chunk-KVKJ7R5V.js";
|
|
94
94
|
import {
|
|
95
95
|
toLockPubkey
|
|
96
|
-
} from "../chunk-
|
|
97
|
-
import "../chunk-
|
|
96
|
+
} from "../chunk-EQIP6TFD.js";
|
|
97
|
+
import "../chunk-LABJSMSJ.js";
|
|
98
98
|
import "../chunk-SXL44PL5.js";
|
|
99
|
-
import "../chunk-
|
|
99
|
+
import "../chunk-JMTLK2SZ.js";
|
|
100
100
|
import "../chunk-FUJ36YDV.js";
|
|
101
101
|
import "../chunk-BQJIFRAZ.js";
|
|
102
|
-
import "../chunk-
|
|
103
|
-
import "../chunk-
|
|
102
|
+
import "../chunk-EHBUAJ5M.js";
|
|
103
|
+
import "../chunk-UVRBD5GR.js";
|
|
104
104
|
import {
|
|
105
105
|
NON_CHANNEL_BITCOIN_RAILS,
|
|
106
106
|
depleteLots,
|
|
@@ -110,20 +110,20 @@ import {
|
|
|
110
110
|
isNonChannelBitcoinRail,
|
|
111
111
|
lotOwedSats,
|
|
112
112
|
netOwedSats
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-SEIMPHIP.js";
|
|
114
114
|
import "../chunk-YG7G4DPZ.js";
|
|
115
115
|
import "../chunk-COYKJRMM.js";
|
|
116
116
|
import "../chunk-5UC7TOQC.js";
|
|
117
|
-
import "../chunk-
|
|
117
|
+
import "../chunk-L35WYOH2.js";
|
|
118
118
|
import "../chunk-BPYMEMQX.js";
|
|
119
119
|
import "../chunk-H3GGFEE5.js";
|
|
120
120
|
import {
|
|
121
121
|
_testing,
|
|
122
122
|
wrapMppx
|
|
123
|
-
} from "../chunk-
|
|
124
|
-
import "../chunk-
|
|
123
|
+
} from "../chunk-LCNRFKP7.js";
|
|
124
|
+
import "../chunk-ZH5CLGO6.js";
|
|
125
125
|
import "../chunk-66HGCPBU.js";
|
|
126
|
-
import "../chunk-
|
|
126
|
+
import "../chunk-2WWVI32F.js";
|
|
127
127
|
export {
|
|
128
128
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
129
129
|
JobCancelledError,
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DXFftnAc.js';
|
|
2
2
|
import { ProofLike } from '@cashu/cashu-ts';
|
|
3
3
|
|
|
4
4
|
type JobStatus = "processing" | "completed" | "failed" | "awaiting-input" | "cancelled" | "working";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MemoryCreditLedger
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HVZIITWW.js";
|
|
4
|
+
import "./chunk-SEIMPHIP.js";
|
|
5
5
|
import "./chunk-YG7G4DPZ.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
7
|
import "./chunk-5UC7TOQC.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-L35WYOH2.js";
|
|
9
9
|
import "./chunk-BPYMEMQX.js";
|
|
10
10
|
import "./chunk-H3GGFEE5.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-2WWVI32F.js";
|
|
12
12
|
export {
|
|
13
13
|
MemoryCreditLedger
|
|
14
14
|
};
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
parseMppMethodsAllowlist,
|
|
21
21
|
resolveTempoNetwork,
|
|
22
22
|
wrapMppx
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-LCNRFKP7.js";
|
|
24
|
+
import "./chunk-ZH5CLGO6.js";
|
|
25
25
|
import "./chunk-66HGCPBU.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-2WWVI32F.js";
|
|
27
27
|
export {
|
|
28
28
|
MPPX_HMAC_MISMATCH_REASON,
|
|
29
29
|
TEMPO_MAINNET_CHAIN_ID,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
PayoutReporter,
|
|
5
5
|
PostgresX402BatchStore,
|
|
6
6
|
x402EarnedCeiling
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DY5QIHJA.js";
|
|
8
8
|
import "./chunk-COYKJRMM.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-2WWVI32F.js";
|
|
10
10
|
export {
|
|
11
11
|
MemoryX402BatchStore,
|
|
12
12
|
PAYOUT_SNAPSHOT_INTERVAL_MS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresJobStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SQOVLAJ2.js";
|
|
4
4
|
import "./chunk-KVKJ7R5V.js";
|
|
5
5
|
import "./chunk-BQJIFRAZ.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-2WWVI32F.js";
|
|
8
8
|
export {
|
|
9
9
|
PostgresJobStore
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildUpfront
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EHBUAJ5M.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-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-UVRBD5GR.js";
|
|
26
|
+
import "./chunk-2WWVI32F.js";
|
|
27
27
|
export {
|
|
28
28
|
DEFAULT_FX_CURRENCIES,
|
|
29
29
|
DEFAULT_FX_RATE_SOURCE,
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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-
|
|
2
|
-
export {
|
|
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 CardRefundPlan, cs 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-DXFftnAc.js';
|
|
2
|
+
export { ct as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, cu as ClientCompatibility, cv as ClientCompatibilityEnv, cw as ClientCompatibilityGate, cx as ClientCompatibilityRequirement, cy as ClientSemVer, g as CreateSignedRequestVerifierOpts, cz as CreditFundingBasis, cA as CreditInvoiceStatus, cB as CreditLedger, cC as CreditLedgerError, cD as CreditLedgerErrorCode, cE as CreditLedgerErrorDetails, cF as CreditLedgerPool, cG as CreditStatus, cH as DRAIN_DELIVERY_RESERVE_SATS, cI as DVM_PROTOCOL_VERSION, cJ as DrainConflictReason, cK as DrawRailValue, cL as DrawStatus, cM as HostedTempoCloseReportWriteOff, cN as JobCostReportPayload, cO as JobTerminalReportPayload, cP as PostgresX402ChannelStorage, cQ as ReplayStoreBackend, cR as RevenueSkippedNoRailPayload, cS as RevenueSkippedNoRailReason, z as SIGNED_REQUEST_AUTH_ID, B as SIGNED_REQUEST_STATEMENT_VERSION, cT as Secp256k1AuthOpts, E as SignedRequestAudience, G as SignedRequestError, H as SignedRequestFailure, N as SignedRequestSignOpts, O as SignedRequestStatementHeader, T as SignedRequestVerifier, cU as TempoDrainDecision, cV as TempoDrainDecisionArgs, cW as TempoDrainDecisionResult, cX as TempoDrainHoldReason, V as UpfrontPayment, cY as X402ChannelStorageOpts, cZ as X402RelayLockHolder, c_ as X402RelaySubmissionLock, c$ as X402RelaySubmissionLockError, d0 as allocateDrawValue, d1 as clientCompatibilityAttributes, d2 as clientCompatibilityMiddleware, d3 as clientUpgradeRequired, W as createSignedRequestVerifier, d4 as parseClientCapabilities, d5 as parseClientCompatibility, d6 as parseDvmClient, d7 as parseProtocolVersion, d8 as requireClientCompatibility, d9 as retryHostedTempoCloseReport, da as secp256k1Auth, db as signedRequestInput, Y as signedRequestStatementHeader, dc as writeOffHostedTempoCloseReport } from '../step-cache-DXFftnAc.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
|
|
5
|
-
export {
|
|
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 StripeCreditRail, az as DVMHostOpts, aA as DVMServeResult, L as LockPubkeyStateLoader, C as ConsumedCredentialStore } from '../credit-menu-BA2my6hE.js';
|
|
5
|
+
export { aB as BuildCreditMenuArgs, aC as BuilderIdentity, aD as CREDIT_ENVELOPE_KEYS, aE as CardChargeAttempt, aF as CardChargeJournal, aG as CreateStripeCreditRailOpts, aH as CreateX402BatchSettlementServerOpts, aI as CreditEnvelope, aJ as CreditEnvelopeError, aK as CreditFundCommitment, aL as CreditTerms, aM as DEFAULT_INVOICE_TTL_SECONDS, aN as DVMHost, aO as HostingClosureCommand, aP as HostingClosureEvidence, aQ as HostingControlCommand, aR as HostingControlConfig, aS as HostingControlStatus, aT as JobManager, aU as JobManagerOpts, aV as LightningReceiveConfig, aW as MIN_INVOICE_TTL_SECONDS, aX as MemoryConsumedCredentialStore, aY as MemoryConsumedCredentialStoreOpts, aZ as MemoryProcessedPaymentStore, a_ as MemoryX402ExactSettlementStore, a$ as MountOpts, b0 as OwnerDisplay, b1 as PaidJobCompletion, b2 as PaymentMode, b3 as PlatformReporterOpts, b4 as PostgresProcessedPaymentStore, b5 as PostgresX402ExactSettlementStore, b6 as PriceFiat, b7 as ProcessedPaymentQuerier, b8 as ProcessedPaymentRail, b9 as ProcessedPaymentRecord, ba as ProcessedPaymentReplayError, bb as ProcessedPaymentStore, bc as STRIPE_CREDIT_MIN_MICRO, bd as StripeChargeFacts, be as StripeChargeOutcome, bf as StripeCreditConfig, bg as StripeDispute, bh as StripeErrorCodes, bi as StripePaymentIntentSummary, bj as StripeRefund, bk as StripeRefundApi, bl as X402BatchAcceptance, bm as X402BatchFunding, bn as X402BatchRefusal, bo as X402BatchSettlementServer, bp as X402ExactAcceptance, bq as X402ExactIntentConflictError, br as X402ExactSettlementAttempt, bs as X402ExactSettlementChainEvidence, bt as X402ExactSettlementEffect, bu as X402ExactSettlementEvidenceMissingError, bv as X402ExactSettlementEvidenceReader, bw as X402ExactSettlementIntent, bx as X402ExactSettlementNotReadyError, by as X402ExactSettlementServer, bz as X402ExactSettlementServerOpts, bA as X402ExactSettlementStatus, bB as X402ExactSettlementStore, bC as X402SettlementChainEvidence, bD as X402SettlementEvidenceReader, bE as X402SettlementSubmissionError, bF as X402_BATCH_AUTO_SETTLEMENT, bG as X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS, bH as X402_BATCH_SETTLEMENT_NETWORK, bI as attachCreditMenu, bJ as buildCreditMenu, bK as createDVMHost, bL as createStripeCreditRail, bM as createX402BatchSettlementServer, bN as creditEnvelopeIgnoreFields, bO as drawSettlementRef, bP as extractCreditEnvelope, bQ as fundingCommitment, bR as selectPrimaryCredit, bS as signHostingClosure, bT as signHostingControl, bU as stripCreditEnvelope, bV as toCreditView } from '../credit-menu-BA2my6hE.js';
|
|
6
6
|
import { Context, Hono } from 'hono';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { F as FxFetcher } from '../fx-
|
|
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-
|
|
10
|
-
export { a as JobStatus, h as isStreamableJobStore } from '../job-store-
|
|
11
|
-
import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-
|
|
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-
|
|
8
|
+
import { F as FxFetcher } from '../fx-J5oXbv9A.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-CjPnf0dd.js';
|
|
10
|
+
export { a as JobStatus, h as isStreamableJobStore } from '../job-store-CjPnf0dd.js';
|
|
11
|
+
import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-DEvY5vjM.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-DEvY5vjM.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-
|
|
20
|
+
import '../lightning-backend-D9Q2KDS-.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. */
|
|
@@ -102,6 +102,7 @@ declare const CREDIT_REQUEST_SCHEMA: z.ZodObject<{
|
|
|
102
102
|
method: z.ZodOptional<z.ZodEnum<{
|
|
103
103
|
tempo: "tempo";
|
|
104
104
|
lightning: "lightning";
|
|
105
|
+
stripe: "stripe";
|
|
105
106
|
}>>;
|
|
106
107
|
intent: z.ZodOptional<z.ZodEnum<{
|
|
107
108
|
charge: "charge";
|
|
@@ -165,6 +166,8 @@ interface CreditRouteDeps {
|
|
|
165
166
|
/** Hosting gate around a fresh funding operation, after caller auth and before any rail effect. */
|
|
166
167
|
withFundingAdmission?: (c: Context<AppEnv>, body: CreditRequest, run: () => Promise<Response>) => Promise<Response>;
|
|
167
168
|
tempoSettlementReadiness?: TempoSettlementReadiness;
|
|
169
|
+
/** Card-credit rail; absent refuses `method: "stripe"`. */
|
|
170
|
+
stripeCredit?: StripeCreditRail;
|
|
168
171
|
}
|
|
169
172
|
declare function handleCreditRequest(c: Context<AppEnv>, deps: CreditRouteDeps): Promise<Response>;
|
|
170
173
|
|
|
@@ -380,6 +383,12 @@ declare class MemoryCreditLedger implements CreditLedgerLike {
|
|
|
380
383
|
tx?: CreditLedgerQuerier;
|
|
381
384
|
nowMs?: number;
|
|
382
385
|
}): Promise<DrainTransitionResult>;
|
|
386
|
+
saveCardRefund(args: {
|
|
387
|
+
creditId: string;
|
|
388
|
+
drainId: string;
|
|
389
|
+
plan: CardRefundPlan;
|
|
390
|
+
onlyIfUnset?: boolean;
|
|
391
|
+
}): Promise<CardRefundPlan | null>;
|
|
383
392
|
appendDrainReceipt(args: {
|
|
384
393
|
creditId: string;
|
|
385
394
|
drainId: string;
|
|
@@ -626,4 +635,4 @@ interface WriteOffTempoCloseReportResponse {
|
|
|
626
635
|
note: string;
|
|
627
636
|
}
|
|
628
637
|
|
|
629
|
-
export { BitcoinDepositLiability, BlockedInvoiceCursor, CREDIT_REQUEST_SCHEMA, ConsumedCredentialStore, ContentHoldHistory, ContentHoldMutation, CreditDrawRefundArgs, CreditDrawRefundResult, CreditFundingEvidence, CreditInvoiceRecord, CreditLedgerLike, CreditLedgerQuerier, CreditMenu, type CreditRequest, type CreditRouteDeps, CreditSnapshot, DVMAuthScheme, DVMHostOpts, DVMServeResult, DrawRecord, DrawResolution, DrawResult, FundingRecord, GrownDrawResult, IMPLICIT_CREDIT_TTL_MS, type InitLockPool, type InstallAdminContentRoutesOpts, InvoiceReconciliation, InvoiceSettlement, InvoiceWriteOff, JobRecord, JobStore, LightningReceive, MemoryCreditLedger, type PendingImplicitDrawGroup, type PendingImplicitDrawSummary, PostgresJobStore, PostgresKVStore, PostgresReplayStore, type PostgresReplayStoreOpts, REQUEST_ID_FIELD, type ResolvedCashuOpts, type RetryTempoCloseReportResponse, SDK_INIT_ADVISORY_LOCK, SignedRequestDomain, SignedRequestReplayStore, StalePendingDrawCursor, StreamableJobStore, type TempoCloseReportSummary, type TempoCloseReportsResponse, type WriteOffTempoCloseReportResponse, handleCreditRequest, hasInvalidRequestId, installAdminContentRoutes, protocolEnvelopeIgnoreFields, readPendingImplicitDraws, requestIdFromEnvelope, resolveCashuOptsFromEnv, serve, stripProtocolEnvelope, withSdkInitLock };
|
|
638
|
+
export { BitcoinDepositLiability, BlockedInvoiceCursor, CREDIT_REQUEST_SCHEMA, ConsumedCredentialStore, ContentHoldHistory, ContentHoldMutation, CreditDrawRefundArgs, CreditDrawRefundResult, CreditFundingEvidence, CreditInvoiceRecord, CreditLedgerLike, CreditLedgerQuerier, CreditMenu, type CreditRequest, type CreditRouteDeps, CreditSnapshot, DVMAuthScheme, DVMHostOpts, DVMServeResult, DrawRecord, DrawResolution, DrawResult, FundingRecord, GrownDrawResult, IMPLICIT_CREDIT_TTL_MS, type InitLockPool, type InstallAdminContentRoutesOpts, InvoiceReconciliation, InvoiceSettlement, InvoiceWriteOff, JobRecord, JobStore, LightningReceive, MemoryCreditLedger, type PendingImplicitDrawGroup, type PendingImplicitDrawSummary, PostgresJobStore, PostgresKVStore, PostgresReplayStore, type PostgresReplayStoreOpts, REQUEST_ID_FIELD, type ResolvedCashuOpts, type RetryTempoCloseReportResponse, SDK_INIT_ADVISORY_LOCK, SignedRequestDomain, SignedRequestReplayStore, StalePendingDrawCursor, StreamableJobStore, StripeCreditRail, type TempoCloseReportSummary, type TempoCloseReportsResponse, type WriteOffTempoCloseReportResponse, handleCreditRequest, hasInvalidRequestId, installAdminContentRoutes, protocolEnvelopeIgnoreFields, readPendingImplicitDraws, requestIdFromEnvelope, resolveCashuOptsFromEnv, serve, stripProtocolEnvelope, withSdkInitLock };
|