@lightsparkdev/lightspark-sdk 1.8.6 → 1.8.8
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 +17 -0
- package/dist/{chunk-3SPTFEYJ.js → chunk-HEBVNBJB.js} +1 -0
- package/dist/{index-uoUldBPd.d.ts → index-DqbEQJCG.d.ts} +53 -4
- package/dist/{index-B83OtHZi.d.cts → index-jTkpKHc9.d.cts} +53 -4
- package/dist/index.cjs +4 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/objects/index.cjs +1 -0
- 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 +3 -3
- package/src/objects/Account.ts +1 -1
- package/src/objects/AccountToTransactionsConnection.ts +6 -0
- package/src/objects/ApiToken.ts +1 -1
- package/src/objects/AuditLogActor.ts +1 -1
- package/src/objects/Channel.ts +6 -2
- package/src/objects/ChannelClosingTransaction.ts +1 -1
- package/src/objects/ChannelOpeningTransaction.ts +1 -1
- package/src/objects/ChannelSnapshot.ts +1 -1
- package/src/objects/CreateUmaInvoiceInput.ts +9 -0
- package/src/objects/CurrencyUnit.ts +2 -0
- package/src/objects/Deposit.ts +1 -1
- package/src/objects/GraphNode.ts +3 -1
- package/src/objects/Hop.ts +1 -1
- package/src/objects/IncomingPayment.ts +1 -1
- package/src/objects/IncomingPaymentAttempt.ts +1 -1
- package/src/objects/Invoice.ts +1 -1
- package/src/objects/LightningTransaction.ts +1 -1
- package/src/objects/LightsparkNode.ts +3 -1
- package/src/objects/LightsparkNodeOwner.ts +1 -1
- package/src/objects/LightsparkNodeWithOSK.ts +3 -1
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +3 -1
- package/src/objects/Node.ts +3 -1
- package/src/objects/OnChainTransaction.ts +1 -1
- package/src/objects/OutgoingPayment.ts +1 -1
- package/src/objects/OutgoingPaymentAttempt.ts +6 -2
- package/src/objects/PaymentRequest.ts +1 -1
- package/src/objects/RoutingTransaction.ts +1 -1
- package/src/objects/Signable.ts +1 -1
- package/src/objects/SignablePayload.ts +1 -1
- package/src/objects/Transaction.ts +1 -1
- package/src/objects/UmaInvitation.ts +1 -1
- package/src/objects/Wallet.ts +1 -1
- package/src/objects/Withdrawal.ts +1 -1
- package/src/objects/WithdrawalRequest.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 1.8.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 80c16c1: - add more doc strings
|
|
8
|
+
- Updated dependencies [80c16c1]
|
|
9
|
+
- @lightsparkdev/core@1.2.6
|
|
10
|
+
- @lightsparkdev/crypto-wasm@0.1.9
|
|
11
|
+
|
|
12
|
+
## 1.8.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [f148f37]
|
|
17
|
+
- @lightsparkdev/core@1.2.5
|
|
18
|
+
- @lightsparkdev/crypto-wasm@0.1.8
|
|
19
|
+
|
|
3
20
|
## 1.8.6
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -138,6 +138,7 @@ var CurrencyUnit = /* @__PURE__ */ ((CurrencyUnit2) => {
|
|
|
138
138
|
CurrencyUnit2["SATOSHI"] = "SATOSHI";
|
|
139
139
|
CurrencyUnit2["MILLISATOSHI"] = "MILLISATOSHI";
|
|
140
140
|
CurrencyUnit2["USD"] = "USD";
|
|
141
|
+
CurrencyUnit2["MXN"] = "MXN";
|
|
141
142
|
CurrencyUnit2["NANOBITCOIN"] = "NANOBITCOIN";
|
|
142
143
|
CurrencyUnit2["MICROBITCOIN"] = "MICROBITCOIN";
|
|
143
144
|
CurrencyUnit2["MILLIBITCOIN"] = "MILLIBITCOIN";
|
|
@@ -49,6 +49,8 @@ declare enum CurrencyUnit {
|
|
|
49
49
|
MILLISATOSHI = "MILLISATOSHI",
|
|
50
50
|
/** United States Dollar. **/
|
|
51
51
|
USD = "USD",
|
|
52
|
+
/** Mexican Peso. **/
|
|
53
|
+
MXN = "MXN",
|
|
52
54
|
/**
|
|
53
55
|
* 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit
|
|
54
56
|
* instead when possible. *
|
|
@@ -419,7 +421,11 @@ declare class Channel implements Entity {
|
|
|
419
421
|
readonly estimatedForceClosureWaitMinutes?: number | undefined;
|
|
420
422
|
/** The amount to be paid in fees for the current set of commitment transactions. **/
|
|
421
423
|
readonly commitFee?: CurrencyAmount | undefined;
|
|
422
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* The fees charged for routing payments through this channel.
|
|
426
|
+
*
|
|
427
|
+
* @deprecated Customer nodes do not route payments anymore.
|
|
428
|
+
**/
|
|
423
429
|
readonly fees?: ChannelFees | undefined;
|
|
424
430
|
/** If known, the remote node of the channel. **/
|
|
425
431
|
readonly remoteNodeId?: string | undefined;
|
|
@@ -478,7 +484,11 @@ declare class Channel implements Entity {
|
|
|
478
484
|
estimatedForceClosureWaitMinutes?: number | undefined,
|
|
479
485
|
/** The amount to be paid in fees for the current set of commitment transactions. **/
|
|
480
486
|
commitFee?: CurrencyAmount | undefined,
|
|
481
|
-
/**
|
|
487
|
+
/**
|
|
488
|
+
* The fees charged for routing payments through this channel.
|
|
489
|
+
*
|
|
490
|
+
* @deprecated Customer nodes do not route payments anymore.
|
|
491
|
+
**/
|
|
482
492
|
fees?: ChannelFees | undefined,
|
|
483
493
|
/** If known, the remote node of the channel. **/
|
|
484
494
|
remoteNodeId?: string | undefined,
|
|
@@ -693,6 +703,8 @@ interface LightsparkNode {
|
|
|
693
703
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
694
704
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
695
705
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
706
|
+
*
|
|
707
|
+
* @deprecated Not supported.
|
|
696
708
|
**/
|
|
697
709
|
conductivity?: number | undefined;
|
|
698
710
|
/**
|
|
@@ -888,16 +900,22 @@ interface AccountToTransactionsConnection {
|
|
|
888
900
|
/**
|
|
889
901
|
* Profit (or loss) generated by the transactions in this connection, with the set of filters
|
|
890
902
|
* and constraints provided.
|
|
903
|
+
*
|
|
904
|
+
* @deprecated Customer nodes do not route transactions anymore.
|
|
891
905
|
**/
|
|
892
906
|
profitLoss?: CurrencyAmount | undefined;
|
|
893
907
|
/**
|
|
894
908
|
* Average fee earned for the transactions in this connection, with the set of filters and
|
|
895
909
|
* constraints provided.
|
|
910
|
+
*
|
|
911
|
+
* @deprecated Customer nodes do not route transactions anymore.
|
|
896
912
|
**/
|
|
897
913
|
averageFeeEarned?: CurrencyAmount | undefined;
|
|
898
914
|
/**
|
|
899
915
|
* Total amount transacted by the transactions in this connection, with the set of filters and
|
|
900
916
|
* constraints provided.
|
|
917
|
+
*
|
|
918
|
+
* @deprecated Total amount can be calculated by summing up all transactions in `entities`.
|
|
901
919
|
**/
|
|
902
920
|
totalAmountTransacted?: CurrencyAmount | undefined;
|
|
903
921
|
}
|
|
@@ -1826,6 +1844,8 @@ interface Node {
|
|
|
1826
1844
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
1827
1845
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
1828
1846
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
1847
|
+
*
|
|
1848
|
+
* @deprecated Not supported.
|
|
1829
1849
|
**/
|
|
1830
1850
|
conductivity?: number | undefined;
|
|
1831
1851
|
/**
|
|
@@ -2055,7 +2075,11 @@ declare class OutgoingPaymentAttempt implements Entity {
|
|
|
2055
2075
|
* one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.
|
|
2056
2076
|
**/
|
|
2057
2077
|
readonly fees?: CurrencyAmount | undefined;
|
|
2058
|
-
/**
|
|
2078
|
+
/**
|
|
2079
|
+
* The channel snapshot at the time the outgoing payment attempt was made.
|
|
2080
|
+
*
|
|
2081
|
+
* @deprecated Not supported.
|
|
2082
|
+
**/
|
|
2059
2083
|
readonly channelSnapshotId?: string | undefined;
|
|
2060
2084
|
constructor(
|
|
2061
2085
|
/**
|
|
@@ -2096,7 +2120,11 @@ declare class OutgoingPaymentAttempt implements Entity {
|
|
|
2096
2120
|
* one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.
|
|
2097
2121
|
**/
|
|
2098
2122
|
fees?: CurrencyAmount | undefined,
|
|
2099
|
-
/**
|
|
2123
|
+
/**
|
|
2124
|
+
* The channel snapshot at the time the outgoing payment attempt was made.
|
|
2125
|
+
*
|
|
2126
|
+
* @deprecated Not supported.
|
|
2127
|
+
**/
|
|
2100
2128
|
channelSnapshotId?: string | undefined);
|
|
2101
2129
|
getHops(client: LightsparkClient, first?: number | undefined, after?: string | undefined): Promise<OutgoingPaymentAttemptToHopsConnection>;
|
|
2102
2130
|
static getOutgoingPaymentAttemptQuery(id: string): Query<OutgoingPaymentAttempt>;
|
|
@@ -3649,10 +3677,19 @@ interface CreateUmaInvitationOutput {
|
|
|
3649
3677
|
}
|
|
3650
3678
|
|
|
3651
3679
|
interface CreateUmaInvoiceInput {
|
|
3680
|
+
/** The node from which to create the invoice. **/
|
|
3652
3681
|
nodeId: string;
|
|
3682
|
+
/** The amount for which the invoice should be created, in millisatoshis. **/
|
|
3653
3683
|
amountMsats: number;
|
|
3684
|
+
/**
|
|
3685
|
+
* The SHA256 hash of the UMA metadata payload. This will be present in the h-tag (SHA256
|
|
3686
|
+
* purpose of payment) of the resulting Bolt 11 invoice.
|
|
3687
|
+
**/
|
|
3654
3688
|
metadataHash: string;
|
|
3689
|
+
/** The expiry of the invoice in seconds. Default value is 86400 (1 day). **/
|
|
3655
3690
|
expirySecs?: number | undefined;
|
|
3691
|
+
/** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
|
|
3692
|
+
* payment. **/
|
|
3656
3693
|
receiverHash?: string | undefined;
|
|
3657
3694
|
}
|
|
3658
3695
|
|
|
@@ -3825,6 +3862,8 @@ declare class GraphNode implements Node, Entity {
|
|
|
3825
3862
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
3826
3863
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
3827
3864
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
3865
|
+
*
|
|
3866
|
+
* @deprecated Not supported.
|
|
3828
3867
|
**/
|
|
3829
3868
|
readonly conductivity?: number | undefined;
|
|
3830
3869
|
/**
|
|
@@ -3867,6 +3906,8 @@ declare class GraphNode implements Node, Entity {
|
|
|
3867
3906
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
3868
3907
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
3869
3908
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
3909
|
+
*
|
|
3910
|
+
* @deprecated Not supported.
|
|
3870
3911
|
**/
|
|
3871
3912
|
conductivity?: number | undefined,
|
|
3872
3913
|
/**
|
|
@@ -4001,6 +4042,8 @@ declare class LightsparkNodeWithOSK implements LightsparkNode, Node, Entity {
|
|
|
4001
4042
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4002
4043
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4003
4044
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4045
|
+
*
|
|
4046
|
+
* @deprecated Not supported.
|
|
4004
4047
|
**/
|
|
4005
4048
|
readonly conductivity?: number | undefined;
|
|
4006
4049
|
/**
|
|
@@ -4090,6 +4133,8 @@ declare class LightsparkNodeWithOSK implements LightsparkNode, Node, Entity {
|
|
|
4090
4133
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4091
4134
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4092
4135
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4136
|
+
*
|
|
4137
|
+
* @deprecated Not supported.
|
|
4093
4138
|
**/
|
|
4094
4139
|
conductivity?: number | undefined,
|
|
4095
4140
|
/**
|
|
@@ -4210,6 +4255,8 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
|
|
|
4210
4255
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4211
4256
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4212
4257
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4258
|
+
*
|
|
4259
|
+
* @deprecated Not supported.
|
|
4213
4260
|
**/
|
|
4214
4261
|
readonly conductivity?: number | undefined;
|
|
4215
4262
|
/**
|
|
@@ -4294,6 +4341,8 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
|
|
|
4294
4341
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4295
4342
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4296
4343
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4344
|
+
*
|
|
4345
|
+
* @deprecated Not supported.
|
|
4297
4346
|
**/
|
|
4298
4347
|
conductivity?: number | undefined,
|
|
4299
4348
|
/**
|
|
@@ -49,6 +49,8 @@ declare enum CurrencyUnit {
|
|
|
49
49
|
MILLISATOSHI = "MILLISATOSHI",
|
|
50
50
|
/** United States Dollar. **/
|
|
51
51
|
USD = "USD",
|
|
52
|
+
/** Mexican Peso. **/
|
|
53
|
+
MXN = "MXN",
|
|
52
54
|
/**
|
|
53
55
|
* 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit
|
|
54
56
|
* instead when possible. *
|
|
@@ -419,7 +421,11 @@ declare class Channel implements Entity {
|
|
|
419
421
|
readonly estimatedForceClosureWaitMinutes?: number | undefined;
|
|
420
422
|
/** The amount to be paid in fees for the current set of commitment transactions. **/
|
|
421
423
|
readonly commitFee?: CurrencyAmount | undefined;
|
|
422
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* The fees charged for routing payments through this channel.
|
|
426
|
+
*
|
|
427
|
+
* @deprecated Customer nodes do not route payments anymore.
|
|
428
|
+
**/
|
|
423
429
|
readonly fees?: ChannelFees | undefined;
|
|
424
430
|
/** If known, the remote node of the channel. **/
|
|
425
431
|
readonly remoteNodeId?: string | undefined;
|
|
@@ -478,7 +484,11 @@ declare class Channel implements Entity {
|
|
|
478
484
|
estimatedForceClosureWaitMinutes?: number | undefined,
|
|
479
485
|
/** The amount to be paid in fees for the current set of commitment transactions. **/
|
|
480
486
|
commitFee?: CurrencyAmount | undefined,
|
|
481
|
-
/**
|
|
487
|
+
/**
|
|
488
|
+
* The fees charged for routing payments through this channel.
|
|
489
|
+
*
|
|
490
|
+
* @deprecated Customer nodes do not route payments anymore.
|
|
491
|
+
**/
|
|
482
492
|
fees?: ChannelFees | undefined,
|
|
483
493
|
/** If known, the remote node of the channel. **/
|
|
484
494
|
remoteNodeId?: string | undefined,
|
|
@@ -693,6 +703,8 @@ interface LightsparkNode {
|
|
|
693
703
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
694
704
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
695
705
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
706
|
+
*
|
|
707
|
+
* @deprecated Not supported.
|
|
696
708
|
**/
|
|
697
709
|
conductivity?: number | undefined;
|
|
698
710
|
/**
|
|
@@ -888,16 +900,22 @@ interface AccountToTransactionsConnection {
|
|
|
888
900
|
/**
|
|
889
901
|
* Profit (or loss) generated by the transactions in this connection, with the set of filters
|
|
890
902
|
* and constraints provided.
|
|
903
|
+
*
|
|
904
|
+
* @deprecated Customer nodes do not route transactions anymore.
|
|
891
905
|
**/
|
|
892
906
|
profitLoss?: CurrencyAmount | undefined;
|
|
893
907
|
/**
|
|
894
908
|
* Average fee earned for the transactions in this connection, with the set of filters and
|
|
895
909
|
* constraints provided.
|
|
910
|
+
*
|
|
911
|
+
* @deprecated Customer nodes do not route transactions anymore.
|
|
896
912
|
**/
|
|
897
913
|
averageFeeEarned?: CurrencyAmount | undefined;
|
|
898
914
|
/**
|
|
899
915
|
* Total amount transacted by the transactions in this connection, with the set of filters and
|
|
900
916
|
* constraints provided.
|
|
917
|
+
*
|
|
918
|
+
* @deprecated Total amount can be calculated by summing up all transactions in `entities`.
|
|
901
919
|
**/
|
|
902
920
|
totalAmountTransacted?: CurrencyAmount | undefined;
|
|
903
921
|
}
|
|
@@ -1826,6 +1844,8 @@ interface Node {
|
|
|
1826
1844
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
1827
1845
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
1828
1846
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
1847
|
+
*
|
|
1848
|
+
* @deprecated Not supported.
|
|
1829
1849
|
**/
|
|
1830
1850
|
conductivity?: number | undefined;
|
|
1831
1851
|
/**
|
|
@@ -2055,7 +2075,11 @@ declare class OutgoingPaymentAttempt implements Entity {
|
|
|
2055
2075
|
* one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.
|
|
2056
2076
|
**/
|
|
2057
2077
|
readonly fees?: CurrencyAmount | undefined;
|
|
2058
|
-
/**
|
|
2078
|
+
/**
|
|
2079
|
+
* The channel snapshot at the time the outgoing payment attempt was made.
|
|
2080
|
+
*
|
|
2081
|
+
* @deprecated Not supported.
|
|
2082
|
+
**/
|
|
2059
2083
|
readonly channelSnapshotId?: string | undefined;
|
|
2060
2084
|
constructor(
|
|
2061
2085
|
/**
|
|
@@ -2096,7 +2120,11 @@ declare class OutgoingPaymentAttempt implements Entity {
|
|
|
2096
2120
|
* one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.
|
|
2097
2121
|
**/
|
|
2098
2122
|
fees?: CurrencyAmount | undefined,
|
|
2099
|
-
/**
|
|
2123
|
+
/**
|
|
2124
|
+
* The channel snapshot at the time the outgoing payment attempt was made.
|
|
2125
|
+
*
|
|
2126
|
+
* @deprecated Not supported.
|
|
2127
|
+
**/
|
|
2100
2128
|
channelSnapshotId?: string | undefined);
|
|
2101
2129
|
getHops(client: LightsparkClient, first?: number | undefined, after?: string | undefined): Promise<OutgoingPaymentAttemptToHopsConnection>;
|
|
2102
2130
|
static getOutgoingPaymentAttemptQuery(id: string): Query<OutgoingPaymentAttempt>;
|
|
@@ -3649,10 +3677,19 @@ interface CreateUmaInvitationOutput {
|
|
|
3649
3677
|
}
|
|
3650
3678
|
|
|
3651
3679
|
interface CreateUmaInvoiceInput {
|
|
3680
|
+
/** The node from which to create the invoice. **/
|
|
3652
3681
|
nodeId: string;
|
|
3682
|
+
/** The amount for which the invoice should be created, in millisatoshis. **/
|
|
3653
3683
|
amountMsats: number;
|
|
3684
|
+
/**
|
|
3685
|
+
* The SHA256 hash of the UMA metadata payload. This will be present in the h-tag (SHA256
|
|
3686
|
+
* purpose of payment) of the resulting Bolt 11 invoice.
|
|
3687
|
+
**/
|
|
3654
3688
|
metadataHash: string;
|
|
3689
|
+
/** The expiry of the invoice in seconds. Default value is 86400 (1 day). **/
|
|
3655
3690
|
expirySecs?: number | undefined;
|
|
3691
|
+
/** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
|
|
3692
|
+
* payment. **/
|
|
3656
3693
|
receiverHash?: string | undefined;
|
|
3657
3694
|
}
|
|
3658
3695
|
|
|
@@ -3825,6 +3862,8 @@ declare class GraphNode implements Node, Entity {
|
|
|
3825
3862
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
3826
3863
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
3827
3864
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
3865
|
+
*
|
|
3866
|
+
* @deprecated Not supported.
|
|
3828
3867
|
**/
|
|
3829
3868
|
readonly conductivity?: number | undefined;
|
|
3830
3869
|
/**
|
|
@@ -3867,6 +3906,8 @@ declare class GraphNode implements Node, Entity {
|
|
|
3867
3906
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
3868
3907
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
3869
3908
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
3909
|
+
*
|
|
3910
|
+
* @deprecated Not supported.
|
|
3870
3911
|
**/
|
|
3871
3912
|
conductivity?: number | undefined,
|
|
3872
3913
|
/**
|
|
@@ -4001,6 +4042,8 @@ declare class LightsparkNodeWithOSK implements LightsparkNode, Node, Entity {
|
|
|
4001
4042
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4002
4043
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4003
4044
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4045
|
+
*
|
|
4046
|
+
* @deprecated Not supported.
|
|
4004
4047
|
**/
|
|
4005
4048
|
readonly conductivity?: number | undefined;
|
|
4006
4049
|
/**
|
|
@@ -4090,6 +4133,8 @@ declare class LightsparkNodeWithOSK implements LightsparkNode, Node, Entity {
|
|
|
4090
4133
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4091
4134
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4092
4135
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4136
|
+
*
|
|
4137
|
+
* @deprecated Not supported.
|
|
4093
4138
|
**/
|
|
4094
4139
|
conductivity?: number | undefined,
|
|
4095
4140
|
/**
|
|
@@ -4210,6 +4255,8 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
|
|
|
4210
4255
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4211
4256
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4212
4257
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4258
|
+
*
|
|
4259
|
+
* @deprecated Not supported.
|
|
4213
4260
|
**/
|
|
4214
4261
|
readonly conductivity?: number | undefined;
|
|
4215
4262
|
/**
|
|
@@ -4294,6 +4341,8 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
|
|
|
4294
4341
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
4295
4342
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
4296
4343
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
4344
|
+
*
|
|
4345
|
+
* @deprecated Not supported.
|
|
4297
4346
|
**/
|
|
4298
4347
|
conductivity?: number | undefined,
|
|
4299
4348
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -176,7 +176,7 @@ var import_core28 = require("@lightsparkdev/core");
|
|
|
176
176
|
// package.json
|
|
177
177
|
var package_default = {
|
|
178
178
|
name: "@lightsparkdev/lightspark-sdk",
|
|
179
|
-
version: "1.8.
|
|
179
|
+
version: "1.8.8",
|
|
180
180
|
description: "Lightspark JS SDK",
|
|
181
181
|
author: "Lightspark Inc.",
|
|
182
182
|
keywords: [
|
|
@@ -258,8 +258,8 @@ var package_default = {
|
|
|
258
258
|
},
|
|
259
259
|
license: "Apache-2.0",
|
|
260
260
|
dependencies: {
|
|
261
|
-
"@lightsparkdev/core": "1.2.
|
|
262
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
261
|
+
"@lightsparkdev/core": "1.2.6",
|
|
262
|
+
"@lightsparkdev/crypto-wasm": "0.1.9",
|
|
263
263
|
"crypto-browserify": "^3.12.0",
|
|
264
264
|
dayjs: "^1.11.7",
|
|
265
265
|
dotenv: "^16.3.1",
|
|
@@ -476,6 +476,7 @@ var CurrencyUnit = /* @__PURE__ */ ((CurrencyUnit2) => {
|
|
|
476
476
|
CurrencyUnit2["SATOSHI"] = "SATOSHI";
|
|
477
477
|
CurrencyUnit2["MILLISATOSHI"] = "MILLISATOSHI";
|
|
478
478
|
CurrencyUnit2["USD"] = "USD";
|
|
479
|
+
CurrencyUnit2["MXN"] = "MXN";
|
|
479
480
|
CurrencyUnit2["NANOBITCOIN"] = "NANOBITCOIN";
|
|
480
481
|
CurrencyUnit2["MICROBITCOIN"] = "MICROBITCOIN";
|
|
481
482
|
CurrencyUnit2["MILLIBITCOIN"] = "MILLIBITCOIN";
|
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 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-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-jTkpKHc9.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-jTkpKHc9.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 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-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-DqbEQJCG.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-DqbEQJCG.js';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
getTransactionQuery,
|
|
94
94
|
getUmaInvitationQuery,
|
|
95
95
|
getWithdrawalQuery
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-HEBVNBJB.js";
|
|
97
97
|
import {
|
|
98
98
|
BitcoinNetwork_default
|
|
99
99
|
} from "./chunk-K6SAUSAX.js";
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
// package.json
|
|
152
152
|
var package_default = {
|
|
153
153
|
name: "@lightsparkdev/lightspark-sdk",
|
|
154
|
-
version: "1.8.
|
|
154
|
+
version: "1.8.8",
|
|
155
155
|
description: "Lightspark JS SDK",
|
|
156
156
|
author: "Lightspark Inc.",
|
|
157
157
|
keywords: [
|
|
@@ -233,8 +233,8 @@ var package_default = {
|
|
|
233
233
|
},
|
|
234
234
|
license: "Apache-2.0",
|
|
235
235
|
dependencies: {
|
|
236
|
-
"@lightsparkdev/core": "1.2.
|
|
237
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
236
|
+
"@lightsparkdev/core": "1.2.6",
|
|
237
|
+
"@lightsparkdev/crypto-wasm": "0.1.9",
|
|
238
238
|
"crypto-browserify": "^3.12.0",
|
|
239
239
|
dayjs: "^1.11.7",
|
|
240
240
|
dotenv: "^16.3.1",
|
package/dist/objects/index.cjs
CHANGED
|
@@ -220,6 +220,7 @@ var CurrencyUnit = /* @__PURE__ */ ((CurrencyUnit2) => {
|
|
|
220
220
|
CurrencyUnit2["SATOSHI"] = "SATOSHI";
|
|
221
221
|
CurrencyUnit2["MILLISATOSHI"] = "MILLISATOSHI";
|
|
222
222
|
CurrencyUnit2["USD"] = "USD";
|
|
223
|
+
CurrencyUnit2["MXN"] = "MXN";
|
|
223
224
|
CurrencyUnit2["NANOBITCOIN"] = "NANOBITCOIN";
|
|
224
225
|
CurrencyUnit2["MICROBITCOIN"] = "MICROBITCOIN";
|
|
225
226
|
CurrencyUnit2["MILLIBITCOIN"] = "MILLIBITCOIN";
|
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, 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-
|
|
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-jTkpKHc9.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 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-
|
|
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-DqbEQJCG.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.8.
|
|
3
|
+
"version": "1.8.8",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
},
|
|
83
83
|
"license": "Apache-2.0",
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@lightsparkdev/core": "1.2.
|
|
86
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
85
|
+
"@lightsparkdev/core": "1.2.6",
|
|
86
|
+
"@lightsparkdev/crypto-wasm": "0.1.9",
|
|
87
87
|
"crypto-browserify": "^3.12.0",
|
|
88
88
|
"dayjs": "^1.11.7",
|
|
89
89
|
"dotenv": "^16.3.1",
|
package/src/objects/Account.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type AccountToApiTokensConnection from "./AccountToApiTokensConnection.js";
|
|
@@ -29,18 +29,24 @@ interface AccountToTransactionsConnection {
|
|
|
29
29
|
/**
|
|
30
30
|
* Profit (or loss) generated by the transactions in this connection, with the set of filters
|
|
31
31
|
* and constraints provided.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated Customer nodes do not route transactions anymore.
|
|
32
34
|
**/
|
|
33
35
|
profitLoss?: CurrencyAmount | undefined;
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
38
|
* Average fee earned for the transactions in this connection, with the set of filters and
|
|
37
39
|
* constraints provided.
|
|
40
|
+
*
|
|
41
|
+
* @deprecated Customer nodes do not route transactions anymore.
|
|
38
42
|
**/
|
|
39
43
|
averageFeeEarned?: CurrencyAmount | undefined;
|
|
40
44
|
|
|
41
45
|
/**
|
|
42
46
|
* Total amount transacted by the transactions in this connection, with the set of filters and
|
|
43
47
|
* constraints provided.
|
|
48
|
+
*
|
|
49
|
+
* @deprecated Total amount can be calculated by summing up all transactions in `entities`.
|
|
44
50
|
**/
|
|
45
51
|
totalAmountTransacted?: CurrencyAmount | undefined;
|
|
46
52
|
}
|
package/src/objects/ApiToken.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type ApiToken from "./ApiToken.js";
|
|
5
5
|
import Permission from "./Permission.js";
|
|
6
6
|
|
package/src/objects/Channel.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type ChannelFees from "./ChannelFees.js";
|
|
@@ -71,7 +71,11 @@ class Channel implements Entity {
|
|
|
71
71
|
public readonly estimatedForceClosureWaitMinutes?: number | undefined,
|
|
72
72
|
/** The amount to be paid in fees for the current set of commitment transactions. **/
|
|
73
73
|
public readonly commitFee?: CurrencyAmount | undefined,
|
|
74
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* The fees charged for routing payments through this channel.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated Customer nodes do not route payments anymore.
|
|
78
|
+
**/
|
|
75
79
|
public readonly fees?: ChannelFees | undefined,
|
|
76
80
|
/** If known, the remote node of the channel. **/
|
|
77
81
|
public readonly remoteNodeId?: string | undefined,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
3
|
interface CreateUmaInvoiceInput {
|
|
4
|
+
/** The node from which to create the invoice. **/
|
|
4
5
|
nodeId: string;
|
|
5
6
|
|
|
7
|
+
/** The amount for which the invoice should be created, in millisatoshis. **/
|
|
6
8
|
amountMsats: number;
|
|
7
9
|
|
|
10
|
+
/**
|
|
11
|
+
* The SHA256 hash of the UMA metadata payload. This will be present in the h-tag (SHA256
|
|
12
|
+
* purpose of payment) of the resulting Bolt 11 invoice.
|
|
13
|
+
**/
|
|
8
14
|
metadataHash: string;
|
|
9
15
|
|
|
16
|
+
/** The expiry of the invoice in seconds. Default value is 86400 (1 day). **/
|
|
10
17
|
expirySecs?: number | undefined;
|
|
11
18
|
|
|
19
|
+
/** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
|
|
20
|
+
* payment. **/
|
|
12
21
|
receiverHash?: string | undefined;
|
|
13
22
|
}
|
|
14
23
|
|
|
@@ -23,6 +23,8 @@ export enum CurrencyUnit {
|
|
|
23
23
|
MILLISATOSHI = "MILLISATOSHI",
|
|
24
24
|
/** United States Dollar. **/
|
|
25
25
|
USD = "USD",
|
|
26
|
+
/** Mexican Peso. **/
|
|
27
|
+
MXN = "MXN",
|
|
26
28
|
/**
|
|
27
29
|
* 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit
|
|
28
30
|
* instead when possible. *
|
package/src/objects/Deposit.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
package/src/objects/GraphNode.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import BitcoinNetwork from "./BitcoinNetwork.js";
|
|
@@ -51,6 +51,8 @@ class GraphNode implements Node, Entity {
|
|
|
51
51
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
52
52
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
53
53
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
54
|
+
*
|
|
55
|
+
* @deprecated Not supported.
|
|
54
56
|
**/
|
|
55
57
|
public readonly conductivity?: number | undefined,
|
|
56
58
|
/**
|
package/src/objects/Hop.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
package/src/objects/Invoice.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type LightsparkClient from "../client.js";
|
|
5
5
|
import type Balances from "./Balances.js";
|
|
6
6
|
import { BalancesFromJson, BalancesToJson } from "./Balances.js";
|
|
@@ -82,6 +82,8 @@ interface LightsparkNode {
|
|
|
82
82
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
83
83
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
84
84
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
85
|
+
*
|
|
86
|
+
* @deprecated Not supported.
|
|
85
87
|
**/
|
|
86
88
|
conductivity?: number | undefined;
|
|
87
89
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import Account from "./Account.js";
|
|
5
5
|
import { BalancesFromJson, BalancesToJson } from "./Balances.js";
|
|
6
6
|
import Wallet from "./Wallet.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type Balances from "./Balances.js";
|
|
@@ -76,6 +76,8 @@ class LightsparkNodeWithOSK implements LightsparkNode, Node, Entity {
|
|
|
76
76
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
77
77
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
78
78
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
79
|
+
*
|
|
80
|
+
* @deprecated Not supported.
|
|
79
81
|
**/
|
|
80
82
|
public readonly conductivity?: number | undefined,
|
|
81
83
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type Balances from "./Balances.js";
|
|
@@ -74,6 +74,8 @@ class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, Entity {
|
|
|
74
74
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
75
75
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
76
76
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
77
|
+
*
|
|
78
|
+
* @deprecated Not supported.
|
|
77
79
|
**/
|
|
78
80
|
public readonly conductivity?: number | undefined,
|
|
79
81
|
/**
|
package/src/objects/Node.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type LightsparkClient from "../client.js";
|
|
5
5
|
import { BalancesFromJson, BalancesToJson } from "./Balances.js";
|
|
6
6
|
import BitcoinNetwork from "./BitcoinNetwork.js";
|
|
@@ -67,6 +67,8 @@ interface Node {
|
|
|
67
67
|
* A summary metric used to capture how well positioned a node is to send, receive, or route
|
|
68
68
|
* transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
|
|
69
69
|
* capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
|
|
70
|
+
*
|
|
71
|
+
* @deprecated Not supported.
|
|
70
72
|
**/
|
|
71
73
|
conductivity?: number | undefined;
|
|
72
74
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type ChannelClosingTransaction from "./ChannelClosingTransaction.js";
|
|
5
5
|
import type ChannelOpeningTransaction from "./ChannelOpeningTransaction.js";
|
|
6
6
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
@@ -60,7 +60,11 @@ class OutgoingPaymentAttempt implements Entity {
|
|
|
60
60
|
* one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.
|
|
61
61
|
**/
|
|
62
62
|
public readonly fees?: CurrencyAmount | undefined,
|
|
63
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* The channel snapshot at the time the outgoing payment attempt was made.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated Not supported.
|
|
67
|
+
**/
|
|
64
68
|
public readonly channelSnapshotId?: string | undefined,
|
|
65
69
|
) {
|
|
66
70
|
autoBind(this);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import {
|
|
5
5
|
CurrencyAmountFromJson,
|
|
6
6
|
CurrencyAmountToJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
package/src/objects/Signable.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import SignablePayloadStatus from "./SignablePayloadStatus.js";
|
|
5
5
|
|
|
6
6
|
interface SignablePayload {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import { LightsparkException,
|
|
3
|
+
import { LightsparkException, type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type ChannelClosingTransaction from "./ChannelClosingTransaction.js";
|
|
5
5
|
import type ChannelOpeningTransaction from "./ChannelOpeningTransaction.js";
|
|
6
6
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import IncentivesIneligibilityReason from "./IncentivesIneligibilityReason.js";
|
|
5
5
|
import IncentivesStatus from "./IncentivesStatus.js";
|
|
6
6
|
|
package/src/objects/Wallet.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type Balances from "./Balances.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
5
5
|
import {
|
|
6
6
|
CurrencyAmountFromJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Query, isObject } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
6
|
import type CurrencyAmount from "./CurrencyAmount.js";
|