@dvmkit/sdk 0.16.2 → 0.17.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.
Files changed (52) hide show
  1. package/dist/{chunk-XSF5YTEY.js → chunk-2PN4DKZW.js} +1 -1
  2. package/dist/{chunk-F2LNWZCV.js → chunk-3KRFFLAT.js} +1 -1
  3. package/dist/{chunk-V73WRF46.js → chunk-5CCQEAQV.js} +1 -1
  4. package/dist/{chunk-4IFZHJQK.js → chunk-5RLNRLLB.js} +1 -1
  5. package/dist/{chunk-7QGS27UT.js → chunk-72A4PHLD.js} +1 -1
  6. package/dist/{chunk-XBQTFOIT.js → chunk-7RWE6ELV.js} +1 -1
  7. package/dist/{chunk-N4SBDUVD.js → chunk-A6EY4K46.js} +1 -1
  8. package/dist/{chunk-5U2RG3ZW.js → chunk-ALTE7I6C.js} +5 -0
  9. package/dist/{chunk-K4ZQE7IB.js → chunk-B5MPLDRC.js} +2 -2
  10. package/dist/{chunk-PP5WHB6T.js → chunk-C5XNZLZ7.js} +1 -1
  11. package/dist/{chunk-2UZOJRRS.js → chunk-CVN2YNMG.js} +1 -1
  12. package/dist/{chunk-MD34LE6M.js → chunk-CXRI4N4Y.js} +1 -1
  13. package/dist/{chunk-ELNWQS24.js → chunk-EIDRCGTY.js} +1 -1
  14. package/dist/{chunk-ICHC4VDZ.js → chunk-KRX7VNBG.js} +1 -1
  15. package/dist/{chunk-TN6MWTZI.js → chunk-LY2JYSJS.js} +1 -1
  16. package/dist/{chunk-7N5VDCG3.js → chunk-MWDUGMN2.js} +2 -2
  17. package/dist/{chunk-FRGKANTZ.js → chunk-ORBWKYDE.js} +1 -1
  18. package/dist/{chunk-VQHBJXBL.js → chunk-QTKGFG3I.js} +1 -1
  19. package/dist/{chunk-PBT3H2LZ.js → chunk-RX6FT7XA.js} +1 -1
  20. package/dist/{chunk-OYBSDJR6.js → chunk-VKFR5PCW.js} +2 -2
  21. package/dist/{chunk-V4CBI5HB.js → chunk-Y6JJDOGO.js} +1 -1
  22. package/dist/{chunk-KERFCBT7.js → chunk-YRQMDRI4.js} +502 -129
  23. package/dist/{content-retention-BASsjgKw.d.ts → content-retention-B_hOQS36.d.ts} +1 -1
  24. package/dist/{credit-ledger-VWZ5NP7V.js → credit-ledger-5HMJ6VUX.js} +3 -3
  25. package/dist/{credit-menu-BfXaeHgR.d.ts → credit-menu-D-h0zJCZ.d.ts} +42 -10
  26. package/dist/{fx-BmvWGISH.d.ts → fx-CpqQaIfg.d.ts} +1 -1
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +4 -4
  29. package/dist/internal/caller.d.ts +14 -8
  30. package/dist/internal/caller.js +7 -7
  31. package/dist/internal/server.d.ts +7 -7
  32. package/dist/internal/server.js +20 -20
  33. package/dist/{job-store-CA7u1nHV.d.ts → job-store-CgXT79tS.d.ts} +1 -1
  34. package/dist/{lightning-backend-BOcopzXk.d.ts → lightning-backend-B1hRUIOb.d.ts} +1 -1
  35. package/dist/{memory-credit-ledger-DZWRQGSF.js → memory-credit-ledger-ME6FH462.js} +4 -4
  36. package/dist/{mpp-setup-3NJY354I.js → mpp-setup-BLIYBORK.js} +3 -3
  37. package/dist/{payout-reporter-P3652TLG.js → payout-reporter-5QAHCYIO.js} +2 -2
  38. package/dist/{postgres-consumed-credential-store-S2CBQ4NO.js → postgres-consumed-credential-store-4PCJEZBD.js} +1 -1
  39. package/dist/{postgres-job-store-JRSG54VJ.js → postgres-job-store-E5GXLRB4.js} +2 -2
  40. package/dist/{postgres-replay-store-ZPILIJIW.js → postgres-replay-store-GH5AINQR.js} +2 -2
  41. package/dist/{pricing-3P7KAONY.js → pricing-JJYLTTWK.js} +3 -3
  42. package/dist/{revenue-reporter-2P3PWJJM.js → revenue-reporter-6XARUEG6.js} +2 -2
  43. package/dist/server/index.d.ts +10 -10
  44. package/dist/server/index.js +32 -31
  45. package/dist/{step-cache-BCRHimiY.d.ts → step-cache-Bezn-_ZL.d.ts} +41 -3
  46. package/dist/{tempo-charge-store-2LK6IDLS.js → tempo-charge-store-A3CDF7D5.js} +2 -2
  47. package/dist/{tempo-session-store-5MHCH3YW.js → tempo-session-store-EWBE5HJM.js} +3 -3
  48. package/dist/testing/index.d.ts +3 -3
  49. package/dist/testing/index.js +6 -6
  50. package/dist/{usd-B8_WMfHT.d.ts → usd-CJwU3-A4.d.ts} +1 -1
  51. package/dist/{x402-6T73AZQ6.js → x402-HVCUEWWU.js} +3 -3
  52. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  diagnosticConsole,
