@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
@@ -42,54 +42,48 @@ class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, Entity {
42
42
  /** The Bitcoin Network this node is deployed in. **/
43
43
  public readonly bitcoinNetwork: BitcoinNetwork,
44
44
  /**
45
- * The name of this node in the network.
46
- * It will be the most human-readable option possible,
45
+ * The name of this node in the network. It will be the most human-readable option possible,
47
46
  * depending on the data available for this node.
48
47
  **/
49
48
  public readonly displayName: string,
50
49
  /** The owner of this LightsparkNode. **/
51
50
  public readonly ownerId: string,
52
51
  /**
53
- * The utxos of the channels that are connected to this node.
54
- * This is used in uma flow for pre-screening.
52
+ * The utxos of the channels that are connected to this node. This is used in uma flow for
53
+ * pre-screening.
55
54
  **/
56
55
  public readonly umaPrescreeningUtxos: string[],
57
56
  /** The typename of the object **/
58
57
  public readonly typename: string,
59
58
  /**
60
- * A name that identifies the node.
61
- * It has no importance in terms of operating the node,
62
- * it is just a way to identify and search for commercial services or
63
- * popular nodes. This alias can be changed at any time by the node
64
- * operator.
59
+ * A name that identifies the node. It has no importance in terms of operating the node,
60
+ * it is just a way to identify and search for commercial services or popular nodes.
61
+ * This alias can be changed at any time by the node operator.
65
62
  **/
66
63
  public readonly alias?: string | undefined,
67
64
  /**
68
- * A hexadecimal string that describes a color. For example "#000000" is
69
- * black, "#FFFFFF" is white. It has no importance in terms of operating
70
- * the node,
65
+ * A hexadecimal string that describes a color. For example "#000000" is black, "#FFFFFF" is
66
+ * white. It has no importance in terms of operating the node,
71
67
  * it is just a way to visually differentiate nodes.
72
68
  * That color can be changed at any time by the node operator.
73
69
  **/
74
70
  public readonly color?: string | undefined,
75
71
  /**
76
- * A summary metric used to capture how well positioned a node is to send,
77
- * receive, or route transactions efficiently.
78
- * Maximizing a node's conductivity helps a node’s transactions to be
79
- * capital efficient. The value is an integer ranging between 0 and 10
80
- * (bounds included).
72
+ * A summary metric used to capture how well positioned a node is to send, receive, or route
73
+ * transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
74
+ * capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
81
75
  **/
82
76
  public readonly conductivity?: number | undefined,
83
77
  /**
84
- * The public key of this node. It acts as a unique identifier of this node
85
- * in the Lightning Network. *
78
+ * The public key of this node. It acts as a unique identifier of this node in the Lightning
79
+ * Network. *
86
80
  */
87
81
  public readonly publicKey?: string | undefined,
88
82
  /** The current status of this node. **/
89
83
  public readonly status?: LightsparkNodeStatus | undefined,
90
84
  /**
91
- * The sum of the balance on the Bitcoin Network, channel balances,
92
- * and commit fees on this node.
85
+ * The sum of the balance on the Bitcoin Network, channel balances, and commit fees on this
86
+ * node.
93
87
  *
94
88
  * @deprecated Use `balances` instead.
95
89
  **/
@@ -101,15 +95,13 @@ class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, Entity {
101
95
  **/
102
96
  public readonly totalLocalBalance?: CurrencyAmount | undefined,
103
97
  /**
104
- * The sum of the channel balances (online only) that are available to send
105
- * on this node.
98
+ * The sum of the channel balances (online only) that are available to send on this node.
106
99
  *
107
100
  * @deprecated Use `balances` instead.
108
101
  **/
109
102
  public readonly localBalance?: CurrencyAmount | undefined,
110
103
  /**
111
- * The sum of the channel balances that are available to receive on this
112
- * node.
104
+ * The sum of the channel balances that are available to receive on this node.
113
105
  *
114
106
  * @deprecated Use `balances` instead.
115
107
  **/
@@ -21,9 +21,8 @@ import type NodeToAddressesConnection from "./NodeToAddressesConnection.js";
21
21
  import { SecretFromJson, SecretToJson } from "./Secret.js";
22
22
 
23
23
  /**
24
- * This object is an interface representing a Lightning Node on the Lightning
25
- * Network, and could either be a Lightspark node or a node managed by a third
26
- * party.
24
+ * This object is an interface representing a Lightning Node on the Lightning Network,
25
+ * and could either be a Lightspark node or a node managed by a third party.
27
26
  * *
28
27
  */
29
28
  interface Node {
@@ -43,8 +42,7 @@ interface Node {
43
42
  bitcoinNetwork: BitcoinNetwork;
44
43
 
45
44
  /**
46
- * The name of this node in the network.
47
- * It will be the most human-readable option possible,
45
+ * The name of this node in the network. It will be the most human-readable option possible,
48
46
  * depending on the data available for this node.
49
47
  **/
50
48
  displayName: string;
@@ -53,34 +51,30 @@ interface Node {
53
51
  typename: string;
54
52
 
55
53
  /**
56
- * A name that identifies the node. It has no importance in terms of
57
- * operating the node, it is just a way to identify and search for commercial
58
- * services or popular nodes. This alias can be changed at any time by the
59
- * node operator.
54
+ * A name that identifies the node. It has no importance in terms of operating the node,
55
+ * it is just a way to identify and search for commercial services or popular nodes.
56
+ * This alias can be changed at any time by the node operator.
60
57
  **/
61
58
  alias?: string | undefined;
62
59
 
63
60
  /**
64
- * A hexadecimal string that describes a color. For example "#000000" is
65
- * black, "#FFFFFF" is white. It has no importance in terms of operating the
66
- * node,
61
+ * A hexadecimal string that describes a color. For example "#000000" is black, "#FFFFFF" is
62
+ * white. It has no importance in terms of operating the node,
67
63
  * it is just a way to visually differentiate nodes.
68
64
  * That color can be changed at any time by the node operator.
69
65
  **/
70
66
  color?: string | undefined;
71
67
 
72
68
  /**
73
- * A summary metric used to capture how well positioned a node is to send,
74
- * receive, or route transactions efficiently.
75
- * Maximizing a node's conductivity helps a node’s transactions to be capital
76
- * efficient. The value is an integer ranging between 0 and 10 (bounds
77
- * included).
69
+ * A summary metric used to capture how well positioned a node is to send, receive, or route
70
+ * transactions efficiently. Maximizing a node's conductivity helps a node’s transactions to be
71
+ * capital efficient. The value is an integer ranging between 0 and 10 (bounds included).
78
72
  **/
79
73
  conductivity?: number | undefined;
80
74
 
81
75
  /**
82
- * The public key of this node. It acts as a unique identifier of this node
83
- * in the Lightning Network. *
76
+ * The public key of this node. It acts as a unique identifier of this node in the Lightning
77
+ * Network. *
84
78
  */
85
79
  publicKey?: string | undefined;
86
80
 
@@ -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 types of addresses that a node on the
5
- * Lightning Network can have. *
4
+ * This is an enum of the potential types of addresses that a node on the Lightning Network can
5
+ * have. *
6
6
  */
7
7
  export enum NodeAddressType {
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
 
@@ -4,14 +4,14 @@ import type NodeAddress from "./NodeAddress.js";
4
4
  import { NodeAddressFromJson, NodeAddressToJson } from "./NodeAddress.js";
5
5
 
6
6
  /**
7
- * A connection between a node and the addresses it has announced for itself on
8
- * Lightning Network. *
7
+ * A connection between a node and the addresses it has announced for itself on Lightning Network.
8
+ * *
9
9
  */
10
10
  interface NodeToAddressesConnection {
11
11
  /**
12
12
  * The total count of objects in this connection, using the current filters.
13
- * It is different from the number of objects returned in the current page
14
- * (in the `entities` field).
13
+ * It is different from the number of objects returned in the current page (in the `entities`
14
+ * field).
15
15
  **/
16
16
  count: number;
17
17
 
@@ -13,10 +13,9 @@ import TransactionStatus from "./TransactionStatus.js";
13
13
  import type Withdrawal from "./Withdrawal.js";
14
14
 
15
15
  /**
16
- * This object represents an L1 transaction that occurred on the Bitcoin
17
- * Network. You can retrieve this object to receive information about a
18
- * specific on-chain transaction made on the Lightning Network associated with
19
- * your Lightspark Node.
16
+ * This object represents an L1 transaction that occurred on the Bitcoin Network.
17
+ * You can retrieve this object to receive information about a specific on-chain transaction made
18
+ * on the Lightning Network associated with your Lightspark Node.
20
19
  * *
21
20
  */
22
21
  interface OnChainTransaction {
@@ -39,8 +38,8 @@ interface OnChainTransaction {
39
38
  amount: CurrencyAmount;
40
39
 
41
40
  /**
42
- * The height of the block that included this transaction.
43
- * This will be zero for unconfirmed transactions.
41
+ * The height of the block that included this transaction. This will be zero for unconfirmed
42
+ * transactions.
44
43
  **/
45
44
  blockHeight: number;
46
45
 
@@ -53,28 +52,22 @@ interface OnChainTransaction {
53
52
  /** The date and time when this transaction was completed or failed. **/
54
53
  resolvedAt?: string | undefined;
55
54
 
56
- /**
57
- * The hash of this transaction, so it can be uniquely identified on the
58
- * Lightning Network. *
59
- */
55
+ /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
60
56
  transactionHash?: string | undefined;
61
57
 
62
58
  /**
63
- * The fees that were paid by the wallet sending the transaction to commit it
64
- * to the Bitcoin blockchain.
59
+ * The fees that were paid by the wallet sending the transaction to commit it to the Bitcoin
60
+ * blockchain.
65
61
  **/
66
62
  fees?: CurrencyAmount | undefined;
67
63
 
68
64
  /**
69
- * The hash of the block that included this transaction.
70
- * This will be null for unconfirmed transactions.
65
+ * The hash of the block that included this transaction. This will be null for unconfirmed
66
+ * transactions.
71
67
  **/
72
68
  blockHash?: string | undefined;
73
69
 
74
- /**
75
- * The number of blockchain confirmations for this transaction in real time.
76
- * *
77
- */
70
+ /** The number of blockchain confirmations for this transaction in real time. **/
78
71
  numConfirmations?: number | undefined;
79
72
  }
80
73
 
@@ -29,9 +29,9 @@ import type Transaction from "./Transaction.js";
29
29
  import TransactionStatus from "./TransactionStatus.js";
30
30
 
31
31
  /**
32
- * This object represents a Lightning Network payment sent from a Lightspark
33
- * Node. You can retrieve this object to receive payment related information
34
- * about any payment sent from your Lightspark Node on the Lightning Network.
32
+ * This object represents a Lightning Network payment sent from a Lightspark Node.
33
+ * You can retrieve this object to receive payment related information about any payment sent from
34
+ * your Lightspark Node on the Lightning Network.
35
35
  * *
36
36
  */
37
37
  class OutgoingPayment implements LightningTransaction, Transaction, Entity {
@@ -55,31 +55,19 @@ class OutgoingPayment implements LightningTransaction, Transaction, Entity {
55
55
  public readonly typename: string,
56
56
  /** The date and time when this transaction was completed or failed. **/
57
57
  public readonly resolvedAt?: string | undefined,
58
- /**
59
- * The hash of this transaction, so it can be uniquely identified on the
60
- * Lightning Network. *
61
- */
58
+ /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
62
59
  public readonly transactionHash?: string | undefined,
63
60
  /** If known, the final recipient node this payment was sent to. **/
64
61
  public readonly destinationId?: string | undefined,
65
62
  /** The fees paid by the sender node to send the payment. **/
66
63
  public readonly fees?: CurrencyAmount | undefined,
67
- /**
68
- * The data of the payment request that was paid by this transaction, if
69
- * known. *
70
- */
64
+ /** The data of the payment request that was paid by this transaction, if known. **/
71
65
  public readonly paymentRequestData?: PaymentRequestData | undefined,
72
66
  /** If applicable, the reason why the payment failed. **/
73
67
  public readonly failureReason?: PaymentFailureReason | undefined,
74
- /**
75
- * If applicable, user-facing error message describing why the payment
76
- * failed. *
77
- */
68
+ /** If applicable, user-facing error message describing why the payment failed. **/
78
69
  public readonly failureMessage?: RichText | undefined,
79
- /**
80
- * The post transaction data which can be used in KYT payment registration.
81
- * *
82
- */
70
+ /** The post transaction data which can be used in KYT payment registration. **/
83
71
  public readonly umaPostTransactionData?: PostTransactionData[] | undefined,
84
72
  /** The preimage of the payment. **/
85
73
  public readonly paymentPreimage?: string | undefined,
@@ -20,10 +20,9 @@ import type OutgoingPaymentAttemptToHopsConnection from "./OutgoingPaymentAttemp
20
20
  import { OutgoingPaymentAttemptToHopsConnectionFromJson } from "./OutgoingPaymentAttemptToHopsConnection.js";
21
21
 
22
22
  /**
23
- * This object represents an attempted Lightning Network payment sent from a
24
- * Lightspark Node. You can retrieve this object to receive payment related
25
- * information about any payment attempt sent from your Lightspark Node on the
26
- * Lightning Network,
23
+ * This object represents an attempted Lightning Network payment sent from a Lightspark Node.
24
+ * You can retrieve this object to receive payment related information about any payment attempt
25
+ * sent from your Lightspark Node on the Lightning Network,
27
26
  * including any potential reasons the payment may have failed.
28
27
  * *
29
28
  */
@@ -46,14 +45,11 @@ class OutgoingPaymentAttempt implements Entity {
46
45
  public readonly outgoingPaymentId: string,
47
46
  /** The typename of the object **/
48
47
  public readonly typename: string,
49
- /**
50
- * If the payment attempt failed, then this contains the Bolt #4 failure
51
- * code. *
52
- */
48
+ /** If the payment attempt failed, then this contains the Bolt #4 failure code. **/
53
49
  public readonly failureCode?: HtlcAttemptFailureCode | undefined,
54
50
  /**
55
- * If the payment attempt failed, then this contains the index of the hop
56
- * at which the problem occurred.
51
+ * If the payment attempt failed, then this contains the index of the hop at which the problem
52
+ * occurred.
57
53
  **/
58
54
  public readonly failureSourceIndex?: number | undefined,
59
55
  /** The time the outgoing payment attempt failed or succeeded. **/
@@ -61,21 +57,17 @@ class OutgoingPaymentAttempt implements Entity {
61
57
  /**
62
58
  * The total amount of funds required to complete a payment over this route.
63
59
  * This value includes the cumulative fees for each hop. As a result,
64
- * the attempt extended to the first-hop in the route will need to have at
65
- * least this much value, otherwise the route will fail at an intermediate
66
- * node due to an insufficient amount.
60
+ * the attempt extended to the first-hop in the route will need to have at least this much
61
+ * value, otherwise the route will fail at an intermediate node due to an insufficient amount.
67
62
  **/
68
63
  public readonly amount?: CurrencyAmount | undefined,
69
64
  /**
70
65
  * The sum of the fees paid at each hop within the route of this attempt.
71
- * In the case of a one-hop payment,
72
- * this value will be zero as we don't need to pay a fee to ourselves.
66
+ * In the case of a one-hop payment, this value will be zero as we don't need to pay a fee to
67
+ * ourselves.
73
68
  **/
74
69
  public readonly fees?: CurrencyAmount | undefined,
75
- /**
76
- * The channel snapshot at the time the outgoing payment attempt was made.
77
- * *
78
- */
70
+ /** The channel snapshot at the time the outgoing payment attempt was made. **/
79
71
  public readonly channelSnapshot?: ChannelSnapshot | undefined,
80
72
  ) {
81
73
  autoBind(this);
@@ -1,14 +1,10 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
- /**
4
- * This is an enum of all potential statuses of a payment attempt made from a
5
- * Lightspark Node. *
6
- */
3
+ /** This is an enum of all potential statuses of a payment attempt made from a Lightspark Node. **/
7
4
  export enum OutgoingPaymentAttemptStatus {
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
 
@@ -6,22 +6,18 @@ import type PageInfo from "./PageInfo.js";
6
6
  import { PageInfoFromJson, PageInfoToJson } from "./PageInfo.js";
7
7
 
8
8
  /**
9
- * The connection from an outgoing payment attempt to the list of sequential
10
- * hops that define the path from sender node to recipient node.
11
- * *
9
+ * The connection from an outgoing payment attempt to the list of sequential hops that define the
10
+ * path from sender node to recipient node. *
12
11
  */
13
12
  interface OutgoingPaymentAttemptToHopsConnection {
14
13
  /**
15
14
  * The total count of objects in this connection, using the current filters.
16
- * It is different from the number of objects returned in the current page
17
- * (in the `entities` field).
15
+ * It is different from the number of objects returned in the current page (in the `entities`
16
+ * field).
18
17
  **/
19
18
  count: number;
20
19
 
21
- /**
22
- * An object that holds pagination information about the objects in this
23
- * connection. *
24
- */
20
+ /** An object that holds pagination information about the objects in this connection. **/
25
21
  pageInfo: PageInfo;
26
22
 
27
23
  /** The hops for the current page of this connection. **/
@@ -9,15 +9,12 @@ import { PageInfoFromJson, PageInfoToJson } from "./PageInfo.js";
9
9
  interface OutgoingPaymentToAttemptsConnection {
10
10
  /**
11
11
  * The total count of objects in this connection, using the current filters.
12
- * It is different from the number of objects returned in the current page
13
- * (in the `entities` field).
12
+ * It is different from the number of objects returned in the current page (in the `entities`
13
+ * field).
14
14
  **/
15
15
  count: number;
16
16
 
17
- /**
18
- * An object that holds pagination information about the objects in this
19
- * connection. *
20
- */
17
+ /** An object that holds pagination information about the objects in this connection. **/
21
18
  pageInfo: PageInfo;
22
19
 
23
20
  /** The attempts for the current page of this connection. **/
@@ -1,9 +1,8 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  /**
4
- * This is an object representing information about a page returned by the
5
- * Lightspark API. For more information,
6
- * please see the “Pagination” section of our API docs for more information
4
+ * This is an object representing information about a page returned by the Lightspark API.
5
+ * For more information, please see the “Pagination” section of our API docs for more information
7
6
  * about its usage. *
8
7
  */
9
8
  interface PageInfo {
@@ -11,14 +11,14 @@ interface PayInvoiceInput {
11
11
  timeoutSecs: number;
12
12
 
13
13
  /**
14
- * The maximum amount of fees that you want to pay for this payment to be
15
- * sent, expressed in msats. *
14
+ * The maximum amount of fees that you want to pay for this payment to be sent, expressed in
15
+ * msats. *
16
16
  */
17
17
  maximumFeesMsats: number;
18
18
 
19
19
  /**
20
- * The amount you will pay for this invoice, expressed in msats.
21
- * It should ONLY be set when the invoice amount is zero.
20
+ * The amount you will pay for this invoice, expressed in msats. It should ONLY be set when the
21
+ * invoice amount is zero.
22
22
  **/
23
23
  amountMsats?: number | undefined;
24
24
  }
@@ -3,9 +3,8 @@
3
3
  /** This is an enum indicating the direction of the payment. **/
4
4
  export enum PaymentDirection {
5
5
  /**
6
- * This is an enum value that represents values that could be added in the
7
- * future. Clients should support unknown values as more of them could be
8
- * 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.
9
8
  */
10
9
  FUTURE_VALUE = "FUTURE_VALUE",
11
10
 
@@ -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 reasons why an OutgoingPayment sent from a
5
- * Lightspark Node may have failed. *
4
+ * This is an enum of the potential reasons why an OutgoingPayment sent from a Lightspark Node may
5
+ * have failed. *
6
6
  */
7
7
  export enum PaymentFailureReason {
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
 
@@ -11,10 +11,9 @@ import type PaymentRequestData from "./PaymentRequestData.js";
11
11
  import PaymentRequestStatus from "./PaymentRequestStatus.js";
12
12
 
13
13
  /**
14
- * This object contains information related to a payment request generated or
15
- * received by a LightsparkNode. You can retrieve this object to receive
16
- * payment information about a specific invoice.
17
- * *
14
+ * This object contains information related to a payment request generated or received by a
15
+ * LightsparkNode. You can retrieve this object to receive payment information about a specific
16
+ * invoice. *
18
17
  */
19
18
  interface PaymentRequest {
20
19
  /**
@@ -10,9 +10,9 @@ import type InvoiceData from "./InvoiceData.js";
10
10
  import { NodeFromJson, NodeToJson } from "./Node.js";
11
11
 
12
12
  /**
13
- * This object is an interface of a payment request on the Lightning Network
14
- * (i.e., a Lightning Invoice). It contains data related to parsing the payment
15
- * details of a Lightning Invoice. *
13
+ * This object is an interface of a payment request on the Lightning Network (i.e., a Lightning
14
+ * Invoice). It contains data related to parsing the payment details of a Lightning Invoice.
15
+ * *
16
16
  */
17
17
  interface PaymentRequestData {
18
18
  encodedPaymentRequest: string;
@@ -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 states that a payment request on the
5
- * Lightning Network can take. *
4
+ * This is an enum of the potential states that a payment request on the Lightning Network can
5
+ * take. *
6
6
  */
7
7
  export enum PaymentRequestStatus {
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
 
@@ -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 permissions that a Lightspark user can have
5
- * in regards to account management. *
4
+ * This is an enum of the potential permissions that a Lightspark user can have in regards to
5
+ * account management. *
6
6
  */
7
7
  export enum Permission {
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
 
@@ -6,14 +6,11 @@ import {
6
6
  CurrencyAmountToJson,
7
7
  } from "./CurrencyAmount.js";
8
8
 
9
- /**
10
- * This object represents post-transaction data that could be used to register
11
- * payment for KYT. *
12
- */
9
+ /** This object represents post-transaction data that could be used to register payment for KYT. **/
13
10
  interface PostTransactionData {
14
11
  /**
15
- * The utxo of the channel over which the payment went through in the format
16
- * of <transaction_hash>:<output_index>.
12
+ * The utxo of the channel over which the payment went through in the format of
13
+ * <transaction_hash>:<output_index>.
17
14
  **/
18
15
  utxo: string;
19
16