@lightsparkdev/lightspark-sdk 1.8.1 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/BitcoinNetwork-CIfB1c0X.d.ts +21 -0
- package/dist/{chunk-4KFNQOMH.js → chunk-3SPTFEYJ.js} +1 -0
- package/dist/env.d.cts +2 -2
- package/dist/env.d.ts +2 -2
- package/dist/env.js +1 -1
- package/dist/index-B83OtHZi.d.cts +4819 -0
- package/dist/{index-9a69ef6a.d.ts → index-uoUldBPd.d.ts} +53 -19
- package/dist/index.cjs +185 -94
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +112 -15
- package/dist/objects/index.cjs +1 -0
- package/dist/objects/index.d.cts +2 -2
- package/dist/objects/index.d.ts +2 -2
- package/dist/objects/index.js +2 -2
- package/dist/{text-encoding-26SMKBAQ.js → text-encoding-3OZOB4NR.js} +6 -11
- package/package.json +9 -12
- package/src/client.ts +89 -8
- package/src/graphql/IncomingPaymentsForInvoice.ts +21 -0
- package/src/graphql/OutgoingPaymentsForInvoice.ts +21 -0
- package/src/objects/Channel.ts +2 -3
- package/src/objects/ChannelClosingTransaction.ts +1 -1
- package/src/objects/ChannelOpeningTransaction.ts +1 -1
- package/src/objects/FundNodeInput.ts +4 -0
- package/src/objects/Hop.ts +1 -1
- package/src/objects/IncomingPayment.ts +1 -2
- package/src/objects/IncomingPaymentsForPaymentHashQueryInput.ts +34 -0
- package/src/objects/IncomingPaymentsForPaymentHashQueryOutput.ts +37 -0
- package/src/objects/InvoiceForPaymentHashOutput.ts +1 -1
- package/src/objects/LightningTransaction.ts +10 -8
- package/src/objects/LightsparkNodeOwner.ts +1 -1
- package/src/objects/OnChainTransaction.ts +6 -4
- package/src/objects/OutgoingPayment.ts +1 -1
- package/src/objects/OutgoingPaymentAttempt.ts +1 -2
- package/src/objects/OutgoingPaymentForIdempotencyKeyOutput.ts +1 -2
- package/src/objects/RoutingTransaction.ts +2 -4
- package/src/objects/Transaction.ts +16 -12
- package/src/objects/Wallet.ts +1 -1
- package/src/objects/WebhookEventType.ts +2 -0
- package/src/objects/WithdrawalRequest.ts +1 -1
- package/src/objects/index.ts +9 -7
- /package/dist/{BitcoinNetwork-4f6ea015.d.ts → BitcoinNetwork-CIfB1c0X.d.cts} +0 -0
- /package/dist/{chunk-BMTV3EA2.js → chunk-FTA5RKYX.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 1.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 07900ac: - Upgrade deps
|
|
8
|
+
- Upgrade TypeScript to 5.6.2 and some related type fixes
|
|
9
|
+
- Improve clean scripts
|
|
10
|
+
- Updated dependencies [07900ac]
|
|
11
|
+
- @lightsparkdev/crypto-wasm@0.1.5
|
|
12
|
+
- @lightsparkdev/core@1.2.2
|
|
13
|
+
|
|
14
|
+
## 1.8.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 9d2f78a: - adds IncomingPaymentsForInvoice and OutgoingPaymentsForInvoice
|
|
19
|
+
- 9d2f78a: - Enable setting logging level on client
|
|
20
|
+
|
|
3
21
|
## 1.8.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** This is an enum identifying a particular Bitcoin Network. **/
|
|
2
|
+
declare enum BitcoinNetwork {
|
|
3
|
+
/**
|
|
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.
|
|
6
|
+
*/
|
|
7
|
+
FUTURE_VALUE = "FUTURE_VALUE",
|
|
8
|
+
/** The production version of the Bitcoin Blockchain. **/
|
|
9
|
+
MAINNET = "MAINNET",
|
|
10
|
+
/** A test version of the Bitcoin Blockchain, maintained by Lightspark. **/
|
|
11
|
+
REGTEST = "REGTEST",
|
|
12
|
+
/**
|
|
13
|
+
* A test version of the Bitcoin Blockchain, maintained by a centralized organization. Not in use
|
|
14
|
+
* at Lightspark. *
|
|
15
|
+
*/
|
|
16
|
+
SIGNET = "SIGNET",
|
|
17
|
+
/** A test version of the Bitcoin Blockchain, publicly available. **/
|
|
18
|
+
TESTNET = "TESTNET"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { BitcoinNetwork as B };
|
|
@@ -10733,6 +10733,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
10733
10733
|
WebhookEventType2["REMOTE_SIGNING"] = "REMOTE_SIGNING";
|
|
10734
10734
|
WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
|
|
10735
10735
|
WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
|
|
10736
|
+
WebhookEventType2["CHANNEL_OPENING_FEES"] = "CHANNEL_OPENING_FEES";
|
|
10736
10737
|
return WebhookEventType2;
|
|
10737
10738
|
})(WebhookEventType || {});
|
|
10738
10739
|
var WebhookEventType_default = WebhookEventType;
|
package/dist/env.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BitcoinNetwork } from './BitcoinNetwork-
|
|
1
|
+
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.cjs';
|
|
2
2
|
|
|
3
3
|
type EnvCredentials = {
|
|
4
4
|
apiTokenClientId: string;
|
|
@@ -14,4 +14,4 @@ declare enum RequiredCredentials {
|
|
|
14
14
|
}
|
|
15
15
|
declare const getCredentialsFromEnvOrThrow: () => EnvCredentials;
|
|
16
16
|
|
|
17
|
-
export { EnvCredentials, RequiredCredentials, getCredentialsFromEnvOrThrow };
|
|
17
|
+
export { type EnvCredentials, RequiredCredentials, getCredentialsFromEnvOrThrow };
|
package/dist/env.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BitcoinNetwork } from './BitcoinNetwork-
|
|
1
|
+
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
2
2
|
|
|
3
3
|
type EnvCredentials = {
|
|
4
4
|
apiTokenClientId: string;
|
|
@@ -14,4 +14,4 @@ declare enum RequiredCredentials {
|
|
|
14
14
|
}
|
|
15
15
|
declare const getCredentialsFromEnvOrThrow: () => EnvCredentials;
|
|
16
16
|
|
|
17
|
-
export { EnvCredentials, RequiredCredentials, getCredentialsFromEnvOrThrow };
|
|
17
|
+
export { type EnvCredentials, RequiredCredentials, getCredentialsFromEnvOrThrow };
|