6
6
  projectSpanRow
7
- } from "./chunk-5U2RG3ZW.js";
7
+ } from "./chunk-ALTE7I6C.js";
8
8
 
9
9
  // src/lib/x402/env.ts
10
10
  import { isAddress } from "viem";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-66HGCPBU.js";
7
7
  import {
8
8
  diagnosticConsole
9
- } from "./chunk-5U2RG3ZW.js";
9
+ } from "./chunk-ALTE7I6C.js";
10
10
 
11
11
  // src/observability/payment-diagnostics.ts
12
12
  import { AsyncLocalStorage } from "async_hooks";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SXL44PL5.js";
8
8
  import {
9
9
  diagnosticConsole
10
- } from "./chunk-5U2RG3ZW.js";
10
+ } from "./chunk-ALTE7I6C.js";
11
11
 
12
12
  // src/sdk/server/zod-error.ts
13
13
  function humanizeZodError(err, opts) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-5U2RG3ZW.js";
6
+ } from "./chunk-ALTE7I6C.js";
7
7
 
8
8
  // src/sdk/server/postgres-replay-store.ts
9
9
  var DEFAULT_TABLE_NAME = "signed_request_replays";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diagnosticConsole
3
- } from "./chunk-5U2RG3ZW.js";
3
+ } from "./chunk-ALTE7I6C.js";
4
4
 
5
5
  // src/sdk/pricing/currency.ts
6
6
  var InvalidCurrencyError = class extends Error {
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-66HGCPBU.js";
20
20
  import {
21
21
  diagnosticConsole
22
- } from "./chunk-5U2RG3ZW.js";
22
+ } from "./chunk-ALTE7I6C.js";
23
23
 
24
24
  // src/lib/cashu/lock-pubkey.ts
25
25
  function toLockPubkey(raw) {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-COYKJRMM.js";
10
10
  import {
11
11
  diagnosticConsole
12
- } from "./chunk-5U2RG3ZW.js";
12
+ } from "./chunk-ALTE7I6C.js";
13
13
 
14
14
  // src/sdk/server/postgres-job-store.ts
15
15
  import { createHash } from "crypto";
@@ -69,6 +69,7 @@ var diagnostic_catalogue_v1_default = {
69
69
  "cashu_mint_recovery_failed",
70
70
  "cashu_mint_runtime_recovered",
71
71
  "cashu_mint_runtime_sick",
72
+ "cashu_not_advertised",
72
73
  "cashu_opts_env_ignored",
73
74
  "cashu_refund_amount_unreported",
74
75
  "ci_lane_report",
@@ -961,6 +962,10 @@ var diagnostic_catalogue_v1_default = {
961
962
  "usdc"
962
963
  ],
963
964
  booleanFields: [
965
+ "cashu_explicitly_excluded",
966
+ "cashu_lock_pubkey_missing",
967
+ "cashu_mode_missing",
968
+ "cashu_store_missing",
964
969
  "client.capabilities_valid",
965
970
  "client.protocol_version_valid",
966
971
  "client.version_valid",
@@ -10,13 +10,13 @@ import {
10
10
  } from "./chunk-5UC7TOQC.js";
11
11
  import {
12
12
  applyRetryToPool
13
- } from "./chunk-ELNWQS24.js";
13
+ } from "./chunk-EIDRCGTY.js";
14
14
  import {
15
15
  x402NetworkByCaip2
16
16
  } from "./chunk-BPYMEMQX.js";
17
17
  import {
18
18
  diagnosticConsole
19
- } from "./chunk-5U2RG3ZW.js";
19
+ } from "./chunk-ALTE7I6C.js";
20
20
 
