@lightsparkdev/lightspark-sdk 1.8.2 → 1.8.4
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 +18 -0
- package/dist/BitcoinNetwork-CIfB1c0X.d.ts +21 -0
- package/dist/{chunk-4KFNQOMH.js → chunk-3SPTFEYJ.js} +1 -0
- package/dist/env.d.cts +2 -2
- package/dist/env.d.ts +2 -2
- package/dist/env.js +1 -1
- package/dist/index-B83OtHZi.d.cts +4819 -0
- package/dist/{index-27dad75b.d.ts → index-uoUldBPd.d.ts} +31 -18
- package/dist/index.cjs +20 -27
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +12 -15
- package/dist/objects/index.cjs +1 -0
- package/dist/objects/index.d.cts +2 -2
- package/dist/objects/index.d.ts +2 -2
- package/dist/objects/index.js +2 -2
- package/dist/{text-encoding-26SMKBAQ.js → text-encoding-3OZOB4NR.js} +6 -11
- package/package.json +9 -12
- package/src/objects/Channel.ts +2 -3
- package/src/objects/ChannelClosingTransaction.ts +1 -1
- package/src/objects/ChannelOpeningTransaction.ts +1 -1
- package/src/objects/FundNodeInput.ts +4 -0
- package/src/objects/Hop.ts +1 -1
- package/src/objects/IncomingPayment.ts +1 -2
- package/src/objects/IncomingPaymentsForPaymentHashQueryInput.ts +34 -0
- package/src/objects/IncomingPaymentsForPaymentHashQueryOutput.ts +37 -0
- package/src/objects/InvoiceForPaymentHashOutput.ts +1 -1
- package/src/objects/LightningTransaction.ts +10 -8
- package/src/objects/LightsparkNodeOwner.ts +1 -1
- package/src/objects/OnChainTransaction.ts +6 -4
- package/src/objects/OutgoingPayment.ts +1 -1
- package/src/objects/OutgoingPaymentAttempt.ts +1 -2
- package/src/objects/OutgoingPaymentForIdempotencyKeyOutput.ts +1 -2
- package/src/objects/RoutingTransaction.ts +2 -4
- package/src/objects/Transaction.ts +16 -12
- package/src/objects/Wallet.ts +1 -1
- package/src/objects/WebhookEventType.ts +2 -0
- package/src/objects/WithdrawalRequest.ts +1 -1
- package/src/objects/index.ts +9 -7
- /package/dist/{BitcoinNetwork-4f6ea015.d.ts → BitcoinNetwork-CIfB1c0X.d.cts} +0 -0
- /package/dist/{chunk-BMTV3EA2.js → chunk-FTA5RKYX.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Maybe, Query, AuthProvider, CryptoInterface, SigningKey, KeyOrAliasType, LoggingLevel } from '@lightsparkdev/core';
|
|
2
2
|
import Observable from 'zen-observable';
|
|
3
|
-
import { B as BitcoinNetwork } from './BitcoinNetwork-
|
|
3
|
+
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Args for creating a new SigningKeyLoader. Must be one of the sub types.
|
|
@@ -3778,6 +3778,7 @@ interface FailHtlcsOutput {
|
|
|
3778
3778
|
interface FundNodeInput {
|
|
3779
3779
|
nodeId: string;
|
|
3780
3780
|
amountSats?: number | undefined;
|
|
3781
|
+
fundingAddress?: string | undefined;
|
|
3781
3782
|
}
|
|
3782
3783
|
|
|
3783
3784
|
interface FundNodeOutput {
|
|
@@ -3906,6 +3907,17 @@ interface IncomingPaymentsForInvoiceQueryOutput {
|
|
|
3906
3907
|
payments: IncomingPayment[];
|
|
3907
3908
|
}
|
|
3908
3909
|
|
|
3910
|
+
interface IncomingPaymentsForPaymentHashQueryInput {
|
|
3911
|
+
/** The 32-byte hash of the payment preimage for which to fetch payments **/
|
|
3912
|
+
paymentHash: string;
|
|
3913
|
+
/** An optional filter to only query incoming payments of given statuses. **/
|
|
3914
|
+
statuses?: TransactionStatus[] | undefined;
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
interface IncomingPaymentsForPaymentHashQueryOutput {
|
|
3918
|
+
payments: IncomingPayment[];
|
|
3919
|
+
}
|
|
3920
|
+
|
|
3909
3921
|
interface InvoiceForPaymentHashInput {
|
|
3910
3922
|
/** The 32-byte hash of the payment preimage for which to fetch an invoice. **/
|
|
3911
3923
|
paymentHash: string;
|
|
@@ -4702,6 +4714,21 @@ interface SetInvoicePaymentHashOutput {
|
|
|
4702
4714
|
invoiceId: string;
|
|
4703
4715
|
}
|
|
4704
4716
|
|
|
4717
|
+
interface Signable {
|
|
4718
|
+
/**
|
|
4719
|
+
* The unique identifier of this entity across all Lightspark systems. Should be treated as an
|
|
4720
|
+
* opaque string.
|
|
4721
|
+
**/
|
|
4722
|
+
id: string;
|
|
4723
|
+
/** The date and time when the entity was first created. **/
|
|
4724
|
+
createdAt: string;
|
|
4725
|
+
/** The date and time when the entity was last updated. **/
|
|
4726
|
+
updatedAt: string;
|
|
4727
|
+
/** The typename of the object **/
|
|
4728
|
+
typename: string;
|
|
4729
|
+
}
|
|
4730
|
+
declare const getSignableQuery: (id: string) => Query<Signable>;
|
|
4731
|
+
|
|
4705
4732
|
interface SignInvoiceInput {
|
|
4706
4733
|
/** The unique identifier of the invoice to be signed. **/
|
|
4707
4734
|
invoiceId: string;
|
|
@@ -4726,21 +4753,6 @@ interface SignMessagesOutput {
|
|
|
4726
4753
|
signedPayloads: SignablePayload[];
|
|
4727
4754
|
}
|
|
4728
4755
|
|
|
4729
|
-
interface Signable {
|
|
4730
|
-
/**
|
|
4731
|
-
* The unique identifier of this entity across all Lightspark systems. Should be treated as an
|
|
4732
|
-
* opaque string.
|
|
4733
|
-
**/
|
|
4734
|
-
id: string;
|
|
4735
|
-
/** The date and time when the entity was first created. **/
|
|
4736
|
-
createdAt: string;
|
|
4737
|
-
/** The date and time when the entity was last updated. **/
|
|
4738
|
-
updatedAt: string;
|
|
4739
|
-
/** The typename of the object **/
|
|
4740
|
-
typename: string;
|
|
4741
|
-
}
|
|
4742
|
-
declare const getSignableQuery: (id: string) => Query<Signable>;
|
|
4743
|
-
|
|
4744
4756
|
interface UpdateChannelPerCommitmentPointInput {
|
|
4745
4757
|
channelId: string;
|
|
4746
4758
|
perCommitmentPoint: string;
|
|
@@ -4783,7 +4795,8 @@ declare enum WebhookEventType {
|
|
|
4783
4795
|
WALLET_FUNDS_RECEIVED = "WALLET_FUNDS_RECEIVED",
|
|
4784
4796
|
REMOTE_SIGNING = "REMOTE_SIGNING",
|
|
4785
4797
|
LOW_BALANCE = "LOW_BALANCE",
|
|
4786
|
-
HIGH_BALANCE = "HIGH_BALANCE"
|
|
4798
|
+
HIGH_BALANCE = "HIGH_BALANCE",
|
|
4799
|
+
CHANNEL_OPENING_FEES = "CHANNEL_OPENING_FEES"
|
|
4787
4800
|
}
|
|
4788
4801
|
|
|
4789
4802
|
interface WithdrawalFeeEstimateInput {
|
|
@@ -4803,4 +4816,4 @@ interface WithdrawalFeeEstimateOutput {
|
|
|
4803
4816
|
feeEstimate: CurrencyAmount;
|
|
4804
4817
|
}
|
|
4805
4818
|
|
|
4806
|
-
export { DeclineToSignMessagesInput as $, Account as A, Balances as B, CancelInvoiceInput as C, ClaimUmaInvitationWithIncentivesOutput as D, ComplianceProvider as E, Connection as F, CreateApiTokenInput as G, CreateApiTokenOutput as H, CreateInvitationWithIncentivesInput as I, CreateInvitationWithIncentivesOutput as J, CreateInvoiceInput as K, LightsparkClient as L, CreateInvoiceOutput as M, CreateLnurlInvoiceInput as N, CreateNodeWalletAddressInput as O, CreateNodeWalletAddressOutput as P, CreateTestModeInvoiceInput as Q, CreateTestModeInvoiceOutput as R, CreateTestModePaymentInput as S, CreateTestModePaymentoutput as T, CreateUmaInvitationInput as U, CreateUmaInvitationOutput as V, WebhookEventType as W, CreateUmaInvoiceInput as X, CurrencyAmount as Y, CurrencyUnit as Z, DailyLiquidityForecast as _, AccountToApiTokensConnection as a,
|
|
4819
|
+
export { type DeclineToSignMessagesInput as $, Account as A, type Balances as B, type CancelInvoiceInput as C, type ClaimUmaInvitationWithIncentivesOutput as D, ComplianceProvider as E, type Connection as F, type CreateApiTokenInput as G, type CreateApiTokenOutput as H, type CreateInvitationWithIncentivesInput as I, type CreateInvitationWithIncentivesOutput as J, type CreateInvoiceInput as K, LightsparkClient as L, type CreateInvoiceOutput as M, type CreateLnurlInvoiceInput as N, type CreateNodeWalletAddressInput as O, type CreateNodeWalletAddressOutput as P, type CreateTestModeInvoiceInput as Q, type CreateTestModeInvoiceOutput as R, type CreateTestModePaymentInput as S, type CreateTestModePaymentoutput as T, type CreateUmaInvitationInput as U, type CreateUmaInvitationOutput as V, WebhookEventType as W, type CreateUmaInvoiceInput as X, type CurrencyAmount as Y, CurrencyUnit as Z, type DailyLiquidityForecast as _, type AccountToApiTokensConnection as a, type OutgoingPaymentsForInvoiceQueryInput as a$, type DeclineToSignMessagesOutput as a0, type DeleteApiTokenInput as a1, type DeleteApiTokenOutput as a2, type Deposit as a3, getDepositQuery as a4, type Entity as a5, type FailHtlcsInput as a6, type FailHtlcsOutput as a7, type FeeEstimate as a8, type FundNodeInput as a9, LightningPaymentDirection as aA, type LightningTransaction as aB, getLightningTransactionQuery as aC, type LightsparkNode as aD, getLightsparkNodeQuery as aE, type LightsparkNodeOwner as aF, getLightsparkNodeOwnerQuery as aG, LightsparkNodeStatus as aH, type LightsparkNodeToChannelsConnection as aI, type LightsparkNodeToDailyLiquidityForecastsConnection as aJ, LightsparkNodeWithOSK as aK, LightsparkNodeWithRemoteSigning as aL, type MultiSigAddressValidationParameters as aM, type Node as aN, getNodeQuery as aO, type NodeAddress as aP, NodeAddressType as aQ, type NodeToAddressesConnection as aR, OnChainFeeTarget as aS, type OnChainTransaction as aT, getOnChainTransactionQuery as aU, OutgoingPayment as aV, OutgoingPaymentAttempt as aW, OutgoingPaymentAttemptStatus as aX, type OutgoingPaymentAttemptToHopsConnection as aY, type OutgoingPaymentForIdempotencyKeyInput as aZ, type OutgoingPaymentForIdempotencyKeyOutput as a_, type FundNodeOutput as aa, GraphNode as ab, type Hop as ac, getHopQuery as ad, HtlcAttemptFailureCode as ae, type IdAndSignature as af, IncentivesIneligibilityReason as ag, IncentivesStatus as ah, IncomingPayment as ai, type IncomingPaymentAttempt as aj, getIncomingPaymentAttemptQuery as ak, IncomingPaymentAttemptStatus as al, type IncomingPaymentsForInvoiceQueryInput as am, type IncomingPaymentsForInvoiceQueryOutput as an, type IncomingPaymentsForPaymentHashQueryInput as ao, type IncomingPaymentsForPaymentHashQueryOutput as ap, type IncomingPaymentToAttemptsConnection as aq, type Invoice as ar, getInvoiceQuery as as, type InvoiceData as at, type InvoiceForPaymentHashInput as au, type InvoiceForPaymentHashOutput as av, InvoiceType as aw, type LightningFeeEstimateForInvoiceInput as ax, type LightningFeeEstimateForNodeInput as ay, type LightningFeeEstimateOutput as az, type AccountToChannelsConnection as b, type WalletToPaymentRequestsConnection as b$, type OutgoingPaymentsForInvoiceQueryOutput as b0, type OutgoingPaymentsForPaymentHashQueryInput as b1, type OutgoingPaymentsForPaymentHashQueryOutput as b2, type OutgoingPaymentToAttemptsConnection as b3, type PageInfo as b4, type PayInvoiceInput as b5, type PayInvoiceOutput as b6, PaymentDirection as b7, PaymentFailureReason as b8, type PaymentRequest as b9, type SendPaymentOutput as bA, type SetInvoicePaymentHashInput as bB, type SetInvoicePaymentHashOutput as bC, type Signable as bD, getSignableQuery as bE, type SignablePayload as bF, getSignablePayloadQuery as bG, SignablePayloadStatus as bH, type SignInvoiceInput as bI, type SignInvoiceOutput as bJ, type SignMessagesInput as bK, type SignMessagesOutput as bL, type SingleNodeDashboard as bM, type Transaction as bN, getTransactionQuery as bO, type TransactionFailures as bP, TransactionStatus as bQ, TransactionType as bR, type TransactionUpdate as bS, type UmaInvitation as bT, getUmaInvitationQuery as bU, type UpdateChannelPerCommitmentPointInput as bV, type UpdateChannelPerCommitmentPointOutput as bW, type UpdateNodeSharedSecretInput as bX, type UpdateNodeSharedSecretOutput as bY, Wallet as bZ, WalletStatus as b_, getPaymentRequestQuery as ba, type PaymentRequestData as bb, PaymentRequestStatus as bc, type PayUmaInvoiceInput as bd, Permission as be, type PostTransactionData as bf, RegionCode as bg, type RegisterPaymentInput as bh, type RegisterPaymentOutput as bi, type ReleaseChannelPerCommitmentSecretInput as bj, type ReleaseChannelPerCommitmentSecretOutput as bk, type ReleasePaymentPreimageInput as bl, type ReleasePaymentPreimageOutput as bm, RemoteSigningSubEventType as bn, RequestInitiator as bo, type RequestWithdrawalInput as bp, type RequestWithdrawalOutput as bq, type RichText as br, RiskRating as bs, type RoutingTransaction as bt, getRoutingTransactionQuery as bu, RoutingTransactionFailureReason as bv, type ScreenNodeInput as bw, type ScreenNodeOutput as bx, type Secret as by, type SendPaymentInput as bz, type AccountToNodesConnection as c, type WalletToTransactionsConnection as c0, type WalletToWithdrawalRequestsConnection as c1, type Withdrawal as c2, getWithdrawalQuery as c3, type WithdrawalFeeEstimateInput as c4, type WithdrawalFeeEstimateOutput as c5, WithdrawalMode as c6, WithdrawalRequest as c7, WithdrawalRequestStatus as c8, type WithdrawalRequestToChannelClosingTransactionsConnection as c9, type WithdrawalRequestToChannelOpeningTransactionsConnection as ca, type WithdrawalRequestToWithdrawalsConnection as cb, type AccountToPaymentRequestsConnection as d, type AccountToTransactionsConnection as e, type AccountToWalletsConnection as f, type AccountToWithdrawalRequestsConnection as g, type ApiToken as h, getApiTokenQuery as i, type AuditLogActor as j, getAuditLogActorQuery as k, type BlockchainBalance as l, type CancelInvoiceOutput as m, Channel as n, type ChannelClosingTransaction as o, getChannelClosingTransactionQuery as p, type ChannelFees as q, type ChannelOpeningTransaction as r, getChannelOpeningTransactionQuery as s, type ChannelSnapshot as t, getChannelSnapshotQuery as u, ChannelStatus as v, type ChannelToTransactionsConnection as w, type ClaimUmaInvitationInput as x, type ClaimUmaInvitationOutput as y, type ClaimUmaInvitationWithIncentivesInput as z };
|
package/dist/index.cjs
CHANGED
|
@@ -32,7 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
|
|
33
33
|
// ../../node_modules/text-encoding/lib/encoding-indexes.js
|
|
34
34
|
var require_encoding_indexes = __commonJS({
|
|
35
|
-
"../../node_modules/text-encoding/lib/encoding-indexes.js"(
|
|
35
|
+
"../../node_modules/text-encoding/lib/encoding-indexes.js"(exports2, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
(function(global) {
|
|
38
38
|
"use strict";
|
|
@@ -74,13 +74,13 @@ var require_encoding_indexes = __commonJS({
|
|
|
74
74
|
"windows-1258": [8364, 129, 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 138, 8249, 338, 141, 142, 143, 144, 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732, 8482, 154, 8250, 339, 157, 158, 376, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 258, 196, 197, 198, 199, 200, 201, 202, 203, 768, 205, 206, 207, 272, 209, 777, 211, 212, 416, 214, 215, 216, 217, 218, 219, 220, 431, 771, 223, 224, 225, 226, 259, 228, 229, 230, 231, 232, 233, 234, 235, 769, 237, 238, 239, 273, 241, 803, 243, 244, 417, 246, 247, 248, 249, 250, 251, 252, 432, 8363, 255],
|
|
75
75
|
"x-mac-cyrillic": [1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 8224, 176, 1168, 163, 167, 8226, 182, 1030, 174, 169, 8482, 1026, 1106, 8800, 1027, 1107, 8734, 177, 8804, 8805, 1110, 181, 1169, 1032, 1028, 1108, 1031, 1111, 1033, 1113, 1034, 1114, 1112, 1029, 172, 8730, 402, 8776, 8710, 171, 187, 8230, 160, 1035, 1115, 1036, 1116, 1109, 8211, 8212, 8220, 8221, 8216, 8217, 247, 8222, 1038, 1118, 1039, 1119, 8470, 1025, 1105, 1103, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 8364]
|
|
76
76
|
};
|
|
77
|
-
})(
|
|
77
|
+
})(exports2 || {});
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
// ../../node_modules/text-encoding/lib/encoding.js
|
|
82
82
|
var require_encoding = __commonJS({
|
|
83
|
-
"../../node_modules/text-encoding/lib/encoding.js"(
|
|
83
|
+
"../../node_modules/text-encoding/lib/encoding.js"(exports2, module2) {
|
|
84
84
|
"use strict";
|
|
85
85
|
(function(global) {
|
|
86
86
|
"use strict";
|
|
@@ -95,10 +95,8 @@ var require_encoding = __commonJS({
|
|
|
95
95
|
}
|
|
96
96
|
var floor = Math.floor;
|
|
97
97
|
function ToDictionary(o) {
|
|
98
|
-
if (o === void 0)
|
|
99
|
-
|
|
100
|
-
if (o === Object(o))
|
|
101
|
-
return o;
|
|
98
|
+
if (o === void 0) return {};
|
|
99
|
+
if (o === Object(o)) return o;
|
|
102
100
|
throw TypeError("Could not convert argument to dictionary");
|
|
103
101
|
}
|
|
104
102
|
function stringToCodePoints(string) {
|
|
@@ -723,8 +721,7 @@ var require_encoding = __commonJS({
|
|
|
723
721
|
var encoders = {};
|
|
724
722
|
var decoders = {};
|
|
725
723
|
function indexCodePointFor(pointer, index2) {
|
|
726
|
-
if (!index2)
|
|
727
|
-
return null;
|
|
724
|
+
if (!index2) return null;
|
|
728
725
|
return index2[pointer] || null;
|
|
729
726
|
}
|
|
730
727
|
function indexPointerFor(code_point, index2) {
|
|
@@ -740,8 +737,7 @@ var require_encoding = __commonJS({
|
|
|
740
737
|
function indexGB18030RangesCodePointFor(pointer) {
|
|
741
738
|
if (pointer > 39419 && pointer < 189e3 || pointer > 1237575)
|
|
742
739
|
return null;
|
|
743
|
-
if (pointer === 7457)
|
|
744
|
-
return 59335;
|
|
740
|
+
if (pointer === 7457) return 59335;
|
|
745
741
|
var offset = 0;
|
|
746
742
|
var code_point_offset = 0;
|
|
747
743
|
var idx = index("gb18030-ranges");
|
|
@@ -758,8 +754,7 @@ var require_encoding = __commonJS({
|
|
|
758
754
|
return code_point_offset + pointer - offset;
|
|
759
755
|
}
|
|
760
756
|
function indexGB18030RangesPointerFor(code_point) {
|
|
761
|
-
if (code_point === 59335)
|
|
762
|
-
return 7457;
|
|
757
|
+
if (code_point === 59335) return 7457;
|
|
763
758
|
var offset = 0;
|
|
764
759
|
var pointer_offset = 0;
|
|
765
760
|
var idx = index("gb18030-ranges");
|
|
@@ -1821,13 +1816,13 @@ var require_encoding = __commonJS({
|
|
|
1821
1816
|
EncodingIndexes: global["encoding-indexes"]
|
|
1822
1817
|
};
|
|
1823
1818
|
}
|
|
1824
|
-
})(
|
|
1819
|
+
})(exports2 || {});
|
|
1825
1820
|
}
|
|
1826
1821
|
});
|
|
1827
1822
|
|
|
1828
1823
|
// ../../node_modules/text-encoding/index.js
|
|
1829
1824
|
var require_text_encoding = __commonJS({
|
|
1830
|
-
"../../node_modules/text-encoding/index.js"(
|
|
1825
|
+
"../../node_modules/text-encoding/index.js"(exports2, module2) {
|
|
1831
1826
|
"use strict";
|
|
1832
1827
|
var encoding = require_encoding();
|
|
1833
1828
|
module2.exports = {
|
|
@@ -1986,7 +1981,7 @@ var import_core28 = require("@lightsparkdev/core");
|
|
|
1986
1981
|
// package.json
|
|
1987
1982
|
var package_default = {
|
|
1988
1983
|
name: "@lightsparkdev/lightspark-sdk",
|
|
1989
|
-
version: "1.8.
|
|
1984
|
+
version: "1.8.4",
|
|
1990
1985
|
description: "Lightspark JS SDK",
|
|
1991
1986
|
author: "Lightspark Inc.",
|
|
1992
1987
|
keywords: [
|
|
@@ -2012,8 +2007,7 @@ var package_default = {
|
|
|
2012
2007
|
default: "./dist/index.js"
|
|
2013
2008
|
},
|
|
2014
2009
|
module: "./dist/index.js",
|
|
2015
|
-
require: "./dist/index.cjs"
|
|
2016
|
-
default: "./dist/index.cjs"
|
|
2010
|
+
require: "./dist/index.cjs"
|
|
2017
2011
|
},
|
|
2018
2012
|
"./objects": {
|
|
2019
2013
|
types: "./dist/objects/index.d.ts",
|
|
@@ -2022,8 +2016,7 @@ var package_default = {
|
|
|
2022
2016
|
default: "./dist/objects/index.js"
|
|
2023
2017
|
},
|
|
2024
2018
|
module: "./dist/objects/index.js",
|
|
2025
|
-
require: "./dist/objects/index.cjs"
|
|
2026
|
-
default: "./dist/objects/index.cjs"
|
|
2019
|
+
require: "./dist/objects/index.cjs"
|
|
2027
2020
|
},
|
|
2028
2021
|
"./env": {
|
|
2029
2022
|
types: "./dist/env.d.ts",
|
|
@@ -2032,8 +2025,7 @@ var package_default = {
|
|
|
2032
2025
|
default: "./dist/env.js"
|
|
2033
2026
|
},
|
|
2034
2027
|
module: "./dist/env.js",
|
|
2035
|
-
require: "./dist/env.cjs"
|
|
2036
|
-
default: "./dist/env.cjs"
|
|
2028
|
+
require: "./dist/env.cjs"
|
|
2037
2029
|
}
|
|
2038
2030
|
},
|
|
2039
2031
|
type: "module",
|
|
@@ -2053,7 +2045,7 @@ var package_default = {
|
|
|
2053
2045
|
scripts: {
|
|
2054
2046
|
build: "yarn tsc && tsup",
|
|
2055
2047
|
"build:watch": "yarn build --watch --clean=false",
|
|
2056
|
-
clean: "rm -rf
|
|
2048
|
+
clean: "rm -rf dist",
|
|
2057
2049
|
dev: "yarn build -- --watch",
|
|
2058
2050
|
docs: "typedoc src",
|
|
2059
2051
|
"format:fix": "prettier src --write",
|
|
@@ -2071,8 +2063,8 @@ var package_default = {
|
|
|
2071
2063
|
},
|
|
2072
2064
|
license: "Apache-2.0",
|
|
2073
2065
|
dependencies: {
|
|
2074
|
-
"@lightsparkdev/core": "1.2.
|
|
2075
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
2066
|
+
"@lightsparkdev/core": "1.2.3",
|
|
2067
|
+
"@lightsparkdev/crypto-wasm": "0.1.5",
|
|
2076
2068
|
"crypto-browserify": "^3.12.0",
|
|
2077
2069
|
dayjs: "^1.11.7",
|
|
2078
2070
|
dotenv: "^16.3.1",
|
|
@@ -2096,9 +2088,9 @@ var package_default = {
|
|
|
2096
2088
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
2097
2089
|
"ts-jest": "^29.1.1",
|
|
2098
2090
|
"tsc-absolute": "^1.0.1",
|
|
2099
|
-
tsup: "^
|
|
2091
|
+
tsup: "^8.2.4",
|
|
2100
2092
|
typedoc: "^0.24.7",
|
|
2101
|
-
typescript: "^5.
|
|
2093
|
+
typescript: "^5.6.2"
|
|
2102
2094
|
},
|
|
2103
2095
|
engines: {
|
|
2104
2096
|
node: ">=18"
|
|
@@ -15101,6 +15093,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
15101
15093
|
WebhookEventType2["REMOTE_SIGNING"] = "REMOTE_SIGNING";
|
|
15102
15094
|
WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
|
|
15103
15095
|
WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
|
|
15096
|
+
WebhookEventType2["CHANNEL_OPENING_FEES"] = "CHANNEL_OPENING_FEES";
|
|
15104
15097
|
return WebhookEventType2;
|
|
15105
15098
|
})(WebhookEventType || {});
|
|
15106
15099
|
var WebhookEventType_default = WebhookEventType;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus,
|
|
4
|
-
import { B as BitcoinNetwork } from './BitcoinNetwork-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-B83OtHZi.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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, aq as IncomingPaymentToAttemptsConnection, am as IncomingPaymentsForInvoiceQueryInput, an as IncomingPaymentsForInvoiceQueryOutput, ao as IncomingPaymentsForPaymentHashQueryInput, ap as IncomingPaymentsForPaymentHashQueryOutput, ar as Invoice, at as InvoiceData, au as InvoiceForPaymentHashInput, av as InvoiceForPaymentHashOutput, aw as InvoiceType, ax as LightningFeeEstimateForInvoiceInput, ay as LightningFeeEstimateForNodeInput, az as LightningFeeEstimateOutput, aA as LightningPaymentDirection, aB as LightningTransaction, aD as LightsparkNode, aF as LightsparkNodeOwner, aH as LightsparkNodeStatus, aI as LightsparkNodeToChannelsConnection, aJ as LightsparkNodeToDailyLiquidityForecastsConnection, aK as LightsparkNodeWithOSK, aL as LightsparkNodeWithRemoteSigning, aM as MultiSigAddressValidationParameters, aN as Node, aP as NodeAddress, aQ as NodeAddressType, aR as NodeToAddressesConnection, aS as OnChainFeeTarget, aT as OnChainTransaction, aV as OutgoingPayment, aW as OutgoingPaymentAttempt, aX as OutgoingPaymentAttemptStatus, aY as OutgoingPaymentAttemptToHopsConnection, aZ as OutgoingPaymentForIdempotencyKeyInput, a_ as OutgoingPaymentForIdempotencyKeyOutput, b3 as OutgoingPaymentToAttemptsConnection, a$ as OutgoingPaymentsForInvoiceQueryInput, b0 as OutgoingPaymentsForInvoiceQueryOutput, b1 as OutgoingPaymentsForPaymentHashQueryInput, b2 as OutgoingPaymentsForPaymentHashQueryOutput, b4 as PageInfo, b5 as PayInvoiceInput, b6 as PayInvoiceOutput, bd as PayUmaInvoiceInput, b7 as PaymentDirection, b8 as PaymentFailureReason, b9 as PaymentRequest, bb as PaymentRequestData, bc as PaymentRequestStatus, be as Permission, bf as PostTransactionData, bg as RegionCode, bh as RegisterPaymentInput, bi as RegisterPaymentOutput, bj as ReleaseChannelPerCommitmentSecretInput, bk as ReleaseChannelPerCommitmentSecretOutput, bl as ReleasePaymentPreimageInput, bm as ReleasePaymentPreimageOutput, bn as RemoteSigningSubEventType, bo as RequestInitiator, bp as RequestWithdrawalInput, bq as RequestWithdrawalOutput, br as RichText, bs as RiskRating, bt as RoutingTransaction, bv as RoutingTransactionFailureReason, bw as ScreenNodeInput, bx as ScreenNodeOutput, by as Secret, bz as SendPaymentInput, bA as SendPaymentOutput, bB as SetInvoicePaymentHashInput, bC as SetInvoicePaymentHashOutput, bI as SignInvoiceInput, bJ as SignInvoiceOutput, bK as SignMessagesInput, bL as SignMessagesOutput, bD as Signable, bF as SignablePayload, bH as SignablePayloadStatus, bM as SingleNodeDashboard, bN as Transaction, bP as TransactionFailures, bQ as TransactionStatus, bR as TransactionType, bS as TransactionUpdate, bT as UmaInvitation, bV as UpdateChannelPerCommitmentPointInput, bW as UpdateChannelPerCommitmentPointOutput, bX as UpdateNodeSharedSecretInput, bY as UpdateNodeSharedSecretOutput, bZ as Wallet, b_ as WalletStatus, b$ as WalletToPaymentRequestsConnection, c0 as WalletToTransactionsConnection, c1 as WalletToWithdrawalRequestsConnection, c2 as Withdrawal, c4 as WithdrawalFeeEstimateInput, c5 as WithdrawalFeeEstimateOutput, c6 as WithdrawalMode, c7 as WithdrawalRequest, c8 as WithdrawalRequestStatus, c9 as WithdrawalRequestToChannelClosingTransactionsConnection, ca as WithdrawalRequestToChannelOpeningTransactionsConnection, cb as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, as as getInvoiceQuery, aC as getLightningTransactionQuery, aG as getLightsparkNodeOwnerQuery, aE as getLightsparkNodeQuery, aO as getNodeQuery, aU as getOnChainTransactionQuery, ba as getPaymentRequestQuery, bu as getRoutingTransactionQuery, bG as getSignablePayloadQuery, bE as getSignableQuery, bO as getTransactionQuery, bU as getUmaInvitationQuery, c3 as getWithdrawalQuery } from './index-B83OtHZi.cjs';
|
|
4
|
+
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.cjs';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
|
7
7
|
declare class AccountTokenAuthProvider implements AuthProvider {
|
|
@@ -38,4 +38,4 @@ declare class RemoteSigningWebhookHandler {
|
|
|
38
38
|
handleWebhookRequest(data: Uint8Array, webhookSignature: string, webhookSecret: string): Promise<unknown>;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export { AccountTokenAuthProvider, BitcoinNetwork, LightsparkClient, RemoteSigningWebhookHandler, WEBHOOKS_SIGNATURE_HEADER, WebhookEvent, WebhookEventType, assertValidBitcoinNetwork, getBitcoinNetworkOrThrow, isBitcoinNetwork, verifyAndParseWebhook };
|
|
41
|
+
export { AccountTokenAuthProvider, BitcoinNetwork, LightsparkClient, RemoteSigningWebhookHandler, WEBHOOKS_SIGNATURE_HEADER, type WebhookEvent, WebhookEventType, assertValidBitcoinNetwork, getBitcoinNetworkOrThrow, isBitcoinNetwork, verifyAndParseWebhook };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus,
|
|
4
|
-
import { B as BitcoinNetwork } from './BitcoinNetwork-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-uoUldBPd.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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, aq as IncomingPaymentToAttemptsConnection, am as IncomingPaymentsForInvoiceQueryInput, an as IncomingPaymentsForInvoiceQueryOutput, ao as IncomingPaymentsForPaymentHashQueryInput, ap as IncomingPaymentsForPaymentHashQueryOutput, ar as Invoice, at as InvoiceData, au as InvoiceForPaymentHashInput, av as InvoiceForPaymentHashOutput, aw as InvoiceType, ax as LightningFeeEstimateForInvoiceInput, ay as LightningFeeEstimateForNodeInput, az as LightningFeeEstimateOutput, aA as LightningPaymentDirection, aB as LightningTransaction, aD as LightsparkNode, aF as LightsparkNodeOwner, aH as LightsparkNodeStatus, aI as LightsparkNodeToChannelsConnection, aJ as LightsparkNodeToDailyLiquidityForecastsConnection, aK as LightsparkNodeWithOSK, aL as LightsparkNodeWithRemoteSigning, aM as MultiSigAddressValidationParameters, aN as Node, aP as NodeAddress, aQ as NodeAddressType, aR as NodeToAddressesConnection, aS as OnChainFeeTarget, aT as OnChainTransaction, aV as OutgoingPayment, aW as OutgoingPaymentAttempt, aX as OutgoingPaymentAttemptStatus, aY as OutgoingPaymentAttemptToHopsConnection, aZ as OutgoingPaymentForIdempotencyKeyInput, a_ as OutgoingPaymentForIdempotencyKeyOutput, b3 as OutgoingPaymentToAttemptsConnection, a$ as OutgoingPaymentsForInvoiceQueryInput, b0 as OutgoingPaymentsForInvoiceQueryOutput, b1 as OutgoingPaymentsForPaymentHashQueryInput, b2 as OutgoingPaymentsForPaymentHashQueryOutput, b4 as PageInfo, b5 as PayInvoiceInput, b6 as PayInvoiceOutput, bd as PayUmaInvoiceInput, b7 as PaymentDirection, b8 as PaymentFailureReason, b9 as PaymentRequest, bb as PaymentRequestData, bc as PaymentRequestStatus, be as Permission, bf as PostTransactionData, bg as RegionCode, bh as RegisterPaymentInput, bi as RegisterPaymentOutput, bj as ReleaseChannelPerCommitmentSecretInput, bk as ReleaseChannelPerCommitmentSecretOutput, bl as ReleasePaymentPreimageInput, bm as ReleasePaymentPreimageOutput, bn as RemoteSigningSubEventType, bo as RequestInitiator, bp as RequestWithdrawalInput, bq as RequestWithdrawalOutput, br as RichText, bs as RiskRating, bt as RoutingTransaction, bv as RoutingTransactionFailureReason, bw as ScreenNodeInput, bx as ScreenNodeOutput, by as Secret, bz as SendPaymentInput, bA as SendPaymentOutput, bB as SetInvoicePaymentHashInput, bC as SetInvoicePaymentHashOutput, bI as SignInvoiceInput, bJ as SignInvoiceOutput, bK as SignMessagesInput, bL as SignMessagesOutput, bD as Signable, bF as SignablePayload, bH as SignablePayloadStatus, bM as SingleNodeDashboard, bN as Transaction, bP as TransactionFailures, bQ as TransactionStatus, bR as TransactionType, bS as TransactionUpdate, bT as UmaInvitation, bV as UpdateChannelPerCommitmentPointInput, bW as UpdateChannelPerCommitmentPointOutput, bX as UpdateNodeSharedSecretInput, bY as UpdateNodeSharedSecretOutput, bZ as Wallet, b_ as WalletStatus, b$ as WalletToPaymentRequestsConnection, c0 as WalletToTransactionsConnection, c1 as WalletToWithdrawalRequestsConnection, c2 as Withdrawal, c4 as WithdrawalFeeEstimateInput, c5 as WithdrawalFeeEstimateOutput, c6 as WithdrawalMode, c7 as WithdrawalRequest, c8 as WithdrawalRequestStatus, c9 as WithdrawalRequestToChannelClosingTransactionsConnection, ca as WithdrawalRequestToChannelOpeningTransactionsConnection, cb as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, as as getInvoiceQuery, aC as getLightningTransactionQuery, aG as getLightsparkNodeOwnerQuery, aE as getLightsparkNodeQuery, aO as getNodeQuery, aU as getOnChainTransactionQuery, ba as getPaymentRequestQuery, bu as getRoutingTransactionQuery, bG as getSignablePayloadQuery, bE as getSignableQuery, bO as getTransactionQuery, bU as getUmaInvitationQuery, c3 as getWithdrawalQuery } from './index-uoUldBPd.js';
|
|
4
|
+
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
|
7
7
|
declare class AccountTokenAuthProvider implements AuthProvider {
|
|
@@ -38,4 +38,4 @@ declare class RemoteSigningWebhookHandler {
|
|
|
38
38
|
handleWebhookRequest(data: Uint8Array, webhookSignature: string, webhookSecret: string): Promise<unknown>;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export { AccountTokenAuthProvider, BitcoinNetwork, LightsparkClient, RemoteSigningWebhookHandler, WEBHOOKS_SIGNATURE_HEADER, WebhookEvent, WebhookEventType, assertValidBitcoinNetwork, getBitcoinNetworkOrThrow, isBitcoinNetwork, verifyAndParseWebhook };
|
|
41
|
+
export { AccountTokenAuthProvider, BitcoinNetwork, LightsparkClient, RemoteSigningWebhookHandler, WEBHOOKS_SIGNATURE_HEADER, type WebhookEvent, WebhookEventType, assertValidBitcoinNetwork, getBitcoinNetworkOrThrow, isBitcoinNetwork, verifyAndParseWebhook };
|
package/dist/index.js
CHANGED
|
@@ -93,11 +93,11 @@ import {
|
|
|
93
93
|
getTransactionQuery,
|
|
94
94
|
getUmaInvitationQuery,
|
|
95
95
|
getWithdrawalQuery
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-3SPTFEYJ.js";
|
|
97
97
|
import {
|
|
98
98
|
BitcoinNetwork_default
|
|
99
99
|
} from "./chunk-K6SAUSAX.js";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-FTA5RKYX.js";
|
|
101
101
|
|
|
102
102
|
// src/auth/AccountTokenAuthProvider.ts
|
|
103
103
|
import { b64encode } from "@lightsparkdev/core";
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
// package.json
|
|
153
153
|
var package_default = {
|
|
154
154
|
name: "@lightsparkdev/lightspark-sdk",
|
|
155
|
-
version: "1.8.
|
|
155
|
+
version: "1.8.4",
|
|
156
156
|
description: "Lightspark JS SDK",
|
|
157
157
|
author: "Lightspark Inc.",
|
|
158
158
|
keywords: [
|
|
@@ -178,8 +178,7 @@ var package_default = {
|
|
|
178
178
|
default: "./dist/index.js"
|
|
179
179
|
},
|
|
180
180
|
module: "./dist/index.js",
|
|
181
|
-
require: "./dist/index.cjs"
|
|
182
|
-
default: "./dist/index.cjs"
|
|
181
|
+
require: "./dist/index.cjs"
|
|
183
182
|
},
|
|
184
183
|
"./objects": {
|
|
185
184
|
types: "./dist/objects/index.d.ts",
|
|
@@ -188,8 +187,7 @@ var package_default = {
|
|
|
188
187
|
default: "./dist/objects/index.js"
|
|
189
188
|
},
|
|
190
189
|
module: "./dist/objects/index.js",
|
|
191
|
-
require: "./dist/objects/index.cjs"
|
|
192
|
-
default: "./dist/objects/index.cjs"
|
|
190
|
+
require: "./dist/objects/index.cjs"
|
|
193
191
|
},
|
|
194
192
|
"./env": {
|
|
195
193
|
types: "./dist/env.d.ts",
|
|
@@ -198,8 +196,7 @@ var package_default = {
|
|
|
198
196
|
default: "./dist/env.js"
|
|
199
197
|
},
|
|
200
198
|
module: "./dist/env.js",
|
|
201
|
-
require: "./dist/env.cjs"
|
|
202
|
-
default: "./dist/env.cjs"
|
|
199
|
+
require: "./dist/env.cjs"
|
|
203
200
|
}
|
|
204
201
|
},
|
|
205
202
|
type: "module",
|
|
@@ -219,7 +216,7 @@ var package_default = {
|
|
|
219
216
|
scripts: {
|
|
220
217
|
build: "yarn tsc && tsup",
|
|
221
218
|
"build:watch": "yarn build --watch --clean=false",
|
|
222
|
-
clean: "rm -rf
|
|
219
|
+
clean: "rm -rf dist",
|
|
223
220
|
dev: "yarn build -- --watch",
|
|
224
221
|
docs: "typedoc src",
|
|
225
222
|
"format:fix": "prettier src --write",
|
|
@@ -237,8 +234,8 @@ var package_default = {
|
|
|
237
234
|
},
|
|
238
235
|
license: "Apache-2.0",
|
|
239
236
|
dependencies: {
|
|
240
|
-
"@lightsparkdev/core": "1.2.
|
|
241
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
237
|
+
"@lightsparkdev/core": "1.2.3",
|
|
238
|
+
"@lightsparkdev/crypto-wasm": "0.1.5",
|
|
242
239
|
"crypto-browserify": "^3.12.0",
|
|
243
240
|
dayjs: "^1.11.7",
|
|
244
241
|
dotenv: "^16.3.1",
|
|
@@ -262,9 +259,9 @@ var package_default = {
|
|
|
262
259
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
263
260
|
"ts-jest": "^29.1.1",
|
|
264
261
|
"tsc-absolute": "^1.0.1",
|
|
265
|
-
tsup: "^
|
|
262
|
+
tsup: "^8.2.4",
|
|
266
263
|
typedoc: "^0.24.7",
|
|
267
|
-
typescript: "^5.
|
|
264
|
+
typescript: "^5.6.2"
|
|
268
265
|
},
|
|
269
266
|
engines: {
|
|
270
267
|
node: ">=18"
|
|
@@ -2533,7 +2530,7 @@ var verifyAndParseWebhook = async (data, hexdigest, webhook_secret) => {
|
|
|
2533
2530
|
var parseWebhook = async (data) => {
|
|
2534
2531
|
let td = TextDecoder;
|
|
2535
2532
|
if (typeof td === "undefined") {
|
|
2536
|
-
const tdModule = await import("./text-encoding-
|
|
2533
|
+
const tdModule = await import("./text-encoding-3OZOB4NR.js");
|
|
2537
2534
|
td = tdModule.TextDecoder;
|
|
2538
2535
|
}
|
|
2539
2536
|
const dataStr = new td().decode(data);
|
package/dist/objects/index.cjs
CHANGED
|
@@ -10451,6 +10451,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
10451
10451
|
WebhookEventType2["REMOTE_SIGNING"] = "REMOTE_SIGNING";
|
|
10452
10452
|
WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
|
|
10453
10453
|
WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
|
|
10454
|
+
WebhookEventType2["CHANNEL_OPENING_FEES"] = "CHANNEL_OPENING_FEES";
|
|
10454
10455
|
return WebhookEventType2;
|
|
10455
10456
|
})(WebhookEventType || {});
|
|
10456
10457
|
var WebhookEventType_default = WebhookEventType;
|
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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus,
|
|
2
|
-
export { B as BitcoinNetwork } from '../BitcoinNetwork-
|
|
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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, aq as IncomingPaymentToAttemptsConnection, am as IncomingPaymentsForInvoiceQueryInput, an as IncomingPaymentsForInvoiceQueryOutput, ao as IncomingPaymentsForPaymentHashQueryInput, ap as IncomingPaymentsForPaymentHashQueryOutput, ar as Invoice, at as InvoiceData, au as InvoiceForPaymentHashInput, av as InvoiceForPaymentHashOutput, aw as InvoiceType, ax as LightningFeeEstimateForInvoiceInput, ay as LightningFeeEstimateForNodeInput, az as LightningFeeEstimateOutput, aA as LightningPaymentDirection, aB as LightningTransaction, aD as LightsparkNode, aF as LightsparkNodeOwner, aH as LightsparkNodeStatus, aI as LightsparkNodeToChannelsConnection, aJ as LightsparkNodeToDailyLiquidityForecastsConnection, aK as LightsparkNodeWithOSK, aL as LightsparkNodeWithRemoteSigning, aM as MultiSigAddressValidationParameters, aN as Node, aP as NodeAddress, aQ as NodeAddressType, aR as NodeToAddressesConnection, aS as OnChainFeeTarget, aT as OnChainTransaction, aV as OutgoingPayment, aW as OutgoingPaymentAttempt, aX as OutgoingPaymentAttemptStatus, aY as OutgoingPaymentAttemptToHopsConnection, aZ as OutgoingPaymentForIdempotencyKeyInput, a_ as OutgoingPaymentForIdempotencyKeyOutput, b3 as OutgoingPaymentToAttemptsConnection, a$ as OutgoingPaymentsForInvoiceQueryInput, b0 as OutgoingPaymentsForInvoiceQueryOutput, b1 as OutgoingPaymentsForPaymentHashQueryInput, b2 as OutgoingPaymentsForPaymentHashQueryOutput, b4 as PageInfo, b5 as PayInvoiceInput, b6 as PayInvoiceOutput, bd as PayUmaInvoiceInput, b7 as PaymentDirection, b8 as PaymentFailureReason, b9 as PaymentRequest, bb as PaymentRequestData, bc as PaymentRequestStatus, be as Permission, bf as PostTransactionData, bg as RegionCode, bh as RegisterPaymentInput, bi as RegisterPaymentOutput, bj as ReleaseChannelPerCommitmentSecretInput, bk as ReleaseChannelPerCommitmentSecretOutput, bl as ReleasePaymentPreimageInput, bm as ReleasePaymentPreimageOutput, bn as RemoteSigningSubEventType, bo as RequestInitiator, bp as RequestWithdrawalInput, bq as RequestWithdrawalOutput, br as RichText, bs as RiskRating, bt as RoutingTransaction, bv as RoutingTransactionFailureReason, bw as ScreenNodeInput, bx as ScreenNodeOutput, by as Secret, bz as SendPaymentInput, bA as SendPaymentOutput, bB as SetInvoicePaymentHashInput, bC as SetInvoicePaymentHashOutput, bI as SignInvoiceInput, bJ as SignInvoiceOutput, bK as SignMessagesInput, bL as SignMessagesOutput, bD as Signable, bF as SignablePayload, bH as SignablePayloadStatus, bM as SingleNodeDashboard, bN as Transaction, bP as TransactionFailures, bQ as TransactionStatus, bR as TransactionType, bS as TransactionUpdate, bT as UmaInvitation, bV as UpdateChannelPerCommitmentPointInput, bW as UpdateChannelPerCommitmentPointOutput, bX as UpdateNodeSharedSecretInput, bY as UpdateNodeSharedSecretOutput, bZ as Wallet, b_ as WalletStatus, b$ as WalletToPaymentRequestsConnection, c0 as WalletToTransactionsConnection, c1 as WalletToWithdrawalRequestsConnection, W as WebhookEventType, c2 as Withdrawal, c4 as WithdrawalFeeEstimateInput, c5 as WithdrawalFeeEstimateOutput, c6 as WithdrawalMode, c7 as WithdrawalRequest, c8 as WithdrawalRequestStatus, c9 as WithdrawalRequestToChannelClosingTransactionsConnection, ca as WithdrawalRequestToChannelOpeningTransactionsConnection, cb as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, as as getInvoiceQuery, aC as getLightningTransactionQuery, aG as getLightsparkNodeOwnerQuery, aE as getLightsparkNodeQuery, aO as getNodeQuery, aU as getOnChainTransactionQuery, ba as getPaymentRequestQuery, bu as getRoutingTransactionQuery, bG as getSignablePayloadQuery, bE as getSignableQuery, bO as getTransactionQuery, bU as getUmaInvitationQuery, c3 as getWithdrawalQuery } from '../index-B83OtHZi.cjs';
|
|
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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus,
|
|
2
|
-
export { B as BitcoinNetwork } from '../BitcoinNetwork-
|
|
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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, aq as IncomingPaymentToAttemptsConnection, am as IncomingPaymentsForInvoiceQueryInput, an as IncomingPaymentsForInvoiceQueryOutput, ao as IncomingPaymentsForPaymentHashQueryInput, ap as IncomingPaymentsForPaymentHashQueryOutput, ar as Invoice, at as InvoiceData, au as InvoiceForPaymentHashInput, av as InvoiceForPaymentHashOutput, aw as InvoiceType, ax as LightningFeeEstimateForInvoiceInput, ay as LightningFeeEstimateForNodeInput, az as LightningFeeEstimateOutput, aA as LightningPaymentDirection, aB as LightningTransaction, aD as LightsparkNode, aF as LightsparkNodeOwner, aH as LightsparkNodeStatus, aI as LightsparkNodeToChannelsConnection, aJ as LightsparkNodeToDailyLiquidityForecastsConnection, aK as LightsparkNodeWithOSK, aL as LightsparkNodeWithRemoteSigning, aM as MultiSigAddressValidationParameters, aN as Node, aP as NodeAddress, aQ as NodeAddressType, aR as NodeToAddressesConnection, aS as OnChainFeeTarget, aT as OnChainTransaction, aV as OutgoingPayment, aW as OutgoingPaymentAttempt, aX as OutgoingPaymentAttemptStatus, aY as OutgoingPaymentAttemptToHopsConnection, aZ as OutgoingPaymentForIdempotencyKeyInput, a_ as OutgoingPaymentForIdempotencyKeyOutput, b3 as OutgoingPaymentToAttemptsConnection, a$ as OutgoingPaymentsForInvoiceQueryInput, b0 as OutgoingPaymentsForInvoiceQueryOutput, b1 as OutgoingPaymentsForPaymentHashQueryInput, b2 as OutgoingPaymentsForPaymentHashQueryOutput, b4 as PageInfo, b5 as PayInvoiceInput, b6 as PayInvoiceOutput, bd as PayUmaInvoiceInput, b7 as PaymentDirection, b8 as PaymentFailureReason, b9 as PaymentRequest, bb as PaymentRequestData, bc as PaymentRequestStatus, be as Permission, bf as PostTransactionData, bg as RegionCode, bh as RegisterPaymentInput, bi as RegisterPaymentOutput, bj as ReleaseChannelPerCommitmentSecretInput, bk as ReleaseChannelPerCommitmentSecretOutput, bl as ReleasePaymentPreimageInput, bm as ReleasePaymentPreimageOutput, bn as RemoteSigningSubEventType, bo as RequestInitiator, bp as RequestWithdrawalInput, bq as RequestWithdrawalOutput, br as RichText, bs as RiskRating, bt as RoutingTransaction, bv as RoutingTransactionFailureReason, bw as ScreenNodeInput, bx as ScreenNodeOutput, by as Secret, bz as SendPaymentInput, bA as SendPaymentOutput, bB as SetInvoicePaymentHashInput, bC as SetInvoicePaymentHashOutput, bI as SignInvoiceInput, bJ as SignInvoiceOutput, bK as SignMessagesInput, bL as SignMessagesOutput, bD as Signable, bF as SignablePayload, bH as SignablePayloadStatus, bM as SingleNodeDashboard, bN as Transaction, bP as TransactionFailures, bQ as TransactionStatus, bR as TransactionType, bS as TransactionUpdate, bT as UmaInvitation, bV as UpdateChannelPerCommitmentPointInput, bW as UpdateChannelPerCommitmentPointOutput, bX as UpdateNodeSharedSecretInput, bY as UpdateNodeSharedSecretOutput, bZ as Wallet, b_ as WalletStatus, b$ as WalletToPaymentRequestsConnection, c0 as WalletToTransactionsConnection, c1 as WalletToWithdrawalRequestsConnection, W as WebhookEventType, c2 as Withdrawal, c4 as WithdrawalFeeEstimateInput, c5 as WithdrawalFeeEstimateOutput, c6 as WithdrawalMode, c7 as WithdrawalRequest, c8 as WithdrawalRequestStatus, c9 as WithdrawalRequestToChannelClosingTransactionsConnection, ca as WithdrawalRequestToChannelOpeningTransactionsConnection, cb as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, as as getInvoiceQuery, aC as getLightningTransactionQuery, aG as getLightsparkNodeOwnerQuery, aE as getLightsparkNodeQuery, aO as getNodeQuery, aU as getOnChainTransactionQuery, ba as getPaymentRequestQuery, bu as getRoutingTransactionQuery, bG as getSignablePayloadQuery, bE as getSignableQuery, bO as getTransactionQuery, bU as getUmaInvitationQuery, c3 as getWithdrawalQuery } from '../index-uoUldBPd.js';
|
|
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
|
@@ -59,11 +59,11 @@ import {
|
|
|
59
59
|
getTransactionQuery,
|
|
60
60
|
getUmaInvitationQuery,
|
|
61
61
|
getWithdrawalQuery
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-3SPTFEYJ.js";
|
|
63
63
|
import {
|
|
64
64
|
BitcoinNetwork_default
|
|
65
65
|
} from "../chunk-K6SAUSAX.js";
|
|
66
|
-
import "../chunk-
|
|
66
|
+
import "../chunk-FTA5RKYX.js";
|
|
67
67
|
export {
|
|
68
68
|
Account_default as Account,
|
|
69
69
|
BitcoinNetwork_default as BitcoinNetwork,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FTA5RKYX.js";
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/text-encoding/lib/encoding-indexes.js
|
|
6
6
|
var require_encoding_indexes = __commonJS({
|
|
@@ -67,10 +67,8 @@ var require_encoding = __commonJS({
|
|
|
67
67
|
}
|
|
68
68
|
var floor = Math.floor;
|
|
69
69
|
function ToDictionary(o) {
|
|
70
|
-
if (o === void 0)
|
|
71
|
-
|
|
72
|
-
if (o === Object(o))
|
|
73
|
-
return o;
|
|
70
|
+
if (o === void 0) return {};
|
|
71
|
+
if (o === Object(o)) return o;
|
|
74
72
|
throw TypeError("Could not convert argument to dictionary");
|
|
75
73
|
}
|
|
76
74
|
function stringToCodePoints(string) {
|
|
@@ -695,8 +693,7 @@ var require_encoding = __commonJS({
|
|
|
695
693
|
var encoders = {};
|
|
696
694
|
var decoders = {};
|
|
697
695
|
function indexCodePointFor(pointer, index2) {
|
|
698
|
-
if (!index2)
|
|
699
|
-
return null;
|
|
696
|
+
if (!index2) return null;
|
|
700
697
|
return index2[pointer] || null;
|
|
701
698
|
}
|
|
702
699
|
function indexPointerFor(code_point, index2) {
|
|
@@ -712,8 +709,7 @@ var require_encoding = __commonJS({
|
|
|
712
709
|
function indexGB18030RangesCodePointFor(pointer) {
|
|
713
710
|
if (pointer > 39419 && pointer < 189e3 || pointer > 1237575)
|
|
714
711
|
return null;
|
|
715
|
-
if (pointer === 7457)
|
|
716
|
-
return 59335;
|
|
712
|
+
if (pointer === 7457) return 59335;
|
|
717
713
|
var offset = 0;
|
|
718
714
|
var code_point_offset = 0;
|
|
719
715
|
var idx = index("gb18030-ranges");
|
|
@@ -730,8 +726,7 @@ var require_encoding = __commonJS({
|
|
|
730
726
|
return code_point_offset + pointer - offset;
|
|
731
727
|
}
|
|
732
728
|
function indexGB18030RangesPointerFor(code_point) {
|
|
733
|
-
if (code_point === 59335)
|
|
734
|
-
return 7457;
|
|
729
|
+
if (code_point === 59335) return 7457;
|
|
735
730
|
var offset = 0;
|
|
736
731
|
var pointer_offset = 0;
|
|
737
732
|
var idx = index("gb18030-ranges");
|