@lightsparkdev/lightspark-sdk 1.8.2 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/BitcoinNetwork-CIfB1c0X.d.ts +21 -0
  3. package/dist/{chunk-4KFNQOMH.js → chunk-3SPTFEYJ.js} +1 -0
  4. package/dist/env.d.cts +2 -2
  5. package/dist/env.d.ts +2 -2
  6. package/dist/env.js +1 -1
  7. package/dist/index-B83OtHZi.d.cts +4819 -0
  8. package/dist/{index-27dad75b.d.ts → index-uoUldBPd.d.ts} +31 -18
  9. package/dist/index.cjs +20 -27
  10. package/dist/index.d.cts +4 -4
  11. package/dist/index.d.ts +4 -4
  12. package/dist/index.js +12 -15
  13. package/dist/objects/index.cjs +1 -0
  14. package/dist/objects/index.d.cts +2 -2
  15. package/dist/objects/index.d.ts +2 -2
  16. package/dist/objects/index.js +2 -2
  17. package/dist/{text-encoding-26SMKBAQ.js → text-encoding-3OZOB4NR.js} +6 -11
  18. package/package.json +9 -12
  19. package/src/objects/Channel.ts +2 -3
  20. package/src/objects/ChannelClosingTransaction.ts +1 -1
  21. package/src/objects/ChannelOpeningTransaction.ts +1 -1
  22. package/src/objects/FundNodeInput.ts +4 -0
  23. package/src/objects/Hop.ts +1 -1
  24. package/src/objects/IncomingPayment.ts +1 -2
  25. package/src/objects/IncomingPaymentsForPaymentHashQueryInput.ts +34 -0
  26. package/src/objects/IncomingPaymentsForPaymentHashQueryOutput.ts +37 -0
  27. package/src/objects/InvoiceForPaymentHashOutput.ts +1 -1
  28. package/src/objects/LightningTransaction.ts +10 -8
  29. package/src/objects/LightsparkNodeOwner.ts +1 -1
  30. package/src/objects/OnChainTransaction.ts +6 -4
  31. package/src/objects/OutgoingPayment.ts +1 -1
  32. package/src/objects/OutgoingPaymentAttempt.ts +1 -2
  33. package/src/objects/OutgoingPaymentForIdempotencyKeyOutput.ts +1 -2
  34. package/src/objects/RoutingTransaction.ts +2 -4
  35. package/src/objects/Transaction.ts +16 -12
  36. package/src/objects/Wallet.ts +1 -1
  37. package/src/objects/WebhookEventType.ts +2 -0
  38. package/src/objects/WithdrawalRequest.ts +1 -1
  39. package/src/objects/index.ts +9 -7
  40. /package/dist/{BitcoinNetwork-4f6ea015.d.ts → BitcoinNetwork-CIfB1c0X.d.cts} +0 -0
  41. /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.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d61a209]
8
+ - @lightsparkdev/core@1.2.3
9
+
10
+ ## 1.8.3
11
+
12
+ ### Patch Changes
13
+
14
+ - 07900ac: - Upgrade deps
15
+ - Upgrade TypeScript to 5.6.2 and some related type fixes
16
+ - Improve clean scripts
17
+ - Updated dependencies [07900ac]
18
+ - @lightsparkdev/crypto-wasm@0.1.5
19
+ - @lightsparkdev/core@1.2.2
20
+
3
21
  ## 1.8.2
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-4f6ea015.js';
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-4f6ea015.js';
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 };
package/dist/env.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  getBitcoinNetworkOrThrow
3
3
  } from "./chunk-D32EWIPX.js";
4
4
  import "./chunk-K6SAUSAX.js";
5
- import "./chunk-BMTV3EA2.js";
5
+ import "./chunk-FTA5RKYX.js";
6
6
 
7
7
  // src/env.ts
8
8
  import dotenv from "dotenv";