@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.
- package/dist/{chunk-ORBWKYDE.js → chunk-34H4ZKBM.js} +1 -1
- package/dist/{chunk-WMGXJQI3.js → chunk-5RGZN6WQ.js} +1 -1
- package/dist/{chunk-3KRFFLAT.js → chunk-C65P6MGZ.js} +1 -1
- package/dist/{chunk-C5XNZLZ7.js → chunk-DJRTYBEE.js} +1 -1
- package/dist/{chunk-B5MPLDRC.js → chunk-I5MXADJS.js} +1 -1
- package/dist/{chunk-EIDRCGTY.js → chunk-INYFUPXV.js} +41 -13
- package/dist/{chunk-5CCQEAQV.js → chunk-MXESSBXF.js} +47 -0
- package/dist/{chunk-YRQMDRI4.js → chunk-NLMRNLKA.js} +14270 -13793
- package/dist/{chunk-62FI3NJF.js → chunk-NUDHO4HV.js} +4 -2
- package/dist/{chunk-VKFR5PCW.js → chunk-OTNHKRHA.js} +2 -2
- package/dist/{content-retention-B_hOQS36.d.ts → content-retention-sUCPlA1J.d.ts} +1 -1
- package/dist/{credit-ledger-5HMJ6VUX.js → credit-ledger-ZCJXJG6R.js} +2 -2
- package/dist/{credit-menu-D-h0zJCZ.d.ts → credit-menu-D88XuTLU.d.ts} +145 -6
- package/dist/{fx-CpqQaIfg.d.ts → fx-QoVA2oBc.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +18 -3
- package/dist/internal/caller.d.ts +12 -8
- package/dist/internal/caller.js +3 -3
- package/dist/internal/server.d.ts +7 -7
- package/dist/internal/server.js +9 -9
- package/dist/{job-store-CgXT79tS.d.ts → job-store-Dy-ogco6.d.ts} +1 -1
- package/dist/{lightning-backend-B1hRUIOb.d.ts → lightning-backend-B2wMBR-x.d.ts} +1 -1
- package/dist/{memory-credit-ledger-ME6FH462.js → memory-credit-ledger-N4PZKTT5.js} +3 -3
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +10 -10
- package/dist/{step-cache-Bezn-_ZL.d.ts → step-cache-B83Y9T9p.d.ts} +73 -9
- package/dist/{tempo-session-store-EWBE5HJM.js → tempo-session-store-XJE6GIXN.js} +2 -2
- package/dist/testing/index.d.ts +3 -3
- package/dist/{usd-CJwU3-A4.d.ts → usd-g9kCw86F.d.ts} +1 -1
- package/dist/{x402-HVCUEWWU.js → x402-XLFD43RF.js} +4 -4
- package/package.json +1 -1
package/dist/internal/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-34H4ZKBM.js";
|
|
4
4
|
import {
|
|
5
5
|
verifyX402Payment
|
|
6
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
73
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 {
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MemoryCreditLedger
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
8
|
+
import "./chunk-INYFUPXV.js";
|
|
9
9
|
import "./chunk-BPYMEMQX.js";
|
|
10
10
|
import "./chunk-H3GGFEE5.js";
|
|
11
11
|
import "./chunk-ALTE7I6C.js";
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
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 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-
|
|
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-
|
|
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-
|
|
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-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-
|
|
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. */
|
package/dist/server/index.js
CHANGED
|
@@ -82,17 +82,17 @@ import {
|
|
|
82
82
|
toCreditView,
|
|
83
83
|
unknownRouteNotFound,
|
|
84
84
|
writeOffHostedTempoCloseReport
|
|
85
|
-
} from "../chunk-
|
|
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-
|
|
92
|
+
import "../chunk-C65P6MGZ.js";
|
|
93
93
|
import {
|
|
94
94
|
MemoryCreditLedger
|
|
95
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
5471
|
-
*
|
|
5472
|
-
*
|
|
5473
|
-
*
|
|
5474
|
-
*
|
|
5475
|
-
*
|
|
5476
|
-
*
|
|
5477
|
-
*
|
|
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 {
|
|
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-
|
|
4
|
+
} from "./chunk-34H4ZKBM.js";
|
|
5
5
|
import "./chunk-YG7G4DPZ.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-INYFUPXV.js";
|
|
8
8
|
import "./chunk-ALTE7I6C.js";
|
|
9
9
|
export {
|
|
10
10
|
PostgresTempoSessionStore,
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-
|
|
2
|
-
import {
|
|
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-
|
|
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';
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
generateX402PrivateKey,
|
|
4
4
|
getX402Balance,
|
|
5
5
|
resolveX402Asset
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5RGZN6WQ.js";
|
|
7
7
|
import {
|
|
8
8
|
verifyX402Payment
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
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.
|
|
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": [
|