@dvmkit/sdk 0.3.2-rc.10 → 0.3.4-rc.10
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-ZHTUITDW.js → chunk-2SD2W2BG.js} +2 -2
- package/dist/{chunk-ZUTI56L7.js → chunk-4J32DTLT.js} +1 -1
- package/dist/{chunk-Y7JZLO5J.js → chunk-4UZN2GP5.js} +1 -1
- package/dist/{chunk-BWGRKGKG.js → chunk-6DOGTAHA.js} +1 -1
- package/dist/{chunk-LHN75BTX.js → chunk-7X6UDVCQ.js} +1 -1
- package/dist/{chunk-IBDDIG4K.js → chunk-BYCEKO65.js} +1 -1
- package/dist/{chunk-UQCK5VMA.js → chunk-CE7XEHYC.js} +1 -1
- package/dist/{chunk-J7PW2U6P.js → chunk-EAMZZ2B4.js} +1 -1
- package/dist/{chunk-D42FMCLJ.js → chunk-ETXDTUJO.js} +37 -22
- package/dist/{chunk-KL4C3LQV.js → chunk-FI4CST2D.js} +1 -1
- package/dist/{chunk-YEO5GW7U.js → chunk-JDFLRNAZ.js} +1 -1
- package/dist/{chunk-PPHE7XUU.js → chunk-M4QDXD2A.js} +1 -1
- package/dist/{chunk-SP42AI5T.js → chunk-O3QDFPKM.js} +1 -1
- package/dist/{chunk-2A33VHYM.js → chunk-O5AT6S5T.js} +1 -1
- package/dist/{chunk-M4RSKQAV.js → chunk-P6QON7ER.js} +1 -1
- package/dist/{chunk-HNIKSOI2.js → chunk-UZC4A4DM.js} +14 -14
- package/dist/{chunk-DSVGYW3B.js → chunk-VAMSJRJT.js} +1 -1
- package/dist/{chunk-3KYLYVY4.js → chunk-VHNPVGSA.js} +1 -1
- package/dist/{chunk-U2EYIPFX.js → chunk-YHN3WMMF.js} +1 -1
- package/dist/{credit-ledger-4CCHRJE2.js → credit-ledger-A35WH2TI.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/internal/caller.d.ts +9 -1
- package/dist/internal/caller.js +15 -7
- package/dist/internal/index.js +1 -1
- package/dist/internal/server.js +16 -16
- package/dist/memory-credit-ledger-2LBZVMKJ.js +10 -0
- package/dist/{mpp-setup-OQ4OV7A5.js → mpp-setup-7CGBKNUP.js} +2 -2
- package/dist/{payout-reporter-TQ3YIFLZ.js → payout-reporter-ZMOA37GN.js} +2 -2
- package/dist/{postgres-consumed-credential-store-LFQNC7LD.js → postgres-consumed-credential-store-CUQJKRSL.js} +1 -1
- package/dist/{postgres-job-store-FGOJ7UIX.js → postgres-job-store-MSD2HZOI.js} +2 -2
- package/dist/{postgres-replay-store-DFQSXPCG.js → postgres-replay-store-ARZSQ45X.js} +2 -2
- package/dist/{pricing-UJAPJLOM.js → pricing-XT2IAPNE.js} +2 -2
- package/dist/{revenue-reporter-VN4WYN74.js → revenue-reporter-EKJOGQYR.js} +2 -2
- package/dist/server/index.js +23 -23
- package/dist/{tempo-charge-store-EA66LSVJ.js → tempo-charge-store-4WX7FPOV.js} +2 -2
- package/dist/{tempo-session-store-65NA77KJ.js → tempo-session-store-LCSDHB7G.js} +3 -3
- package/dist/testing/index.js +4 -4
- package/package.json +1 -1
- package/dist/memory-credit-ledger-TERNM5T6.js +0 -10
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-COYKJRMM.js";
|
|
4
4
|
import {
|
|
5
5
|
applyRetryToPool
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P6QON7ER.js";
|
|
7
7
|
import {
|
|
8
8
|
diagnosticConsole
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ETXDTUJO.js";
|
|
10
10
|
|
|
11
11
|
// src/sdk/server/credit-ledger.ts
|
|
12
12
|
import { randomUUID } from "crypto";
|
|
@@ -1004,7 +1004,9 @@ var diagnostic_catalogue_v1_default = {
|
|
|
1004
1004
|
// src/observability/projection.ts
|
|
1005
1005
|
var DIAGNOSTIC_CATALOGUE_VERSION = diagnostic_catalogue_v1_default.version;
|
|
1006
1006
|
var EVENTS = new Set(diagnostic_catalogue_v1_default.events);
|
|
1007
|
-
var ROUTE_TEMPLATES =
|
|
1007
|
+
var ROUTE_TEMPLATES = [...diagnostic_catalogue_v1_default.routeTemplates].sort(
|
|
1008
|
+
compareRouteTemplates
|
|
1009
|
+
);
|
|
1008
1010
|
var ERROR_CODES = new Set(diagnostic_catalogue_v1_default.errorCodes);
|
|
1009
1011
|
var DATASETS = new Set(diagnostic_catalogue_v1_default.datasets);
|
|
1010
1012
|
var LEVELS = new Set(diagnostic_catalogue_v1_default.levels);
|
|
@@ -1036,6 +1038,7 @@ var CLIENT_VERSION_RE = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-rc\.
|
|
|
1036
1038
|
var HASH_RE = /^(?:[0-9a-f]{16}|[0-9a-f]{64})$/i;
|
|
1037
1039
|
var DECIMAL_RE = /^(?:0|[1-9]\d{0,77})$/;
|
|
1038
1040
|
var STRIPE_EVENT_RE = /^evt_[A-Za-z0-9]{1,64}$/;
|
|
1041
|
+
var REDACTED_SEGMENT_RE = /^:(?:uuid|hex|n|b58|token)$/;
|
|
1039
1042
|
var SERVICE_NAMES = /* @__PURE__ */ new Set([
|
|
1040
1043
|
"platform-api",
|
|
1041
1044
|
"router",
|
|
@@ -1212,8 +1215,9 @@ function projectField(key, value, dataset, authority, identityAuthority) {
|
|
|
1212
1215
|
if (CLIENT_VERSION_FIELDS.has(key)) return projectClientVersion(value);
|
|
1213
1216
|
if (key === "client.protocol_version")
|
|
1214
1217
|
return typeof value === "number" && CLIENT_PROTOCOL_VERSIONS.has(value) ? value : void 0;
|
|
1215
|
-
if (key === "route"
|
|
1216
|
-
|
|
1218
|
+
if (key === "route") return projectQualifiedRoute(value);
|
|
1219
|
+
if (key === "http.route" || key === "resource_path")
|
|
1220
|
+
return projectRouteTemplate(value);
|
|
1217
1221
|
if (key === "status_code" || key === "http.status_code") {
|
|
1218
1222
|
return Number.isInteger(value) && value >= 100 && value <= 599 ? value : void 0;
|
|
1219
1223
|
}
|
|
@@ -1290,34 +1294,45 @@ function projectOrigin(value) {
|
|
|
1290
1294
|
if (typeof value !== "string" || value.length > 2048) return void 0;
|
|
1291
1295
|
try {
|
|
1292
1296
|
const parsed = new URL(value);
|
|
1293
|
-
if (parsed.protocol !== "http:" && parsed.protocol !== "https:" || parsed.username || parsed.password)
|
|
1294
|
-
return void 0;
|
|
1295
1297
|
const hostname = parsed.hostname.toLowerCase();
|
|
1296
|
-
if (isIP(hostname) !== 0 || !isDnsName(hostname))
|
|
1298
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:" || hostname === "localhost" || isIP(hostname) !== 0 || !isDnsName(hostname)) {
|
|
1299
|
+
return void 0;
|
|
1300
|
+
}
|
|
1297
1301
|
return `${parsed.protocol}//${hostname}`;
|
|
1298
1302
|
} catch {
|
|
1299
1303
|
return void 0;
|
|
1300
1304
|
}
|
|
1301
1305
|
}
|
|
1302
|
-
function
|
|
1303
|
-
if (typeof value !== "string" || value.length >
|
|
1306
|
+
function projectQualifiedRoute(value) {
|
|
1307
|
+
if (typeof value !== "string" || value.length > 320) return void 0;
|
|
1308
|
+
const separator = value.indexOf(" ");
|
|
1309
|
+
if (separator <= 0) return void 0;
|
|
1310
|
+
const method = value.slice(0, separator);
|
|
1311
|
+
const template = projectRouteTemplate(value.slice(separator + 1));
|
|
1312
|
+
return METHODS.has(method) && template ? `${method} ${template}` : void 0;
|
|
1313
|
+
}
|
|
1314
|
+
function projectRouteTemplate(value) {
|
|
1315
|
+
if (typeof value !== "string" || value.length > 263 || !value.startsWith("/") || value.includes("?") || value.includes("#") || value.includes("@")) {
|
|
1304
1316
|
return void 0;
|
|
1305
|
-
const normalized = value.length > 1 ? value.replace(/\/+$/, "") : value;
|
|
1306
|
-
if (ROUTE_TEMPLATES.has(normalized)) return normalized;
|
|
1307
|
-
const candidateSegments = normalized.split("/");
|
|
1308
|
-
for (const template of ROUTE_TEMPLATES) {
|
|
1309
|
-
const templateSegments = template.split("/");
|
|
1310
|
-
if (candidateSegments.length !== templateSegments.length) continue;
|
|
1311
|
-
if (templateSegments.every(
|
|
1312
|
-
(part, index) => part.startsWith(":") ? validRouteSegment(candidateSegments[index]) : part === candidateSegments[index]
|
|
1313
|
-
)) {
|
|
1314
|
-
return template;
|
|
1315
|
-
}
|
|
1316
1317
|
}
|
|
1317
|
-
return
|
|
1318
|
+
return ROUTE_TEMPLATES.find((template) => routeMatches(template, value));
|
|
1319
|
+
}
|
|
1320
|
+
function routeMatches(template, value) {
|
|
1321
|
+
if (template === value) return true;
|
|
1322
|
+
const expected = template.split("/");
|
|
1323
|
+
const actual = value.split("/");
|
|
1324
|
+
if (expected.length !== actual.length) return false;
|
|
1325
|
+
return expected.every((segment, index) => {
|
|
1326
|
+
if (segment.startsWith(":")) {
|
|
1327
|
+
return actual[index].length > 0 && (REDACTED_SEGMENT_RE.test(actual[index]) || !actual[index].startsWith(":"));
|
|
1328
|
+
}
|
|
1329
|
+
return segment === actual[index];
|
|
1330
|
+
});
|
|
1318
1331
|
}
|
|
1319
|
-
function
|
|
1320
|
-
|
|
1332
|
+
function compareRouteTemplates(left, right) {
|
|
1333
|
+
const leftParams = left.split("/").filter((segment) => segment.startsWith(":")).length;
|
|
1334
|
+
const rightParams = right.split("/").filter((segment) => segment.startsWith(":")).length;
|
|
1335
|
+
return leftParams - rightParams || right.length - left.length || left.localeCompare(right);
|
|
1321
1336
|
}
|
|
1322
1337
|
function isDnsName(value) {
|
|
1323
1338
|
return value.length <= 253 && value.split(".").every((label) => SLUG_RE.test(label));
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-BQ2NMWKE.js";
|
|
11
11
|
import {
|
|
12
12
|
MemoryCreditLedger
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-M4QDXD2A.js";
|
|
14
14
|
import {
|
|
15
15
|
PostgresJobStore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JDFLRNAZ.js";
|
|
17
17
|
import {
|
|
18
18
|
SIGNED_ENVELOPE_FIELDS,
|
|
19
19
|
SignedRequestError,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
humanizeZodIssues,
|
|
22
22
|
signedRequestInput,
|
|
23
23
|
zodIssuesOf
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CE7XEHYC.js";
|
|
25
25
|
import {
|
|
26
26
|
JobCancelledError,
|
|
27
27
|
MemoryJobStore,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
localMessage,
|
|
39
39
|
providerMessage,
|
|
40
40
|
toJobRecord
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-O5AT6S5T.js";
|
|
42
42
|
import {
|
|
43
43
|
ADMIN_AUTH_CLOCK_SKEW_SECONDS,
|
|
44
44
|
ADMIN_AUTH_NONCE_TTL_SECONDS,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
toLockPubkey,
|
|
64
64
|
verifyCashuToken,
|
|
65
65
|
verifyChallenge
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VAMSJRJT.js";
|
|
67
67
|
import {
|
|
68
68
|
X402_BATCH_SETTLEMENT_SCHEME,
|
|
69
69
|
X402_DEFAULT_FACILITATOR,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
pinDimension,
|
|
104
104
|
withSpan,
|
|
105
105
|
withTraceContext
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-6DOGTAHA.js";
|
|
107
107
|
import {
|
|
108
108
|
FxRateUnavailableError,
|
|
109
109
|
InvalidCurrencyError,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
fxRateFor,
|
|
113
113
|
resolveFxSourceFromEnv,
|
|
114
114
|
validateCurrency
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-BYCEKO65.js";
|
|
116
116
|
import {
|
|
117
117
|
fiatToSatsCeil,
|
|
118
118
|
parseUsdPrice,
|
|
@@ -133,22 +133,22 @@ import {
|
|
|
133
133
|
isNonChannelBitcoinRail,
|
|
134
134
|
netOwedSats,
|
|
135
135
|
x402SettlementPending
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-2SD2W2BG.js";
|
|
137
137
|
import {
|
|
138
138
|
withSdkInitLock
|
|
139
139
|
} from "./chunk-COYKJRMM.js";
|
|
140
140
|
import {
|
|
141
141
|
withPostgresRecoveryContext
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-P6QON7ER.js";
|
|
143
143
|
import {
|
|
144
144
|
advertisedMethods,
|
|
145
145
|
challengeMeta,
|
|
146
146
|
isTempoInsufficientFundsError
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-4J32DTLT.js";
|
|
148
148
|
import {
|
|
149
149
|
createDiagnosticCapabilityAuthority,
|
|
150
150
|
diagnosticConsole
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-ETXDTUJO.js";
|
|
152
152
|
|
|
153
153
|
// src/sdk/server/lock-pubkey-store.ts
|
|
154
154
|
async function initLockPubkeyTable(db) {
|
|
@@ -8442,7 +8442,7 @@ async function loadAdminLockPubkeyState(c, opts) {
|
|
|
8442
8442
|
message: void 0,
|
|
8443
8443
|
dvm_id: opts.dvmId,
|
|
8444
8444
|
method: c.req.method,
|
|
8445
|
-
route: c.req.path
|
|
8445
|
+
route: `${c.req.method} ${c.req.path}`,
|
|
8446
8446
|
error_kind: error instanceof Error ? "Error" : typeof error,
|
|
8447
8447
|
...errorCode ? { error_code: errorCode } : {}
|
|
8448
8448
|
}
|
|
@@ -17164,12 +17164,12 @@ async function createDVMServer(descriptor, opts) {
|
|
|
17164
17164
|
const platformUrl = opts.platformUrl ?? envMaybe.DVMKIT_PLATFORM_URL;
|
|
17165
17165
|
const dvmId = opts.dvmId;
|
|
17166
17166
|
if (!opts.onJobCompleted && platformToken && platformUrl && dvmId && opts.db) {
|
|
17167
|
-
const { RevenueReporter } = await import("./revenue-reporter-
|
|
17167
|
+
const { RevenueReporter } = await import("./revenue-reporter-EKJOGQYR.js");
|
|
17168
17168
|
const reporter = new RevenueReporter(opts.db, platformUrl, platformToken);
|
|
17169
17169
|
revenueReporter = reporter;
|
|
17170
17170
|
await reporter.init();
|
|
17171
17171
|
reporter.startRetryLoop();
|
|
17172
|
-
const { MemoryX402BatchStore, PayoutReporter } = await import("./payout-reporter-
|
|
17172
|
+
const { MemoryX402BatchStore, PayoutReporter } = await import("./payout-reporter-ZMOA37GN.js");
|
|
17173
17173
|
payoutReporter = new PayoutReporter({
|
|
17174
17174
|
dvmId,
|
|
17175
17175
|
db: opts.db,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
isDrainMethod,
|
|
11
11
|
isFundingRail,
|
|
12
12
|
x402SettlementPending
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2SD2W2BG.js";
|
|
14
14
|
import "./chunk-COYKJRMM.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-P6QON7ER.js";
|
|
16
|
+
import "./chunk-ETXDTUJO.js";
|
|
17
17
|
export {
|
|
18
18
|
CreditLedger,
|
|
19
19
|
CreditLedgerError,
|
package/dist/index.js
CHANGED
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
configureDVM,
|
|
9
9
|
isConfiguredDVMDescriptor
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O3QDFPKM.js";
|
|
11
11
|
import {
|
|
12
12
|
SignedRequestError,
|
|
13
13
|
createSignedRequestVerifier
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CE7XEHYC.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_CREDIT_MAX,
|
|
17
17
|
DEFAULT_CREDIT_MIN,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
fxRateFor,
|
|
34
34
|
resolveFxSourceFromEnv,
|
|
35
35
|
validateCurrency
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BYCEKO65.js";
|
|
37
37
|
import {
|
|
38
38
|
InvalidFxRateError,
|
|
39
39
|
fiatToSatsCeil,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
roundUsd,
|
|
43
43
|
satsToFiat
|
|
44
44
|
} from "./chunk-AT6V3SY7.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-ETXDTUJO.js";
|
|
46
46
|
|
|
47
47
|
// src/sdk/heartbeat.ts
|
|
48
48
|
async function withProgressHeartbeat(opts, fn) {
|
|
@@ -6819,6 +6819,14 @@ interface DiagnosticCapabilityAuthority {
|
|
|
6819
6819
|
interface DiagnosticIdentityAuthority {
|
|
6820
6820
|
readonly [diagnosticIdentityAuthorityBrand]: true;
|
|
6821
6821
|
}
|
|
6822
|
+
/** Capture one app's configured capability names without creating a process-wide union. */
|
|
6823
|
+
declare function createDiagnosticCapabilityAuthority(capabilityNames: readonly string[]): DiagnosticCapabilityAuthority;
|
|
6824
|
+
/** Attach an existing process-local authority to a value without serializing it. */
|
|
6825
|
+
declare function bindDiagnosticCapabilityAuthority<T extends object>(value: T, authority: DiagnosticCapabilityAuthority | undefined): T;
|
|
6826
|
+
/** Extend trusted identity context without accepting identity values from a row. */
|
|
6827
|
+
declare function extendDiagnosticIdentityAuthority(authority: DiagnosticIdentityAuthority | undefined, key: string, value: unknown): DiagnosticIdentityAuthority | undefined;
|
|
6828
|
+
/** Attach trusted identity context to a detached value without serializing it. */
|
|
6829
|
+
declare function bindDiagnosticIdentityAuthority<T extends object>(value: T, authority: DiagnosticIdentityAuthority | undefined): T;
|
|
6822
6830
|
type SpanProjectionResult = {
|
|
6823
6831
|
ok: true;
|
|
6824
6832
|
row: SpanRow;
|
|
@@ -8997,4 +9005,4 @@ declare function readX402ChannelOnChain(args: {
|
|
|
8997
9005
|
*/
|
|
8998
9006
|
declare function x402ChannelControlledBy(channel: StoredX402ChannelMetadata, address: string | null | undefined): boolean;
|
|
8999
9007
|
|
|
9000
|
-
export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, type AgentProof, type AgentWallet, type AmountLabelOptions, type AttestedDvmIdentity, BTC_RATE_FILE, BUDGET_FILE, type BudgetCaps, 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, CREDIT_POSTURES, type CachedBtcRate, type CancelOptions, type CashOutMintOutcome, type CashOutQuote, type CliIdentityEntry, type CoinGeckoBtcSpot, type CoinGeckoSpot, type Config, type ConfigBackupInfo, type ConfigDirModeResult, type ConfigField, type ConfigRollbackPreview, type ConfigSnapshotSlot, CreatedInvoice, type CreditConfig, type CreditDrainRail, type CreditFundOutcome, type CreditFundRail, type CreditFundStatus, type CreditFundingMode, type CreditMenu, type CreditOpResult, type CreditPlan, type CreditPosture, type CreditRailPick, type CreditRailReason, type CreditRailSource, type CreditTerms, type CreditWire, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, type DeferredFunding, type DeliveredResult, type DescribeOptions, type DrainReceiptChecks, type DrainReceiptVerifyResult, type DrainWire, type DrawCeilingSource, type DrawSkip, DvmError, DvmX402ChannelStorage, type EffectiveFundingRail, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, type FeedbackPosture, type Float, type FloatPayment, type FloatProbe, type FundCreditArgs, FundingReceipt, type FundingReceiptChecks, type FundingReceiptVerifyResult, type FundingSkip, IDENTITIES_FILE, IDENTITIES_VERSION, type IdentitiesFile, InvoiceStatus, JOBS_FILE, type JobCompletion, type JobEnvelope, type JobPolicy, JobReceipt$1 as JobReceipt, type JobRecord, type JobStatus, JsonValue, LightningBackend, type LightningFundingOffer, LightningPayment, LightningTransactionListOptions, LightningTransactionSnapshot, LightningWalletInfo, type LnAddressParts, MESSAGES_DIR, type MeltQuoteInfo, type MeltSweepResult, MemoryKVStore, Message, type MessagePollOptions, MessageType, MintAmountBounds, MintHealthCheckResult, type MintSource, type MnemonicValidationResult, MppxChallenge, MppxCredential, NWC_FUNDING_FLOAT_ROLE, type NextAction, type NextActionRefund, 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, type PaymentRailKey, PaymentRequired, type PendingDrain, type PendingFunding, type PendingMint, type PendingSubmission, type PendingX402ExactFunding, type PendingX402Funding, type PersistedOutputData, PersistentCounterSource, type PreparedAgentSpend, type ProtectedTarget, type ProviderInfo, type ProviderRef, type ProviderText, type Quote, RAIL_FLAGS, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, type Rail, type RailFlag, type RailProbe, type ReceiptCapture, type ReceiptChecks, ReceiptCredit, type ReceiptInvalidReason, type ReceiptKeypair, type ReceiptParseError, type ReceiptTrustAnchor, type ReceiptVerification, type ReceiptVerifyResult, type ReleaseMintOutcome, type ResolvedBtcRate, ResourceInfo, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, type SelectError, type SendMessageOptions, type SpanProjectionResult, type SpanRow, type SpanTransport, SpanWriter, type StaleRateNotice, type StatusOptions, type StoredCredit, type StoredFundingMenuSnapshot, type StoredImplicitCredit, type StoredReceipt, type StoredSiblingCredit, type StoredX402ChannelConfig, type StoredX402ChannelMetadata, type StreamOptions, type StreamResult, type SubmissionSweepOutcome, type SubmitOptions, type SuppressedPurchase, type SweepResult, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, type TempoAccount, type TempoChannelAssociation, type TempoChannelExitResult, type TempoChannelReconcileResult, type TempoNetwork, type TerminalJobStatus, type Transport, type JobReceipt as TransportJobReceipt, type TrustAnchorRead, type TrustLadder, type V1InfoCapability, type V1InfoResponse, type VerifyJobReceiptArgs, WALLET_FILE, WALLET_VERSION, type WalletInfo, type X402Asset, type X402Balance, type X402BatchPayment, type X402ChannelChainReport, type X402ChannelClient, type X402ChannelReconciliation, type X402ConnectedWallet, type X402CreditFlavour, type X402CreditInstrument, X402EnvValidationError, type X402Network, type X402PaymentProof, type X402RefundArgs, type X402RefundOutcome, type X402RepinnedWallet, type X402UnobservedBalanceProvenance, X402Version, 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, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, buildAdminAuthHeader, buildAdminChallenge, buildCompletionHintFields, buildDisplayMintInventory, buildPolicy, buildTempoCredential, builderLockPath, canReplaceExpiredX402Deposit, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, checkMeltQuoteState, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, generateIdentity as cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getX402Balance, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isCreditFundRail, isCreditFundingMode, isCreditPosture, isFeedbackPosture, isPaymentRailKey, isPublicRequestId, isResumable, isStablecoinFundRail, isTerminalJobStatus, isValidEvmPrivateKey, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, payInvoiceReconciling, payViaFloat, paymentRailLabel, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signDvmRequestData, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceiptChain, verifyFundingReceiptChain, verifyJobReceipt, verifyRouterFeedbackClaim, walletExists, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint };
|
|
9008
|
+
export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, type AgentProof, type AgentWallet, type AmountLabelOptions, type AttestedDvmIdentity, BTC_RATE_FILE, BUDGET_FILE, type BudgetCaps, 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, CREDIT_POSTURES, type CachedBtcRate, type CancelOptions, type CashOutMintOutcome, type CashOutQuote, type CliIdentityEntry, type CoinGeckoBtcSpot, type CoinGeckoSpot, type Config, type ConfigBackupInfo, type ConfigDirModeResult, type ConfigField, type ConfigRollbackPreview, type ConfigSnapshotSlot, CreatedInvoice, type CreditConfig, type CreditDrainRail, type CreditFundOutcome, type CreditFundRail, type CreditFundStatus, type CreditFundingMode, type CreditMenu, type CreditOpResult, type CreditPlan, type CreditPosture, type CreditRailPick, type CreditRailReason, type CreditRailSource, type CreditTerms, type CreditWire, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, type DeferredFunding, type DeliveredResult, type DescribeOptions, type DiagnosticCapabilityAuthority, type DiagnosticIdentityAuthority, type DrainReceiptChecks, type DrainReceiptVerifyResult, type DrainWire, type DrawCeilingSource, type DrawSkip, DvmError, DvmX402ChannelStorage, type EffectiveFundingRail, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, type FeedbackPosture, type Float, type FloatPayment, type FloatProbe, type FundCreditArgs, FundingReceipt, type FundingReceiptChecks, type FundingReceiptVerifyResult, type FundingSkip, IDENTITIES_FILE, IDENTITIES_VERSION, type IdentitiesFile, InvoiceStatus, JOBS_FILE, type JobCompletion, type JobEnvelope, type JobPolicy, JobReceipt$1 as JobReceipt, type JobRecord, type JobStatus, JsonValue, LightningBackend, type LightningFundingOffer, LightningPayment, LightningTransactionListOptions, LightningTransactionSnapshot, LightningWalletInfo, type LnAddressParts, MESSAGES_DIR, type MeltQuoteInfo, type MeltSweepResult, MemoryKVStore, Message, type MessagePollOptions, MessageType, MintAmountBounds, MintHealthCheckResult, type MintSource, type MnemonicValidationResult, MppxChallenge, MppxCredential, NWC_FUNDING_FLOAT_ROLE, type NextAction, type NextActionRefund, 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, type PaymentRailKey, PaymentRequired, type PendingDrain, type PendingFunding, type PendingMint, type PendingSubmission, type PendingX402ExactFunding, type PendingX402Funding, type PersistedOutputData, PersistentCounterSource, type PreparedAgentSpend, type ProtectedTarget, type ProviderInfo, type ProviderRef, type ProviderText, type Quote, RAIL_FLAGS, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, type Rail, type RailFlag, type RailProbe, type ReceiptCapture, type ReceiptChecks, ReceiptCredit, type ReceiptInvalidReason, type ReceiptKeypair, type ReceiptParseError, type ReceiptTrustAnchor, type ReceiptVerification, type ReceiptVerifyResult, type ReleaseMintOutcome, type ResolvedBtcRate, ResourceInfo, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, type SelectError, type SendMessageOptions, type SpanProjectionResult, type SpanRow, type SpanTransport, SpanWriter, type StaleRateNotice, type StatusOptions, type StoredCredit, type StoredFundingMenuSnapshot, type StoredImplicitCredit, type StoredReceipt, type StoredSiblingCredit, type StoredX402ChannelConfig, type StoredX402ChannelMetadata, type StreamOptions, type StreamResult, type SubmissionSweepOutcome, type SubmitOptions, type SuppressedPurchase, type SweepResult, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, type TempoAccount, type TempoChannelAssociation, type TempoChannelExitResult, type TempoChannelReconcileResult, type TempoNetwork, type TerminalJobStatus, type Transport, type JobReceipt as TransportJobReceipt, type TrustAnchorRead, type TrustLadder, type V1InfoCapability, type V1InfoResponse, type VerifyJobReceiptArgs, WALLET_FILE, WALLET_VERSION, type WalletInfo, type X402Asset, type X402Balance, type X402BatchPayment, type X402ChannelChainReport, type X402ChannelClient, type X402ChannelReconciliation, type X402ConnectedWallet, type X402CreditFlavour, type X402CreditInstrument, X402EnvValidationError, type X402Network, type X402PaymentProof, type X402RefundArgs, type X402RefundOutcome, type X402RepinnedWallet, type X402UnobservedBalanceProvenance, X402Version, 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, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, bindDiagnosticCapabilityAuthority, bindDiagnosticIdentityAuthority, buildAdminAuthHeader, buildAdminChallenge, buildCompletionHintFields, buildDisplayMintInventory, buildPolicy, buildTempoCredential, builderLockPath, canReplaceExpiredX402Deposit, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, checkMeltQuoteState, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, generateIdentity as cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createDiagnosticCapabilityAuthority, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, extendDiagnosticIdentityAuthority, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getX402Balance, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isCreditFundRail, isCreditFundingMode, isCreditPosture, isFeedbackPosture, isPaymentRailKey, isPublicRequestId, isResumable, isStablecoinFundRail, isTerminalJobStatus, isValidEvmPrivateKey, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, payInvoiceReconciling, payViaFloat, paymentRailLabel, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signDvmRequestData, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceiptChain, verifyFundingReceiptChain, verifyJobReceipt, verifyRouterFeedbackClaim, walletExists, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint };
|
package/dist/internal/caller.js
CHANGED
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
} from "../chunk-MG67KXU7.js";
|
|
185
185
|
import {
|
|
186
186
|
CAPABILITY_NAME_RE
|
|
187
|
-
} from "../chunk-
|
|
187
|
+
} from "../chunk-O3QDFPKM.js";
|
|
188
188
|
import {
|
|
189
189
|
DbTransport,
|
|
190
190
|
NwcBackend,
|
|
@@ -209,7 +209,7 @@ import {
|
|
|
209
209
|
sha256hex,
|
|
210
210
|
validateX402Env,
|
|
211
211
|
withNwcPool
|
|
212
|
-
} from "../chunk-
|
|
212
|
+
} from "../chunk-FI4CST2D.js";
|
|
213
213
|
import {
|
|
214
214
|
MemoryKVStore
|
|
215
215
|
} from "../chunk-SDK6KDJN.js";
|
|
@@ -289,7 +289,7 @@ import {
|
|
|
289
289
|
withWalletLock,
|
|
290
290
|
writeAgentMnemonic,
|
|
291
291
|
writeIdentity
|
|
292
|
-
} from "../chunk-
|
|
292
|
+
} from "../chunk-VAMSJRJT.js";
|
|
293
293
|
import {
|
|
294
294
|
X402_BATCH_SETTLEMENT_SCHEME,
|
|
295
295
|
X402_DEFAULT_FACILITATOR,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
randomTraceId,
|
|
399
399
|
setEmitter,
|
|
400
400
|
withTraceContext
|
|
401
|
-
} from "../chunk-
|
|
401
|
+
} from "../chunk-6DOGTAHA.js";
|
|
402
402
|
import "../chunk-66HGCPBU.js";
|
|
403
403
|
import {
|
|
404
404
|
redactUrl,
|
|
@@ -408,7 +408,7 @@ import {
|
|
|
408
408
|
FX_CACHE_TTL_MS,
|
|
409
409
|
FX_RETRY_COUNT,
|
|
410
410
|
warmFxSnapshot
|
|
411
|
-
} from "../chunk-
|
|
411
|
+
} from "../chunk-BYCEKO65.js";
|
|
412
412
|
import {
|
|
413
413
|
InvalidUsdPriceError,
|
|
414
414
|
parseUsdPrice
|
|
@@ -416,13 +416,17 @@ import {
|
|
|
416
416
|
import {
|
|
417
417
|
applyRetryToPool,
|
|
418
418
|
withInitRetry
|
|
419
|
-
} from "../chunk-
|
|
419
|
+
} from "../chunk-P6QON7ER.js";
|
|
420
420
|
import {
|
|
421
421
|
DIAGNOSTIC_CATALOGUE_VERSION,
|
|
422
|
+
bindDiagnosticCapabilityAuthority,
|
|
423
|
+
bindDiagnosticIdentityAuthority,
|
|
424
|
+
createDiagnosticCapabilityAuthority,
|
|
425
|
+
extendDiagnosticIdentityAuthority,
|
|
422
426
|
projectDiagnosticFields,
|
|
423
427
|
projectEventName,
|
|
424
428
|
projectSpanRow
|
|
425
|
-
} from "../chunk-
|
|
429
|
+
} from "../chunk-ETXDTUJO.js";
|
|
426
430
|
|
|
427
431
|
// src/lib/budget-ledger.ts
|
|
428
432
|
import { existsSync, readFileSync, renameSync, writeFileSync } from "fs";
|
|
@@ -9678,6 +9682,8 @@ export {
|
|
|
9678
9682
|
availableRails,
|
|
9679
9683
|
backfillTrustAnchor,
|
|
9680
9684
|
backupSecretFile,
|
|
9685
|
+
bindDiagnosticCapabilityAuthority,
|
|
9686
|
+
bindDiagnosticIdentityAuthority,
|
|
9681
9687
|
buildAdminAuthHeader,
|
|
9682
9688
|
buildAdminChallenge,
|
|
9683
9689
|
buildAttestation,
|
|
@@ -9720,6 +9726,7 @@ export {
|
|
|
9720
9726
|
correctPendingFundAmount,
|
|
9721
9727
|
costAnchor,
|
|
9722
9728
|
coveringMintsForSpend,
|
|
9729
|
+
createDiagnosticCapabilityAuthority,
|
|
9723
9730
|
createMonotonicClock,
|
|
9724
9731
|
createNoopLogger,
|
|
9725
9732
|
createStdoutLogger,
|
|
@@ -9759,6 +9766,7 @@ export {
|
|
|
9759
9766
|
entryKind,
|
|
9760
9767
|
epochMsToIso,
|
|
9761
9768
|
exactEvmAuthorization,
|
|
9769
|
+
extendDiagnosticIdentityAuthority,
|
|
9762
9770
|
extractBuilderHandle,
|
|
9763
9771
|
fetchBtcUsdRate,
|
|
9764
9772
|
fetchCoinGeckoBtcUsd,
|
package/dist/internal/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, BTC_RATE_FILE, BUDGET_FILE, 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, CREDIT_POSTURES, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, DvmError, DvmX402ChannelStorage, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, FX_CACHE_TTL_MS, FX_RETRY_COUNT, IDENTITIES_FILE, IDENTITIES_VERSION, InvalidUsdPriceError, JOBS_FILE, MESSAGES_DIR, MemoryKVStore, NWC_FUNDING_FLOAT_ROLE, NwcBackend, NwcError, PAIRINGS_DIR, PRIVKEY_HEX_RE, PersistentCounterSource, RAIL_FLAGS, RAIL_REFUNDABLE, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, SpanWriter, StepCache, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, WALLET_FILE, WALLET_VERSION, X402EnvValidationError, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_DEFAULT_NETWORK, 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, X402_V1_VERSION, X402_VERSION, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, amountBoundsVerdict, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertNutSupport, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, buildAdminAuthHeader, buildAdminChallenge, buildAttestation, buildCompletionHintFields, buildDisplayMintInventory, buildPaymentRequiredV2, buildPaymentRequirements, buildPolicy, buildTempoCredential, builderLockPath, caip2ToX402Network, canReplaceExpiredX402Deposit, canSwap, canonicalRequestPath, canonicaliseForSigning, canonicalize, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, chainIdFromCaip2, checkMeltQuoteState, checkMintHealth, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeResultHash, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, decodePayment, decodePaymentRequiredHeader, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, encodePayment, encodePaymentRequiredHeader, encodeSettleResponseHeader, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, exactEvmAuthorization, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateIdentity, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getWallet, getX402Balance, hashCapabilities, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isArtifactMessage, isCancelMessage, isCompleteMessage, isCreditFundRail, isCreditFundingMode, isCreditPosture, isDrainReceipt, isFeedbackPosture, isFundingReceipt, isPaymentRailKey, isPaymentRequestMessage, isPromptMessage, isPublicRequestId, isResumable, isSignedJobReceipt, isStablecoinFundRail, isTerminalJobStatus, isTextMessage, isValidEvmPrivateKey, isWorkingMessage, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadIdentitySecret, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, parseUsdPrice, payInvoiceReconciling, payViaFloat, paymentRailLabel, paymentRequiredV2FromV1, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signAttestation, signDrainReceipt, signDvmRequestData, signFundingReceipt, signReceipt, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, toLockPubkey, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcContractByCaip2, usdcContractFor, usdcDomainNameFor, usdcDomainVersionFor, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyAttestation, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceipt, verifyDrainReceiptChain, verifyFundingReceipt, verifyFundingReceiptChain, verifyJobReceipt, verifyReceipt, verifyRouterFeedbackClaim, walletExists, warmFxSnapshot, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, writeIdentity, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402NetworkToCaip2, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint } from "./caller.js";
|
|
1
|
+
export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, BTC_RATE_FILE, BUDGET_FILE, 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, CREDIT_POSTURES, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, DvmError, DvmX402ChannelStorage, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, FX_CACHE_TTL_MS, FX_RETRY_COUNT, IDENTITIES_FILE, IDENTITIES_VERSION, InvalidUsdPriceError, JOBS_FILE, MESSAGES_DIR, MemoryKVStore, NWC_FUNDING_FLOAT_ROLE, NwcBackend, NwcError, PAIRINGS_DIR, PRIVKEY_HEX_RE, PersistentCounterSource, RAIL_FLAGS, RAIL_REFUNDABLE, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, SpanWriter, StepCache, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, WALLET_FILE, WALLET_VERSION, X402EnvValidationError, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_DEFAULT_NETWORK, 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, X402_V1_VERSION, X402_VERSION, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, amountBoundsVerdict, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertNutSupport, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, bindDiagnosticCapabilityAuthority, bindDiagnosticIdentityAuthority, buildAdminAuthHeader, buildAdminChallenge, buildAttestation, buildCompletionHintFields, buildDisplayMintInventory, buildPaymentRequiredV2, buildPaymentRequirements, buildPolicy, buildTempoCredential, builderLockPath, caip2ToX402Network, canReplaceExpiredX402Deposit, canSwap, canonicalRequestPath, canonicaliseForSigning, canonicalize, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, chainIdFromCaip2, checkMeltQuoteState, checkMintHealth, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeResultHash, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createDiagnosticCapabilityAuthority, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, decodePayment, decodePaymentRequiredHeader, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, encodePayment, encodePaymentRequiredHeader, encodeSettleResponseHeader, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, exactEvmAuthorization, extendDiagnosticIdentityAuthority, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateIdentity, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getWallet, getX402Balance, hashCapabilities, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isArtifactMessage, isCancelMessage, isCompleteMessage, isCreditFundRail, isCreditFundingMode, isCreditPosture, isDrainReceipt, isFeedbackPosture, isFundingReceipt, isPaymentRailKey, isPaymentRequestMessage, isPromptMessage, isPublicRequestId, isResumable, isSignedJobReceipt, isStablecoinFundRail, isTerminalJobStatus, isTextMessage, isValidEvmPrivateKey, isWorkingMessage, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadIdentitySecret, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, parseUsdPrice, payInvoiceReconciling, payViaFloat, paymentRailLabel, paymentRequiredV2FromV1, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signAttestation, signDrainReceipt, signDvmRequestData, signFundingReceipt, signReceipt, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, toLockPubkey, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcContractByCaip2, usdcContractFor, usdcDomainNameFor, usdcDomainVersionFor, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyAttestation, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceipt, verifyDrainReceiptChain, verifyFundingReceipt, verifyFundingReceiptChain, verifyJobReceipt, verifyReceipt, verifyRouterFeedbackClaim, walletExists, warmFxSnapshot, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, writeIdentity, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402NetworkToCaip2, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint } from "./caller.js";
|
|
2
2
|
export { DEFAULT_LOCK_PUBKEY_GRACE_SECONDS, JobCancelledError, MintHealthTracker, NON_CHANNEL_BITCOIN_RAILS, PAYMENT_PROOF_KEYS, PayoutReporter, PostgresTempoChargeStore, PostgresTempoSessionStore, RevenueReporter, SIGNED_ENVELOPE_FIELDS, SIGNED_ENVELOPE_TYPES, TEMPO_CLOSE_DB_RECOVERY_BUDGET_MS, TEMPO_CLOSE_REQUESTED_TOPIC, TempoSessionChannelMismatchError, X402FacilitatorHealth, X402_BATCH_SETTLEMENT_MAINNET_NETWORK, _testing, abortJob, activePubkeySet, applyPaymentInfoToJob, assertRevenueReporterReady, buildPaymentErrorResponse, clearAccumulatorForDvm, createAdminCashuNonceStore, createDVMServer, createDefaultReplayStore, createInstrumentedFetch, creditDepositPayload, depleteLots, derivedFundCreditId, devModeSkipsPaymentVerification, fifoOrder, fromJobRecord, fundedMicroFor, hasPaymentProof, hashLockKey, humanizeZodError, implicitCreditId, inKindDrawMsats, initLockPubkeyTable, initWalletAccumulatorTable, insertAccumulatorRows, installAdminCashuRoutes, isDerivedCreditId, isInKindDepletion, isNonChannelBitcoinRail, isStaleJobReapable, isTerminal, isYieldMessage, issueUpfrontChallenges, jobCredentialGate, loadLockPubkeyState, lockPubkeyStoreToLockPubkey, lotOwedSats, msatsToFiatMicro, netOwedSats, paymentErrorBody, pinAskFiat, priceFiatMicro, processIncomingPayment, providerMessage, pruneRetired, rateUnavailablePaymentError, repairX402ExactSettlementEffect, resolveFxSnapshot, resolvePriceFiat, revenueReporterBannerState, rotateLockPubkey, seedLockPubkeyState, settleWithFacilitator, toCreditTerms, toJobRecord, unknownRouteNotFound, verifyIncomingPayment, verifyTempoSessionManagementCredential, verifyUpfrontPayment, verifyWithFacilitator, verifyX402Payment, wrapMppx, x402RequiredUsdcMicro, x402SettledShare } from "./server.js";
|
package/dist/internal/server.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-EAMZZ2B4.js";
|
|
4
4
|
import {
|
|
5
5
|
verifyX402Payment
|
|
6
6
|
} from "../chunk-2KGG5ORW.js";
|
|
7
7
|
import {
|
|
8
8
|
RevenueReporter
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-7X6UDVCQ.js";
|
|
10
10
|
import {
|
|
11
11
|
PayoutReporter
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-4UZN2GP5.js";
|
|
13
13
|
import {
|
|
14
14
|
PostgresTempoChargeStore
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-YHN3WMMF.js";
|
|
16
16
|
import "../chunk-YG7G4DPZ.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
@@ -65,20 +65,20 @@ import {
|
|
|
65
65
|
verifyUpfrontPayment,
|
|
66
66
|
x402RequiredUsdcMicro,
|
|
67
67
|
x402SettledShare
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-UZC4A4DM.js";
|
|
69
69
|
import "../chunk-XRLKGCAW.js";
|
|
70
70
|
import {
|
|
71
71
|
settleWithFacilitator,
|
|
72
72
|
verifyWithFacilitator
|
|
73
73
|
} from "../chunk-BQ2NMWKE.js";
|
|
74
|
-
import "../chunk-
|
|
75
|
-
import "../chunk-
|
|
74
|
+
import "../chunk-M4QDXD2A.js";
|
|
75
|
+
import "../chunk-JDFLRNAZ.js";
|
|
76
76
|
import {
|
|
77
77
|
SIGNED_ENVELOPE_FIELDS,
|
|
78
78
|
SIGNED_ENVELOPE_TYPES,
|
|
79
79
|
createDefaultReplayStore,
|
|
80
80
|
humanizeZodError
|
|
81
|
-
} from "../chunk-
|
|
81
|
+
} from "../chunk-CE7XEHYC.js";
|
|
82
82
|
import {
|
|
83
83
|
JobCancelledError,
|
|
84
84
|
abortJob,
|
|
@@ -89,18 +89,18 @@ import {
|
|
|
89
89
|
isYieldMessage,
|
|
90
90
|
providerMessage,
|
|
91
91
|
toJobRecord
|
|
92
|
-
} from "../chunk-
|
|
92
|
+
} from "../chunk-O5AT6S5T.js";
|
|
93
93
|
import {
|
|
94
94
|
toLockPubkey
|
|
95
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-VAMSJRJT.js";
|
|
96
96
|
import "../chunk-Z4BNLUZF.js";
|
|
97
97
|
import "../chunk-A4CM2BD3.js";
|
|
98
98
|
import "../chunk-MKI6OVW4.js";
|
|
99
99
|
import "../chunk-KXZUCCEY.js";
|
|
100
|
-
import "../chunk-
|
|
100
|
+
import "../chunk-6DOGTAHA.js";
|
|
101
101
|
import "../chunk-66HGCPBU.js";
|
|
102
102
|
import "../chunk-FUJ36YDV.js";
|
|
103
|
-
import "../chunk-
|
|
103
|
+
import "../chunk-BYCEKO65.js";
|
|
104
104
|
import "../chunk-AT6V3SY7.js";
|
|
105
105
|
import {
|
|
106
106
|
NON_CHANNEL_BITCOIN_RAILS,
|
|
@@ -111,14 +111,14 @@ import {
|
|
|
111
111
|
isNonChannelBitcoinRail,
|
|
112
112
|
lotOwedSats,
|
|
113
113
|
netOwedSats
|
|
114
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-2SD2W2BG.js";
|
|
115
115
|
import "../chunk-COYKJRMM.js";
|
|
116
|
-
import "../chunk-
|
|
116
|
+
import "../chunk-P6QON7ER.js";
|
|
117
117
|
import {
|
|
118
118
|
_testing,
|
|
119
119
|
wrapMppx
|
|
120
|
-
} from "../chunk-
|
|
121
|
-
import "../chunk-
|
|
120
|
+
} from "../chunk-4J32DTLT.js";
|
|
121
|
+
import "../chunk-ETXDTUJO.js";
|
|
122
122
|
export {
|
|
123
123
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
124
124
|
JobCancelledError,
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
parseMppMethodsAllowlist,
|
|
18
18
|
resolveTempoNetwork,
|
|
19
19
|
wrapMppx
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-4J32DTLT.js";
|
|
21
|
+
import "./chunk-ETXDTUJO.js";
|
|
22
22
|
export {
|
|
23
23
|
MPPX_HMAC_MISMATCH_REASON,
|
|
24
24
|
TEMPO_MAINNET_CHAIN_ID,
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
PAYOUT_SNAPSHOT_INTERVAL_MS,
|
|
4
4
|
PayoutReporter,
|
|
5
5
|
PostgresX402BatchStore
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4UZN2GP5.js";
|
|
7
7
|
import "./chunk-COYKJRMM.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ETXDTUJO.js";
|
|
9
9
|
export {
|
|
10
10
|
MemoryX402BatchStore,
|
|
11
11
|
PAYOUT_SNAPSHOT_INTERVAL_MS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveFxSourceFromEnv,
|
|
13
13
|
validateCurrency,
|
|
14
14
|
warmFxSnapshot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BYCEKO65.js";
|
|
16
16
|
import {
|
|
17
17
|
InvalidFxRateError,
|
|
18
18
|
InvalidUsdPriceError,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
roundUsd,
|
|
24
24
|
satsToFiat
|
|
25
25
|
} from "./chunk-AT6V3SY7.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-ETXDTUJO.js";
|
|
27
27
|
export {
|
|
28
28
|
DEFAULT_FX_CURRENCIES,
|
|
29
29
|
DEFAULT_FX_RATE_SOURCE,
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresReplayStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VHNPVGSA.js";
|
|
4
4
|
import {
|
|
5
5
|
PostgresKVStore
|
|
6
6
|
} from "../chunk-V5ZRATJH.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
parseNwcUri,
|
|
19
19
|
validateX402Env,
|
|
20
20
|
withNwcPool
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-FI4CST2D.js";
|
|
22
22
|
import {
|
|
23
23
|
MemoryKVStore
|
|
24
24
|
} from "../chunk-SDK6KDJN.js";
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
stripProtocolEnvelope,
|
|
77
77
|
toCreditView,
|
|
78
78
|
unknownRouteNotFound
|
|
79
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-UZC4A4DM.js";
|
|
80
80
|
import {
|
|
81
81
|
MemoryProcessedPaymentStore,
|
|
82
82
|
PostgresProcessedPaymentStore,
|
|
@@ -85,24 +85,24 @@ import {
|
|
|
85
85
|
import "../chunk-BQ2NMWKE.js";
|
|
86
86
|
import {
|
|
87
87
|
MemoryCreditLedger
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-M4QDXD2A.js";
|
|
89
89
|
import {
|
|
90
90
|
PostgresJobStore
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-JDFLRNAZ.js";
|
|
92
92
|
import {
|
|
93
93
|
SignedRequestError,
|
|
94
94
|
createDefaultReplayStore,
|
|
95
95
|
createSignedRequestVerifier,
|
|
96
96
|
signedRequestInput
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-CE7XEHYC.js";
|
|
98
98
|
import {
|
|
99
99
|
isStreamableJobStore
|
|
100
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-O5AT6S5T.js";
|
|
101
101
|
import {
|
|
102
102
|
generateEphemeralReceiptKey,
|
|
103
103
|
isTestMintUrl,
|
|
104
104
|
receiptPubkeyFromSecret
|
|
105
|
-
} from "../chunk-
|
|
105
|
+
} from "../chunk-VAMSJRJT.js";
|
|
106
106
|
import {
|
|
107
107
|
X402_DEFAULT_FACILITATOR,
|
|
108
108
|
X402_DEFAULT_NETWORK,
|
|
@@ -122,10 +122,10 @@ import {
|
|
|
122
122
|
} from "../chunk-KXZUCCEY.js";
|
|
123
123
|
import {
|
|
124
124
|
initLoggers
|
|
125
|
-
} from "../chunk-
|
|
125
|
+
} from "../chunk-6DOGTAHA.js";
|
|
126
126
|
import "../chunk-66HGCPBU.js";
|
|
127
127
|
import "../chunk-FUJ36YDV.js";
|
|
128
|
-
import "../chunk-
|
|
128
|
+
import "../chunk-BYCEKO65.js";
|
|
129
129
|
import "../chunk-AT6V3SY7.js";
|
|
130
130
|
import {
|
|
131
131
|
CreditLedger,
|
|
@@ -134,24 +134,24 @@ import {
|
|
|
134
134
|
PostgresX402ChannelStorage,
|
|
135
135
|
X402RelaySubmissionLockError,
|
|
136
136
|
allocateDrawValue
|
|
137
|
-
} from "../chunk-
|
|
137
|
+
} from "../chunk-2SD2W2BG.js";
|
|
138
138
|
import {
|
|
139
139
|
SDK_INIT_ADVISORY_LOCK,
|
|
140
140
|
withSdkInitLock
|
|
141
141
|
} from "../chunk-COYKJRMM.js";
|
|
142
142
|
import {
|
|
143
143
|
applyRetryToPool
|
|
144
|
-
} from "../chunk-
|
|
144
|
+
} from "../chunk-P6QON7ER.js";
|
|
145
145
|
import {
|
|
146
146
|
TEMPO_MODERATO_CHAIN_ID,
|
|
147
147
|
TEMPO_MODERATO_RPC,
|
|
148
148
|
TEMPO_SETTLEMENT_DEFAULT_LOW_BALANCE_MICRO,
|
|
149
149
|
TempoSettlementReadiness,
|
|
150
150
|
resolveTempoNetwork
|
|
151
|
-
} from "../chunk-
|
|
151
|
+
} from "../chunk-4J32DTLT.js";
|
|
152
152
|
import {
|
|
153
153
|
diagnosticConsole
|
|
154
|
-
} from "../chunk-
|
|
154
|
+
} from "../chunk-ETXDTUJO.js";
|
|
155
155
|
|
|
156
156
|
// src/sdk/server/cashu-env.ts
|
|
157
157
|
async function resolveCashuOptsFromEnv(env, pool, cashuModeHint) {
|
|
@@ -1137,7 +1137,7 @@ function createDVMHost(opts = {}) {
|
|
|
1137
1137
|
});
|
|
1138
1138
|
applyRetryToPool(pool, "dvm-host");
|
|
1139
1139
|
pgPool = pool;
|
|
1140
|
-
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-
|
|
1140
|
+
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-MSD2HZOI.js");
|
|
1141
1141
|
const pgJobStore = new PostgresJobStore2(pool);
|
|
1142
1142
|
pendingInits.push(pgJobStore.init(), pgJobStore.initStreaming());
|
|
1143
1143
|
jobStore = pgJobStore;
|
|
@@ -1228,11 +1228,11 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1228
1228
|
let tempoChargeBackend = "user-supplied";
|
|
1229
1229
|
const mppTempoRecipient = envMaybe.DVMKIT_TEMPO_RECIPIENT;
|
|
1230
1230
|
if (!mpp && mppTempoRecipient) {
|
|
1231
|
-
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-
|
|
1231
|
+
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-7CGBKNUP.js");
|
|
1232
1232
|
tempoChargeBackend = pgPool ? "postgres" : "memory";
|
|
1233
1233
|
let tempoCharge;
|
|
1234
1234
|
if (pgPool) {
|
|
1235
|
-
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-
|
|
1235
|
+
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-4WX7FPOV.js");
|
|
1236
1236
|
const chargeStore = new PostgresTempoChargeStore(pgPool);
|
|
1237
1237
|
pendingInits.push(chargeStore.init());
|
|
1238
1238
|
tempoCharge = { store: chargeStore };
|
|
@@ -1251,7 +1251,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1251
1251
|
{ createPublicClient, createWalletClient, erc20Abi, http },
|
|
1252
1252
|
{ tempo: tempoMainnet, tempoModerato }
|
|
1253
1253
|
] = await Promise.all([
|
|
1254
|
-
import("../tempo-session-store-
|
|
1254
|
+
import("../tempo-session-store-LCSDHB7G.js"),
|
|
1255
1255
|
import("viem/accounts"),
|
|
1256
1256
|
import("viem"),
|
|
1257
1257
|
import("viem/chains")
|
|
@@ -1382,7 +1382,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
const fxSource = envMaybe.DVMKIT_FX_SOURCE;
|
|
1385
|
-
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-
|
|
1385
|
+
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-XT2IAPNE.js");
|
|
1386
1386
|
const fxFetcher = opts.fx ?? createFxFetcher({ source: resolveFxSourceFromEnv(envMaybe) });
|
|
1387
1387
|
const hostRailConfigured = (opts.paymentMethods?.length ?? 0) > 0 || (effectiveMints?.length ?? 0) > 0 || !!x402WithDualServe || !!mpp;
|
|
1388
1388
|
if (mounts.some((entry) => mountNeedsFx(entry, hostRailConfigured))) warmFxSnapshot(fxFetcher);
|
|
@@ -1392,7 +1392,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1392
1392
|
assertReceiptIdentity(envMaybe, opts.builder, receiptKey, cashuOpts.dvmId, opts.devMode);
|
|
1393
1393
|
let sharedPgReplayStore;
|
|
1394
1394
|
if (pgPool) {
|
|
1395
|
-
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-
|
|
1395
|
+
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-ARZSQ45X.js");
|
|
1396
1396
|
const store2 = new PostgresReplayStore2(pgPool);
|
|
1397
1397
|
pendingInits.push(store2.init());
|
|
1398
1398
|
sharedPgReplayStore = store2;
|
|
@@ -1420,13 +1420,13 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1420
1420
|
}
|
|
1421
1421
|
let sharedPgConsumedStore;
|
|
1422
1422
|
if (pgPool) {
|
|
1423
|
-
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-
|
|
1423
|
+
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-CUQJKRSL.js");
|
|
1424
1424
|
const consumedStore = new PostgresConsumedCredentialStore(pgPool);
|
|
1425
1425
|
pendingInits.push(consumedStore.init());
|
|
1426
1426
|
sharedPgConsumedStore = consumedStore;
|
|
1427
1427
|
}
|
|
1428
1428
|
if (pgPool) {
|
|
1429
|
-
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-
|
|
1429
|
+
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-A35WH2TI.js");
|
|
1430
1430
|
const pgLedger = new CreditLedger2(pgPool, tempoSessionStore);
|
|
1431
1431
|
pendingInits.push(pgLedger.init());
|
|
1432
1432
|
creditLedger = pgLedger;
|
|
@@ -1435,7 +1435,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1435
1435
|
pendingInits.push(pgProcessed.init());
|
|
1436
1436
|
processedPayments = pgProcessed;
|
|
1437
1437
|
} else {
|
|
1438
|
-
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-
|
|
1438
|
+
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-2LBZVMKJ.js");
|
|
1439
1439
|
creditLedger = disposableCashu?.ledger ?? new MemoryCreditLedger2();
|
|
1440
1440
|
const { MemoryProcessedPaymentStore: MemoryProcessedPaymentStore2 } = await import("../processed-payment-store-GKMAWOM3.js");
|
|
1441
1441
|
processedPayments = new MemoryProcessedPaymentStore2();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoChargeStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YHN3WMMF.js";
|
|
4
4
|
import "./chunk-YG7G4DPZ.js";
|
|
5
5
|
import "./chunk-COYKJRMM.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-ETXDTUJO.js";
|
|
7
7
|
export {
|
|
8
8
|
PostgresTempoChargeStore
|
|
9
9
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore,
|
|
3
3
|
assertMonotonicTransition
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EAMZZ2B4.js";
|
|
5
5
|
import "./chunk-YG7G4DPZ.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-P6QON7ER.js";
|
|
8
|
+
import "./chunk-ETXDTUJO.js";
|
|
9
9
|
export {
|
|
10
10
|
PostgresTempoSessionStore,
|
|
11
11
|
assertMonotonicTransition
|
package/dist/testing/index.js
CHANGED
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
JobCancelledError,
|
|
6
6
|
MemoryJobStore,
|
|
7
7
|
createInstrumentedFetch
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-O5AT6S5T.js";
|
|
9
9
|
import {
|
|
10
10
|
createNoopLogger
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-6DOGTAHA.js";
|
|
12
12
|
import "../chunk-66HGCPBU.js";
|
|
13
13
|
import "../chunk-FUJ36YDV.js";
|
|
14
14
|
import {
|
|
15
15
|
validateCurrency
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-BYCEKO65.js";
|
|
17
17
|
import "../chunk-AT6V3SY7.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-ETXDTUJO.js";
|
|
19
19
|
|
|
20
20
|
// src/sdk/testing/test-context.ts
|
|
21
21
|
function createTestContext(opts) {
|
package/package.json
CHANGED