@dvmkit/sdk 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ILBSZMJL.js → chunk-2XQLL6N6.js} +1 -1
- package/dist/{chunk-UVS7MRJX.js → chunk-3Q6FTZDB.js} +2 -2
- package/dist/{chunk-OP7VCGQR.js → chunk-3R7NQA3Z.js} +1 -1
- package/dist/{chunk-RSNC5T6C.js → chunk-AJ6UHXUA.js} +1 -1
- package/dist/{chunk-ALWVJ2RB.js → chunk-EWZFANHJ.js} +3 -3
- package/dist/{chunk-J5J63WDC.js → chunk-FFXXGCVG.js} +3 -3
- package/dist/{chunk-UDJNZ3UG.js → chunk-JNECYURT.js} +1 -1
- package/dist/{chunk-IHQUBATH.js → chunk-KFCEXCZM.js} +3 -3
- package/dist/{chunk-NA2KOR6G.js → chunk-LDIPVPKI.js} +3 -3
- package/dist/{chunk-IOQIXRGM.js → chunk-M3T5JYDJ.js} +15 -8
- package/dist/{chunk-UWGBI5WK.js → chunk-MB6R4XPZ.js} +3 -3
- package/dist/{chunk-7PM4R4GD.js → chunk-MMGSYMIC.js} +1 -1
- package/dist/{chunk-QKE5NDPF.js → chunk-MU3IE434.js} +348 -80
- package/dist/{chunk-BFGQG4WY.js → chunk-QGNXYVBO.js} +52 -12
- package/dist/{chunk-JIZ4ZIXX.js → chunk-QNKK7SPY.js} +652 -245
- package/dist/{chunk-FM6QAGJC.js → chunk-STJBBVNL.js} +24 -8
- package/dist/{chunk-NU5RWJ5B.js → chunk-VMHYGKWT.js} +3 -3
- package/dist/{chunk-AVV5SYGO.js → chunk-VTHYQCDB.js} +1 -1
- package/dist/{chunk-ZEPJF4JC.js → chunk-VUGEEMLT.js} +4 -4
- package/dist/{chunk-2U6LAASN.js → chunk-W3VGCNG6.js} +1 -1
- package/dist/{chunk-G3MPHW5I.js → chunk-Y6DO5WSO.js} +3 -3
- package/dist/{chunk-AGE5XZKE.js → chunk-YOSZIWC3.js} +17 -4
- package/dist/{content-retention-B7ddtJ2y.d.ts → content-retention-CrILCNxk.d.ts} +1 -1
- package/dist/{credit-ledger-KIQIE6I6.js → credit-ledger-4PZNAMDT.js} +4 -4
- package/dist/{credit-menu-BH3g9GQa.d.ts → credit-menu-VwX_6KM7.d.ts} +4 -4
- package/dist/{fx-DN26_J7o.d.ts → fx-BM5h4o5S.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/internal/caller.d.ts +7 -7
- package/dist/internal/caller.js +16 -16
- package/dist/internal/server.d.ts +7 -7
- package/dist/internal/server.js +26 -26
- package/dist/{job-store-Cq21JT37.d.ts → job-store-92v8e1LQ.d.ts} +1 -1
- package/dist/{lightning-backend-S8F8nf8q.d.ts → lightning-backend-9oky_wJi.d.ts} +1 -1
- package/dist/{memory-credit-ledger-ATYFAYBG.js → memory-credit-ledger-RP7DT5IY.js} +5 -5
- package/dist/{mpp-setup-ZTORW3VF.js → mpp-setup-FURD45LI.js} +5 -3
- package/dist/{payout-reporter-NN6K2IVQ.js → payout-reporter-HVJ6WUF3.js} +2 -2
- package/dist/{postgres-consumed-credential-store-XJTE5PCA.js → postgres-consumed-credential-store-WO6OCFXZ.js} +3 -3
- package/dist/{postgres-job-store-AR6ZJUQV.js → postgres-job-store-FSRUPYH2.js} +2 -2
- package/dist/{postgres-replay-store-33K33QV7.js → postgres-replay-store-XXJSA457.js} +2 -2
- package/dist/{pricing-G5IN5YJE.js → pricing-X4XU5HXY.js} +3 -3
- package/dist/{revenue-reporter-KDUZLD5F.js → revenue-reporter-EV3K5L6B.js} +2 -2
- package/dist/server/index.d.ts +78 -11
- package/dist/server/index.js +87 -45
- package/dist/{step-cache-CR12EZ1Q.d.ts → step-cache--7yA5Ihr.d.ts} +99 -12
- package/dist/{tempo-charge-store-XEGJYM3G.js → tempo-charge-store-5JOIYUIH.js} +2 -2
- package/dist/{tempo-session-store-3WTDOO7H.js → tempo-session-store-S6QMLQUA.js} +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +7 -7
- package/dist/{usd-s_VZ_eS7.d.ts → usd-C7lvLvLk.d.ts} +1 -1
- package/dist/{x402-HQ5GRQZU.js → x402-EN5LSOVM.js} +4 -4
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createX402FacilitatorAuthHeaders,
|
|
3
3
|
settleWithFacilitator,
|
|
4
4
|
verifyWithFacilitator
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VTHYQCDB.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-
|
|
18
|
+
} from "./chunk-QGNXYVBO.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 }) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
diagnosticConsole
|
|
3
|
-
} from "./chunk-BFGQG4WY.js";
|
|
4
1
|
import {
|
|
5
2
|
withSdkInitLock
|
|
6
3
|
} from "./chunk-COYKJRMM.js";
|
|
4
|
+
import {
|
|
5
|
+
diagnosticConsole
|
|
6
|
+
} from "./chunk-QGNXYVBO.js";
|
|
7
7
|
|
|
8
8
|
// src/sdk/server/postgres-replay-store.ts
|
|
9
9
|
var DEFAULT_TABLE_NAME = "signed_request_replays";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
diagnosticConsole
|
|
3
|
-
} from "./chunk-BFGQG4WY.js";
|
|
4
1
|
import {
|
|
5
2
|
withSdkInitLock
|
|
6
3
|
} from "./chunk-COYKJRMM.js";
|
|
4
|
+
import {
|
|
5
|
+
diagnosticConsole
|
|
6
|
+
} from "./chunk-QGNXYVBO.js";
|
|
7
7
|
|
|
8
8
|
// src/sdk/server/payout-reporter.ts
|
|
9
9
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
applyContentHoldMutation,
|
|
4
4
|
isTerminal
|
|
5
5
|
} from "./chunk-AFV77S4C.js";
|
|
6
|
-
import {
|
|
7
|
-
loggers
|
|
8
|
-
} from "./chunk-IOQIXRGM.js";
|
|
9
6
|
import {
|
|
10
7
|
redactUrl
|
|
11
8
|
} from "./chunk-FUJ36YDV.js";
|
|
9
|
+
import {
|
|
10
|
+
loggers
|
|
11
|
+
} from "./chunk-M3T5JYDJ.js";
|
|
12
12
|
|
|
13
13
|
// src/sdk/server/job-store.ts
|
|
14
14
|
function accumulateAskedTopUp(prior, ask) {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
parseStoreValue,
|
|
3
3
|
stringifyStoreValue
|
|
4
4
|
} from "./chunk-YG7G4DPZ.js";
|
|
5
|
-
import {
|
|
6
|
-
diagnosticConsole
|
|
7
|
-
} from "./chunk-BFGQG4WY.js";
|
|
8
5
|
import {
|
|
9
6
|
withSdkInitLock
|
|
10
7
|
} from "./chunk-COYKJRMM.js";
|
|
8
|
+
import {
|
|
9
|
+
diagnosticConsole
|
|
10
|
+
} from "./chunk-QGNXYVBO.js";
|
|
11
11
|
|
|
12
12
|
// src/sdk/server/tempo-charge-store.ts
|
|
13
13
|
import { Credential } from "mppx";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
extendDiagnosticIdentityAuthority,
|
|
8
8
|
projectDiagnosticFields,
|
|
9
9
|
projectSpanRow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QGNXYVBO.js";
|
|
11
11
|
|
|
12
12
|
// src/observability/context.ts
|
|
13
13
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -163,7 +163,8 @@ async function withSpan(opts, fn) {
|
|
|
163
163
|
attributeInput,
|
|
164
164
|
opts.dataset,
|
|
165
165
|
authority,
|
|
166
|
-
identityAuthority
|
|
166
|
+
identityAuthority,
|
|
167
|
+
opts.name
|
|
167
168
|
);
|
|
168
169
|
const childDimensions = bindDiagnosticIdentityAuthority(
|
|
169
170
|
bindDiagnosticCapabilityAuthority(
|
|
@@ -172,13 +173,15 @@ async function withSpan(opts, fn) {
|
|
|
172
173
|
ctx.dimensions,
|
|
173
174
|
opts.dataset,
|
|
174
175
|
authority,
|
|
175
|
-
identityAuthority
|
|
176
|
+
identityAuthority,
|
|
177
|
+
opts.name
|
|
176
178
|
),
|
|
177
179
|
...projectDiagnosticFields(
|
|
178
180
|
opts.dims,
|
|
179
181
|
opts.dataset,
|
|
180
182
|
authority,
|
|
181
|
-
identityAuthority
|
|
183
|
+
identityAuthority,
|
|
184
|
+
opts.name
|
|
182
185
|
)
|
|
183
186
|
},
|
|
184
187
|
authority
|
|
@@ -203,7 +206,8 @@ async function withSpan(opts, fn) {
|
|
|
203
206
|
{ ...attributes, ...identityCandidates },
|
|
204
207
|
opts.dataset,
|
|
205
208
|
authority,
|
|
206
|
-
latestIdentityAuthority()
|
|
209
|
+
latestIdentityAuthority(),
|
|
210
|
+
opts.name
|
|
207
211
|
);
|
|
208
212
|
};
|
|
209
213
|
const emitRow = () => {
|
|
@@ -227,7 +231,8 @@ async function withSpan(opts, fn) {
|
|
|
227
231
|
childCtx.dimensions,
|
|
228
232
|
opts.dataset,
|
|
229
233
|
authority,
|
|
230
|
-
activeIdentityAuthority
|
|
234
|
+
activeIdentityAuthority,
|
|
235
|
+
opts.name
|
|
231
236
|
),
|
|
232
237
|
attributes,
|
|
233
238
|
error_message: null,
|
|
@@ -263,7 +268,8 @@ async function withSpan(opts, fn) {
|
|
|
263
268
|
overrides,
|
|
264
269
|
opts.dataset,
|
|
265
270
|
authority,
|
|
266
|
-
latestIdentityAuthority()
|
|
271
|
+
latestIdentityAuthority(),
|
|
272
|
+
opts.name
|
|
267
273
|
)
|
|
268
274
|
};
|
|
269
275
|
}
|
|
@@ -284,7 +290,8 @@ async function withSpan(opts, fn) {
|
|
|
284
290
|
nextAttributes,
|
|
285
291
|
opts.dataset,
|
|
286
292
|
authority,
|
|
287
|
-
latestIdentityAuthority()
|
|
293
|
+
latestIdentityAuthority(),
|
|
294
|
+
opts.name
|
|
288
295
|
);
|
|
289
296
|
if (nextStatus === "ok" || nextStatus === "error") status = nextStatus;
|
|
290
297
|
if (nextLevel === "info" || nextLevel === "warn" || nextLevel === "error") {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
parseStoreValue,
|
|
3
3
|
stringifyStoreValue
|
|
4
4
|
} from "./chunk-YG7G4DPZ.js";
|
|
5
|
-
import {
|
|
6
|
-
withPostgresTransactionRecovery
|
|
7
|
-
} from "./chunk-7PM4R4GD.js";
|
|
8
5
|
import {
|
|
9
6
|
withSdkInitLock
|
|
10
7
|
} from "./chunk-COYKJRMM.js";
|
|
8
|
+
import {
|
|
9
|
+
withPostgresTransactionRecovery
|
|
10
|
+
} from "./chunk-MMGSYMIC.js";
|
|
11
11
|
|
|
12
12
|
// src/sdk/server/tempo-session-store.ts
|
|
13
13
|
import { AsyncLocalStorage } from "async_hooks";
|