@lightsparkdev/lightspark-sdk 1.2.3 → 1.3.1

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 (110) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{BitcoinNetwork-37e9f091.d.ts → BitcoinNetwork-972b1d01.d.ts} +4 -6
  3. package/dist/{chunk-NCPWHRFO.js → chunk-Y55D3PD4.js} +11 -11
  4. package/dist/env.d.cts +1 -1
  5. package/dist/env.d.ts +1 -1
  6. package/dist/{index-449c9f58.d.ts → index-a5028d74.d.ts} +572 -943
  7. package/dist/index.cjs +266 -235
  8. package/dist/index.d.cts +3 -3
  9. package/dist/index.d.ts +3 -3
  10. package/dist/index.js +46 -15
  11. package/dist/objects/index.d.cts +2 -2
  12. package/dist/objects/index.d.ts +2 -2
  13. package/dist/objects/index.js +1 -1
  14. package/package.json +2 -2
  15. package/src/client.ts +21 -3
  16. package/src/graphql/CancelInvoice.ts +17 -0
  17. package/src/objects/Account.ts +2 -2
  18. package/src/objects/AccountToApiTokensConnection.ts +3 -6
  19. package/src/objects/AccountToChannelsConnection.ts +3 -3
  20. package/src/objects/AccountToNodesConnection.ts +3 -6
  21. package/src/objects/AccountToPaymentRequestsConnection.ts +3 -6
  22. package/src/objects/AccountToTransactionsConnection.ts +5 -8
  23. package/src/objects/AccountToWalletsConnection.ts +3 -6
  24. package/src/objects/ApiToken.ts +7 -8
  25. package/src/objects/Balances.ts +16 -18
  26. package/src/objects/BitcoinNetwork.ts +4 -6
  27. package/src/objects/BlockchainBalance.ts +1 -4
  28. package/src/objects/CancelInvoiceInput.ts +18 -0
  29. package/src/objects/CancelInvoiceOutput.ts +26 -0
  30. package/src/objects/Channel.ts +16 -25
  31. package/src/objects/ChannelClosingTransaction.ts +10 -17
  32. package/src/objects/ChannelFees.ts +1 -4
  33. package/src/objects/ChannelOpeningTransaction.ts +10 -17
  34. package/src/objects/ChannelStatus.ts +13 -19
  35. package/src/objects/ChannelToTransactionsConnection.ts +6 -6
  36. package/src/objects/ComplianceProvider.ts +2 -3
  37. package/src/objects/Connection.ts +3 -6
  38. package/src/objects/CreateApiTokenInput.ts +1 -4
  39. package/src/objects/CreateLnurlInvoiceInput.ts +2 -2
  40. package/src/objects/CreateTestModePaymentoutput.ts +2 -2
  41. package/src/objects/CurrencyAmount.ts +4 -6
  42. package/src/objects/CurrencyUnit.ts +7 -11
  43. package/src/objects/Deposit.ts +10 -16
  44. package/src/objects/Entity.ts +2 -2
  45. package/src/objects/FeeEstimate.ts +3 -3
  46. package/src/objects/GraphNode.ts +13 -20
  47. package/src/objects/Hop.ts +4 -7
  48. package/src/objects/HtlcAttemptFailureCode.ts +4 -5
  49. package/src/objects/IncentivesIneligibilityReason.ts +13 -25
  50. package/src/objects/IncentivesStatus.ts +5 -8
  51. package/src/objects/IncomingPayment.ts +5 -12
  52. package/src/objects/IncomingPaymentAttempt.ts +3 -4
  53. package/src/objects/IncomingPaymentAttemptStatus.ts +3 -7
  54. package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -6
  55. package/src/objects/InvoiceData.ts +2 -2
  56. package/src/objects/InvoiceType.ts +2 -3
  57. package/src/objects/LightningFeeEstimateForInvoiceInput.ts +2 -2
  58. package/src/objects/LightningTransaction.ts +4 -8
  59. package/src/objects/LightsparkNode.ts +19 -25
  60. package/src/objects/LightsparkNodeStatus.ts +2 -3
  61. package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -6
  62. package/src/objects/LightsparkNodeWithOSK.ts +19 -27
  63. package/src/objects/LightsparkNodeWithRemoteSigning.ts +17 -25
  64. package/src/objects/Node.ts +13 -19
  65. package/src/objects/NodeAddressType.ts +4 -5
  66. package/src/objects/NodeToAddressesConnection.ts +4 -4
  67. package/src/objects/OnChainTransaction.ts +11 -18
  68. package/src/objects/OutgoingPayment.ts +7 -19
  69. package/src/objects/OutgoingPaymentAttempt.ts +11 -19
  70. package/src/objects/OutgoingPaymentAttemptStatus.ts +3 -7
  71. package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +5 -9
  72. package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -6
  73. package/src/objects/PageInfo.ts +2 -3
  74. package/src/objects/PayInvoiceInput.ts +4 -4
  75. package/src/objects/PaymentDirection.ts +2 -3
  76. package/src/objects/PaymentFailureReason.ts +4 -5
  77. package/src/objects/PaymentRequest.ts +3 -4
  78. package/src/objects/PaymentRequestData.ts +3 -3
  79. package/src/objects/PaymentRequestStatus.ts +4 -5
  80. package/src/objects/Permission.ts +4 -5
  81. package/src/objects/PostTransactionData.ts +3 -6
  82. package/src/objects/RegionCode.ts +12 -43
  83. package/src/objects/RegisterPaymentInput.ts +5 -9
  84. package/src/objects/RemoteSigningSubEventType.ts +3 -7
  85. package/src/objects/RiskRating.ts +5 -6
  86. package/src/objects/RoutingTransaction.ts +8 -15
  87. package/src/objects/RoutingTransactionFailureReason.ts +4 -6
  88. package/src/objects/ScreenNodeInput.ts +2 -2
  89. package/src/objects/SendPaymentInput.ts +2 -2
  90. package/src/objects/SetInvoicePaymentHashInput.ts +2 -2
  91. package/src/objects/SignablePayload.ts +2 -2
  92. package/src/objects/SignablePayloadStatus.ts +2 -3
  93. package/src/objects/Transaction.ts +4 -9
  94. package/src/objects/TransactionFailures.ts +1 -4
  95. package/src/objects/TransactionStatus.ts +6 -11
  96. package/src/objects/TransactionType.ts +12 -22
  97. package/src/objects/UmaInvitation.ts +2 -8
  98. package/src/objects/Wallet.ts +3 -4
  99. package/src/objects/WalletStatus.ts +12 -25
  100. package/src/objects/WalletToPaymentRequestsConnection.ts +3 -6
  101. package/src/objects/WalletToTransactionsConnection.ts +3 -6
  102. package/src/objects/WebhookEventType.ts +4 -5
  103. package/src/objects/Withdrawal.ts +11 -18
  104. package/src/objects/WithdrawalMode.ts +3 -7
  105. package/src/objects/WithdrawalRequest.ts +3 -7
  106. package/src/objects/WithdrawalRequestStatus.ts +2 -3
  107. package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +4 -10
  108. package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +4 -10
  109. package/src/objects/index.ts +2 -0
  110. package/src/tests/integration/general-regtest.test.ts +14 -0
