@lightsparkdev/lightspark-sdk 1.2.3 → 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 +13 -0
- package/dist/{BitcoinNetwork-37e9f091.d.ts → BitcoinNetwork-972b1d01.d.ts} +4 -6
- package/dist/{chunk-NCPWHRFO.js → chunk-Y55D3PD4.js} +11 -11
- package/dist/env.d.cts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/{index-449c9f58.d.ts → index-a5028d74.d.ts} +572 -943
- package/dist/index.cjs +263 -232
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +43 -12
- 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 +2 -2
- package/src/client.ts +18 -0
- package/src/graphql/CancelInvoice.ts +17 -0
- package/src/objects/Account.ts +2 -2
- package/src/objects/AccountToApiTokensConnection.ts +3 -6
- package/src/objects/AccountToChannelsConnection.ts +3 -3
- package/src/objects/AccountToNodesConnection.ts +3 -6
- package/src/objects/AccountToPaymentRequestsConnection.ts +3 -6
- package/src/objects/AccountToTransactionsConnection.ts +5 -8
- package/src/objects/AccountToWalletsConnection.ts +3 -6
- package/src/objects/ApiToken.ts +7 -8
- package/src/objects/Balances.ts +16 -18
- package/src/objects/BitcoinNetwork.ts +4 -6
- package/src/objects/BlockchainBalance.ts +1 -4
- package/src/objects/CancelInvoiceInput.ts +18 -0
- package/src/objects/CancelInvoiceOutput.ts +26 -0
- package/src/objects/Channel.ts +16 -25
- package/src/objects/ChannelClosingTransaction.ts +10 -17
- package/src/objects/ChannelFees.ts +1 -4
- package/src/objects/ChannelOpeningTransaction.ts +10 -17
- package/src/objects/ChannelStatus.ts +13 -19
- package/src/objects/ChannelToTransactionsConnection.ts +6 -6
- package/src/objects/ComplianceProvider.ts +2 -3
- package/src/objects/Connection.ts +3 -6
- package/src/objects/CreateApiTokenInput.ts +1 -4
- package/src/objects/CreateLnurlInvoiceInput.ts +2 -2
- package/src/objects/CreateTestModePaymentoutput.ts +2 -2
- package/src/objects/CurrencyAmount.ts +4 -6
- package/src/objects/CurrencyUnit.ts +7 -11
- package/src/objects/Deposit.ts +10 -16
- package/src/objects/Entity.ts +2 -2
- package/src/objects/FeeEstimate.ts +3 -3
- package/src/objects/GraphNode.ts +13 -20
- package/src/objects/Hop.ts +4 -7
- package/src/objects/HtlcAttemptFailureCode.ts +4 -5
- package/src/objects/IncentivesIneligibilityReason.ts +13 -25
- package/src/objects/IncentivesStatus.ts +5 -8
- package/src/objects/IncomingPayment.ts +5 -12
- package/src/objects/IncomingPaymentAttempt.ts +3 -4
- package/src/objects/IncomingPaymentAttemptStatus.ts +3 -7
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -6
- package/src/objects/InvoiceData.ts +2 -2
- package/src/objects/InvoiceType.ts +2 -3
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +2 -2
- package/src/objects/LightningTransaction.ts +4 -8
- package/src/objects/LightsparkNode.ts +19 -25
- package/src/objects/LightsparkNodeStatus.ts +2 -3
- package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -6
- package/src/objects/LightsparkNodeWithOSK.ts +19 -27
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +17 -25
- package/src/objects/Node.ts +13 -19
- package/src/objects/NodeAddressType.ts +4 -5
- package/src/objects/NodeToAddressesConnection.ts +4 -4
- package/src/objects/OnChainTransaction.ts +11 -18
- package/src/objects/OutgoingPayment.ts +7 -19
- package/src/objects/OutgoingPaymentAttempt.ts +11 -19
- package/src/objects/OutgoingPaymentAttemptStatus.ts +3 -7
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +5 -9
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -6
- package/src/objects/PageInfo.ts +2 -3
- package/src/objects/PayInvoiceInput.ts +4 -4
- package/src/objects/PaymentDirection.ts +2 -3
- package/src/objects/PaymentFailureReason.ts +4 -5
- package/src/objects/PaymentRequest.ts +3 -4
- package/src/objects/PaymentRequestData.ts +3 -3
- package/src/objects/PaymentRequestStatus.ts +4 -5
- package/src/objects/Permission.ts +4 -5
- package/src/objects/PostTransactionData.ts +3 -6
- package/src/objects/RegionCode.ts +12 -43
- package/src/objects/RegisterPaymentInput.ts +5 -9
- package/src/objects/RemoteSigningSubEventType.ts +3 -7
- package/src/objects/RiskRating.ts +5 -6
- package/src/objects/RoutingTransaction.ts +8 -15
- package/src/objects/RoutingTransactionFailureReason.ts +4 -6
- package/src/objects/ScreenNodeInput.ts +2 -2
- package/src/objects/SendPaymentInput.ts +2 -2
- package/src/objects/SetInvoicePaymentHashInput.ts +2 -2
- package/src/objects/SignablePayload.ts +2 -2
- package/src/objects/SignablePayloadStatus.ts +2 -3
- package/src/objects/Transaction.ts +4 -9
- package/src/objects/TransactionFailures.ts +1 -4
- package/src/objects/TransactionStatus.ts +6 -11
- package/src/objects/TransactionType.ts +12 -22
- package/src/objects/UmaInvitation.ts +2 -8
- package/src/objects/Wallet.ts +3 -4
- package/src/objects/WalletStatus.ts +12 -25
- package/src/objects/WalletToPaymentRequestsConnection.ts +3 -6
- package/src/objects/WalletToTransactionsConnection.ts +3 -6
- package/src/objects/WebhookEventType.ts +4 -5
- package/src/objects/Withdrawal.ts +11 -18
- package/src/objects/WithdrawalMode.ts +3 -7
- package/src/objects/WithdrawalRequest.ts +3 -7
- package/src/objects/WithdrawalRequestStatus.ts +2 -3
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +4 -10
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +4 -10
- package/src/objects/index.ts +2 -0
- package/src/tests/integration/general-regtest.test.ts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
3
16
|
## 1.2.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/** This is an enum identifying a particular Bitcoin Network. **/
|
|
2
2
|
declare enum BitcoinNetwork {
|
|
3
3
|
/**
|
|
4
|
-
* This is an enum value that represents values that could be added in the
|
|
5
|
-
*
|
|
6
|
-
* added without notice.
|
|
4
|
+
* This is an enum value that represents values that could be added in the future.
|
|
5
|
+
* Clients should support unknown values as more of them could be added without notice.
|
|
7
6
|
*/
|
|
8
7
|
FUTURE_VALUE = "FUTURE_VALUE",
|
|
9
8
|
/** The production version of the Bitcoin Blockchain. **/
|
|
@@ -11,9 +10,8 @@ declare enum BitcoinNetwork {
|
|
|
11
10
|
/** A test version of the Bitcoin Blockchain, maintained by Lightspark. **/
|
|
12
11
|
REGTEST = "REGTEST",
|
|
13
12
|
/**
|
|
14
|
-
* A test version of the Bitcoin Blockchain, maintained by a centralized
|
|
15
|
-
*
|
|
16
|
-
* *
|
|
13
|
+
* A test version of the Bitcoin Blockchain, maintained by a centralized organization.
|
|
14
|
+
* Not in use at Lightspark. *
|
|
17
15
|
*/
|
|
18
16
|
SIGNET = "SIGNET",
|
|
19
17
|
/** A test version of the Bitcoin Blockchain, publicly available. **/
|
|
@@ -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