21
21
  // src/sdk/server/credit-ledger.ts
22
22
  import { randomUUID } from "crypto";
@@ -18,7 +18,7 @@ import {
18
18
  refundAssetDelta,
19
19
  refundRequest,
20
20
  x402SettlementPending
21
- } from "./chunk-K4ZQE7IB.js";
21
+ } from "./chunk-B5MPLDRC.js";
22
22
 
23
23
  // src/sdk/server/memory-credit-ledger.ts
24
24
  import { randomUUID } from "crypto";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-5U2RG3ZW.js";
6
+ } from "./chunk-ALTE7I6C.js";
7
7
 
8
8
  // src/sdk/server/revenue-reporter.ts
9
9
  import { randomUUID } from "crypto";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-COYKJRMM.js";
8
8
  import {
9
9
  diagnosticConsole
10
- } from "./chunk-5U2RG3ZW.js";
10
+ } from "./chunk-ALTE7I6C.js";
11
11
 
12
12
  // src/sdk/server/tempo-charge-store.ts
13
13
  import { Credential } from "mppx";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diagnosticConsole
3
- } from "./chunk-5U2RG3ZW.js";
3
+ } from "./chunk-ALTE7I6C.js";
4
4
 
5
5
  // src/lib/pg-retry.ts
6
6
  import { AsyncLocalStorage } from "async_hooks";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-5U2RG3ZW.js";
6
+ } from "./chunk-ALTE7I6C.js";
7
7
 
8
8
  // src/sdk/server/payout-reporter.ts
9
9
  import { createHash, randomUUID } from "crypto";
@@ -7,7 +7,7 @@ import {
7
7
  extendDiagnosticIdentityAuthority,
8
8
  projectDiagnosticFields,
9
9
  projectSpanRow
10
- } from "./chunk-5U2RG3ZW.js";
10
+ } from "./chunk-ALTE7I6C.js";
11
11
 
12
12
  // src/observability/context.ts
13
13
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loggers
3
- } from "./chunk-TN6MWTZI.js";
3
+ } from "./chunk-LY2JYSJS.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-5U2RG3ZW.js";
6
+ } from "./chunk-ALTE7I6C.js";
7
7
 
8
8
  // src/sdk/server/mpp-setup.ts
9
9
  import { createHash, randomUUID } from "crypto";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-COYKJRMM.js";
8
8
  import {
9
9
  withPostgresTransactionRecovery
10
- } from "./chunk-ELNWQS24.js";
10
+ } from "./chunk-EIDRCGTY.js";
11
11
 
12
12
  // src/sdk/server/tempo-session-store.ts
13
13
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  emitDiagnostic,
3
3
  projectDiagnosticFields
4
- } from "./chunk-5U2RG3ZW.js";
4
+ } from "./chunk-ALTE7I6C.js";
5
5
 
6
6
  // src/sdk/logger.ts
7
7
  function createConsoleLogger(_jobId) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  validateCurrency
3
- } from "./chunk-7QGS27UT.js";
3
+ } from "./chunk-72A4PHLD.js";
4
4
 
5
5
  // src/sdk/pricing/upfront.ts
6
6
  function buildUpfront(input) {
@@ -2,7 +2,7 @@ import {
2
2
  createX402FacilitatorAuthHeaders,
3
3
  settleWithFacilitator,
4
4
  verifyWithFacilitator
5
- } from "./chunk-F2LNWZCV.js";
5
+ } from "./chunk-3KRFFLAT.js";
6
6
  import {
7
7
  buildPaymentRequirements,
8
8
  decodePayment,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-66HGCPBU.js";
16
16
  import {
17
17
  diagnosticConsole
18
- } from "./chunk-5U2RG3ZW.js";
18
+ } from "./chunk-ALTE7I6C.js";
19
19
 
20
20
  // src/lib/x402/verify.ts
21
21
  async function verifyX402Payment(paymentHeader, config, requiredUsdcMicro, resource, btcUsdRate, exactVersions = { v1: true, v2: true }) {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-FUJ36YDV.js";
11
11
  import {
12
12
  loggers
13
- } from "./chunk-TN6MWTZI.js";
13
+ } from "./chunk-LY2JYSJS.js";
14
14
 
15
15
  // src/sdk/server/job-store.ts
16
16
  function accumulateAskedTopUp(prior, ask) {