@dvmkit/sdk 0.13.0 → 0.14.1
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-V3WFX65W.js → chunk-5JSPTVIK.js} +51 -1
- package/dist/{chunk-5H7P3ORL.js → chunk-5UC7TOQC.js} +22 -0
- package/dist/{chunk-Q2X4QYOB.js → chunk-A2YESDQM.js} +36 -6
- package/dist/{chunk-HIQ3CEZ3.js → chunk-JFH34P3M.js} +255 -29
- package/dist/{chunk-TVI4V7GF.js → chunk-LBMHV2DK.js} +80 -19
- package/dist/{chunk-EQYHHYW4.js → chunk-TKJBUFYY.js} +10 -2
- package/dist/{content-retention-_Yy3YK4t.d.ts → content-retention-BcHNpP2F.d.ts} +1 -1
- package/dist/{credit-ledger-L4RAXLY7.js → credit-ledger-D3UUR2GW.js} +2 -2
- package/dist/{credit-menu-KqobCjkW.d.ts → credit-menu-C-kmf61K.d.ts} +56 -4
- package/dist/{fx-DM7UCzg1.d.ts → fx-hFlF4Cn8.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/internal/caller.d.ts +166 -9
- package/dist/internal/caller.js +140 -9
- package/dist/internal/index.js +1 -1
- package/dist/internal/server.d.ts +7 -7
- package/dist/internal/server.js +5 -5
- package/dist/{job-store-BVGvAaBG.d.ts → job-store-DVCATwhU.d.ts} +1 -1
- package/dist/{lightning-backend-CsW_b6C7.d.ts → lightning-backend-DXNVlVs9.d.ts} +1 -1
- package/dist/{memory-credit-ledger-JKQ34VMH.js → memory-credit-ledger-SCXQO4HZ.js} +3 -3
- package/dist/server/index.d.ts +16 -12
- package/dist/server/index.js +8 -8
- package/dist/{step-cache-WUig1cx-.d.ts → step-cache-CoORQQ_Y.d.ts} +103 -6
- package/dist/testing/index.d.ts +3 -3
- package/dist/{usd-CzR4qcVU.d.ts → usd-CeXGiyTC.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
isDrainMethod,
|
|
11
11
|
isFundingRail,
|
|
12
12
|
x402SettlementPending
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A2YESDQM.js";
|
|
14
14
|
import "./chunk-YG7G4DPZ.js";
|
|
15
15
|
import "./chunk-COYKJRMM.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-5UC7TOQC.js";
|
|
17
17
|
import "./chunk-EP7OVWI5.js";
|
|
18
18
|
import "./chunk-BPYMEMQX.js";
|
|
19
19
|
import "./chunk-H3GGFEE5.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as LockPubkey, e as CheckMintHealthOptions, b as LightningBackend, A as AttestationPayload } from './lightning-backend-
|
|
2
|
-
import {
|
|
1
|
+
import { f as LockPubkey, e as CheckMintHealthOptions, b as LightningBackend, A as AttestationPayload } from './lightning-backend-DXNVlVs9.js';
|
|
2
|
+
import { co as HostingCleanupFence, d9 as HostedIntent, ak as FundingMethod, p as PaymentMethod, bU as CreditLedgerLike, a6 as Message, a0 as FundingReceipt, bW as CreditSnapshot, a1 as JobReceipt, S as SDKJobContext, ay as StepCache, v as ResponseContent, P as PaymentContent, a2 as MessageType, bp as X402Receipt, aH as X402Config, bo as X402ExactVersionSupport, da as X402SettlementIntent, ac as PaymentRequirementsV2, db as HostedFundingReservation, bQ as CreditLedgerQuerier, dc as X402SettlementCursor, b_ as X402SettlementStatus, dd as X402SettlementWriteOff, bV as X402RefundSettlementGate, de as X402FacilitatorAuth, df as X402BatchSettlementConfig, cL as PostgresX402ChannelStorage, dg as X402PayoutObserver, bS as HostedSettlementReportObligations, bs as CreditDepositPayload, bx as MppxServer, af as CashuMode, dh as CreditDepositEnqueue, di as X402SettlementReconciliationReason, ar as PaymentRequirements, c2 as FundingRecord, a4 as MppxCredential, bZ as DrawResult, cy as CreditLedgerError, a8 as ReceiptCredit, ah as DrainReceiptEvent, a9 as DrainReceipt, $ as DrawFundingReceipt, K as KVStore, z as SignedRequestAudience, dj as CreditDrawReleaseEnqueue, cJ as JobCostReportPayload, cK as JobTerminalReportPayload, cN as RevenueSkippedNoRailPayload, Z as ZodLike, a as DVMDescriptor, c4 as CreditInvoiceRecord, c5 as InvoiceSettlement, cs as ClientCompatibilityGate, cq as ClientCompatibility, bB as PostgresTempoSessionStore, bA as PayoutReporter, R as ResolvedCreditConfig, h as CreditView } from './step-cache-CoORQQ_Y.js';
|
|
3
3
|
import { ProofLike, SerializedDLEQ, Proof } from '@cashu/cashu-ts';
|
|
4
4
|
import { Hono, Context } from 'hono';
|
|
5
5
|
import { Pool } from 'pg';
|
|
6
|
-
import { d as FxSourceFailure, b as FxRateSnapshot, F as FxFetcher } from './fx-
|
|
6
|
+
import { d as FxSourceFailure, b as FxRateSnapshot, F as FxFetcher } from './fx-hFlF4Cn8.js';
|
|
7
7
|
import { Store, Challenge } from 'mppx';
|
|
8
|
-
import { T as TopUpCapUnenforcedReason, A as AppendOutgoingOptions, J as JobRecord, b as JobStore } from './job-store-
|
|
8
|
+
import { T as TopUpCapUnenforcedReason, A as AppendOutgoingOptions, J as JobRecord, b as JobStore } from './job-store-DVCATwhU.js';
|
|
9
9
|
import { SettleResponse, SupportedResponse } from '@x402/core/types';
|
|
10
10
|
import { Channel, AutoSettlementConfig } from '@x402/evm/batch-settlement/server';
|
|
11
11
|
import { FacilitatorClient } from '@x402/core/server';
|
|
@@ -1832,6 +1832,12 @@ interface PaymentInfo {
|
|
|
1832
1832
|
* told or they will re-send. Absent on every ordinary payment.
|
|
1833
1833
|
*/
|
|
1834
1834
|
unappliedMicro?: number;
|
|
1835
|
+
/**
|
|
1836
|
+
* The ledger's own record of a mid-job funding accepted against the job's
|
|
1837
|
+
* pending draw, fixed inside the rail transaction. Carries the immutable
|
|
1838
|
+
* signing inputs for the caller-facing draw funding receipt.
|
|
1839
|
+
*/
|
|
1840
|
+
drawFunding?: FundingRecord;
|
|
1835
1841
|
}
|
|
1836
1842
|
/**
|
|
1837
1843
|
* A funding event as the platform books it — one deposit row (spec
|
|
@@ -2409,6 +2415,12 @@ interface VerifiedIncomingPayment {
|
|
|
2409
2415
|
* `null` delta.
|
|
2410
2416
|
*/
|
|
2411
2417
|
unappliedMicro?: number;
|
|
2418
|
+
/**
|
|
2419
|
+
* The ledger funding row a mid-job top-up fixed for this payment, when the
|
|
2420
|
+
* job already held a draw. The route issues the signed draw funding receipt
|
|
2421
|
+
* from it; absent when the payment ran ledger-less or opened a fresh credit.
|
|
2422
|
+
*/
|
|
2423
|
+
drawFunding?: FundingRecord;
|
|
2412
2424
|
}
|
|
2413
2425
|
/**
|
|
2414
2426
|
* Verify an incoming payment without mutating the job. Returns the credit
|
|
@@ -2430,6 +2442,8 @@ declare function verifyIncomingPayment(body: {
|
|
|
2430
2442
|
* still a deposit, still reported. See `PaymentErrorDetail`.
|
|
2431
2443
|
*/
|
|
2432
2444
|
funding?: CreditFundingReport;
|
|
2445
|
+
/** The rail payment id a `replay_rejected` collided on, so the route can return its original evidence. */
|
|
2446
|
+
replayPaymentId?: string;
|
|
2433
2447
|
};
|
|
2434
2448
|
}>;
|
|
2435
2449
|
/**
|
|
@@ -2486,6 +2500,8 @@ interface CommittedFunding {
|
|
|
2486
2500
|
* find out.
|
|
2487
2501
|
*/
|
|
2488
2502
|
unappliedMicro?: number;
|
|
2503
|
+
/** The `credit_fundings` row a mid-job top-up fixed beside its fund/grow leg. */
|
|
2504
|
+
drawFunding?: FundingRecord;
|
|
2489
2505
|
deposit: CreditFundingReport;
|
|
2490
2506
|
}
|
|
2491
2507
|
/**
|
|
@@ -2563,6 +2579,24 @@ declare class ReceiptIssuer {
|
|
|
2563
2579
|
callerPubkey: string;
|
|
2564
2580
|
issuedAt?: number;
|
|
2565
2581
|
}): FundingReceipt;
|
|
2582
|
+
/**
|
|
2583
|
+
* Countersign the immutable tuple captured when a mid-job payment funded a
|
|
2584
|
+
* job's credit against its pending draw. `ledgerSeq` is the draw's own
|
|
2585
|
+
* sequence so the artifact lines up with the terminal receipt's credit block.
|
|
2586
|
+
*/
|
|
2587
|
+
issueDrawFunding(args: {
|
|
2588
|
+
creditId: string;
|
|
2589
|
+
jobId: string;
|
|
2590
|
+
drawId: string;
|
|
2591
|
+
fundId: string;
|
|
2592
|
+
paymentSeq?: number;
|
|
2593
|
+
currency: string;
|
|
2594
|
+
fundedMicro: number;
|
|
2595
|
+
balanceAfterMicro: number;
|
|
2596
|
+
ledgerSeq: number;
|
|
2597
|
+
callerPubkey: string;
|
|
2598
|
+
issuedAt?: number;
|
|
2599
|
+
}): DrawFundingReceipt;
|
|
2566
2600
|
}
|
|
2567
2601
|
|
|
2568
2602
|
/** Stable reason why the configured x402 exact rail cannot be advertised. */
|
|
@@ -2906,9 +2940,16 @@ type ProcessPaymentOutcome = {
|
|
|
2906
2940
|
status: number;
|
|
2907
2941
|
};
|
|
2908
2942
|
unappliedCredit?: undefined;
|
|
2943
|
+
drawFundingReceipt?: undefined;
|
|
2909
2944
|
} | {
|
|
2910
2945
|
error?: undefined;
|
|
2911
2946
|
unappliedCredit?: UnappliedCredit;
|
|
2947
|
+
/**
|
|
2948
|
+
* Signed evidence that this payment funded the job's credit against its
|
|
2949
|
+
* pending draw. Absent when the payment ran ledger-less, opened a fresh
|
|
2950
|
+
* credit, or the DVM has no receipt key.
|
|
2951
|
+
*/
|
|
2952
|
+
drawFundingReceipt?: DrawFundingReceipt;
|
|
2912
2953
|
};
|
|
2913
2954
|
/**
|
|
2914
2955
|
* Transport-agnostic job lifecycle manager.
|
|
@@ -3507,6 +3548,17 @@ declare class JobManager<State, InputSchema extends ZodLike | undefined> {
|
|
|
3507
3548
|
lockPubkeys?: LockPubkey[];
|
|
3508
3549
|
mintHealthTracker?: MintHealthTracker;
|
|
3509
3550
|
}): Promise<ProcessPaymentOutcome>;
|
|
3551
|
+
/** Issue (or reuse) the signed draw funding receipt for a committed funding row; never throws. */
|
|
3552
|
+
private drawFundingReceiptFor;
|
|
3553
|
+
/**
|
|
3554
|
+
* Every signed draw funding receipt for a job's draw, oldest first, reissuing
|
|
3555
|
+
* any the acknowledgement never carried. Empty when the ledger cannot list
|
|
3556
|
+
* draw fundings or the job holds no draw; a lookup failure is logged and
|
|
3557
|
+
* answered as empty rather than failing the read.
|
|
3558
|
+
*/
|
|
3559
|
+
drawFundingReceipts(job: Pick<JobRecord, "id" | "creditId" | "drawId">): Promise<DrawFundingReceipt[]>;
|
|
3560
|
+
/** The stored evidence for a replayed mid-job payment, looked up by the payment id the marker collided on. */
|
|
3561
|
+
private replayedDrawFundingReceipt;
|
|
3510
3562
|
/**
|
|
3511
3563
|
* Tx C with a bounded retry.
|
|
3512
3564
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as Currency, Z as ZodLike, D as DVMConfig, a as DVMDescriptor } from './step-cache-
|
|
2
|
-
export { A as ApprovalContent, b as ArtifactContent, c as CancelContent, d as CanonicalEnvelope, e as CapabilityRate, f as CreateSignedRequestVerifierOpts, g as CreditConfig, h as CreditView, i as DEFAULT_CREDIT_MAX, j as DEFAULT_CREDIT_MIN, k as DEFAULT_CREDIT_TTL_SECONDS, l as DEFAULT_JOB_RETENTION_DAYS, m as DVMRouteContext, I as IncomingMessage, n as InputType, o as InvalidCurrencyError, J as JobCost, K as KVStore, L as Logger, P as PaymentContent, p as PaymentMethod, q as PriceValue, r as ProgressContent, s as PromptOpts, Q as QuoteConfig, t as QuoteContext, u as QuoteResult, R as ResolvedCreditConfig, v as ResponseContent, S as SDKJobContext, w as SDKPaymentRequestOpts, x as SIGNED_REQUEST_AUTH_ID, y as SIGNED_REQUEST_STATEMENT_VERSION, z as SignedRequestAudience, B as SignedRequestDomain, E as SignedRequestError, F as SignedRequestFailure, G as SignedRequestReplayStore, H as SignedRequestSignOpts, M as SignedRequestStatementHeader, N as SignedRequestVerifier, U as UnsupportedCurrencyError, O as createSignedRequestVerifier, T as isZodSchema, V as signedRequestStatementHeader, W as validateCurrency } from './step-cache-
|
|
3
|
-
export { C as CreateFxFetcherOpts, D as DEFAULT_FX_CURRENCIES, a as DEFAULT_FX_RATE_SOURCE, F as FxFetcher, b as FxRateSnapshot, c as FxRateUnavailableError, d as FxSourceFailure, e as FxSourceFailureCategory, P as PlatformFxSource, f as createFxFetcher, g as fxRateFor, r as resolveFxSourceFromEnv } from './fx-
|
|
4
|
-
export { I as InvalidFxRateError, f as fiatToSatsCeil, a as formatFiat, b as formatUsd, r as roundUsd, s as satsToFiat } from './usd-
|
|
5
|
-
export { J as JobRecord, a as JobStatus, b as JobStore } from './job-store-
|
|
1
|
+
import { C as Currency, Z as ZodLike, D as DVMConfig, a as DVMDescriptor } from './step-cache-CoORQQ_Y.js';
|
|
2
|
+
export { A as ApprovalContent, b as ArtifactContent, c as CancelContent, d as CanonicalEnvelope, e as CapabilityRate, f as CreateSignedRequestVerifierOpts, g as CreditConfig, h as CreditView, i as DEFAULT_CREDIT_MAX, j as DEFAULT_CREDIT_MIN, k as DEFAULT_CREDIT_TTL_SECONDS, l as DEFAULT_JOB_RETENTION_DAYS, m as DVMRouteContext, I as IncomingMessage, n as InputType, o as InvalidCurrencyError, J as JobCost, K as KVStore, L as Logger, P as PaymentContent, p as PaymentMethod, q as PriceValue, r as ProgressContent, s as PromptOpts, Q as QuoteConfig, t as QuoteContext, u as QuoteResult, R as ResolvedCreditConfig, v as ResponseContent, S as SDKJobContext, w as SDKPaymentRequestOpts, x as SIGNED_REQUEST_AUTH_ID, y as SIGNED_REQUEST_STATEMENT_VERSION, z as SignedRequestAudience, B as SignedRequestDomain, E as SignedRequestError, F as SignedRequestFailure, G as SignedRequestReplayStore, H as SignedRequestSignOpts, M as SignedRequestStatementHeader, N as SignedRequestVerifier, U as UnsupportedCurrencyError, O as createSignedRequestVerifier, T as isZodSchema, V as signedRequestStatementHeader, W as validateCurrency } from './step-cache-CoORQQ_Y.js';
|
|
3
|
+
export { C as CreateFxFetcherOpts, D as DEFAULT_FX_CURRENCIES, a as DEFAULT_FX_RATE_SOURCE, F as FxFetcher, b as FxRateSnapshot, c as FxRateUnavailableError, d as FxSourceFailure, e as FxSourceFailureCategory, P as PlatformFxSource, f as createFxFetcher, g as fxRateFor, r as resolveFxSourceFromEnv } from './fx-hFlF4Cn8.js';
|
|
4
|
+
export { I as InvalidFxRateError, f as fiatToSatsCeil, a as formatFiat, b as formatUsd, r as roundUsd, s as satsToFiat } from './usd-CeXGiyTC.js';
|
|
5
|
+
export { J as JobRecord, a as JobStatus, b as JobStore } from './job-store-DVCATwhU.js';
|
|
6
6
|
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';
|
|
7
7
|
export { z } from 'zod';
|
|
8
8
|
import 'hono';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { L as LightningTransactionListOptions, a as LightningTransactionSnapshot, b as LightningBackend, c as LightningPayment, d as LightningWalletInfo, C as CreatedInvoice, I as InvoiceStatus } from '../lightning-backend-
|
|
2
|
-
export { A as AttestationPayload, B as BuilderIdentityKeypair, e as CheckMintHealthOptions, f as LockPubkey, M as MintAmountBounds, g as MintHealthCheckResult, h as amountBoundsVerdict, i as assertNutSupport, j as buildAttestation, k as canSwap, l as checkMintHealth, m as generateIdentity, n as hashCapabilities, o as loadIdentitySecret, p as meltAmountBounds, s as signAttestation, t as toLockPubkey, v as verifyAttestation, w as writeIdentity } from '../lightning-backend-
|
|
1
|
+
import { L as LightningTransactionListOptions, a as LightningTransactionSnapshot, b as LightningBackend, c as LightningPayment, d as LightningWalletInfo, C as CreatedInvoice, I as InvoiceStatus } from '../lightning-backend-DXNVlVs9.js';
|
|
2
|
+
export { A as AttestationPayload, B as BuilderIdentityKeypair, e as CheckMintHealthOptions, f as LockPubkey, M as MintAmountBounds, g as MintHealthCheckResult, h as amountBoundsVerdict, i as assertNutSupport, j as buildAttestation, k as canSwap, l as checkMintHealth, m as generateIdentity, n as hashCapabilities, o as loadIdentitySecret, p as meltAmountBounds, s as signAttestation, t as toLockPubkey, v as verifyAttestation, w as writeIdentity } from '../lightning-backend-DXNVlVs9.js';
|
|
3
3
|
import { ProofLike, MeltQuoteBolt11Response, Proof, Wallet, MintQuoteBolt11Response, MintPreview, CounterSource, CounterRange, SerializedDLEQ, OutputData, OutputDataLike } from '@cashu/cashu-ts';
|
|
4
4
|
export { g as getWallet } from '../wallet-Dwjs5n_M.js';
|
|
5
|
-
import { X as JsonValue, B as SignedRequestDomain, M as SignedRequestStatementHeader, Y as X402_BATCH_SETTLEMENT_SCHEME, _ as X402_EXACT_SCHEME, $ as
|
|
6
|
-
export {
|
|
5
|
+
import { X as JsonValue, B as SignedRequestDomain, M as SignedRequestStatementHeader, Y as X402_BATCH_SETTLEMENT_SCHEME, _ as X402_EXACT_SCHEME, $ as DrawFundingReceipt, a0 as FundingReceipt, a1 as JobReceipt$1, a2 as MessageType, a3 as X402Version, a4 as MppxCredential, z as SignedRequestAudience, a5 as PaymentRequired, a6 as Message, a7 as MppxChallenge, a8 as ReceiptCredit, a9 as DrainReceipt, C as Currency, aa as X402Wallet, ab as PaymentRequirementsV1, ac as PaymentRequirementsV2, L as Logger$1, K as KVStore } from '../step-cache-CoORQQ_Y.js';
|
|
6
|
+
export { ad as BuildPaymentRequirementsOpts, ae as CapabilityDescriptor, af as CashuMode, ag as CompleteContent, ah as DrainReceiptEvent, ai as ExactEvmPayload, aj as ExactEvmPayloadAuthorization, ak as FundingMethod, al as MessageFrom, am as PaymentPayload, an as PaymentPayloadV1, ao as PaymentPayloadV2, ap as PaymentRequestContent, aq as PaymentRequiredV2, ar as PaymentRequirements, as as PromptContent, at as RAIL_REFUNDABLE, au as ReceiptOutcome, av as ReceiptPayment, aw as ResourceInfo, ax as SettleResponse, ay as StepCache, az as StepRecord, aA as TextContent, aB as UnsignedDrainReceipt, aC as UnsignedDrawFundingReceipt, aD as UnsignedFundingReceipt, aE as UnsignedJobReceipt, aF as VerifyResponse, aG as WorkingContent, aH as X402Config, aI as X402ResponseBody, aJ as X402SelfRelayRpcFailureReason, aK as X402_DEFAULT_NETWORK, aL as X402_V1_VERSION, aM as X402_VERSION, aN as buildPaymentRequiredV2, aO as buildPaymentRequirements, aP as caip2ToX402Network, aQ as canonicalRequestPath, aR as canonicaliseForSigning, aS as canonicalize, aT as chainIdFromCaip2, aU as computeResultHash, aV as decodePayment, aW as decodePaymentRequiredHeader, aX as encodePayment, aY as encodePaymentRequiredHeader, aZ as encodeSettleResponseHeader, a_ as exactEvmAuthorization, a$ as isArtifactMessage, b0 as isCancelMessage, b1 as isCompleteMessage, b2 as isDrainReceipt, b3 as isDrawFundingReceipt, b4 as isFundingReceipt, b5 as isPaymentRequestMessage, b6 as isPromptMessage, b7 as isSignedJobReceipt, b8 as isTextMessage, b9 as isWorkingMessage, ba as paymentRequiredV2FromV1, bb as signDrainReceipt, bc as signDrawFundingReceipt, bd as signFundingReceipt, be as signReceipt, bf as usdcContractByCaip2, bg as usdcContractFor, bh as usdcDomainNameFor, bi as usdcDomainVersionFor, bj as verifyDrainReceipt, bk as verifyDrawFundingReceipt, bl as verifyFundingReceipt, bm as verifyReceipt, bn as x402NetworkToCaip2 } from '../step-cache-CoORQQ_Y.js';
|
|
7
7
|
import { SimplePool } from 'nostr-tools/pool';
|
|
8
8
|
import { Session } from 'mppx/tempo';
|
|
9
9
|
import { Pool } from 'pg';
|
|
10
10
|
import { PaymentRequired as PaymentRequired$1 } from '@x402/core/types';
|
|
11
11
|
import { ClientChannelStorage, BatchSettlementClientContext, BatchSettlementEvmScheme } from '@x402/evm/batch-settlement/client';
|
|
12
|
-
export { h as FX_CACHE_TTL_MS, i as FX_RETRY_COUNT, w as warmFxSnapshot } from '../fx-
|
|
13
|
-
export { c as InvalidUsdPriceError, p as parseUsdPrice } from '../usd-
|
|
12
|
+
export { h as FX_CACHE_TTL_MS, i as FX_RETRY_COUNT, w as warmFxSnapshot } from '../fx-hFlF4Cn8.js';
|
|
13
|
+
export { c as InvalidUsdPriceError, p as parseUsdPrice } from '../usd-CeXGiyTC.js';
|
|
14
14
|
import 'hono';
|
|
15
15
|
import 'mppx';
|
|
16
16
|
import '@x402/core/server';
|
|
@@ -792,7 +792,7 @@ interface TrustAnchorRead {
|
|
|
792
792
|
* isolate tier, which omits the `/v1/info` `receipts` flag).
|
|
793
793
|
*/
|
|
794
794
|
type ReceiptVerification = "verified" | "verified_unattested" | "invalid" | "absent";
|
|
795
|
-
type ReceiptInvalidReason = "job_id_mismatch" | "drain_id_mismatch" | "credit_id_mismatch" | "fund_id_mismatch" | "funding_amount_mismatch" | "funding_balance_mismatch" | "funding_ledger_seq_mismatch" | "caller_pubkey_mismatch" | "signature_invalid" | "attestation_invalid" | "dvm_identity_mismatch" | "receipt_key_mismatch" | "result_hash_mismatch";
|
|
795
|
+
type ReceiptInvalidReason = "job_id_mismatch" | "drain_id_mismatch" | "draw_id_mismatch" | "credit_id_mismatch" | "fund_id_mismatch" | "funding_amount_mismatch" | "funding_balance_mismatch" | "funding_ledger_seq_mismatch" | "funding_currency_mismatch" | "caller_pubkey_mismatch" | "signature_invalid" | "attestation_invalid" | "dvm_identity_mismatch" | "receipt_key_mismatch" | "result_hash_mismatch";
|
|
796
796
|
|
|
797
797
|
/**
|
|
798
798
|
* The pair two hostnames must present identically before caller state may be
|
|
@@ -901,6 +901,24 @@ interface FundingReceiptVerifyResult {
|
|
|
901
901
|
reason?: ReceiptInvalidReason;
|
|
902
902
|
receipt?: FundingReceipt;
|
|
903
903
|
}
|
|
904
|
+
interface DrawFundingReceiptChecks {
|
|
905
|
+
credit_id: "ok" | "mismatch" | "unchecked";
|
|
906
|
+
job_id: "ok" | "mismatch" | "unchecked";
|
|
907
|
+
draw_id: "ok" | "mismatch" | "unchecked";
|
|
908
|
+
fund_id: "ok" | "mismatch" | "unchecked";
|
|
909
|
+
currency: "ok" | "mismatch" | "unchecked";
|
|
910
|
+
funded_micro: "ok" | "mismatch" | "unchecked";
|
|
911
|
+
ledger_seq: "ok" | "mismatch" | "unchecked";
|
|
912
|
+
caller_pubkey: "ok" | "mismatch" | "unchecked";
|
|
913
|
+
signature: boolean;
|
|
914
|
+
attestation: ReceiptChecks["attestation"];
|
|
915
|
+
}
|
|
916
|
+
interface DrawFundingReceiptVerifyResult {
|
|
917
|
+
status: ReceiptVerification;
|
|
918
|
+
checks: DrawFundingReceiptChecks;
|
|
919
|
+
reason?: ReceiptInvalidReason;
|
|
920
|
+
receipt?: DrawFundingReceipt;
|
|
921
|
+
}
|
|
904
922
|
interface VerifyJobReceiptArgs {
|
|
905
923
|
receipt: JobReceipt$1;
|
|
906
924
|
/** `/v1/info#builder` for the endpoint that issued it, when known. */
|
|
@@ -978,6 +996,26 @@ declare function verifyFundingReceiptChain(args: {
|
|
|
978
996
|
expectedLedgerSeq?: number;
|
|
979
997
|
expectedCallerPubkey?: string;
|
|
980
998
|
}): FundingReceiptVerifyResult;
|
|
999
|
+
/**
|
|
1000
|
+
* Walk the trust chain for one mid-job **draw funding** receipt, in the same
|
|
1001
|
+
* verdict vocabulary as {@link verifyFundingReceiptChain}. Bindings are checked
|
|
1002
|
+
* before the signature for the reason the drain walk gives: the dangerous
|
|
1003
|
+
* artifact is a validly signed one filed against someone else's credit, job,
|
|
1004
|
+
* draw or payment, which every later link would wave through. A funding fact
|
|
1005
|
+
* that cannot be bound exactly must never raise an expected balance.
|
|
1006
|
+
*/
|
|
1007
|
+
declare function verifyDrawFundingReceiptChain(args: {
|
|
1008
|
+
receipt: unknown;
|
|
1009
|
+
builder?: ReceiptTrustAnchor;
|
|
1010
|
+
expectedCreditId?: string;
|
|
1011
|
+
expectedJobId?: string;
|
|
1012
|
+
expectedDrawId?: string;
|
|
1013
|
+
expectedFundId?: string;
|
|
1014
|
+
expectedCurrency?: string;
|
|
1015
|
+
expectedFundedMicro?: number;
|
|
1016
|
+
expectedLedgerSeq?: number;
|
|
1017
|
+
expectedCallerPubkey?: string;
|
|
1018
|
+
}): DrawFundingReceiptVerifyResult;
|
|
981
1019
|
/**
|
|
982
1020
|
* Fold a set of verdicts into the one verdict the set collectively earns —
|
|
983
1021
|
* what a bundle of receipts, taken together, proves.
|
|
@@ -1412,6 +1450,31 @@ interface JobStatus {
|
|
|
1412
1450
|
fundingReceiptParseError?: ReceiptParseError;
|
|
1413
1451
|
fundedMicro?: number;
|
|
1414
1452
|
credit?: CreditWire;
|
|
1453
|
+
/**
|
|
1454
|
+
* Signed mid-job funding evidence for this job's draw (`draw_funding_receipts`),
|
|
1455
|
+
* oldest first. The recovery surface for an acknowledgement that never
|
|
1456
|
+
* arrived: the provider reissues every artifact from its committed rows.
|
|
1457
|
+
*/
|
|
1458
|
+
drawFundingReceipts?: DrawFundingReceipt[];
|
|
1459
|
+
/** Present when an offered draw funding receipt failed the structural guard. */
|
|
1460
|
+
drawFundingReceiptParseError?: ReceiptParseError;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* What a provider's `201` to a job message carries, when the transport
|
|
1464
|
+
* surfaces it. The successful standard message response's `seq` is the latest
|
|
1465
|
+
* message position observed after dispatch, so it can equal or exceed the
|
|
1466
|
+
* accepted payment's sequence. `drawFundingReceipt` is the signed fact a mid-job
|
|
1467
|
+
* rail payment funded the job's own draw: its optional `payment_seq` fixes the
|
|
1468
|
+
* accepted inbound payment sequence, while `ledger_seq` names the credit draw's
|
|
1469
|
+
* ledger position. Cursor equality is not a funding-validity requirement;
|
|
1470
|
+
* signature verification and all funding bindings still apply. Separately,
|
|
1471
|
+
* `503 job_snapshot_unavailable.seq` identifies the recorded inbound payment.
|
|
1472
|
+
*/
|
|
1473
|
+
interface SendMessageResult {
|
|
1474
|
+
seq: number;
|
|
1475
|
+
drawFundingReceipt?: DrawFundingReceipt;
|
|
1476
|
+
/** Present when the response offered a `draw_funding_receipt` that failed the structural guard. */
|
|
1477
|
+
drawFundingReceiptParseError?: ReceiptParseError;
|
|
1415
1478
|
}
|
|
1416
1479
|
/**
|
|
1417
1480
|
* Per-capability advertisement on `/v1/info.capabilities`. One entry
|
|
@@ -1726,7 +1789,8 @@ interface Transport {
|
|
|
1726
1789
|
requestResume?(provider: ProviderRef, requestId: string, signedJob: JobEnvelope, options?: SubmitOptions): Promise<void>;
|
|
1727
1790
|
status(jobId: string, provider?: ProviderRef, options?: StatusOptions): Promise<JobStatus>;
|
|
1728
1791
|
getMessages(jobId: string, after: number, provider?: ProviderRef, options?: MessagePollOptions): Promise<Message[]>;
|
|
1729
|
-
|
|
1792
|
+
/** Resolves with the acknowledgement when the transport parses one; older transports resolve `void`. */
|
|
1793
|
+
sendMessage(jobId: string, message: OutboundMessage, provider?: ProviderRef, options?: SendMessageOptions): Promise<SendMessageResult | void>;
|
|
1730
1794
|
cancel(jobId: string, reason?: string, provider?: ProviderRef, options?: CancelOptions): Promise<void>;
|
|
1731
1795
|
/** Open a message stream for a job. Blocks until the provider yields. */
|
|
1732
1796
|
stream?(jobId: string, afterSeq: number, provider?: ProviderRef, options?: StreamOptions): Promise<StreamResult>;
|
|
@@ -1977,12 +2041,66 @@ interface StoredDrainEvidence {
|
|
|
1977
2041
|
feeMicro: number | null;
|
|
1978
2042
|
};
|
|
1979
2043
|
}
|
|
2044
|
+
/**
|
|
2045
|
+
* One verified mid-job funding fact, held until the draw it grew settles.
|
|
2046
|
+
*
|
|
2047
|
+
* The caller's projection never sees money accepted while a job runs: the
|
|
2048
|
+
* DVM funds the credit and grows the pending draw in one ledger step that
|
|
2049
|
+
* allocates no sequence, so the terminal receipt's `balance_after` includes it
|
|
2050
|
+
* while `remainingMicro − amount` does not. A fact is admitted only after
|
|
2051
|
+
* {@link verifyDrawFundingReceiptChain} binds it to this caller, credit and
|
|
2052
|
+
* provider, and it is spent exactly once, by the terminal receipt whose
|
|
2053
|
+
* `draw_id` and `ledger_seq` it names.
|
|
2054
|
+
*/
|
|
2055
|
+
interface StoredDrawFunding {
|
|
2056
|
+
/** Rail payment id the funding committed under; the at-most-once key. */
|
|
2057
|
+
fundId: string;
|
|
2058
|
+
jobId: string;
|
|
2059
|
+
drawId: string;
|
|
2060
|
+
/** Provider-credited micro-units of the credit currency. */
|
|
2061
|
+
fundedMicro: number;
|
|
2062
|
+
/** The draw's ledger sequence — what the terminal receipt's credit block names. */
|
|
2063
|
+
ledgerSeq: number;
|
|
2064
|
+
/** Available balance the DVM signed immediately after the funding committed. */
|
|
2065
|
+
balanceAfterMicro: number;
|
|
2066
|
+
/** Epoch ms the fact was admitted locally. */
|
|
2067
|
+
recordedAt: number;
|
|
2068
|
+
/** The verbatim signed artifact, retained as evidence. */
|
|
2069
|
+
receipt: DrawFundingReceipt;
|
|
2070
|
+
}
|
|
2071
|
+
/** Why {@link recordDrawFunding} refused an artifact. */
|
|
2072
|
+
type DrawFundingRejection =
|
|
2073
|
+
/** Not a structurally valid, correctly signed draw funding receipt (see `verifyReason`). */
|
|
2074
|
+
"invalid"
|
|
2075
|
+
/** No tracked credit for this caller matches the receipt's credit at this provider. */
|
|
2076
|
+
| "unknown_credit"
|
|
2077
|
+
/** The receipt names a different caller pubkey. */
|
|
2078
|
+
| "caller_mismatch"
|
|
2079
|
+
/** The receipt's DVM identity or signing key does not chain to the provider this record is bound to. */
|
|
2080
|
+
| "provider_mismatch"
|
|
2081
|
+
/** The receipt is denominated in a different currency than the tracked credit. */
|
|
2082
|
+
| "currency_mismatch"
|
|
2083
|
+
/** A fact with this fund id is already held. */
|
|
2084
|
+
| "duplicate"
|
|
2085
|
+
/** The projection is already anchored at or beyond the funding's draw sequence. */
|
|
2086
|
+
| "already_reflected";
|
|
2087
|
+
interface RecordDrawFundingResult {
|
|
2088
|
+
/** The record the fact was judged against, when one exists. */
|
|
2089
|
+
credit?: StoredCredit;
|
|
2090
|
+
/** True when the fact is now held and eligible for reconciliation. */
|
|
2091
|
+
recorded: boolean;
|
|
2092
|
+
reason?: DrawFundingRejection;
|
|
2093
|
+
/** The chain verdict's reason when `reason` is `invalid` or `provider_mismatch`. */
|
|
2094
|
+
verifyReason?: ReceiptInvalidReason;
|
|
2095
|
+
}
|
|
1980
2096
|
/** A detected disagreement between the local projection and a signed receipt. */
|
|
1981
2097
|
interface CreditDiscrepancy {
|
|
1982
2098
|
/** Epoch ms the mismatch was detected. */
|
|
1983
2099
|
atMs: number;
|
|
1984
2100
|
/** What the local projection said the balance should be after the draw. */
|
|
1985
2101
|
expectedMicro: number;
|
|
2102
|
+
/** Verified mid-job funding the expectation credited before subtracting the draw. */
|
|
2103
|
+
fundedMicro?: number;
|
|
1986
2104
|
/** What the DVM's countersigned receipt reported. */
|
|
1987
2105
|
reportedMicro: number;
|
|
1988
2106
|
/** The draw whose receipt disagreed. */
|
|
@@ -2173,6 +2291,12 @@ interface StoredCredit extends DvmLocated {
|
|
|
2173
2291
|
drainEvidence?: StoredDrainEvidence[];
|
|
2174
2292
|
/** Most recent balance mismatch, kept until the next clean receipt. */
|
|
2175
2293
|
discrepancy?: CreditDiscrepancy;
|
|
2294
|
+
/**
|
|
2295
|
+
* Verified mid-job funding facts awaiting the terminal receipt of the draw
|
|
2296
|
+
* they grew. Pruned once that draw settles or releases, or once the
|
|
2297
|
+
* projection re-anchors at or beyond their sequence.
|
|
2298
|
+
*/
|
|
2299
|
+
drawFundings?: StoredDrawFunding[];
|
|
2176
2300
|
}
|
|
2177
2301
|
/**
|
|
2178
2302
|
* A DVM-level funding-menu snapshot, independent of any balance the caller
|
|
@@ -2195,6 +2319,8 @@ interface ApplyReceiptResult {
|
|
|
2195
2319
|
credit?: StoredCredit;
|
|
2196
2320
|
/** Present when the signed `balance_after` contradicted the local projection. */
|
|
2197
2321
|
mismatch?: CreditDiscrepancy;
|
|
2322
|
+
/** Verified mid-job funding the comparison credited to this draw, when any applied. */
|
|
2323
|
+
fundedMicro?: number;
|
|
2198
2324
|
}
|
|
2199
2325
|
/** Result of folding an implicit credit receipt into its separate local namespace. */
|
|
2200
2326
|
interface ApplyImplicitReceiptResult {
|
|
@@ -2401,8 +2527,39 @@ declare function applyReceiptCredit(args: {
|
|
|
2401
2527
|
jobId: string;
|
|
2402
2528
|
outcome: "completed" | "failed" | "cancelled";
|
|
2403
2529
|
credit: ReceiptCredit;
|
|
2530
|
+
/**
|
|
2531
|
+
* Mid-job funding evidence in hand at reconciliation time, admitted under the
|
|
2532
|
+
* same lock before the comparison so no sibling process can settle the draw
|
|
2533
|
+
* between the two. Each entry is judged exactly as {@link recordDrawFunding}
|
|
2534
|
+
* judges it; a refused entry is simply not credited.
|
|
2535
|
+
*/
|
|
2536
|
+
drawFundings?: {
|
|
2537
|
+
receipt: unknown;
|
|
2538
|
+
builder?: ReceiptTrustAnchor;
|
|
2539
|
+
}[];
|
|
2404
2540
|
now?: number;
|
|
2405
2541
|
}): ApplyReceiptResult;
|
|
2542
|
+
/**
|
|
2543
|
+
* Admit one signed mid-job funding fact for later reconciliation.
|
|
2544
|
+
*
|
|
2545
|
+
* Verification happens here, not at the call site: an artifact that raises an
|
|
2546
|
+
* expected balance can hide a real shortfall, so nothing reaches
|
|
2547
|
+
* {@link StoredCredit.drawFundings} unless its signature holds, it names this
|
|
2548
|
+
* caller and credit, and it chains to the provider the record is bound to. An
|
|
2549
|
+
* attested record requires a `verified` chain under its own attested builder;
|
|
2550
|
+
* an unattested record accepts `verified_unattested`, the same standard its job
|
|
2551
|
+
* receipts meet. A fact the projection has already passed is refused as
|
|
2552
|
+
* `already_reflected` rather than held for a comparison that can never arm.
|
|
2553
|
+
*/
|
|
2554
|
+
declare function recordDrawFunding(args: {
|
|
2555
|
+
endpoint: string;
|
|
2556
|
+
identity?: AttestedDvmIdentity;
|
|
2557
|
+
callerPubkey: string;
|
|
2558
|
+
receipt: unknown;
|
|
2559
|
+
/** `/v1/info#builder` of the issuing endpoint, when the caller has it. */
|
|
2560
|
+
builder?: ReceiptTrustAnchor;
|
|
2561
|
+
now?: number;
|
|
2562
|
+
}): RecordDrawFundingResult;
|
|
2406
2563
|
/**
|
|
2407
2564
|
* Fold one countersigned `imp:` balance into the released-value namespace.
|
|
2408
2565
|
*
|
|
@@ -6343,4 +6500,4 @@ declare class MemoryKVStore implements KVStore {
|
|
|
6343
6500
|
list(prefix?: string): Promise<string[]>;
|
|
6344
6501
|
}
|
|
6345
6502
|
|
|
6346
|
-
export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, type AgentProof, type AgentRecentSpend, type AgentWallet, type AttestedDvmIdentity, BTC_RATE_FILE, BUDGET_FILE, type BudgetCaps, type BudgetCheckResult, type BudgetLedger, type BudgetLedgerEntry, type BudgetSpendBreakdown, type BudgetSpendKind, type BudgetWindow, type BuilderLockKeypair, CAPABILITY_NAME_RE, COINGECKO_SIMPLE_PRICE_URL, CONFIG_AUDIT_FILE, CONFIG_BACKUP_FILE, CONFIG_DIR, CONFIG_FILE, CONFIG_PINNED_FILE, CREDITS_FILE, CREDIT_DRAIN_RAILS, CREDIT_FUNDING_MODES, CREDIT_FUND_RAILS, type CachedBtcRate, type CancelOptions, type CliIdentityEntry, type CoinGeckoBtcSpot, type CoinGeckoSpot, type CompletedCreditHistoryPage, type CompletedCreditHistoryQuery, type CompletedCreditHistoryRecord, type CompletedRefundHistoryRecord, type ConfigDirModeResult, CreatedInvoice, type CreditDrainRail, type CreditFundRail, type CreditFundingMode, type CreditMenu, type CreditOpResult, type CreditTerms, type CreditWire, DEFAULT_AGENT_MINT_URL, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, type DeliveredResult, type DescribeOptions, type DiagnosticCapabilityAuthority, type DiagnosticIdentityAuthority, DrainReceipt, type DrainReceiptChecks, type DrainReceiptVerifyResult, type DrainWire, DvmError, DvmX402ChannelStorage, type ExpiredCreditLossHistoryRecord, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, type FundValuation, FundingReceipt, type FundingReceiptChecks, type FundingReceiptVerifyResult, IDENTITIES_FILE, IDENTITIES_VERSION, type IdentitiesFile, InvoiceStatus, JOBS_FILE, JOB_IDENTITY_HEADER, type JobEnvelope, type JobIdentityHeaderResult, type JobPolicy, JobReceipt$1 as JobReceipt, type JobStatus, JsonValue, LightningBackend, type LightningFundingOffer, LightningPayment, LightningTransactionListOptions, LightningTransactionSnapshot, LightningWalletInfo, type LnAddressParts, MESSAGES_DIR, type MeltQuoteInfo, MemoryKVStore, Message, type MessagePollOptions, MessageType, type MnemonicValidationResult, MppxChallenge, MppxCredential, NwcBackend, type NwcConnection, NwcError, type NwcRequestOptions, type NwcTransaction, type OutboundMessage, PAIRINGS_DIR, PRIVKEY_HEX_RE, type PayInvoiceOutcome, type PayInvoiceReconcilingOptions, type PayInvoiceResult, type PayOutcome, type Payment, PaymentRequired, PaymentRequirementsV1, PaymentRequirementsV2, type PendingDrain, type PendingFunding, type PendingMelt, type PendingMint, type PendingMintMintingState, type PendingSubmission, type PendingSubmissionAcceptedUnresolved, type PendingSubmissionContext, type PendingTempoChargeFunding, type PendingX402ExactFunding, type PendingX402Funding, type PersistedOutputData, PersistentCounterSource, type ProviderInfo, type ProviderRef, type ProviderText, type Quote, RAIL_FLAGS, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, type Rail, type RailAsset, type RailFlag, type ReceiptChecks, ReceiptCredit, type ReceiptInvalidReason, type ReceiptKeypair, type ReceiptParseError, type ReceiptTrustAnchor, type ReceiptVerification, type ReceiptVerifyResult, type RecordSpendOptions, type RpcSource, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, type SelectError, type SendMessageOptions, type SpanProjectionResult, type SpanRow, type SpanTransport, SpanWriter, type StatusOptions, type StoredCredit, type StoredCreditX402Binding, type StoredFundingMenuSnapshot, type StoredImplicitCredit, type StoredReceipt, type StoredSiblingCredit, type StoredX402ChannelConfig, type StoredX402ChannelMetadata, type StreamOptions, type StreamResult, type SubmitOptions, type SwapSendReserve, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_CHARGE_PENDING_STALE_MS, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, TEMPO_SESSION_UPDATED_REASON, type TempoAccount, type TempoChannelAssociation, type TempoChannelController, type TempoChannelDescriptor, type TempoChannelExitResult, type TempoChannelReconcileResult, type TempoChannelStoreContext, type TempoCredentialAccount, type TempoNetwork, type TempoSessionClientResolver, type Transport, type JobReceipt as TransportJobReceipt, type TrustAnchorRead, type V1InfoCapability, type V1InfoResponse, type VerifyJobReceiptArgs, WALLET_FILE, WALLET_VERSION, type WalletCredentialConfig, type WalletInfo, type X402Asset, type X402Balance, type X402BatchPayment, type X402ChannelChainReport, type X402ChannelClient, type X402ChannelReconciliation, type X402ConnectedWallet, type X402CreditFlavour, type X402CreditInstrument, X402EnvValidationError, type X402Network, type X402RefundArgs, type X402RefundOutcome, type X402RepinnedWallet, type X402UnobservedBalanceProvenance, X402Version, type X402VoucherPendingState, X402Wallet, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_EXACT_AUTHORIZATION_TTL_SECONDS, X402_EXACT_SCHEME, X402_NETWORKS, X402_PENDING_STALE_MS, X402_RECEIVER_AUTHORIZER_KEY, X402_REFUSAL_TRANSACTION_DISCOVERY_WINDOW_MS, X402_RPC_URL_KEY, X402_SELF_RELAY_KEY, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, advanceTempoChannelExit, appendBudgetSpend, appendFundingReceipt, appendReceipt, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertNoRivalX402Voucher, assertSupportedX402Network, assertTempoSessionChallengeWithinAsk, assertTempoSessionDepositWithinCap, assertTempoSessionVoucherWithinAsk, assertX402ChannelPayer, assertX402RequirementDescribesChannel, attestedDvmIdentity, authenticatedBuilderPubkey, backupSecretFile, bindCashuTokenToSubmissionContext, bindDiagnosticCapabilityAuthority, bindDiagnosticIdentityAuthority, breakdownSince, buildAdminAuthHeader, buildAdminChallenge, builderLockPath, canReplaceExpiredX402Deposit, capFor, cashuSubmissionBindingFingerprint, cashuSubmissionBindingFromContext, checkBudgetForLedger, checkMeltQuoteState, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingFunding, clearPendingTempoChargeFunding, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, generateIdentity as cliIdentityStoreGenerateIdentity, computeSmartDenominations, costAnchor, coveringMintsForSpend, createDiagnosticCapabilityAuthority, createMintQuoteRetryState, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoChannelStore, createTempoCloseCredential, createTempoCreditSession, createTempoSessionPaymentFetch, createX402BatchPayment, currentContext, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveAgentRefundSubkey, deriveAgentRefundSubkeyPubkey, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, dvmLocationIdentity, effectiveFundingMint, effectiveMints, ensureAddress, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, extendDiagnosticIdentityAuthority, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, findX402Channel, forgetCredit, formatStaleness, formatUsd, formatUsdcMicrounits, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, generateAgentMnemonic, generateEphemeralReceiptKey, generateX402PrivateKey, getBalance, getBalanceByMint, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getTempoUsdcBalance, getX402Balance, hashedCanonicalDvmId, identitiesFileExists, initLoggers, insertSpanBatch, isAbortError, isCreditFundRail, isCreditFundingMode, isJobIdentityValue, isPublicRequestId, isSignableExactRequirement, isStablecoinFundRail, isStorableJobId, isValidEvmPrivateKey, issueRouterFeedbackClaim, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadBudgetLedger, loadCredit, loadCreditX402Binding, loadIdentities, loadImplicitCredits, loadPendingFunding, loadReceipt, loadReceipts, loadResumableTempoChargeFunding, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelAssociationByKey, loadTempoChannelController, loadTempoChannelEntry, loadWalletConfiguredMints, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markRefillDrainNoticed, markRefillRailUnavailable, maxAdvertisedMicro, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcTimeoutMs, offersTempoCreditCharge, offersTempoCreditFunding, offersTempoCreditSession, offersX402CreditChannel, offersX402CreditFlavour, offersX402CreditFunding, parseCreditMenu, parseCreditTerms, parseJobIdentityHeader, parseLnAddress, parseNwcUri, parseTraceparent, payInvoiceReconciling, pendingDrainById, pendingDrainFor, persistTempoOpenCredential, pinDimension, prepareP2PKMint, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, randomTraceId, readAgentMnemonic, readCompletedCreditHistory, readFundValuation, readX402ChannelGuardFacts, readX402ChannelOnChain, receiptPubkeyFromSecret, receiveToAgentWallet, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingFunding, recordPendingTempoChargeFunding, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordX402ChannelMetadata, redactUrl, redactUrlsInText, refundX402BatchChannel, rehydrateOutputData, repairConfigDirMode, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retirePendingX402Funding, retireTempoChannel, retireTempoChannelScope, retryMintQuoteOperation, saveAgentWallet, saveBudgetLedger, saveIdentities, selectProofsForSpend, serializeOutputData, setEmitter, settleDrainEvidence, sha256hex, shellQuoteArg, signDvmRequestData, signRequestData, signedRequestDomain, spendEntry, swapFeeForProofs, swapSendReserve, tempoAccountFromConfig, tempoBalanceCheckHint, tempoChallengeAmountMicro, tempoChannelControlledBy, tempoChargeCredentialSettleable, tempoCredentialAmountMicro, tempoCredentialValidBefore, tempoDescriptorController, tempoSessionAssociationByKey, tempoSessionChallenge, tempoSessionChallengeChannelScope, tempoSessionChallengeMicro, tempoSessionCredentialChannelScope, tempoSessionCredentialCumulativeMicro, tempoSessionCumulativeCapMicro, tempoSessionPriorCumulativeMicro, tempoTokenReference, toAgentProof, toCashuProofs, transportErrorCode, tryResolveTempoAsset, unsignRequestData, usdToMsats, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceiptChain, verifyFundingReceiptChain, verifyJobReceipt, verifyRouterFeedbackClaim, walletExists, weakestReceiptVerdict, windowEnd, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, withholdsTempoCreditSession, withinAdvertisedTolerance, writeAgentMnemonic, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402CreditFlavour, x402CreditFundingNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402InstrumentForFlavour, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingState, x402WalletFromConfig };
|
|
6503
|
+
export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, type AgentProof, type AgentRecentSpend, type AgentWallet, type AttestedDvmIdentity, BTC_RATE_FILE, BUDGET_FILE, type BudgetCaps, type BudgetCheckResult, type BudgetLedger, type BudgetLedgerEntry, type BudgetSpendBreakdown, type BudgetSpendKind, type BudgetWindow, type BuilderLockKeypair, CAPABILITY_NAME_RE, COINGECKO_SIMPLE_PRICE_URL, CONFIG_AUDIT_FILE, CONFIG_BACKUP_FILE, CONFIG_DIR, CONFIG_FILE, CONFIG_PINNED_FILE, CREDITS_FILE, CREDIT_DRAIN_RAILS, CREDIT_FUNDING_MODES, CREDIT_FUND_RAILS, type CachedBtcRate, type CancelOptions, type CliIdentityEntry, type CoinGeckoBtcSpot, type CoinGeckoSpot, type CompletedCreditHistoryPage, type CompletedCreditHistoryQuery, type CompletedCreditHistoryRecord, type CompletedRefundHistoryRecord, type ConfigDirModeResult, CreatedInvoice, type CreditDrainRail, type CreditFundRail, type CreditFundingMode, type CreditMenu, type CreditOpResult, type CreditTerms, type CreditWire, DEFAULT_AGENT_MINT_URL, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, type DeliveredResult, type DescribeOptions, type DiagnosticCapabilityAuthority, type DiagnosticIdentityAuthority, DrainReceipt, type DrainReceiptChecks, type DrainReceiptVerifyResult, type DrainWire, DrawFundingReceipt, type DrawFundingReceiptChecks, type DrawFundingReceiptVerifyResult, type DrawFundingRejection, DvmError, DvmX402ChannelStorage, type ExpiredCreditLossHistoryRecord, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, type FundValuation, FundingReceipt, type FundingReceiptChecks, type FundingReceiptVerifyResult, IDENTITIES_FILE, IDENTITIES_VERSION, type IdentitiesFile, InvoiceStatus, JOBS_FILE, JOB_IDENTITY_HEADER, type JobEnvelope, type JobIdentityHeaderResult, type JobPolicy, JobReceipt$1 as JobReceipt, type JobStatus, JsonValue, LightningBackend, type LightningFundingOffer, LightningPayment, LightningTransactionListOptions, LightningTransactionSnapshot, LightningWalletInfo, type LnAddressParts, MESSAGES_DIR, type MeltQuoteInfo, MemoryKVStore, Message, type MessagePollOptions, MessageType, type MnemonicValidationResult, MppxChallenge, MppxCredential, NwcBackend, type NwcConnection, NwcError, type NwcRequestOptions, type NwcTransaction, type OutboundMessage, PAIRINGS_DIR, PRIVKEY_HEX_RE, type PayInvoiceOutcome, type PayInvoiceReconcilingOptions, type PayInvoiceResult, type PayOutcome, type Payment, PaymentRequired, PaymentRequirementsV1, PaymentRequirementsV2, type PendingDrain, type PendingFunding, type PendingMelt, type PendingMint, type PendingMintMintingState, type PendingSubmission, type PendingSubmissionAcceptedUnresolved, type PendingSubmissionContext, type PendingTempoChargeFunding, type PendingX402ExactFunding, type PendingX402Funding, type PersistedOutputData, PersistentCounterSource, type ProviderInfo, type ProviderRef, type ProviderText, type Quote, RAIL_FLAGS, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, type Rail, type RailAsset, type RailFlag, type ReceiptChecks, ReceiptCredit, type ReceiptInvalidReason, type ReceiptKeypair, type ReceiptParseError, type ReceiptTrustAnchor, type ReceiptVerification, type ReceiptVerifyResult, type RecordDrawFundingResult, type RecordSpendOptions, type RpcSource, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, type SelectError, type SendMessageOptions, type SendMessageResult, type SpanProjectionResult, type SpanRow, type SpanTransport, SpanWriter, type StatusOptions, type StoredCredit, type StoredCreditX402Binding, type StoredDrawFunding, type StoredFundingMenuSnapshot, type StoredImplicitCredit, type StoredReceipt, type StoredSiblingCredit, type StoredX402ChannelConfig, type StoredX402ChannelMetadata, type StreamOptions, type StreamResult, type SubmitOptions, type SwapSendReserve, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_CHARGE_PENDING_STALE_MS, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, TEMPO_SESSION_UPDATED_REASON, type TempoAccount, type TempoChannelAssociation, type TempoChannelController, type TempoChannelDescriptor, type TempoChannelExitResult, type TempoChannelReconcileResult, type TempoChannelStoreContext, type TempoCredentialAccount, type TempoNetwork, type TempoSessionClientResolver, type Transport, type JobReceipt as TransportJobReceipt, type TrustAnchorRead, type V1InfoCapability, type V1InfoResponse, type VerifyJobReceiptArgs, WALLET_FILE, WALLET_VERSION, type WalletCredentialConfig, type WalletInfo, type X402Asset, type X402Balance, type X402BatchPayment, type X402ChannelChainReport, type X402ChannelClient, type X402ChannelReconciliation, type X402ConnectedWallet, type X402CreditFlavour, type X402CreditInstrument, X402EnvValidationError, type X402Network, type X402RefundArgs, type X402RefundOutcome, type X402RepinnedWallet, type X402UnobservedBalanceProvenance, X402Version, type X402VoucherPendingState, X402Wallet, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_EXACT_AUTHORIZATION_TTL_SECONDS, X402_EXACT_SCHEME, X402_NETWORKS, X402_PENDING_STALE_MS, X402_RECEIVER_AUTHORIZER_KEY, X402_REFUSAL_TRANSACTION_DISCOVERY_WINDOW_MS, X402_RPC_URL_KEY, X402_SELF_RELAY_KEY, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, advanceTempoChannelExit, appendBudgetSpend, appendFundingReceipt, appendReceipt, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertNoRivalX402Voucher, assertSupportedX402Network, assertTempoSessionChallengeWithinAsk, assertTempoSessionDepositWithinCap, assertTempoSessionVoucherWithinAsk, assertX402ChannelPayer, assertX402RequirementDescribesChannel, attestedDvmIdentity, authenticatedBuilderPubkey, backupSecretFile, bindCashuTokenToSubmissionContext, bindDiagnosticCapabilityAuthority, bindDiagnosticIdentityAuthority, breakdownSince, buildAdminAuthHeader, buildAdminChallenge, builderLockPath, canReplaceExpiredX402Deposit, capFor, cashuSubmissionBindingFingerprint, cashuSubmissionBindingFromContext, checkBudgetForLedger, checkMeltQuoteState, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingFunding, clearPendingTempoChargeFunding, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, generateIdentity as cliIdentityStoreGenerateIdentity, computeSmartDenominations, costAnchor, coveringMintsForSpend, createDiagnosticCapabilityAuthority, createMintQuoteRetryState, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoChannelStore, createTempoCloseCredential, createTempoCreditSession, createTempoSessionPaymentFetch, createX402BatchPayment, currentContext, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveAgentRefundSubkey, deriveAgentRefundSubkeyPubkey, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, dvmLocationIdentity, effectiveFundingMint, effectiveMints, ensureAddress, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, extendDiagnosticIdentityAuthority, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, findX402Channel, forgetCredit, formatStaleness, formatUsd, formatUsdcMicrounits, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, generateAgentMnemonic, generateEphemeralReceiptKey, generateX402PrivateKey, getBalance, getBalanceByMint, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getTempoUsdcBalance, getX402Balance, hashedCanonicalDvmId, identitiesFileExists, initLoggers, insertSpanBatch, isAbortError, isCreditFundRail, isCreditFundingMode, isJobIdentityValue, isPublicRequestId, isSignableExactRequirement, isStablecoinFundRail, isStorableJobId, isValidEvmPrivateKey, issueRouterFeedbackClaim, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadBudgetLedger, loadCredit, loadCreditX402Binding, loadIdentities, loadImplicitCredits, loadPendingFunding, loadReceipt, loadReceipts, loadResumableTempoChargeFunding, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelAssociationByKey, loadTempoChannelController, loadTempoChannelEntry, loadWalletConfiguredMints, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markRefillDrainNoticed, markRefillRailUnavailable, maxAdvertisedMicro, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcTimeoutMs, offersTempoCreditCharge, offersTempoCreditFunding, offersTempoCreditSession, offersX402CreditChannel, offersX402CreditFlavour, offersX402CreditFunding, parseCreditMenu, parseCreditTerms, parseJobIdentityHeader, parseLnAddress, parseNwcUri, parseTraceparent, payInvoiceReconciling, pendingDrainById, pendingDrainFor, persistTempoOpenCredential, pinDimension, prepareP2PKMint, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, randomTraceId, readAgentMnemonic, readCompletedCreditHistory, readFundValuation, readX402ChannelGuardFacts, readX402ChannelOnChain, receiptPubkeyFromSecret, receiveToAgentWallet, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordDrawFunding, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingFunding, recordPendingTempoChargeFunding, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordX402ChannelMetadata, redactUrl, redactUrlsInText, refundX402BatchChannel, rehydrateOutputData, repairConfigDirMode, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retirePendingX402Funding, retireTempoChannel, retireTempoChannelScope, retryMintQuoteOperation, saveAgentWallet, saveBudgetLedger, saveIdentities, selectProofsForSpend, serializeOutputData, setEmitter, settleDrainEvidence, sha256hex, shellQuoteArg, signDvmRequestData, signRequestData, signedRequestDomain, spendEntry, swapFeeForProofs, swapSendReserve, tempoAccountFromConfig, tempoBalanceCheckHint, tempoChallengeAmountMicro, tempoChannelControlledBy, tempoChargeCredentialSettleable, tempoCredentialAmountMicro, tempoCredentialValidBefore, tempoDescriptorController, tempoSessionAssociationByKey, tempoSessionChallenge, tempoSessionChallengeChannelScope, tempoSessionChallengeMicro, tempoSessionCredentialChannelScope, tempoSessionCredentialCumulativeMicro, tempoSessionCumulativeCapMicro, tempoSessionPriorCumulativeMicro, tempoTokenReference, toAgentProof, toCashuProofs, transportErrorCode, tryResolveTempoAsset, unsignRequestData, usdToMsats, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceiptChain, verifyDrawFundingReceiptChain, verifyFundingReceiptChain, verifyJobReceipt, verifyRouterFeedbackClaim, walletExists, weakestReceiptVerdict, windowEnd, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, withholdsTempoCreditSession, withinAdvertisedTolerance, writeAgentMnemonic, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402CreditFlavour, x402CreditFundingNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402InstrumentForFlavour, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingState, x402WalletFromConfig };
|