@lightsparkdev/lightspark-sdk 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/{BitcoinNetwork-a816c0be.d.ts → BitcoinNetwork-972b1d01.d.ts} +4 -1
- package/dist/{chunk-GLL4KTUT.js → chunk-Y55D3PD4.js} +11 -11
- package/dist/env.d.cts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/{index-eb604025.d.ts → index-a5028d74.d.ts} +866 -451
- package/dist/index.cjs +622 -557
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +363 -298
- package/dist/objects/index.d.cts +2 -2
- package/dist/objects/index.d.ts +2 -2
- package/dist/objects/index.js +1 -1
- package/package.json +4 -4
- package/src/NodeKeyLoaderCache.ts +4 -3
- package/src/SigningKeyLoader.ts +12 -7
- package/src/client.ts +117 -65
- package/src/env.ts +3 -1
- package/src/graphql/CancelInvoice.ts +17 -0
- package/src/objects/Account.ts +7 -3
- package/src/objects/AccountToApiTokensConnection.ts +3 -2
- package/src/objects/AccountToChannelsConnection.ts +3 -2
- package/src/objects/AccountToNodesConnection.ts +3 -2
- package/src/objects/AccountToPaymentRequestsConnection.ts +3 -2
- package/src/objects/AccountToTransactionsConnection.ts +7 -6
- package/src/objects/AccountToWalletsConnection.ts +3 -2
- package/src/objects/ApiToken.ts +10 -5
- package/src/objects/Balances.ts +20 -12
- package/src/objects/BitcoinNetwork.ts +4 -1
- package/src/objects/CancelInvoiceInput.ts +18 -0
- package/src/objects/CancelInvoiceOutput.ts +26 -0
- package/src/objects/Channel.ts +26 -12
- package/src/objects/ChannelClosingTransaction.ts +7 -3
- package/src/objects/ChannelOpeningTransaction.ts +7 -3
- package/src/objects/ChannelStatus.ts +24 -5
- package/src/objects/ChannelToTransactionsConnection.ts +9 -8
- package/src/objects/Connection.ts +3 -2
- package/src/objects/CreateApiTokenOutput.ts +3 -3
- package/src/objects/CreateLnurlInvoiceInput.ts +3 -2
- package/src/objects/CreateTestModePaymentInput.ts +2 -2
- package/src/objects/CreateTestModePaymentoutput.ts +5 -1
- package/src/objects/CurrencyAmount.ts +2 -2
- package/src/objects/CurrencyUnit.ts +29 -6
- package/src/objects/Deposit.ts +8 -3
- package/src/objects/Entity.ts +8 -3
- package/src/objects/FeeEstimate.ts +5 -1
- package/src/objects/GraphNode.ts +20 -11
- package/src/objects/Hop.ts +8 -3
- package/src/objects/HtlcAttemptFailureCode.ts +4 -1
- package/src/objects/IncentivesIneligibilityReason.ts +16 -4
- package/src/objects/IncentivesStatus.ts +9 -2
- package/src/objects/IncomingPayment.ts +9 -5
- package/src/objects/IncomingPaymentAttempt.ts +7 -3
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -2
- package/src/objects/Invoice.ts +2 -2
- package/src/objects/InvoiceData.ts +7 -3
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +2 -2
- package/src/objects/LightningTransaction.ts +7 -3
- package/src/objects/LightsparkNode.ts +21 -12
- package/src/objects/LightsparkNodeOwner.ts +2 -2
- package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -2
- package/src/objects/LightsparkNodeWithOSK.ts +20 -12
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +16 -11
- package/src/objects/Node.ts +19 -11
- package/src/objects/NodeAddressType.ts +4 -1
- package/src/objects/NodeToAddressesConnection.ts +7 -3
- package/src/objects/OnChainTransaction.ts +8 -3
- package/src/objects/OutgoingPayment.ts +8 -3
- package/src/objects/OutgoingPaymentAttempt.ts +16 -9
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +7 -3
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -2
- package/src/objects/PageInfo.ts +5 -1
- package/src/objects/PayInvoiceInput.ts +4 -1
- package/src/objects/PaymentFailureReason.ts +4 -1
- package/src/objects/PaymentRequest.ts +7 -3
- package/src/objects/PaymentRequestData.ts +5 -1
- package/src/objects/PaymentRequestStatus.ts +4 -1
- package/src/objects/Permission.ts +4 -1
- package/src/objects/RegisterPaymentInput.ts +8 -7
- package/src/objects/RequestWithdrawalInput.ts +2 -2
- package/src/objects/RiskRating.ts +5 -1
- package/src/objects/RoutingTransaction.ts +11 -5
- package/src/objects/RoutingTransactionFailureReason.ts +4 -1
- package/src/objects/ScreenNodeInput.ts +3 -2
- package/src/objects/SendPaymentInput.ts +4 -1
- package/src/objects/SetInvoicePaymentHashInput.ts +3 -2
- package/src/objects/Signable.ts +2 -2
- package/src/objects/SignablePayload.ts +6 -3
- package/src/objects/Transaction.ts +8 -3
- package/src/objects/TransactionStatus.ts +8 -2
- package/src/objects/TransactionType.ts +16 -4
- package/src/objects/TransactionUpdate.ts +6 -3
- package/src/objects/UmaInvitation.ts +2 -2
- package/src/objects/Wallet.ts +12 -4
- package/src/objects/WalletStatus.ts +18 -4
- package/src/objects/WalletToPaymentRequestsConnection.ts +3 -2
- package/src/objects/WalletToTransactionsConnection.ts +3 -2
- package/src/objects/WebhookEventType.ts +4 -1
- package/src/objects/Withdrawal.ts +7 -3
- package/src/objects/WithdrawalRequest.ts +10 -5
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +3 -2
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +3 -2
- package/src/objects/index.ts +8 -6
- package/src/tests/integration/general-regtest.test.ts +15 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b473527: Add UMA invites functions
|
|
8
|
+
- b473527: Add a cancelInvoice function which cancels an unpaid invoice
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 35513da: Upgrade dependencies
|
|
13
|
+
- Updated dependencies [35513da]
|
|
14
|
+
- @lightsparkdev/core@1.0.12
|
|
15
|
+
|
|
16
|
+
## 1.2.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 43dc882: Upgrade to Typescript 5, lint config changes
|
|
21
|
+
- Updated dependencies [43dc882]
|
|
22
|
+
- @lightsparkdev/core@1.0.11
|
|
23
|
+
|
|
3
24
|
## 1.2.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -9,7 +9,10 @@ declare enum BitcoinNetwork {
|
|
|
9
9
|
MAINNET = "MAINNET",
|
|
10
10
|
/** A test version of the Bitcoin Blockchain, maintained by Lightspark. **/
|
|
11
11
|
REGTEST = "REGTEST",
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* A test version of the Bitcoin Blockchain, maintained by a centralized organization.
|
|
14
|
+
* Not in use at Lightspark. *
|
|
15
|
+
*/
|
|
13
16
|
SIGNET = "SIGNET",
|
|
14
17
|
/** A test version of the Bitcoin Blockchain, publicly available. **/
|
|
15
18
|
TESTNET = "TESTNET"
|
|
@@ -10147,15 +10147,6 @@ export {
|
|
|
10147
10147
|
FRAGMENT2 as FRAGMENT,
|
|
10148
10148
|
FeeEstimateFromJson,
|
|
10149
10149
|
FRAGMENT23 as FRAGMENT2,
|
|
10150
|
-
IncentivesIneligibilityReason_default,
|
|
10151
|
-
IncentivesStatus_default,
|
|
10152
|
-
UmaInvitationFromJson,
|
|
10153
|
-
FRAGMENT32 as FRAGMENT3,
|
|
10154
|
-
getUmaInvitationQuery,
|
|
10155
|
-
Permission_default,
|
|
10156
|
-
ApiTokenFromJson,
|
|
10157
|
-
FRAGMENT as FRAGMENT4,
|
|
10158
|
-
getApiTokenQuery,
|
|
10159
10150
|
NodeAddressType_default,
|
|
10160
10151
|
GraphNode_default,
|
|
10161
10152
|
LightsparkNodeStatus_default,
|
|
@@ -10165,11 +10156,20 @@ export {
|
|
|
10165
10156
|
LightsparkNodeWithRemoteSigning_default,
|
|
10166
10157
|
getNodeQuery,
|
|
10167
10158
|
InvoiceDataFromJson,
|
|
10168
|
-
FRAGMENT9 as
|
|
10159
|
+
FRAGMENT9 as FRAGMENT3,
|
|
10169
10160
|
PaymentRequestStatus_default,
|
|
10170
10161
|
InvoiceFromJson,
|
|
10171
|
-
FRAGMENT24 as
|
|
10162
|
+
FRAGMENT24 as FRAGMENT4,
|
|
10172
10163
|
getInvoiceQuery,
|
|
10164
|
+
IncentivesIneligibilityReason_default,
|
|
10165
|
+
IncentivesStatus_default,
|
|
10166
|
+
UmaInvitationFromJson,
|
|
10167
|
+
FRAGMENT32 as FRAGMENT5,
|
|
10168
|
+
getUmaInvitationQuery,
|
|
10169
|
+
Permission_default,
|
|
10170
|
+
ApiTokenFromJson,
|
|
10171
|
+
FRAGMENT as FRAGMENT6,
|
|
10172
|
+
getApiTokenQuery,
|
|
10173
10173
|
IncomingPaymentAttemptStatus_default,
|
|
10174
10174
|
getIncomingPaymentAttemptQuery,
|
|
10175
10175
|
TransactionStatus_default,
|
package/dist/env.d.cts
CHANGED
package/dist/env.d.ts
CHANGED