@@ -1,14 +1,10 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
- /**
4
- * The alpha-2 representation of a country, as defined by the ISO 3166-1
5
- * standard. *
6
- */
3
+ /** The alpha-2 representation of a country, as defined by the ISO 3166-1 standard. **/
7
4
  export enum RegionCode {
8
5
  /**
9
- * This is an enum value that represents values that could be added in the
10
- * future. Clients should support unknown values as more of them could be
11
- * added without notice.
6
+ * This is an enum value that represents values that could be added in the future.
7
+ * Clients should support unknown values as more of them could be added without notice.
12
8
  */
13
9
  FUTURE_VALUE = "FUTURE_VALUE",
14
10
  /** The code representing the country of Afghanistan. **/
@@ -63,15 +59,9 @@ export enum RegionCode {
63
59
  BM = "BM",
64
60
  /** The code representing the country of Bhutan. **/
65
61
  BT = "BT",
66
- /**
67
- * The code representing the country of The Plurinational State of Bolivia.
68
- * *
69
- */
62
+ /** The code representing the country of The Plurinational State of Bolivia. **/
70
63
  BO = "BO",
71
- /**
72
- * The code representing the country of Bonaire, Sint Eustatius, and Saba.
73
- * *
74
- */
64
+ /** The code representing the country of Bonaire, Sint Eustatius, and Saba. **/
75
65
  BQ = "BQ",
76
66
  /** The code representing the country of Bosnia and Herzegovina. **/
77
67
  BA = "BA",
@@ -119,10 +109,7 @@ export enum RegionCode {
119
109
  KM = "KM",
120
110
  /** The code representing the country of Congo. **/
121
111
  CG = "CG",
122
- /**
123
- * The code representing the country of The Democratic Republic of the Congo.
124
- * *
125
- */
112
+ /** The code representing the country of The Democratic Republic of the Congo. **/
126
113
  CD = "CD",
127
114
  /** The code representing the country of Cook Islands. **/
128
115
  CK = "CK",
@@ -212,10 +199,7 @@ export enum RegionCode {
212
199
  GY = "GY",
213
200
  /** The code representing the country of Haiti. **/
214
201
  HT = "HT",
215
- /**
216
- * The code representing the country of Heard Island and McDonald Islands.
217
- * *
218
- */
202
+ /** The code representing the country of Heard Island and McDonald Islands. **/
219
203
  HM = "HM",
220
204
  /** The code representing the country of Holy See (Vatican City State). **/
221
205
  VA = "VA",
@@ -257,10 +241,7 @@ export enum RegionCode {
257
241
  KE = "KE",
258
242
  /** The code representing the country of Kiribati. **/
259
243
  KI = "KI",
260
- /**
261
- * The code representing the country of Democratic People's Republic ofKorea.
262
- * *
263
- */
244
+ /** The code representing the country of Democratic People's Republic ofKorea. **/
264
245
  KP = "KP",
265
246
  /** The code representing the country of Republic of Korea. **/
266
247
  KR = "KR",
@@ -288,10 +269,7 @@ export enum RegionCode {
288
269
  LU = "LU",
289
270
  /** The code representing the country of Macao. **/
290
271
  MO = "MO",
291
- /**
292
- * The code representing the country of The Former Yugoslav Republic of
293
- * Macedonia. *
294
- */
272
+ /** The code representing the country of The Former Yugoslav Republic of Macedonia. **/
295
273
  MK = "MK",
296
274
  /** The code representing the country of Madagascar. **/
297
275
  MG = "MG",
@@ -399,10 +377,7 @@ export enum RegionCode {
399
377
  RW = "RW",
400
378
  /** The code representing the country of Saint Barthélemy. **/
401
379
  BL = "BL",
402
- /**
403
- * The code representing the country of Saint Helena Ascension and Tristan
404
- * da Cunha. *
405
- */
380
+ /** The code representing the country of Saint Helena Ascension and Tristan da Cunha. **/
406
381
  SH = "SH",
407
382
  /** The code representing the country of Saint Kitts and Nevis. **/
408
383
  KN = "KN",
@@ -444,10 +419,7 @@ export enum RegionCode {
444
419
  SO = "SO",
445
420
  /** The code representing the country of South Africa. **/
446
421
  ZA = "ZA",
447
- /**
448
- * The code representing the country of South Georgia and the South Sandwich
449
- * Islands. *
450
- */
422
+ /** The code representing the country of South Georgia and the South Sandwich Islands. **/
451
423
  GS = "GS",
452
424
  /** The code representing the country of South Sudan. **/
453
425
  SS = "SS",
@@ -507,10 +479,7 @@ export enum RegionCode {
507
479
  GB = "GB",
508
480
  /** The code representing the country of United States. **/
509
481
  US = "US",
510
- /**
511
- * The code representing the country of United States Minor Outlying Islands.
512
- * *
513
- */
482
+ /** The code representing the country of United States Minor Outlying Islands. **/
514
483
  UM = "UM",
515
484
  /** The code representing the country of Uruguay. **/
516
485
  UY = "UY",
@@ -6,8 +6,8 @@ import PaymentDirection from "./PaymentDirection.js";
6
6
  interface RegisterPaymentInput {
7
7
  /**
8
8
  * The compliance provider that is going to screen the node.
9
- * You need to be a customer of the selected provider and store the API key
10
- * on the Lightspark account setting page.
9
+ * You need to be a customer of the selected provider and store the API key on the Lightspark
10
+ * account setting page.
11
11
  **/
12
12
  provider: ComplianceProvider;
13
13
 
@@ -19,16 +19,12 @@ interface RegisterPaymentInput {
19
19
 
20
20
  /**
21
21
  * The public key of the counterparty lightning node,
22
- * which would be the public key of the recipient node if it is to register
23
- * an outgoing payment, or the public key of the sender node if it is to
24
- * register an incoming payment.
22
+ * which would be the public key of the recipient node if it is to register an outgoing
23
+ * payment, or the public key of the sender node if it is to register an incoming payment.
25
24
  **/
26
25
  nodePubkey: string;
27
26
 
28
- /**
29
- * Indicates whether this payment is an OutgoingPayment or an
30
- * IncomingPayment. *
31
- */
27
+ /** Indicates whether this payment is an OutgoingPayment or an IncomingPayment. **/
32
28
  direction: PaymentDirection;
33
29
  }
34
30
 
@@ -1,14 +1,10 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
- /**
4
- * This is an enum of the potential sub-event types for Remote Signing webook
5
- * events. *
6
- */
3
+ /** This is an enum of the potential sub-event types for Remote Signing webook events. **/
7
4
  export enum RemoteSigningSubEventType {
8
5
  /**
9
- * This is an enum value that represents values that could be added in the
10
- * future. Clients should support unknown values as more of them could be
11
- * added without notice.
6
+ * This is an enum value that represents values that could be added in the future.
7
+ * Clients should support unknown values as more of them could be added without notice.
12
8
  */
13
9
  FUTURE_VALUE = "FUTURE_VALUE",
14
10
 
@@ -1,15 +1,14 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  /**
4
- * This is an enum of the potential risk ratings related to a transaction made
5
- * over the Lightning Network. These risk ratings are returned from the
6
- * CryptoSanctionScreeningProvider. *
4
+ * This is an enum of the potential risk ratings related to a transaction made over the Lightning
5
+ * Network. These risk ratings are returned from the CryptoSanctionScreeningProvider.
6
+ * *
7
7
  */
8
8
  export enum RiskRating {
9
9
  /**
10
- * This is an enum value that represents values that could be added in the
11
- * future. Clients should support unknown values as more of them could be
12
- * added without notice.
10
+ * This is an enum value that represents values that could be added in the future.
11
+ * Clients should support unknown values as more of them could be added without notice.
13
12
  */
14
13
  FUTURE_VALUE = "FUTURE_VALUE",
15
14
 
@@ -12,11 +12,10 @@ import RoutingTransactionFailureReason from "./RoutingTransactionFailureReason.j
12
12
  import TransactionStatus from "./TransactionStatus.js";
13
13
 
14
14
  /**
15
- * This object represents a transaction that was forwarded through a Lightspark
16
- * node on the Lightning Network, i.e., a routed transaction.
17
- * You can retrieve this object to receive information about any transaction
18
- * routed through your Lightspark Node.
19
- * *
15
+ * This object represents a transaction that was forwarded through a Lightspark node on the
16
+ * Lightning Network, i.e., a routed transaction.
17
+ * You can retrieve this object to receive information about any transaction routed through your
18
+ * Lightspark Node. *
20
19
  */
21
20
  interface RoutingTransaction {
22
21
  /**
@@ -43,10 +42,7 @@ interface RoutingTransaction {
43
42
  /** The date and time when this transaction was completed or failed. **/
44
43
  resolvedAt?: string | undefined;
45
44
 
46
- /**
47
- * The hash of this transaction, so it can be uniquely identified on the
48
- * Lightning Network. *
49
- */
45
+ /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
50
46
  transactionHash?: string | undefined;
51
47
 
52
48
  /** If known, the channel this transaction was received from. **/
@@ -57,15 +53,12 @@ interface RoutingTransaction {
57
53
 
58
54
  /**
59
55
  * The fees collected by the node when routing this transaction.
60
- * We subtract the outgoing amount to the incoming amount to determine how
61
- * much fees were collected.
56
+ * We subtract the outgoing amount to the incoming amount to determine how much fees were
57
+ * collected.
62
58
  **/
63
59
  fees?: CurrencyAmount | undefined;
64
60
 
65
- /**
66
- * If applicable, user-facing error message describing why the routing
67
- * failed. *
68
- */
61
+ /** If applicable, user-facing error message describing why the routing failed. **/
69
62
  failureMessage?: RichText | undefined;
70
63
 
71
64
  /** If applicable, the reason why the routing failed. **/
@@ -1,15 +1,13 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  /**
4
- * This is an enum of the potential reasons that an attempted routed
5
- * transaction through a Lightspark node may have failed.
6
- * *
4
+ * This is an enum of the potential reasons that an attempted routed transaction through a
5
+ * Lightspark node may have failed. *
7
6
  */
8
7
  export enum RoutingTransactionFailureReason {
9
8
  /**
10
- * This is an enum value that represents values that could be added in the
11
- * future. Clients should support unknown values as more of them could be
12
- * added without notice.
9
+ * This is an enum value that represents values that could be added in the future.
10
+ * Clients should support unknown values as more of them could be added without notice.
13
11
  */
14
12
  FUTURE_VALUE = "FUTURE_VALUE",
15
13
 
@@ -5,8 +5,8 @@ import ComplianceProvider from "./ComplianceProvider.js";
5
5
  interface ScreenNodeInput {
6
6
  /**
7
7
  * The compliance provider that is going to screen the node.
8
- * You need to be a customer of the selected provider and store the API key
9
- * on the Lightspark account setting page.
8
+ * You need to be a customer of the selected provider and store the API key on the Lightspark
9
+ * account setting page.
10
10
  **/
11
11
  provider: ComplianceProvider;
12
12
 
@@ -14,8 +14,8 @@ interface SendPaymentInput {
14
14
  amountMsats: number;
15
15
 
16
16
  /**
17
- * The maximum amount of fees that you want to pay for this payment to be
18
- * sent, expressed in msats. *
17
+ * The maximum amount of fees that you want to pay for this payment to be sent, expressed in
18
+ * msats. *
19
19
  */
20
20
  maximumFeesMsats: number;
21
21
  }
@@ -9,8 +9,8 @@ interface SetInvoicePaymentHashInput {
9
9
 
10
10
  /**
11
11
  * The 32-byte nonce used to generate the invoice preimage if applicable.
12
- * It will later be included in RELEASE_PAYMENT_PREIMAGE webhook to help
13
- * recover the raw preimage.
12
+ * It will later be included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw
13
+ * preimage.
14
14
  **/
15
15
  preimageNonce?: string | undefined;
16
16
  }
@@ -20,8 +20,8 @@ interface SignablePayload {
20
20
  payload: string;
21
21
 
22
22
  /**
23
- * The consistent method for generating the same set of accounts and wallets
24
- * for a given private key *
23
+ * The consistent method for generating the same set of accounts and wallets for a given
24
+ * private key *
25
25
  */
26
26
  derivationPath: string;
27
27
 
@@ -2,9 +2,8 @@
2
2
 
3
3
  export enum SignablePayloadStatus {
4
4
  /**
5
- * This is an enum value that represents values that could be added in the
6
- * future. Clients should support unknown values as more of them could be
7
- * added without notice.
5
+ * This is an enum value that represents values that could be added in the future.
6
+ * Clients should support unknown values as more of them could be added without notice.
8
7
  */
9
8
  FUTURE_VALUE = "FUTURE_VALUE",
10
9
 
@@ -27,11 +27,9 @@ import TransactionStatus from "./TransactionStatus.js";
27
27
  import type Withdrawal from "./Withdrawal.js";
28
28
 
29
29
  /**
30
- * This object represents a payment transaction.
31
- * The transaction can occur either on a Bitcoin Network,
32
- * or over the Lightning Network. You can retrieve this object to receive
33
- * specific information about a particular transaction tied to your Lightspark
34
- * Node.
30
+ * This object represents a payment transaction. The transaction can occur either on a Bitcoin
31
+ * Network, or over the Lightning Network. You can retrieve this object to receive specific
32
+ * information about a particular transaction tied to your Lightspark Node.
35
33
  * *
36
34
  */
37
35
  interface Transaction {
@@ -59,10 +57,7 @@ interface Transaction {
59
57
  /** The date and time when this transaction was completed or failed. **/
60
58
  resolvedAt?: string | undefined;
61
59
 
62
- /**
63
- * The hash of this transaction, so it can be uniquely identified on the
64
- * Lightning Network. *
65
- */
60
+ /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
66
61
  transactionHash?: string | undefined;
67
62
  }
68
63
 
@@ -3,10 +3,7 @@
3
3
  import PaymentFailureReason from "./PaymentFailureReason.js";
4
4
  import RoutingTransactionFailureReason from "./RoutingTransactionFailureReason.js";
5
5
 
6
- /**
7
- * This object represents payment failures associated with your Lightspark
8
- * Node. *
9
- */
6
+ /** This object represents payment failures associated with your Lightspark Node. **/
10
7
  interface TransactionFailures {
11
8
  paymentFailures?: PaymentFailureReason[] | undefined;
12
9
 
@@ -1,14 +1,13 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  /**
4
- * This is an enum of the potential statuses a transaction associated with your
5
- * Lightspark Node can take. *
4
+ * This is an enum of the potential statuses a transaction associated with your Lightspark Node can
5
+ * take. *
6
6
  */
7
7
  export enum TransactionStatus {
8
8
  /**
9
- * This is an enum value that represents values that could be added in the
10
- * future. Clients should support unknown values as more of them could be
11
- * added without notice.
9
+ * This is an enum value that represents values that could be added in the future.
10
+ * Clients should support unknown values as more of them could be added without notice.
12
11
  */
13
12
  FUTURE_VALUE = "FUTURE_VALUE",
14
13
  /** Transaction succeeded.. **/
@@ -18,15 +17,11 @@ export enum TransactionStatus {
18
17
  /** Transaction has been initiated and is currently in-flight. **/
19
18
  PENDING = "PENDING",
20
19
  /**
21
- * For transaction type PAYMENT_REQUEST only.
22
- * No payments have been made to a payment request.
20
+ * For transaction type PAYMENT_REQUEST only. No payments have been made to a payment request.
23
21
  * *
24
22
  */
25
23
  NOT_STARTED = "NOT_STARTED",
26
- /**
27
- * For transaction type PAYMENT_REQUEST only. A payment request has expired.
28
- * *
29
- */
24
+ /** For transaction type PAYMENT_REQUEST only. A payment request has expired. **/
30
25
  EXPIRED = "EXPIRED",
31
26
  /** For transaction type PAYMENT_REQUEST only. **/
32
27
  CANCELLED = "CANCELLED",
@@ -1,53 +1,43 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  /**
4
- * This is an enum of the potential types of transactions that can be
5
- * associated with your Lightspark Node.
6
- * *
4
+ * This is an enum of the potential types of transactions that can be associated with your
5
+ * Lightspark Node. *
7
6
  */
8
7
  export enum TransactionType {
9
8
  /**
10
- * This is an enum value that represents values that could be added in the
11
- * future. Clients should support unknown values as more of them could be
12
- * added without notice.
9
+ * This is an enum value that represents values that could be added in the future.
10
+ * Clients should support unknown values as more of them could be added without notice.
13
11
  */
14
12
  FUTURE_VALUE = "FUTURE_VALUE",
15
13
  /** Transactions initiated from a Lightspark node on Lightning Network. **/
16
14
  OUTGOING_PAYMENT = "OUTGOING_PAYMENT",
17
15
  /** Transactions received by a Lightspark node on Lightning Network. **/
18
16
  INCOMING_PAYMENT = "INCOMING_PAYMENT",
19
- /**
20
- * Transactions that forwarded payments through Lightspark nodes on Lightning
21
- * Network. *
22
- */
17
+ /** Transactions that forwarded payments through Lightspark nodes on Lightning Network. **/
23
18
  ROUTED = "ROUTED",
24
19
  /**
25
- * Transactions on the Bitcoin blockchain to withdraw funds from a Lightspark
26
- * node to a Bitcoin wallet. *
20
+ * Transactions on the Bitcoin blockchain to withdraw funds from a Lightspark node to a Bitcoin
21
+ * wallet. *
27
22
  */
28
23
  L1_WITHDRAW = "L1_WITHDRAW",
29
24
  /** Transactions on Bitcoin blockchain to fund a Lightspark node's wallet. **/
30
25
  L1_DEPOSIT = "L1_DEPOSIT",
31
26
  /**
32
- * Transactions on Bitcoin blockchain to open a channel on Lightning Network
33
- * funded by the local Lightspark node.
34
- * *
27
+ * Transactions on Bitcoin blockchain to open a channel on Lightning Network funded by the local
28
+ * Lightspark node. *
35
29
  */
36
30
  CHANNEL_OPEN = "CHANNEL_OPEN",
37
31
  /**
38
- * Transactions on Bitcoin blockchain to close a channel on Lightning Network
39
- * where the balances are allocated back to local and remote nodes.
40
- * *
32
+ * Transactions on Bitcoin blockchain to close a channel on Lightning Network where the balances
33
+ * are allocated back to local and remote nodes. *
41
34
  */
42
35
  CHANNEL_CLOSE = "CHANNEL_CLOSE",
43
36
  /** Transactions initiated from a Lightspark node on Lightning Network. **/
44
37
  PAYMENT = "PAYMENT",
45
38
  /** Payment requests from a Lightspark node on Lightning Network **/
46
39
  PAYMENT_REQUEST = "PAYMENT_REQUEST",
47
- /**
48
- * Transactions that forwarded payments through Lightspark nodes on Lightning
49
- * Network. *
50
- */
40
+ /** Transactions that forwarded payments through Lightspark nodes on Lightning Network. **/
51
41
  ROUTE = "ROUTE",
52
42
  }
53
43
 
@@ -27,10 +27,7 @@ interface UmaInvitation {
27
27
  /** The UMA of the user who created the invitation. **/
28
28
  inviterUma: string;
29
29
 
30
- /**
31
- * The current status of the incentives that may be tied to this invitation.
32
- * *
33
- */
30
+ /** The current status of the incentives that may be tied to this invitation. **/
34
31
  incentivesStatus: IncentivesStatus;
35
32
 
36
33
  /** The typename of the object **/
@@ -39,10 +36,7 @@ interface UmaInvitation {
39
36
  /** The UMA of the user who claimed the invitation. **/
40
37
  inviteeUma?: string | undefined;
41
38
 
42
- /**
43
- * The reason why the invitation is not eligible for incentives, if
44
- * applicable. *
45
- */
39
+ /** The reason why the invitation is not eligible for incentives, if applicable. **/
46
40
  incentivesIneligibilityReason?: IncentivesIneligibilityReason | undefined;
47
41
  }
48
42
 
@@ -20,8 +20,8 @@ import { WalletToTransactionsConnectionFromJson } from "./WalletToTransactionsCo
20
20
  /**
21
21
  * This object represents a Lightspark Wallet, tied to your Lightspark account.
22
22
  * Wallets can be used to send or receive funds over the Lightning Network.
23
- * You can retrieve this object to receive information about a specific wallet
24
- * tied to your Lightspark account. *
23
+ * You can retrieve this object to receive information about a specific wallet tied to your
24
+ * Lightspark account. *
25
25
  */
26
26
  class Wallet implements LightsparkNodeOwner, Entity {
27
27
  constructor(
@@ -35,8 +35,7 @@ class Wallet implements LightsparkNodeOwner, Entity {
35
35
  /** The date and time when the entity was last updated. **/
36
36
  public readonly updatedAt: string,
37
37
  /**
38
- * The unique identifier of this wallet,
39
- * as provided by the Lightspark Customer during login.
38
+ * The unique identifier of this wallet, as provided by the Lightspark Customer during login.
40
39
  * *
41
40
  */
42
41
  public readonly thirdPartyIdentifier: string,
@@ -1,14 +1,10 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
- /**
4
- * This is an enum of the potential statuses that your Lightspark wallet can
5
- * take. *
6
- */
3
+ /** This is an enum of the potential statuses that your Lightspark wallet can take. **/
7
4
  export enum WalletStatus {
8
5
  /**
9
- * This is an enum value that represents values that could be added in the
10
- * future. Clients should support unknown values as more of them could be
11
- * added without notice.
6
+ * This is an enum value that represents values that could be added in the future.
7
+ * Clients should support unknown values as more of them could be added without notice.
12
8
  */
13
9
  FUTURE_VALUE = "FUTURE_VALUE",
14
10
  /**
@@ -17,39 +13,30 @@ export enum WalletStatus {
17
13
  * *
18
14
  */
19
15
  NOT_SETUP = "NOT_SETUP",
20
- /**
21
- * The wallet is currently being deployed in the Lightspark infrastructure.
22
- * *
23
- */
16
+ /** The wallet is currently being deployed in the Lightspark infrastructure. **/
24
17
  DEPLOYING = "DEPLOYING",
25
18
  /**
26
- * The wallet has been deployed in the Lightspark infrastructure and is ready
27
- * to be initialized. *
19
+ * The wallet has been deployed in the Lightspark infrastructure and is ready to be initialized.
20
+ * *
28
21
  */
29
22
  DEPLOYED = "DEPLOYED",
30
23
  /** The wallet is currently being initialized. **/
31
24
  INITIALIZING = "INITIALIZING",
32
25
  /** The wallet is available and ready to be used. **/
33
26
  READY = "READY",
34
- /**
35
- * The wallet is temporarily available,
36
- * due to a transient issue or a scheduled maintenance.
37
- * *
38
- */
27
+ /** The wallet is temporarily available, due to a transient issue or a scheduled maintenance. **/
39
28
  UNAVAILABLE = "UNAVAILABLE",
40
29
  /**
41
- * The wallet had an unrecoverable failure.
42
- * This status is not expected to happend and will be investigated by the
43
- * Lightspark team. *
30
+ * The wallet had an unrecoverable failure. This status is not expected to happend and will be
31
+ * investigated by the Lightspark team. *
44
32
  */
45
33
  FAILED = "FAILED",
46
34
  /** The wallet is being terminated. **/
47
35
  TERMINATING = "TERMINATING",
48
36
  /**
49
- * The wallet has been terminated and is not available in the Lightspark
50
- * infrastructure anymore. It is not connected to the Lightning network and
51
- * its funds can only be accessed using the Funds Recovery flow.
52
- * *
37
+ * The wallet has been terminated and is not available in the Lightspark infrastructure anymore.
38
+ * It is not connected to the Lightning network and its funds can only be accessed using the Funds
39
+ * Recovery flow. *
53
40
  */
54
41
  TERMINATED = "TERMINATED",
55
42
  }
@@ -11,15 +11,12 @@ import {
11
11
  interface WalletToPaymentRequestsConnection {
12
12
  /**
13
13
  * The total count of objects in this connection, using the current filters.
14
- * It is different from the number of objects returned in the current page
15
- * (in the `entities` field).
14
+ * It is different from the number of objects returned in the current page (in the `entities`
15
+ * field).
16
16
  **/
17
17
  count: number;
18
18
 
19
- /**
20
- * An object that holds pagination information about the objects in this
21
- * connection. *
22
- */
19
+ /** An object that holds pagination information about the objects in this connection. **/
23
20
  pageInfo: PageInfo;
24
21
 
25
22
  /** The payment requests for the current page of this connection. **/
@@ -8,15 +8,12 @@ import { TransactionFromJson, TransactionToJson } from "./Transaction.js";
8
8
  interface WalletToTransactionsConnection {
9
9
  /**
10
10
  * The total count of objects in this connection, using the current filters.
11
- * It is different from the number of objects returned in the current page
12
- * (in the `entities` field).
11
+ * It is different from the number of objects returned in the current page (in the `entities`
12
+ * field).
13
13
  **/
14
14
  count: number;
15
15
 
16
- /**
17
- * An object that holds pagination information about the objects in this
18
- * connection. *
19
- */
16
+ /** An object that holds pagination information about the objects in this connection. **/
20
17
  pageInfo: PageInfo;
21
18
 
22
19
  /** The transactions for the current page of this connection. **/
@@ -1,14 +1,13 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  /**
4
- * This is an enum of the potential event types that can be associated with
5
- * your Lightspark wallets. *
4
+ * This is an enum of the potential event types that can be associated with your Lightspark
5
+ * wallets. *
6
6
  */
7
7
  export enum WebhookEventType {
8
8
  /**
9
- * This is an enum value that represents values that could be added in the
10
- * future. Clients should support unknown values as more of them could be
11
- * added without notice.
9
+ * This is an enum value that represents values that could be added in the future.
10
+ * Clients should support unknown values as more of them could be added without notice.
12
11
  */
13
12
  FUTURE_VALUE = "FUTURE_VALUE",
14
13