@lightsparkdev/lightspark-sdk 1.9.7 → 1.9.9
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/CHANGELOG.md +15 -0
- package/dist/index.cjs +55 -28
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +35 -8
- package/dist/objects/index.d.cts +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +1 -1
- package/package.json +15 -3
- package/src/SigningKeyLoader.ts +1 -1
- package/src/client.ts +2 -1
- package/src/webhooks.ts +20 -1
- package/dist/{chunk-BPPGK6J6.js → chunk-K62FULET.js} +1 -1
- package/dist/{index-B2mWcZea.d.cts → index-BAIkfUB0.d.cts} +15 -15
- package/dist/{index-BAeaSQSH.d.ts → index-IeI1277m.d.ts} +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 1.9.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 031eb1b: - Resolve circular dependencies
|
|
8
|
+
- Updated dependencies [031eb1b]
|
|
9
|
+
- @lightsparkdev/core@1.4.4
|
|
10
|
+
- @lightsparkdev/crypto-wasm@0.1.18
|
|
11
|
+
|
|
12
|
+
## 1.9.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 21b1acc: fix: wasm returned a double stringified json object where the webhook signing handler only expected it to be stringifed once. This change parses the string twice.
|
|
17
|
+
|
|
3
18
|
## 1.9.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -180,7 +180,7 @@ var import_core29 = require("@lightsparkdev/core");
|
|
|
180
180
|
// package.json
|
|
181
181
|
var package_default = {
|
|
182
182
|
name: "@lightsparkdev/lightspark-sdk",
|
|
183
|
-
version: "1.9.
|
|
183
|
+
version: "1.9.9",
|
|
184
184
|
description: "Lightspark JS SDK",
|
|
185
185
|
author: "Lightspark Inc.",
|
|
186
186
|
keywords: [
|
|
@@ -239,6 +239,7 @@ var package_default = {
|
|
|
239
239
|
"lint:fix:continue": "eslint --fix . || exit 0",
|
|
240
240
|
"lint:watch": "esw ./src -w --ext .ts,.tsx,.js --color",
|
|
241
241
|
lint: "eslint .",
|
|
242
|
+
"circular-deps": "madge --circular --extensions ts,tsx src",
|
|
242
243
|
"package:checks": "yarn publint && yarn attw --pack .",
|
|
243
244
|
postversion: "yarn build",
|
|
244
245
|
"test-cmd": "node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --bail",
|
|
@@ -249,8 +250,8 @@ var package_default = {
|
|
|
249
250
|
},
|
|
250
251
|
license: "Apache-2.0",
|
|
251
252
|
dependencies: {
|
|
252
|
-
"@lightsparkdev/core": "1.4.
|
|
253
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
253
|
+
"@lightsparkdev/core": "1.4.4",
|
|
254
|
+
"@lightsparkdev/crypto-wasm": "0.1.18",
|
|
254
255
|
dayjs: "^1.11.7",
|
|
255
256
|
dotenv: "^16.3.1",
|
|
256
257
|
graphql: "^16.6.0",
|
|
@@ -270,6 +271,7 @@ var package_default = {
|
|
|
270
271
|
eslint: "^8.3.0",
|
|
271
272
|
"eslint-watch": "^8.0.0",
|
|
272
273
|
jest: "^29.6.2",
|
|
274
|
+
madge: "^6.1.0",
|
|
273
275
|
prettier: "3.0.3",
|
|
274
276
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
275
277
|
publint: "^0.3.9",
|
|
@@ -279,6 +281,16 @@ var package_default = {
|
|
|
279
281
|
typedoc: "^0.24.7",
|
|
280
282
|
typescript: "^5.6.2"
|
|
281
283
|
},
|
|
284
|
+
madge: {
|
|
285
|
+
detectiveOptions: {
|
|
286
|
+
ts: {
|
|
287
|
+
skipTypeImports: true
|
|
288
|
+
},
|
|
289
|
+
tsx: {
|
|
290
|
+
skipTypeImports: true
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
282
294
|
engines: {
|
|
283
295
|
node: ">=18"
|
|
284
296
|
}
|
|
@@ -305,6 +317,17 @@ var RecoverNodeSigningKey = `
|
|
|
305
317
|
}
|
|
306
318
|
`;
|
|
307
319
|
|
|
320
|
+
// src/objects/BitcoinNetwork.ts
|
|
321
|
+
var BitcoinNetwork = /* @__PURE__ */ ((BitcoinNetwork2) => {
|
|
322
|
+
BitcoinNetwork2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
323
|
+
BitcoinNetwork2["MAINNET"] = "MAINNET";
|
|
324
|
+
BitcoinNetwork2["REGTEST"] = "REGTEST";
|
|
325
|
+
BitcoinNetwork2["SIGNET"] = "SIGNET";
|
|
326
|
+
BitcoinNetwork2["TESTNET"] = "TESTNET";
|
|
327
|
+
return BitcoinNetwork2;
|
|
328
|
+
})(BitcoinNetwork || {});
|
|
329
|
+
var BitcoinNetwork_default = BitcoinNetwork;
|
|
330
|
+
|
|
308
331
|
// src/SigningKeyLoader.ts
|
|
309
332
|
var SIGNING_KEY_PATH = "m/5";
|
|
310
333
|
function isNodeIdAndPasswordSigningKeyLoaderArgs(args) {
|
|
@@ -377,13 +400,13 @@ var MasterSeedSigningKeyLoader = class {
|
|
|
377
400
|
const { LightsparkSigner, Network } = await import("@lightsparkdev/crypto-wasm");
|
|
378
401
|
let cryptoLibNetwork;
|
|
379
402
|
switch (this.network) {
|
|
380
|
-
case
|
|
403
|
+
case "MAINNET" /* MAINNET */:
|
|
381
404
|
cryptoLibNetwork = Network.Bitcoin;
|
|
382
405
|
break;
|
|
383
|
-
case
|
|
406
|
+
case "TESTNET" /* TESTNET */:
|
|
384
407
|
cryptoLibNetwork = Network.Testnet;
|
|
385
408
|
break;
|
|
386
|
-
case
|
|
409
|
+
case "REGTEST" /* REGTEST */:
|
|
387
410
|
cryptoLibNetwork = Network.Regtest;
|
|
388
411
|
break;
|
|
389
412
|
default:
|
|
@@ -551,17 +574,6 @@ var BitcoinFeeEstimate = `
|
|
|
551
574
|
// src/objects/Invoice.ts
|
|
552
575
|
var import_core9 = require("@lightsparkdev/core");
|
|
553
576
|
|
|
554
|
-
// src/objects/BitcoinNetwork.ts
|
|
555
|
-
var BitcoinNetwork = /* @__PURE__ */ ((BitcoinNetwork2) => {
|
|
556
|
-
BitcoinNetwork2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
557
|
-
BitcoinNetwork2["MAINNET"] = "MAINNET";
|
|
558
|
-
BitcoinNetwork2["REGTEST"] = "REGTEST";
|
|
559
|
-
BitcoinNetwork2["SIGNET"] = "SIGNET";
|
|
560
|
-
BitcoinNetwork2["TESTNET"] = "TESTNET";
|
|
561
|
-
return BitcoinNetwork2;
|
|
562
|
-
})(BitcoinNetwork || {});
|
|
563
|
-
var BitcoinNetwork_default = BitcoinNetwork;
|
|
564
|
-
|
|
565
577
|
// src/objects/Node.ts
|
|
566
578
|
var import_core8 = require("@lightsparkdev/core");
|
|
567
579
|
|
|
@@ -10654,6 +10666,16 @@ var InvoiceType = /* @__PURE__ */ ((InvoiceType2) => {
|
|
|
10654
10666
|
})(InvoiceType || {});
|
|
10655
10667
|
var InvoiceType_default = InvoiceType;
|
|
10656
10668
|
|
|
10669
|
+
// src/objects/RiskRating.ts
|
|
10670
|
+
var RiskRating = /* @__PURE__ */ ((RiskRating2) => {
|
|
10671
|
+
RiskRating2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
10672
|
+
RiskRating2["HIGH_RISK"] = "HIGH_RISK";
|
|
10673
|
+
RiskRating2["LOW_RISK"] = "LOW_RISK";
|
|
10674
|
+
RiskRating2["UNKNOWN"] = "UNKNOWN";
|
|
10675
|
+
return RiskRating2;
|
|
10676
|
+
})(RiskRating || {});
|
|
10677
|
+
var RiskRating_default = RiskRating;
|
|
10678
|
+
|
|
10657
10679
|
// src/client.ts
|
|
10658
10680
|
var sdkVersion = package_default.version;
|
|
10659
10681
|
var LightsparkClient = class {
|
|
@@ -13554,16 +13576,6 @@ var RemoteSigningSubEventType = /* @__PURE__ */ ((RemoteSigningSubEventType2) =>
|
|
|
13554
13576
|
})(RemoteSigningSubEventType || {});
|
|
13555
13577
|
var RemoteSigningSubEventType_default = RemoteSigningSubEventType;
|
|
13556
13578
|
|
|
13557
|
-
// src/objects/RiskRating.ts
|
|
13558
|
-
var RiskRating = /* @__PURE__ */ ((RiskRating2) => {
|
|
13559
|
-
RiskRating2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
13560
|
-
RiskRating2["HIGH_RISK"] = "HIGH_RISK";
|
|
13561
|
-
RiskRating2["LOW_RISK"] = "LOW_RISK";
|
|
13562
|
-
RiskRating2["UNKNOWN"] = "UNKNOWN";
|
|
13563
|
-
return RiskRating2;
|
|
13564
|
-
})(RiskRating || {});
|
|
13565
|
-
var RiskRating_default = RiskRating;
|
|
13566
|
-
|
|
13567
13579
|
// src/objects/RoutingTransaction.ts
|
|
13568
13580
|
var import_core40 = require("@lightsparkdev/core");
|
|
13569
13581
|
var RoutingTransactionFromJson = (obj) => {
|
|
@@ -13761,7 +13773,22 @@ var RemoteSigningWebhookHandler = class {
|
|
|
13761
13773
|
if (!response) {
|
|
13762
13774
|
return;
|
|
13763
13775
|
}
|
|
13764
|
-
|
|
13776
|
+
let jsonVariablesString;
|
|
13777
|
+
let variables;
|
|
13778
|
+
try {
|
|
13779
|
+
jsonVariablesString = JSON.parse(response.variables);
|
|
13780
|
+
} catch (e) {
|
|
13781
|
+
throw new import_core42.LightsparkSigningException(
|
|
13782
|
+
"Unable to get JSON variables string from response"
|
|
13783
|
+
);
|
|
13784
|
+
}
|
|
13785
|
+
try {
|
|
13786
|
+
variables = JSON.parse(jsonVariablesString);
|
|
13787
|
+
} catch (e) {
|
|
13788
|
+
throw new import_core42.LightsparkSigningException(
|
|
13789
|
+
"Unable to parse JSON variables from response"
|
|
13790
|
+
);
|
|
13791
|
+
}
|
|
13765
13792
|
return this.client.executeRawQuery({
|
|
13766
13793
|
queryPayload: response.query,
|
|
13767
13794
|
variables,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
import { W as WebhookEventType, L as LightsparkClient } from './index-
|
|
3
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-BAIkfUB0.cjs';
|
|
3
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-BAIkfUB0.cjs';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.cjs';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
import { W as WebhookEventType, L as LightsparkClient } from './index-
|
|
3
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-IeI1277m.js';
|
|
3
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-IeI1277m.js';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
getUmaCurrencyQuery,
|
|
98
98
|
getUmaInvitationQuery,
|
|
99
99
|
getWithdrawalQuery
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-K62FULET.js";
|
|
101
101
|
import {
|
|
102
102
|
BitcoinNetwork_default
|
|
103
103
|
} from "./chunk-K6SAUSAX.js";
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
// package.json
|
|
156
156
|
var package_default = {
|
|
157
157
|
name: "@lightsparkdev/lightspark-sdk",
|
|
158
|
-
version: "1.9.
|
|
158
|
+
version: "1.9.9",
|
|
159
159
|
description: "Lightspark JS SDK",
|
|
160
160
|
author: "Lightspark Inc.",
|
|
161
161
|
keywords: [
|
|
@@ -214,6 +214,7 @@ var package_default = {
|
|
|
214
214
|
"lint:fix:continue": "eslint --fix . || exit 0",
|
|
215
215
|
"lint:watch": "esw ./src -w --ext .ts,.tsx,.js --color",
|
|
216
216
|
lint: "eslint .",
|
|
217
|
+
"circular-deps": "madge --circular --extensions ts,tsx src",
|
|
217
218
|
"package:checks": "yarn publint && yarn attw --pack .",
|
|
218
219
|
postversion: "yarn build",
|
|
219
220
|
"test-cmd": "node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --bail",
|
|
@@ -224,8 +225,8 @@ var package_default = {
|
|
|
224
225
|
},
|
|
225
226
|
license: "Apache-2.0",
|
|
226
227
|
dependencies: {
|
|
227
|
-
"@lightsparkdev/core": "1.4.
|
|
228
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
228
|
+
"@lightsparkdev/core": "1.4.4",
|
|
229
|
+
"@lightsparkdev/crypto-wasm": "0.1.18",
|
|
229
230
|
dayjs: "^1.11.7",
|
|
230
231
|
dotenv: "^16.3.1",
|
|
231
232
|
graphql: "^16.6.0",
|
|
@@ -245,6 +246,7 @@ var package_default = {
|
|
|
245
246
|
eslint: "^8.3.0",
|
|
246
247
|
"eslint-watch": "^8.0.0",
|
|
247
248
|
jest: "^29.6.2",
|
|
249
|
+
madge: "^6.1.0",
|
|
248
250
|
prettier: "3.0.3",
|
|
249
251
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
250
252
|
publint: "^0.3.9",
|
|
@@ -254,6 +256,16 @@ var package_default = {
|
|
|
254
256
|
typedoc: "^0.24.7",
|
|
255
257
|
typescript: "^5.6.2"
|
|
256
258
|
},
|
|
259
|
+
madge: {
|
|
260
|
+
detectiveOptions: {
|
|
261
|
+
ts: {
|
|
262
|
+
skipTypeImports: true
|
|
263
|
+
},
|
|
264
|
+
tsx: {
|
|
265
|
+
skipTypeImports: true
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
257
269
|
engines: {
|
|
258
270
|
node: ">=18"
|
|
259
271
|
}
|
|
@@ -360,13 +372,13 @@ var MasterSeedSigningKeyLoader = class {
|
|
|
360
372
|
const { LightsparkSigner, Network } = await import("@lightsparkdev/crypto-wasm");
|
|
361
373
|
let cryptoLibNetwork;
|
|
362
374
|
switch (this.network) {
|
|
363
|
-
case
|
|
375
|
+
case "MAINNET" /* MAINNET */:
|
|
364
376
|
cryptoLibNetwork = Network.Bitcoin;
|
|
365
377
|
break;
|
|
366
|
-
case
|
|
378
|
+
case "TESTNET" /* TESTNET */:
|
|
367
379
|
cryptoLibNetwork = Network.Testnet;
|
|
368
380
|
break;
|
|
369
|
-
case
|
|
381
|
+
case "REGTEST" /* REGTEST */:
|
|
370
382
|
cryptoLibNetwork = Network.Regtest;
|
|
371
383
|
break;
|
|
372
384
|
default:
|
|
@@ -2786,7 +2798,22 @@ var RemoteSigningWebhookHandler = class {
|
|
|
2786
2798
|
if (!response) {
|
|
2787
2799
|
return;
|
|
2788
2800
|
}
|
|
2789
|
-
|
|
2801
|
+
let jsonVariablesString;
|
|
2802
|
+
let variables;
|
|
2803
|
+
try {
|
|
2804
|
+
jsonVariablesString = JSON.parse(response.variables);
|
|
2805
|
+
} catch (e) {
|
|
2806
|
+
throw new LightsparkSigningException4(
|
|
2807
|
+
"Unable to get JSON variables string from response"
|
|
2808
|
+
);
|
|
2809
|
+
}
|
|
2810
|
+
try {
|
|
2811
|
+
variables = JSON.parse(jsonVariablesString);
|
|
2812
|
+
} catch (e) {
|
|
2813
|
+
throw new LightsparkSigningException4(
|
|
2814
|
+
"Unable to parse JSON variables from response"
|
|
2815
|
+
);
|
|
2816
|
+
}
|
|
2790
2817
|
return this.client.executeRawQuery({
|
|
2791
2818
|
queryPayload: response.query,
|
|
2792
2819
|
variables,
|
package/dist/objects/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-
|
|
1
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-BAIkfUB0.cjs';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.cjs';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-
|
|
1
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-IeI1277m.js';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.js';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.9",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"lint:fix:continue": "eslint --fix . || exit 0",
|
|
60
60
|
"lint:watch": "esw ./src -w --ext .ts,.tsx,.js --color",
|
|
61
61
|
"lint": "eslint .",
|
|
62
|
+
"circular-deps": "madge --circular --extensions ts,tsx src",
|
|
62
63
|
"package:checks": "yarn publint && yarn attw --pack .",
|
|
63
64
|
"postversion": "yarn build",
|
|
64
65
|
"test-cmd": "node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --bail",
|
|
@@ -69,8 +70,8 @@
|
|
|
69
70
|
},
|
|
70
71
|
"license": "Apache-2.0",
|
|
71
72
|
"dependencies": {
|
|
72
|
-
"@lightsparkdev/core": "1.4.
|
|
73
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
73
|
+
"@lightsparkdev/core": "1.4.4",
|
|
74
|
+
"@lightsparkdev/crypto-wasm": "0.1.18",
|
|
74
75
|
"dayjs": "^1.11.7",
|
|
75
76
|
"dotenv": "^16.3.1",
|
|
76
77
|
"graphql": "^16.6.0",
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
"eslint": "^8.3.0",
|
|
91
92
|
"eslint-watch": "^8.0.0",
|
|
92
93
|
"jest": "^29.6.2",
|
|
94
|
+
"madge": "^6.1.0",
|
|
93
95
|
"prettier": "3.0.3",
|
|
94
96
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
95
97
|
"publint": "^0.3.9",
|
|
@@ -99,6 +101,16 @@
|
|
|
99
101
|
"typedoc": "^0.24.7",
|
|
100
102
|
"typescript": "^5.6.2"
|
|
101
103
|
},
|
|
104
|
+
"madge": {
|
|
105
|
+
"detectiveOptions": {
|
|
106
|
+
"ts": {
|
|
107
|
+
"skipTypeImports": true
|
|
108
|
+
},
|
|
109
|
+
"tsx": {
|
|
110
|
+
"skipTypeImports": true
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
102
114
|
"engines": {
|
|
103
115
|
"node": ">=18"
|
|
104
116
|
}
|
package/src/SigningKeyLoader.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
type Requester,
|
|
9
9
|
} from "@lightsparkdev/core";
|
|
10
10
|
import { RecoverNodeSigningKey } from "./graphql/RecoverNodeSigningKey.js";
|
|
11
|
-
import { BitcoinNetwork } from "./
|
|
11
|
+
import { BitcoinNetwork } from "./objects/BitcoinNetwork.js";
|
|
12
12
|
|
|
13
13
|
const SIGNING_KEY_PATH = "m/5";
|
|
14
14
|
|
package/src/client.ts
CHANGED
|
@@ -68,7 +68,6 @@ import { SingleNodeDashboard as SingleNodeDashboardQuery } from "./graphql/Singl
|
|
|
68
68
|
import { TransactionSubscription } from "./graphql/TransactionSubscription.js";
|
|
69
69
|
import { TransactionsForNode } from "./graphql/TransactionsForNode.js";
|
|
70
70
|
import { WithdrawalFeeEstimate } from "./graphql/WithdrawalFeeEstimate.js";
|
|
71
|
-
import { RiskRating, TransactionStatus } from "./index.js";
|
|
72
71
|
import { logger } from "./logger.js";
|
|
73
72
|
import Account from "./objects/Account.js";
|
|
74
73
|
import { ApiTokenFromJson } from "./objects/ApiToken.js";
|
|
@@ -92,12 +91,14 @@ import type PaymentDirection from "./objects/PaymentDirection.js";
|
|
|
92
91
|
import { PaymentRequestFromJson } from "./objects/PaymentRequest.js";
|
|
93
92
|
import Permission from "./objects/Permission.js";
|
|
94
93
|
import type RegionCode from "./objects/RegionCode.js";
|
|
94
|
+
import RiskRating from "./objects/RiskRating.js";
|
|
95
95
|
import type SingleNodeDashboard from "./objects/SingleNodeDashboard.js";
|
|
96
96
|
import type Transaction from "./objects/Transaction.js";
|
|
97
97
|
import {
|
|
98
98
|
TransactionFromJson,
|
|
99
99
|
getTransactionQuery,
|
|
100
100
|
} from "./objects/Transaction.js";
|
|
101
|
+
import TransactionStatus from "./objects/TransactionStatus.js";
|
|
101
102
|
import type TransactionUpdate from "./objects/TransactionUpdate.js";
|
|
102
103
|
import { TransactionUpdateFromJson } from "./objects/TransactionUpdate.js";
|
|
103
104
|
import type UmaInvitation from "./objects/UmaInvitation.js";
|
package/src/webhooks.ts
CHANGED
|
@@ -84,7 +84,26 @@ export class RemoteSigningWebhookHandler {
|
|
|
84
84
|
if (!response) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
|
|
88
|
+
/* WASM returns a double-encoded JSON string for variables: */
|
|
89
|
+
let jsonVariablesString: string;
|
|
90
|
+
let variables: {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
try {
|
|
94
|
+
jsonVariablesString = JSON.parse(response.variables);
|
|
95
|
+
} catch (e) {
|
|
96
|
+
throw new LightsparkSigningException(
|
|
97
|
+
"Unable to get JSON variables string from response",
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
variables = JSON.parse(jsonVariablesString);
|
|
102
|
+
} catch (e) {
|
|
103
|
+
throw new LightsparkSigningException(
|
|
104
|
+
"Unable to parse JSON variables from response",
|
|
105
|
+
);
|
|
106
|
+
}
|
|
88
107
|
return this.client.executeRawQuery({
|
|
89
108
|
queryPayload: response.query,
|
|
90
109
|
variables,
|
|
@@ -11031,6 +11031,7 @@ export {
|
|
|
11031
11031
|
Wallet_default,
|
|
11032
11032
|
Account_default,
|
|
11033
11033
|
InvoiceType_default,
|
|
11034
|
+
RiskRating_default,
|
|
11034
11035
|
getAuditLogActorQuery,
|
|
11035
11036
|
getChannelSnapshotQuery,
|
|
11036
11037
|
RegionCode_default,
|
|
@@ -11046,7 +11047,6 @@ export {
|
|
|
11046
11047
|
getOnChainTransactionQuery,
|
|
11047
11048
|
PaymentDirection_default,
|
|
11048
11049
|
RemoteSigningSubEventType_default,
|
|
11049
|
-
RiskRating_default,
|
|
11050
11050
|
getRoutingTransactionQuery,
|
|
11051
11051
|
getSignableQuery,
|
|
11052
11052
|
TransactionType_default,
|
|
@@ -2833,6 +2833,21 @@ declare enum RegionCode {
|
|
|
2833
2833
|
NN = "NN"
|
|
2834
2834
|
}
|
|
2835
2835
|
|
|
2836
|
+
/**
|
|
2837
|
+
* This is an enum of the potential risk ratings related to a transaction made over the Lightning
|
|
2838
|
+
* Network. These risk ratings are returned from the CryptoSanctionScreeningProvider. *
|
|
2839
|
+
*/
|
|
2840
|
+
declare enum RiskRating {
|
|
2841
|
+
/**
|
|
2842
|
+
* This is an enum value that represents values that could be added in the future.
|
|
2843
|
+
* Clients should support unknown values as more of them could be added without notice.
|
|
2844
|
+
*/
|
|
2845
|
+
FUTURE_VALUE = "FUTURE_VALUE",
|
|
2846
|
+
HIGH_RISK = "HIGH_RISK",
|
|
2847
|
+
LOW_RISK = "LOW_RISK",
|
|
2848
|
+
UNKNOWN = "UNKNOWN"
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2836
2851
|
type SingleNodeDashboard = {
|
|
2837
2852
|
id: string;
|
|
2838
2853
|
displayName: string;
|
|
@@ -4979,21 +4994,6 @@ interface RequestWithdrawalOutput {
|
|
|
4979
4994
|
requestId: string;
|
|
4980
4995
|
}
|
|
4981
4996
|
|
|
4982
|
-
/**
|
|
4983
|
-
* This is an enum of the potential risk ratings related to a transaction made over the Lightning
|
|
4984
|
-
* Network. These risk ratings are returned from the CryptoSanctionScreeningProvider. *
|
|
4985
|
-
*/
|
|
4986
|
-
declare enum RiskRating {
|
|
4987
|
-
/**
|
|
4988
|
-
* This is an enum value that represents values that could be added in the future.
|
|
4989
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
4990
|
-
*/
|
|
4991
|
-
FUTURE_VALUE = "FUTURE_VALUE",
|
|
4992
|
-
HIGH_RISK = "HIGH_RISK",
|
|
4993
|
-
LOW_RISK = "LOW_RISK",
|
|
4994
|
-
UNKNOWN = "UNKNOWN"
|
|
4995
|
-
}
|
|
4996
|
-
|
|
4997
4997
|
/**
|
|
4998
4998
|
* This object represents a transaction that was forwarded through a Lightspark node on the
|
|
4999
4999
|
* Lightning Network, i.e., a routed transaction. You can retrieve this object to receive
|
|
@@ -2833,6 +2833,21 @@ declare enum RegionCode {
|
|
|
2833
2833
|
NN = "NN"
|
|
2834
2834
|
}
|
|
2835
2835
|
|
|
2836
|
+
/**
|
|
2837
|
+
* This is an enum of the potential risk ratings related to a transaction made over the Lightning
|
|
2838
|
+
* Network. These risk ratings are returned from the CryptoSanctionScreeningProvider. *
|
|
2839
|
+
*/
|
|
2840
|
+
declare enum RiskRating {
|
|
2841
|
+
/**
|
|
2842
|
+
* This is an enum value that represents values that could be added in the future.
|
|
2843
|
+
* Clients should support unknown values as more of them could be added without notice.
|
|
2844
|
+
*/
|
|
2845
|
+
FUTURE_VALUE = "FUTURE_VALUE",
|
|
2846
|
+
HIGH_RISK = "HIGH_RISK",
|
|
2847
|
+
LOW_RISK = "LOW_RISK",
|
|
2848
|
+
UNKNOWN = "UNKNOWN"
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2836
2851
|
type SingleNodeDashboard = {
|
|
2837
2852
|
id: string;
|
|
2838
2853
|
displayName: string;
|
|
@@ -4979,21 +4994,6 @@ interface RequestWithdrawalOutput {
|
|
|
4979
4994
|
requestId: string;
|
|
4980
4995
|
}
|
|
4981
4996
|
|
|
4982
|
-
/**
|
|
4983
|
-
* This is an enum of the potential risk ratings related to a transaction made over the Lightning
|
|
4984
|
-
* Network. These risk ratings are returned from the CryptoSanctionScreeningProvider. *
|
|
4985
|
-
*/
|
|
4986
|
-
declare enum RiskRating {
|
|
4987
|
-
/**
|
|
4988
|
-
* This is an enum value that represents values that could be added in the future.
|
|
4989
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
4990
|
-
*/
|
|
4991
|
-
FUTURE_VALUE = "FUTURE_VALUE",
|
|
4992
|
-
HIGH_RISK = "HIGH_RISK",
|
|
4993
|
-
LOW_RISK = "LOW_RISK",
|
|
4994
|
-
UNKNOWN = "UNKNOWN"
|
|
4995
|
-
}
|
|
4996
|
-
|
|
4997
4997
|
/**
|
|
4998
4998
|
* This object represents a transaction that was forwarded through a Lightspark node on the
|
|
4999
4999
|
* Lightning Network, i.e., a routed transaction. You can retrieve this object to receive
|