@dvmkit/sdk 0.3.1-rc.10 → 0.3.2-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-MD3H3BF7.js → chunk-2A33VHYM.js} +1 -1
- package/dist/{chunk-AJNFXR7J.js → chunk-3KYLYVY4.js} +4 -1
- package/dist/{chunk-YO56VCTQ.js → chunk-BWGRKGKG.js} +190 -75
- package/dist/{chunk-MMCE7XSR.js → chunk-C2AGARLM.js} +1 -13
- package/dist/chunk-D42FMCLJ.js +1423 -0
- package/dist/{chunk-QX52F6IB.js → chunk-DSVGYW3B.js} +7 -4
- package/dist/{chunk-CC3UY6OS.js → chunk-HNIKSOI2.js} +378 -373
- package/dist/{chunk-4A2RAKCW.js → chunk-IBDDIG4K.js} +7 -3
- package/dist/{chunk-D7YQYLLM.js → chunk-J7PW2U6P.js} +1 -1
- package/dist/{chunk-FDKRXOZO.js → chunk-KL4C3LQV.js} +57 -49
- package/dist/{chunk-VA7GT6C6.js → chunk-LHN75BTX.js} +56 -53
- package/dist/{chunk-C3MTFLC6.js → chunk-M4RSKQAV.js} +14 -12
- package/dist/{chunk-U5VNEALI.js → chunk-PPHE7XUU.js} +1 -1
- package/dist/{chunk-GAIPXGM3.js → chunk-SP42AI5T.js} +1 -1
- package/dist/{chunk-N5B66UOS.js → chunk-U2EYIPFX.js} +4 -1
- package/dist/{chunk-H2MEFVH6.js → chunk-UQCK5VMA.js} +7 -4
- package/dist/{chunk-XMDQOXHO.js → chunk-Y7JZLO5J.js} +4 -1
- package/dist/{chunk-HHTL3ZFT.js → chunk-YEO5GW7U.js} +16 -13
- package/dist/{chunk-O6D72KYA.js → chunk-YRDA7EWN.js} +1 -1
- package/dist/{chunk-VIVXB4CD.js → chunk-YYQG4R7T.js} +1 -1
- package/dist/{chunk-FPOLJRBF.js → chunk-Z3EHBW2G.js} +2 -2
- package/dist/{chunk-2D75MNNG.js → chunk-ZHTUITDW.js} +8 -5
- package/dist/{chunk-XZ7LW4S5.js → chunk-ZUTI56L7.js} +20 -16
- package/dist/{credit-ledger-MHA652TV.js → credit-ledger-4CCHRJE2.js} +3 -2
- package/dist/index.js +4 -3
- package/dist/internal/caller.d.ts +32 -3
- package/dist/internal/caller.js +22 -12
- package/dist/internal/index.js +1 -1
- package/dist/internal/server.js +16 -15
- package/dist/memory-credit-ledger-TERNM5T6.js +10 -0
- package/dist/{mpp-setup-MPP3ST5X.js → mpp-setup-OQ4OV7A5.js} +2 -1
- package/dist/{payout-reporter-KEMUXEUO.js → payout-reporter-TQ3YIFLZ.js} +2 -1
- package/dist/{postgres-consumed-credential-store-6N2V5MJN.js → postgres-consumed-credential-store-LFQNC7LD.js} +4 -1
- package/dist/{postgres-job-store-VE2JRUEC.js → postgres-job-store-FGOJ7UIX.js} +2 -1
- package/dist/{postgres-replay-store-ZF4JNZOW.js → postgres-replay-store-DFQSXPCG.js} +2 -1
- package/dist/{pricing-MU5GNUJZ.js → pricing-UJAPJLOM.js} +2 -1
- package/dist/{revenue-reporter-O75BGYFK.js → revenue-reporter-VN4WYN74.js} +2 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +112 -112
- package/dist/{tempo-charge-store-SDTUNTKA.js → tempo-charge-store-EA66LSVJ.js} +2 -1
- package/dist/{tempo-lifecycle-G5SB4HFC.js → tempo-lifecycle-TJ62A7UX.js} +3 -3
- package/dist/{tempo-session-store-WF3VZXNF.js → tempo-session-store-65NA77KJ.js} +3 -2
- package/dist/{tempo-wallet-ZFNUDFVO.js → tempo-wallet-RCGBBAJH.js} +1 -1
- package/dist/testing/index.js +4 -3
- package/dist/{x402-CI6PSHNO.js → x402-S47Q77UE.js} +2 -2
- package/package.json +1 -1
- package/dist/memory-credit-ledger-BYBATRN3.js +0 -9
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
PAYOUT_SNAPSHOT_INTERVAL_MS,
|
|
4
4
|
PayoutReporter,
|
|
5
5
|
PostgresX402BatchStore
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y7JZLO5J.js";
|
|
7
7
|
import "./chunk-COYKJRMM.js";
|
|
8
|
+
import "./chunk-D42FMCLJ.js";
|
|
8
9
|
export {
|
|
9
10
|
MemoryX402BatchStore,
|
|
10
11
|
PAYOUT_SNAPSHOT_INTERVAL_MS,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withSdkInitLock
|
|
3
3
|
} from "./chunk-COYKJRMM.js";
|
|
4
|
+
import {
|
|
5
|
+
diagnosticConsole
|
|
6
|
+
} from "./chunk-D42FMCLJ.js";
|
|
4
7
|
|
|
5
8
|
// src/sdk/server/postgres-consumed-credential-store.ts
|
|
6
9
|
var DEFAULT_TABLE_NAME = "consumed_credentials";
|
|
@@ -63,7 +66,7 @@ var PostgresConsumedCredentialStore = class {
|
|
|
63
66
|
}
|
|
64
67
|
gcSweep(now) {
|
|
65
68
|
this.pool.query(`DELETE FROM ${this.tableName} WHERE expires_at < $1`, [now]).catch((err) => {
|
|
66
|
-
|
|
69
|
+
diagnosticConsole.error("PostgresConsumedCredentialStore GC sweep failed:", err);
|
|
67
70
|
});
|
|
68
71
|
}
|
|
69
72
|
};
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveFxSourceFromEnv,
|
|
13
13
|
validateCurrency,
|
|
14
14
|
warmFxSnapshot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IBDDIG4K.js";
|
|
16
16
|
import {
|
|
17
17
|
InvalidFxRateError,
|
|
18
18
|
InvalidUsdPriceError,
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
roundUsd,
|
|
24
24
|
satsToFiat
|
|
25
25
|
} from "./chunk-AT6V3SY7.js";
|
|
26
|
+
import "./chunk-D42FMCLJ.js";
|
|
26
27
|
export {
|
|
27
28
|
DEFAULT_FX_CURRENCIES,
|
|
28
29
|
DEFAULT_FX_RATE_SOURCE,
|
package/dist/server/index.d.ts
CHANGED
|
@@ -68,8 +68,8 @@ declare const CREDIT_REQUEST_SCHEMA: z.ZodObject<{
|
|
|
68
68
|
fund_id: z.ZodString;
|
|
69
69
|
commitment: z.ZodOptional<z.ZodString>;
|
|
70
70
|
method: z.ZodOptional<z.ZodEnum<{
|
|
71
|
-
tempo: "tempo";
|
|
72
71
|
lightning: "lightning";
|
|
72
|
+
tempo: "tempo";
|
|
73
73
|
}>>;
|
|
74
74
|
intent: z.ZodOptional<z.ZodEnum<{
|
|
75
75
|
charge: "charge";
|