@lightsparkdev/lightspark-sdk 1.5.13 → 1.6.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{chunk-FGFVWCTL.js → chunk-UHTZSOPX.js} +272 -144
  3. package/dist/{index-2b493387.d.ts → index-145ff316.d.ts} +232 -87
  4. package/dist/index.cjs +351 -142
  5. package/dist/index.d.cts +2 -2
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +85 -3
  8. package/dist/objects/index.cjs +262 -133
  9. package/dist/objects/index.d.cts +1 -1
  10. package/dist/objects/index.d.ts +1 -1
  11. package/dist/objects/index.js +3 -1
  12. package/package.json +2 -2
  13. package/src/client.ts +62 -0
  14. package/src/graphql/InvoiceForPaymentHash.ts +17 -0
  15. package/src/graphql/OutgoingPaymentsForPaymentHash.ts +21 -0
  16. package/src/objects/Account.ts +14 -2
  17. package/src/objects/ChannelClosingTransaction.ts +1 -4
  18. package/src/objects/ChannelOpeningTransaction.ts +1 -4
  19. package/src/objects/Connection.ts +116 -0
  20. package/src/objects/Deposit.ts +1 -4
  21. package/src/objects/Entity.ts +10 -0
  22. package/src/objects/FailHtlcsInput.ts +27 -0
  23. package/src/objects/FailHtlcsOutput.ts +26 -0
  24. package/src/objects/InvoiceForPaymentHashInput.ts +23 -0
  25. package/src/objects/InvoiceForPaymentHashOutput.ts +30 -0
  26. package/src/objects/LightningTransaction.ts +3 -0
  27. package/src/objects/LightsparkNode.ts +3 -1
  28. package/src/objects/LightsparkNodeWithOSK.ts +8 -4
  29. package/src/objects/LightsparkNodeWithRemoteSigning.ts +8 -4
  30. package/src/objects/OnChainFeeTarget.ts +19 -0
  31. package/src/objects/OnChainTransaction.ts +1 -4
  32. package/src/objects/OutgoingPayment.ts +5 -0
  33. package/src/objects/OutgoingPaymentForIdempotencyKeyInput.ts +24 -0
  34. package/src/objects/OutgoingPaymentForIdempotencyKeyOutput.ts +33 -0
  35. package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +1 -0
  36. package/src/objects/OutgoingPaymentsForPaymentHashQueryInput.ts +34 -0
  37. package/src/objects/OutgoingPaymentsForPaymentHashQueryOutput.ts +37 -0
  38. package/src/objects/PayInvoiceInput.ts +8 -0
  39. package/src/objects/PayUmaInvoiceInput.ts +4 -0
  40. package/src/objects/PaymentFailureReason.ts +2 -0
  41. package/src/objects/RemoteSigningSubEventType.ts +2 -0
  42. package/src/objects/RequestWithdrawalInput.ts +29 -0
  43. package/src/objects/SendPaymentInput.ts +8 -0
  44. package/src/objects/Transaction.ts +3 -0
  45. package/src/objects/TransactionStatus.ts +1 -1
  46. package/src/objects/Wallet.ts +10 -0
  47. package/src/objects/Withdrawal.ts +1 -4
  48. package/src/objects/WithdrawalRequest.ts +107 -11
  49. package/src/objects/WithdrawalRequestStatus.ts +2 -0
  50. package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +15 -10
  51. package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +15 -10
  52. package/src/objects/WithdrawalRequestToWithdrawalsConnection.ts +47 -0
  53. package/src/objects/index.ts +10 -0
  54. package/src/webhooks.ts +3 -0
@@ -736,7 +736,7 @@ interface LightsparkNode {
736
736
  /** The balances that describe the funds in this node. **/
737
737
  balances?: Balances | undefined;
738
738
  getAddresses(client: LightsparkClient, first?: number | undefined, types?: NodeAddressType[] | undefined): Promise<NodeToAddressesConnection>;
739
- getChannels(client: LightsparkClient, first?: number | undefined, statuses?: ChannelStatus[] | undefined, after?: string | undefined): Promise<LightsparkNodeToChannelsConnection>;
739
+ getChannels(client: LightsparkClient, first?: number | undefined, after?: string | undefined, beforeDate?: string | undefined, afterDate?: string | undefined, statuses?: ChannelStatus[] | undefined): Promise<LightsparkNodeToChannelsConnection>;
740
740
  getDailyLiquidityForecasts(client: LightsparkClient, fromDate: string, toDate: string, direction: LightningPaymentDirection): Promise<LightsparkNodeToDailyLiquidityForecastsConnection>;
741
741
  }
742
742
  declare const getLightsparkNodeQuery: (id: string) => Query<LightsparkNode>;
@@ -829,7 +829,7 @@ declare enum TransactionStatus {
829
829
  * Clients should support unknown values as more of them could be added without notice.
830
830
  */
831
831
  FUTURE_VALUE = "FUTURE_VALUE",
832
- /** Transaction succeeded.. **/
832
+ /** Transaction succeeded. **/
833
833
  SUCCESS = "SUCCESS",
834
834
  /** Transaction failed. **/
835
835
  FAILED = "FAILED",
@@ -1003,6 +1003,7 @@ declare enum WithdrawalRequestStatus {
1003
1003
  * Clients should support unknown values as more of them could be added without notice.
1004
1004
  */
1005
1005
  FUTURE_VALUE = "FUTURE_VALUE",
1006
+ CREATING = "CREATING",
1006
1007
  CREATED = "CREATED",
1007
1008
  FAILED = "FAILED",
1008
1009
  IN_PROGRESS = "IN_PROGRESS",
@@ -1041,10 +1042,7 @@ interface ChannelClosingTransaction {
1041
1042
  resolvedAt?: string | undefined;
1042
1043
  /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
1043
1044
  transactionHash?: string | undefined;
1044
- /**
1045
- * The fees that were paid by the wallet sending the transaction to commit it to the Bitcoin
1046
- * blockchain.
1047
- **/
1045
+ /** The fees that were paid by the node for this transaction. **/
1048
1046
  fees?: CurrencyAmount | undefined;
1049
1047
  /**
1050
1048
  * The hash of the block that included this transaction. This will be null for unconfirmed
@@ -1059,15 +1057,17 @@ interface ChannelClosingTransaction {
1059
1057
  declare const getChannelClosingTransactionQuery: (id: string) => Query<ChannelClosingTransaction>;
1060
1058
 
1061
1059
  interface WithdrawalRequestToChannelClosingTransactionsConnection {
1062
- /** An object that holds pagination information about the objects in this connection. **/
1063
- pageInfo: PageInfo;
1064
1060
  /**
1065
1061
  * The total count of objects in this connection, using the current filters. It is different
1066
1062
  * from the number of objects returned in the current page (in the `entities` field).
1067
1063
  **/
1068
1064
  count: number;
1065
+ /** An object that holds pagination information about the objects in this connection. **/
1066
+ pageInfo: PageInfo;
1069
1067
  /** The channel closing transactions for the current page of this connection. **/
1070
1068
  entities: ChannelClosingTransaction[];
1069
+ /** The typename of the object **/
1070
+ typename: string;
1071
1071
  }
1072
1072
 
1073
1073
  /**
@@ -1101,10 +1101,7 @@ interface ChannelOpeningTransaction {
1101
1101
  resolvedAt?: string | undefined;
1102
1102
  /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
1103
1103
  transactionHash?: string | undefined;
1104
- /**
1105
- * The fees that were paid by the wallet sending the transaction to commit it to the Bitcoin
1106
- * blockchain.
1107
- **/
1104
+ /** The fees that were paid by the node for this transaction. **/
1108
1105
  fees?: CurrencyAmount | undefined;
1109
1106
  /**
1110
1107
  * The hash of the block that included this transaction. This will be null for unconfirmed
@@ -1119,15 +1116,73 @@ interface ChannelOpeningTransaction {
1119
1116
  declare const getChannelOpeningTransactionQuery: (id: string) => Query<ChannelOpeningTransaction>;
1120
1117
 
1121
1118
  interface WithdrawalRequestToChannelOpeningTransactionsConnection {
1122
- /** An object that holds pagination information about the objects in this connection. **/
1123
- pageInfo: PageInfo;
1124
1119
  /**
1125
1120
  * The total count of objects in this connection, using the current filters. It is different
1126
1121
  * from the number of objects returned in the current page (in the `entities` field).
1127
1122
  **/
1128
1123
  count: number;
1124
+ /** An object that holds pagination information about the objects in this connection. **/
1125
+ pageInfo: PageInfo;
1129
1126
  /** The channel opening transactions for the current page of this connection. **/
1130
1127
  entities: ChannelOpeningTransaction[];
1128
+ /** The typename of the object **/
1129
+ typename: string;
1130
+ }
1131
+
1132
+ /**
1133
+ * This object represents an L1 withdrawal from your Lightspark Node to any Bitcoin wallet. You can
1134
+ * retrieve this object to receive detailed information about any L1 withdrawal associated with
1135
+ * your Lightspark Node or account. *
1136
+ */
1137
+ interface Withdrawal {
1138
+ /**
1139
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an
1140
+ * opaque string.
1141
+ **/
1142
+ id: string;
1143
+ /** The date and time when this transaction was initiated. **/
1144
+ createdAt: string;
1145
+ /** The date and time when the entity was last updated. **/
1146
+ updatedAt: string;
1147
+ /** The current status of this transaction. **/
1148
+ status: TransactionStatus;
1149
+ /** The amount of money involved in this transaction. **/
1150
+ amount: CurrencyAmount;
1151
+ /**
1152
+ * The height of the block that included this transaction. This will be zero for unconfirmed
1153
+ * transactions.
1154
+ **/
1155
+ blockHeight: number;
1156
+ /** The Bitcoin blockchain addresses this transaction was sent to. **/
1157
+ destinationAddresses: string[];
1158
+ /** The Lightspark node this withdrawal originated from. **/
1159
+ originId: string;
1160
+ /** The typename of the object **/
1161
+ typename: string;
1162
+ /** The date and time when this transaction was completed or failed. **/
1163
+ resolvedAt?: string | undefined;
1164
+ /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
1165
+ transactionHash?: string | undefined;
1166
+ /** The fees that were paid by the node for this transaction. **/
1167
+ fees?: CurrencyAmount | undefined;
1168
+ /**
1169
+ * The hash of the block that included this transaction. This will be null for unconfirmed
1170
+ * transactions.
1171
+ **/
1172
+ blockHash?: string | undefined;
1173
+ /** The number of blockchain confirmations for this transaction in real time. **/
1174
+ numConfirmations?: number | undefined;
1175
+ }
1176
+ declare const getWithdrawalQuery: (id: string) => Query<Withdrawal>;
1177
+
1178
+ interface WithdrawalRequestToWithdrawalsConnection {
1179
+ /**
1180
+ * The total count of objects in this connection, using the current filters. It is different
1181
+ * from the number of objects returned in the current page (in the `entities` field).
1182
+ **/
1183
+ count: number;
1184
+ /** The withdrawals for the current page of this connection. **/
1185
+ entities: Withdrawal[];
1131
1186
  }
1132
1187
 
1133
1188
  /**
@@ -1158,7 +1213,11 @@ declare class WithdrawalRequest implements Entity {
1158
1213
  readonly amount: CurrencyAmount;
1159
1214
  /** The bitcoin address where the funds should be sent. **/
1160
1215
  readonly bitcoinAddress: string;
1161
- /** The strategy that should be used to withdraw the funds from the account. **/
1216
+ /**
1217
+ * The strategy that should be used to withdraw the funds from the account.
1218
+ *
1219
+ * @deprecated It is always withdrawing from channels now.
1220
+ **/
1162
1221
  readonly withdrawalMode: WithdrawalMode;
1163
1222
  /** The current status of this withdrawal request. **/
1164
1223
  readonly status: WithdrawalRequestStatus;
@@ -1169,12 +1228,26 @@ declare class WithdrawalRequest implements Entity {
1169
1228
  * amount for the withdrawal.
1170
1229
  **/
1171
1230
  readonly estimatedAmount?: CurrencyAmount | undefined;
1172
- /** The actual amount that is withdrawn. It will be set once the request is completed. **/
1231
+ /**
1232
+ * The actual amount that is withdrawn to the bitcoin address. It will be set once the request
1233
+ * is completed.
1234
+ **/
1173
1235
  readonly amountWithdrawn?: CurrencyAmount | undefined;
1236
+ /**
1237
+ * The total fees the node paid for the withdrawal. It will be set once the request is
1238
+ * completed. *
1239
+ */
1240
+ readonly totalFees?: CurrencyAmount | undefined;
1174
1241
  /** The time at which this request was completed. **/
1175
1242
  readonly completedAt?: string | undefined;
1176
- /** The withdrawal transaction that has been generated by this request. **/
1243
+ /**
1244
+ * The withdrawal transaction that has been generated by this request.
1245
+ *
1246
+ * @deprecated Use `withdrawals` instead.
1247
+ **/
1177
1248
  readonly withdrawalId?: string | undefined;
1249
+ /** The idempotency key of the withdrawal request. **/
1250
+ readonly idempotencyKey?: string | undefined;
1178
1251
  constructor(
1179
1252
  /**
1180
1253
  * The unique identifier of this entity across all Lightspark systems. Should be treated as an
@@ -1198,7 +1271,11 @@ declare class WithdrawalRequest implements Entity {
1198
1271
  amount: CurrencyAmount,
1199
1272
  /** The bitcoin address where the funds should be sent. **/
1200
1273
  bitcoinAddress: string,
1201
- /** The strategy that should be used to withdraw the funds from the account. **/
1274
+ /**
1275
+ * The strategy that should be used to withdraw the funds from the account.
1276
+ *
1277
+ * @deprecated It is always withdrawing from channels now.
1278
+ **/
1202
1279
  withdrawalMode: WithdrawalMode,
1203
1280
  /** The current status of this withdrawal request. **/
1204
1281
  status: WithdrawalRequestStatus,
@@ -1209,14 +1286,29 @@ declare class WithdrawalRequest implements Entity {
1209
1286
  * amount for the withdrawal.
1210
1287
  **/
1211
1288
  estimatedAmount?: CurrencyAmount | undefined,
1212
- /** The actual amount that is withdrawn. It will be set once the request is completed. **/
1289
+ /**
1290
+ * The actual amount that is withdrawn to the bitcoin address. It will be set once the request
1291
+ * is completed.
1292
+ **/
1213
1293
  amountWithdrawn?: CurrencyAmount | undefined,
1294
+ /**
1295
+ * The total fees the node paid for the withdrawal. It will be set once the request is
1296
+ * completed. *
1297
+ */
1298
+ totalFees?: CurrencyAmount | undefined,
1214
1299
  /** The time at which this request was completed. **/
1215
1300
  completedAt?: string | undefined,
1216
- /** The withdrawal transaction that has been generated by this request. **/
1217
- withdrawalId?: string | undefined);
1218
- getChannelClosingTransactions(client: LightsparkClient, first?: number | undefined): Promise<WithdrawalRequestToChannelClosingTransactionsConnection>;
1219
- getChannelOpeningTransactions(client: LightsparkClient, first?: number | undefined): Promise<WithdrawalRequestToChannelOpeningTransactionsConnection>;
1301
+ /**
1302
+ * The withdrawal transaction that has been generated by this request.
1303
+ *
1304
+ * @deprecated Use `withdrawals` instead.
1305
+ **/
1306
+ withdrawalId?: string | undefined,
1307
+ /** The idempotency key of the withdrawal request. **/
1308
+ idempotencyKey?: string | undefined);
1309
+ getChannelClosingTransactions(client: LightsparkClient, first?: number | undefined, after?: string | undefined): Promise<WithdrawalRequestToChannelClosingTransactionsConnection>;
1310
+ getChannelOpeningTransactions(client: LightsparkClient, first?: number | undefined, after?: string | undefined): Promise<WithdrawalRequestToChannelOpeningTransactionsConnection>;
1311
+ getWithdrawals(client: LightsparkClient, first?: number | undefined): Promise<WithdrawalRequestToWithdrawalsConnection>;
1220
1312
  static getWithdrawalRequestQuery(id: string): Query<WithdrawalRequest>;
1221
1313
  toJson(): {
1222
1314
  __typename: string;
@@ -1227,6 +1319,7 @@ declare class WithdrawalRequest implements Entity {
1227
1319
  withdrawal_request_amount: any;
1228
1320
  withdrawal_request_estimated_amount: any;
1229
1321
  withdrawal_request_amount_withdrawn: any;
1322
+ withdrawal_request_total_fees: any;
1230
1323
  withdrawal_request_bitcoin_address: string;
1231
1324
  withdrawal_request_withdrawal_mode: WithdrawalMode;
1232
1325
  withdrawal_request_status: WithdrawalRequestStatus;
@@ -1234,6 +1327,7 @@ declare class WithdrawalRequest implements Entity {
1234
1327
  withdrawal_request_withdrawal: {
1235
1328
  id: string | undefined;
1236
1329
  };
1330
+ withdrawal_request_idempotency_key: string | undefined;
1237
1331
  };
1238
1332
  }
1239
1333
 
@@ -1374,7 +1468,8 @@ declare enum PaymentFailureReason {
1374
1468
  SELF_PAYMENT = "SELF_PAYMENT",
1375
1469
  INVOICE_EXPIRED = "INVOICE_EXPIRED",
1376
1470
  INVOICE_CANCELLED = "INVOICE_CANCELLED",
1377
- RISK_SCREENING_FAILED = "RISK_SCREENING_FAILED"
1471
+ RISK_SCREENING_FAILED = "RISK_SCREENING_FAILED",
1472
+ INSUFFICIENT_BALANCE_ON_SINGLE_PATH_INVOICE = "INSUFFICIENT_BALANCE_ON_SINGLE_PATH_INVOICE"
1378
1473
  }
1379
1474
 
1380
1475
  /**
@@ -1440,7 +1535,7 @@ declare class Account implements LightsparkNodeOwner, Entity {
1440
1535
  getChannels(client: LightsparkClient, bitcoinNetwork: BitcoinNetwork, lightningNodeId?: string | undefined, afterDate?: string | undefined, beforeDate?: string | undefined, first?: number | undefined, after?: string | undefined): Promise<AccountToChannelsConnection>;
1441
1536
  getTransactions(client: LightsparkClient, first?: number | undefined, after?: string | undefined, types?: TransactionType[] | undefined, afterDate?: string | undefined, beforeDate?: string | undefined, bitcoinNetwork?: BitcoinNetwork | undefined, lightningNodeId?: string | undefined, statuses?: TransactionStatus[] | undefined, excludeFailures?: TransactionFailures | undefined): Promise<AccountToTransactionsConnection>;
1442
1537
  getPaymentRequests(client: LightsparkClient, first?: number | undefined, after?: string | undefined, afterDate?: string | undefined, beforeDate?: string | undefined, bitcoinNetwork?: BitcoinNetwork | undefined, lightningNodeId?: string | undefined): Promise<AccountToPaymentRequestsConnection>;
1443
- getWithdrawalRequests(client: LightsparkClient, first?: number | undefined, after?: string | undefined, bitcoinNetworks?: BitcoinNetwork[] | undefined, statuses?: WithdrawalRequestStatus[] | undefined, nodeIds?: string[] | undefined, afterDate?: string | undefined, beforeDate?: string | undefined): Promise<AccountToWithdrawalRequestsConnection>;
1538
+ getWithdrawalRequests(client: LightsparkClient, first?: number | undefined, after?: string | undefined, bitcoinNetworks?: BitcoinNetwork[] | undefined, statuses?: WithdrawalRequestStatus[] | undefined, nodeIds?: string[] | undefined, idempotencyKeys?: string[] | undefined, afterDate?: string | undefined, beforeDate?: string | undefined): Promise<AccountToWithdrawalRequestsConnection>;
1444
1539
  getWallets(client: LightsparkClient, first?: number | undefined, after?: string | undefined, thirdPartyIds?: string[] | undefined): Promise<AccountToWalletsConnection>;
1445
1540
  static getAccountQuery(): Query<Account>;
1446
1541
  toJson(): {
@@ -2068,6 +2163,8 @@ declare class OutgoingPayment implements LightningTransaction, Transaction, Enti
2068
2163
  readonly umaPostTransactionData?: PostTransactionData[] | undefined;
2069
2164
  /** The preimage of the payment. **/
2070
2165
  readonly paymentPreimage?: string | undefined;
2166
+ /** The idempotency key of the payment. **/
2167
+ readonly idempotencyKey?: string | undefined;
2071
2168
  constructor(
2072
2169
  /**
2073
2170
  * The unique identifier of this entity across all Lightspark systems. Should be treated as an
@@ -2110,7 +2207,9 @@ declare class OutgoingPayment implements LightningTransaction, Transaction, Enti
2110
2207
  /** The post transaction data which can be used in KYT payment registration. **/
2111
2208
  umaPostTransactionData?: PostTransactionData[] | undefined,
2112
2209
  /** The preimage of the payment. **/
2113
- paymentPreimage?: string | undefined);
2210
+ paymentPreimage?: string | undefined,
2211
+ /** The idempotency key of the payment. **/
2212
+ idempotencyKey?: string | undefined);
2114
2213
  getAttempts(client: LightsparkClient, first?: number | undefined, after?: string | undefined): Promise<OutgoingPaymentToAttemptsConnection>;
2115
2214
  static getOutgoingPaymentQuery(id: string): Query<OutgoingPayment>;
2116
2215
  toJson(): {
@@ -2136,6 +2235,7 @@ declare class OutgoingPayment implements LightningTransaction, Transaction, Enti
2136
2235
  outgoing_payment_uma_post_transaction_data: any[] | undefined;
2137
2236
  outgoing_payment_payment_preimage: string | undefined;
2138
2237
  outgoing_payment_is_internal_payment: boolean;
2238
+ outgoing_payment_idempotency_key: string | undefined;
2139
2239
  };
2140
2240
  }
2141
2241
 
@@ -3229,6 +3329,20 @@ declare class LightsparkClient {
3229
3329
  * @returns The invitation with the given code, or null if no invitation exists with that code.
3230
3330
  */
3231
3331
  fetchUmaInvitation(invitationCode: string): Promise<UmaInvitation | null>;
3332
+ /**
3333
+ * Fetches a created invoice by its payment hash.
3334
+ *
3335
+ * @param paymentHash
3336
+ * @returns The invoice if there is one corresponding to the payment hash, or null if no invoice exists with that payment hash.
3337
+ */
3338
+ invoiceForPaymentHash(paymentHash: string): Promise<Invoice | null>;
3339
+ /**
3340
+ * Fetches outgoing payments for a given payment hash if there are any.
3341
+ *
3342
+ * @param paymentHash
3343
+ * @param statuses Filter to only include payments with the given statuses. If not provided, all statuses are included.
3344
+ */
3345
+ outgoingPaymentsForPaymentHash(paymentHash: string, statuses?: TransactionStatus[] | undefined): Promise<OutgoingPayment[]>;
3232
3346
  private hashPhoneNumber;
3233
3347
  /**
3234
3348
  * Executes a raw `Query` against the Lightspark API.
@@ -3575,10 +3689,7 @@ interface Deposit {
3575
3689
  resolvedAt?: string | undefined;
3576
3690
  /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
3577
3691
  transactionHash?: string | undefined;
3578
- /**
3579
- * The fees that were paid by the wallet sending the transaction to commit it to the Bitcoin
3580
- * blockchain.
3581
- **/
3692
+ /** The fees that were paid by the node for this transaction. **/
3582
3693
  fees?: CurrencyAmount | undefined;
3583
3694
  /**
3584
3695
  * The hash of the block that included this transaction. This will be null for unconfirmed
@@ -3590,6 +3701,20 @@ interface Deposit {
3590
3701
  }
3591
3702
  declare const getDepositQuery: (id: string) => Query<Deposit>;
3592
3703
 
3704
+ interface FailHtlcsInput {
3705
+ /** The id of invoice which the pending HTLCs that need to be failed are paying for. **/
3706
+ invoiceId: string;
3707
+ /**
3708
+ * Whether the invoice needs to be canceled after failing the htlcs. If yes, the invoice cannot
3709
+ * be paid anymore.
3710
+ **/
3711
+ cancelInvoice: boolean;
3712
+ }
3713
+
3714
+ interface FailHtlcsOutput {
3715
+ invoiceId: string;
3716
+ }
3717
+
3593
3718
  interface FundNodeInput {
3594
3719
  nodeId: string;
3595
3720
  amountSats?: number | undefined;
@@ -3721,6 +3846,15 @@ interface IncomingPaymentsForInvoiceQueryOutput {
3721
3846
  payments: IncomingPayment[];
3722
3847
  }
3723
3848
 
3849
+ interface InvoiceForPaymentHashInput {
3850
+ /** The 32-byte hash of the payment preimage for which to fetch an invoice. **/
3851
+ paymentHash: string;
3852
+ }
3853
+
3854
+ interface InvoiceForPaymentHashOutput {
3855
+ invoiceId?: string | undefined;
3856
+ }
3857
+
3724
3858
  interface LightningFeeEstimateForInvoiceInput {
3725
3859
  /** The node from where you want to send the payment. **/
3726
3860
  nodeId: string;
@@ -3932,7 +4066,7 @@ declare class LightsparkNodeWithOSK implements LightsparkNode, Node, Entity {
3932
4066
  */
3933
4067
  encryptedSigningPrivateKey?: Secret | undefined);
3934
4068
  getAddresses(client: LightsparkClient, first?: number | undefined, types?: NodeAddressType[] | undefined): Promise<NodeToAddressesConnection>;
3935
- getChannels(client: LightsparkClient, first?: number | undefined, statuses?: ChannelStatus[] | undefined, after?: string | undefined): Promise<LightsparkNodeToChannelsConnection>;
4069
+ getChannels(client: LightsparkClient, first?: number | undefined, after?: string | undefined, beforeDate?: string | undefined, afterDate?: string | undefined, statuses?: ChannelStatus[] | undefined): Promise<LightsparkNodeToChannelsConnection>;
3936
4070
  getDailyLiquidityForecasts(client: LightsparkClient, fromDate: string, toDate: string, direction: LightningPaymentDirection): Promise<LightsparkNodeToDailyLiquidityForecastsConnection>;
3937
4071
  static getLightsparkNodeWithOSKQuery(id: string): Query<LightsparkNodeWithOSK>;
3938
4072
  toJson(): {
@@ -4131,7 +4265,7 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
4131
4265
  /** The balances that describe the funds in this node. **/
4132
4266
  balances?: Balances | undefined);
4133
4267
  getAddresses(client: LightsparkClient, first?: number | undefined, types?: NodeAddressType[] | undefined): Promise<NodeToAddressesConnection>;
4134
- getChannels(client: LightsparkClient, first?: number | undefined, statuses?: ChannelStatus[] | undefined, after?: string | undefined): Promise<LightsparkNodeToChannelsConnection>;
4268
+ getChannels(client: LightsparkClient, first?: number | undefined, after?: string | undefined, beforeDate?: string | undefined, afterDate?: string | undefined, statuses?: ChannelStatus[] | undefined): Promise<LightsparkNodeToChannelsConnection>;
4135
4269
  getDailyLiquidityForecasts(client: LightsparkClient, fromDate: string, toDate: string, direction: LightningPaymentDirection): Promise<LightsparkNodeToDailyLiquidityForecastsConnection>;
4136
4270
  static getLightsparkNodeWithRemoteSigningQuery(id: string): Query<LightsparkNodeWithRemoteSigning>;
4137
4271
  toJson(): {
@@ -4159,6 +4293,22 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
4159
4293
  };
4160
4294
  }
4161
4295
 
4296
+ declare enum OnChainFeeTarget {
4297
+ /**
4298
+ * This is an enum value that represents values that could be added in the future.
4299
+ * Clients should support unknown values as more of them could be added without notice.
4300
+ */
4301
+ FUTURE_VALUE = "FUTURE_VALUE",
4302
+ /** Transaction expected to be confirmed within 2 blocks. **/
4303
+ HIGH = "HIGH",
4304
+ /** Transaction expected to be confirmed within 6 blocks. **/
4305
+ MEDIUM = "MEDIUM",
4306
+ /** Transaction expected to be confirmed within 18 blocks. **/
4307
+ LOW = "LOW",
4308
+ /** Transaction expected to be confirmed within 50 blocks. **/
4309
+ BACKGROUND = "BACKGROUND"
4310
+ }
4311
+
4162
4312
  /**
4163
4313
  * This object represents an L1 transaction that occurred on the Bitcoin Network. You can retrieve
4164
4314
  * this object to receive information about a specific on-chain transaction made on the Lightning
@@ -4191,10 +4341,7 @@ interface OnChainTransaction {
4191
4341
  resolvedAt?: string | undefined;
4192
4342
  /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
4193
4343
  transactionHash?: string | undefined;
4194
- /**
4195
- * The fees that were paid by the wallet sending the transaction to commit it to the Bitcoin
4196
- * blockchain.
4197
- **/
4344
+ /** The fees that were paid by the node for this transaction. **/
4198
4345
  fees?: CurrencyAmount | undefined;
4199
4346
  /**
4200
4347
  * The hash of the block that included this transaction. This will be null for unconfirmed
@@ -4206,6 +4353,14 @@ interface OnChainTransaction {
4206
4353
  }
4207
4354
  declare const getOnChainTransactionQuery: (id: string) => Query<OnChainTransaction>;
4208
4355
 
4356
+ interface OutgoingPaymentForIdempotencyKeyInput {
4357
+ idempotencyKey: string;
4358
+ }
4359
+
4360
+ interface OutgoingPaymentForIdempotencyKeyOutput {
4361
+ paymentId?: string | undefined;
4362
+ }
4363
+
4209
4364
  interface OutgoingPaymentsForInvoiceQueryInput {
4210
4365
  /** The encoded invoice that the outgoing payments paid to. **/
4211
4366
  encodedInvoice: string;
@@ -4217,6 +4372,17 @@ interface OutgoingPaymentsForInvoiceQueryOutput {
4217
4372
  payments: OutgoingPayment[];
4218
4373
  }
4219
4374
 
4375
+ interface OutgoingPaymentsForPaymentHashQueryInput {
4376
+ /** The 32-byte hash of the payment preimage for which to fetch payments **/
4377
+ paymentHash: string;
4378
+ /** An optional filter to only query outgoing payments of given statuses. **/
4379
+ statuses?: TransactionStatus[] | undefined;
4380
+ }
4381
+
4382
+ interface OutgoingPaymentsForPaymentHashQueryOutput {
4383
+ payments: OutgoingPayment[];
4384
+ }
4385
+
4220
4386
  interface PayInvoiceInput {
4221
4387
  /** The node from where you want to send the payment. **/
4222
4388
  nodeId: string;
@@ -4234,6 +4400,11 @@ interface PayInvoiceInput {
4234
4400
  * invoice amount is zero.
4235
4401
  **/
4236
4402
  amountMsats?: number | undefined;
4403
+ /**
4404
+ * The idempotency key of the request. The same result will be returned for the same
4405
+ * idempotency key. *
4406
+ */
4407
+ idempotencyKey?: string | undefined;
4237
4408
  }
4238
4409
 
4239
4410
  interface PayInvoiceOutput {
@@ -4247,6 +4418,7 @@ interface PayUmaInvoiceInput {
4247
4418
  timeoutSecs: number;
4248
4419
  maximumFeesMsats: number;
4249
4420
  amountMsats?: number | undefined;
4421
+ idempotencyKey?: string | undefined;
4250
4422
  }
4251
4423
 
4252
4424
  interface RegisterPaymentInput {
@@ -4314,7 +4486,8 @@ declare enum RemoteSigningSubEventType {
4314
4486
  DERIVE_KEY_AND_SIGN = "DERIVE_KEY_AND_SIGN",
4315
4487
  RELEASE_PAYMENT_PREIMAGE = "RELEASE_PAYMENT_PREIMAGE",
4316
4488
  REQUEST_INVOICE_PAYMENT_HASH = "REQUEST_INVOICE_PAYMENT_HASH",
4317
- REVEAL_COUNTERPARTY_PER_COMMITMENT_SECRET = "REVEAL_COUNTERPARTY_PER_COMMITMENT_SECRET"
4489
+ REVEAL_COUNTERPARTY_PER_COMMITMENT_SECRET = "REVEAL_COUNTERPARTY_PER_COMMITMENT_SECRET",
4490
+ VLS_MESSAGE = "VLS_MESSAGE"
4318
4491
  }
4319
4492
 
4320
4493
  interface RequestWithdrawalInput {
@@ -4329,6 +4502,22 @@ interface RequestWithdrawalInput {
4329
4502
  amountSats: number;
4330
4503
  /** The strategy that should be used to withdraw the funds from this node. **/
4331
4504
  withdrawalMode: WithdrawalMode;
4505
+ /**
4506
+ * The idempotency key of the request. The same result will be returned for the same
4507
+ * idempotency key. *
4508
+ */
4509
+ idempotencyKey?: string | undefined;
4510
+ /**
4511
+ * The target of the fee that should be used when crafting the L1 transaction. You should only
4512
+ * set `fee_target` or `sats_per_vbyte`. If neither of them is set, default value of MEDIUM
4513
+ * will be used as `fee_target`.
4514
+ **/
4515
+ feeTarget?: OnChainFeeTarget | undefined;
4516
+ /**
4517
+ * A manual fee rate set in sat/vbyte that should be used when crafting the L1 transaction. You
4518
+ * should only set `fee_target` or `sats_per_vbyte`
4519
+ **/
4520
+ satsPerVbyte?: number | undefined;
4332
4521
  }
4333
4522
 
4334
4523
  interface RequestWithdrawalOutput {
@@ -4420,6 +4609,11 @@ interface SendPaymentInput {
4420
4609
  * msats. *
4421
4610
  */
4422
4611
  maximumFeesMsats: number;
4612
+ /**
4613
+ * The idempotency key of the request. The same result will be returned for the same
4614
+ * idempotency key. *
4615
+ */
4616
+ idempotencyKey?: string | undefined;
4423
4617
  }
4424
4618
 
4425
4619
  interface SendPaymentOutput {
@@ -4527,55 +4721,6 @@ declare enum WebhookEventType {
4527
4721
  HIGH_BALANCE = "HIGH_BALANCE"
4528
4722
  }
4529
4723
 
4530
- /**
4531
- * This object represents an L1 withdrawal from your Lightspark Node to any Bitcoin wallet. You can
4532
- * retrieve this object to receive detailed information about any L1 withdrawal associated with
4533
- * your Lightspark Node or account. *
4534
- */
4535
- interface Withdrawal {
4536
- /**
4537
- * The unique identifier of this entity across all Lightspark systems. Should be treated as an
4538
- * opaque string.
4539
- **/
4540
- id: string;
4541
- /** The date and time when this transaction was initiated. **/
4542
- createdAt: string;
4543
- /** The date and time when the entity was last updated. **/
4544
- updatedAt: string;
4545
- /** The current status of this transaction. **/
4546
- status: TransactionStatus;
4547
- /** The amount of money involved in this transaction. **/
4548
- amount: CurrencyAmount;
4549
- /**
4550
- * The height of the block that included this transaction. This will be zero for unconfirmed
4551
- * transactions.
4552
- **/
4553
- blockHeight: number;
4554
- /** The Bitcoin blockchain addresses this transaction was sent to. **/
4555
- destinationAddresses: string[];
4556
- /** The Lightspark node this withdrawal originated from. **/
4557
- originId: string;
4558
- /** The typename of the object **/
4559
- typename: string;
4560
- /** The date and time when this transaction was completed or failed. **/
4561
- resolvedAt?: string | undefined;
4562
- /** The hash of this transaction, so it can be uniquely identified on the Lightning Network. **/
4563
- transactionHash?: string | undefined;
4564
- /**
4565
- * The fees that were paid by the wallet sending the transaction to commit it to the Bitcoin
4566
- * blockchain.
4567
- **/
4568
- fees?: CurrencyAmount | undefined;
4569
- /**
4570
- * The hash of the block that included this transaction. This will be null for unconfirmed
4571
- * transactions.
4572
- **/
4573
- blockHash?: string | undefined;
4574
- /** The number of blockchain confirmations for this transaction in real time. **/
4575
- numConfirmations?: number | undefined;
4576
- }
4577
- declare const getWithdrawalQuery: (id: string) => Query<Withdrawal>;
4578
-
4579
4724
  interface WithdrawalFeeEstimateInput {
4580
4725
  /** The node from which you'd like to make the withdrawal. **/
4581
4726
  nodeId: string;
@@ -4593,4 +4738,4 @@ interface WithdrawalFeeEstimateOutput {
4593
4738
  feeEstimate: CurrencyAmount;
4594
4739
  }
4595
4740
 
4596
- export { DeclineToSignMessagesInput as $, Account as A, Balances as B, CancelInvoiceInput as C, ClaimUmaInvitationWithIncentivesOutput as D, ComplianceProvider as E, Connection as F, CreateApiTokenInput as G, CreateApiTokenOutput as H, CreateInvitationWithIncentivesInput as I, CreateInvitationWithIncentivesOutput as J, CreateInvoiceInput as K, LightsparkClient as L, CreateInvoiceOutput as M, CreateLnurlInvoiceInput as N, CreateNodeWalletAddressInput as O, CreateNodeWalletAddressOutput as P, CreateTestModeInvoiceInput as Q, CreateTestModeInvoiceOutput as R, CreateTestModePaymentInput as S, CreateTestModePaymentoutput as T, CreateUmaInvitationInput as U, CreateUmaInvitationOutput as V, WebhookEventType as W, CreateUmaInvoiceInput as X, CurrencyAmount as Y, CurrencyUnit as Z, DailyLiquidityForecast as _, AccountToApiTokensConnection as a, PaymentRequest as a$, DeclineToSignMessagesOutput as a0, DeleteApiTokenInput as a1, DeleteApiTokenOutput as a2, Deposit as a3, getDepositQuery as a4, Entity as a5, FeeEstimate as a6, FundNodeInput as a7, FundNodeOutput as a8, GraphNode as a9, getLightsparkNodeOwnerQuery as aA, LightsparkNodeStatus as aB, LightsparkNodeToChannelsConnection as aC, LightsparkNodeToDailyLiquidityForecastsConnection as aD, LightsparkNodeWithOSK as aE, LightsparkNodeWithRemoteSigning as aF, MultiSigAddressValidationParameters as aG, Node as aH, getNodeQuery as aI, NodeAddress as aJ, NodeAddressType as aK, NodeToAddressesConnection as aL, OnChainTransaction as aM, getOnChainTransactionQuery as aN, OutgoingPayment as aO, OutgoingPaymentAttempt as aP, OutgoingPaymentAttemptStatus as aQ, OutgoingPaymentAttemptToHopsConnection as aR, OutgoingPaymentToAttemptsConnection as aS, OutgoingPaymentsForInvoiceQueryInput as aT, OutgoingPaymentsForInvoiceQueryOutput as aU, PageInfo as aV, PayInvoiceInput as aW, PayInvoiceOutput as aX, PayUmaInvoiceInput as aY, PaymentDirection as aZ, PaymentFailureReason as a_, Hop as aa, getHopQuery as ab, HtlcAttemptFailureCode as ac, IdAndSignature as ad, IncentivesIneligibilityReason as ae, IncentivesStatus as af, IncomingPayment as ag, IncomingPaymentAttempt as ah, getIncomingPaymentAttemptQuery as ai, IncomingPaymentAttemptStatus as aj, IncomingPaymentToAttemptsConnection as ak, IncomingPaymentsForInvoiceQueryInput as al, IncomingPaymentsForInvoiceQueryOutput as am, Invoice as an, getInvoiceQuery as ao, InvoiceData as ap, InvoiceType as aq, LightningFeeEstimateForInvoiceInput as ar, LightningFeeEstimateForNodeInput as as, LightningFeeEstimateOutput as at, LightningPaymentDirection as au, LightningTransaction as av, getLightningTransactionQuery as aw, LightsparkNode as ax, getLightsparkNodeQuery as ay, LightsparkNodeOwner as az, AccountToChannelsConnection as b, getPaymentRequestQuery as b0, PaymentRequestData as b1, PaymentRequestStatus as b2, Permission as b3, PostTransactionData as b4, RegionCode as b5, RegisterPaymentInput as b6, RegisterPaymentOutput as b7, ReleaseChannelPerCommitmentSecretInput as b8, ReleaseChannelPerCommitmentSecretOutput as b9, SingleNodeDashboard as bA, Transaction as bB, getTransactionQuery as bC, TransactionFailures as bD, TransactionStatus as bE, TransactionType as bF, TransactionUpdate as bG, UmaInvitation as bH, getUmaInvitationQuery as bI, UpdateChannelPerCommitmentPointInput as bJ, UpdateChannelPerCommitmentPointOutput as bK, UpdateNodeSharedSecretInput as bL, UpdateNodeSharedSecretOutput as bM, Wallet as bN, WalletStatus as bO, WalletToPaymentRequestsConnection as bP, WalletToTransactionsConnection as bQ, WalletToWithdrawalRequestsConnection as bR, Withdrawal as bS, getWithdrawalQuery as bT, WithdrawalFeeEstimateInput as bU, WithdrawalFeeEstimateOutput as bV, WithdrawalMode as bW, WithdrawalRequest as bX, WithdrawalRequestStatus as bY, WithdrawalRequestToChannelClosingTransactionsConnection as bZ, WithdrawalRequestToChannelOpeningTransactionsConnection as b_, ReleasePaymentPreimageInput as ba, ReleasePaymentPreimageOutput as bb, RemoteSigningSubEventType as bc, RequestWithdrawalInput as bd, RequestWithdrawalOutput as be, RichText as bf, RiskRating as bg, RoutingTransaction as bh, getRoutingTransactionQuery as bi, RoutingTransactionFailureReason as bj, ScreenNodeInput as bk, ScreenNodeOutput as bl, Secret as bm, SendPaymentInput as bn, SendPaymentOutput as bo, SetInvoicePaymentHashInput as bp, SetInvoicePaymentHashOutput as bq, SignInvoiceInput as br, SignInvoiceOutput as bs, SignMessagesInput as bt, SignMessagesOutput as bu, Signable as bv, getSignableQuery as bw, SignablePayload as bx, getSignablePayloadQuery as by, SignablePayloadStatus as bz, AccountToNodesConnection as c, AccountToPaymentRequestsConnection as d, AccountToTransactionsConnection as e, AccountToWalletsConnection as f, AccountToWithdrawalRequestsConnection as g, ApiToken as h, getApiTokenQuery as i, AuditLogActor as j, getAuditLogActorQuery as k, BlockchainBalance as l, CancelInvoiceOutput as m, Channel as n, ChannelClosingTransaction as o, getChannelClosingTransactionQuery as p, ChannelFees as q, ChannelOpeningTransaction as r, getChannelOpeningTransactionQuery as s, ChannelSnapshot as t, getChannelSnapshotQuery as u, ChannelStatus as v, ChannelToTransactionsConnection as w, ClaimUmaInvitationInput as x, ClaimUmaInvitationOutput as y, ClaimUmaInvitationWithIncentivesInput as z };
4741
+ export { DeclineToSignMessagesInput as $, Account as A, Balances as B, CancelInvoiceInput as C, ClaimUmaInvitationWithIncentivesOutput as D, ComplianceProvider as E, Connection as F, CreateApiTokenInput as G, CreateApiTokenOutput as H, CreateInvitationWithIncentivesInput as I, CreateInvitationWithIncentivesOutput as J, CreateInvoiceInput as K, LightsparkClient as L, CreateInvoiceOutput as M, CreateLnurlInvoiceInput as N, CreateNodeWalletAddressInput as O, CreateNodeWalletAddressOutput as P, CreateTestModeInvoiceInput as Q, CreateTestModeInvoiceOutput as R, CreateTestModePaymentInput as S, CreateTestModePaymentoutput as T, CreateUmaInvitationInput as U, CreateUmaInvitationOutput as V, WebhookEventType as W, CreateUmaInvoiceInput as X, CurrencyAmount as Y, CurrencyUnit as Z, DailyLiquidityForecast as _, AccountToApiTokensConnection as a, OutgoingPaymentsForInvoiceQueryOutput as a$, DeclineToSignMessagesOutput as a0, DeleteApiTokenInput as a1, DeleteApiTokenOutput as a2, Deposit as a3, getDepositQuery as a4, Entity as a5, FailHtlcsInput as a6, FailHtlcsOutput as a7, FeeEstimate as a8, FundNodeInput as a9, getLightningTransactionQuery as aA, LightsparkNode as aB, getLightsparkNodeQuery as aC, LightsparkNodeOwner as aD, getLightsparkNodeOwnerQuery as aE, LightsparkNodeStatus as aF, LightsparkNodeToChannelsConnection as aG, LightsparkNodeToDailyLiquidityForecastsConnection as aH, LightsparkNodeWithOSK as aI, LightsparkNodeWithRemoteSigning as aJ, MultiSigAddressValidationParameters as aK, Node as aL, getNodeQuery as aM, NodeAddress as aN, NodeAddressType as aO, NodeToAddressesConnection as aP, OnChainFeeTarget as aQ, OnChainTransaction as aR, getOnChainTransactionQuery as aS, OutgoingPayment as aT, OutgoingPaymentAttempt as aU, OutgoingPaymentAttemptStatus as aV, OutgoingPaymentAttemptToHopsConnection as aW, OutgoingPaymentForIdempotencyKeyInput as aX, OutgoingPaymentForIdempotencyKeyOutput as aY, OutgoingPaymentToAttemptsConnection as aZ, OutgoingPaymentsForInvoiceQueryInput as a_, FundNodeOutput as aa, GraphNode as ab, Hop as ac, getHopQuery as ad, HtlcAttemptFailureCode as ae, IdAndSignature as af, IncentivesIneligibilityReason as ag, IncentivesStatus as ah, IncomingPayment as ai, IncomingPaymentAttempt as aj, getIncomingPaymentAttemptQuery as ak, IncomingPaymentAttemptStatus as al, IncomingPaymentToAttemptsConnection as am, IncomingPaymentsForInvoiceQueryInput as an, IncomingPaymentsForInvoiceQueryOutput as ao, Invoice as ap, getInvoiceQuery as aq, InvoiceData as ar, InvoiceForPaymentHashInput as as, InvoiceForPaymentHashOutput as at, InvoiceType as au, LightningFeeEstimateForInvoiceInput as av, LightningFeeEstimateForNodeInput as aw, LightningFeeEstimateOutput as ax, LightningPaymentDirection as ay, LightningTransaction as az, AccountToChannelsConnection as b, Withdrawal as b$, OutgoingPaymentsForPaymentHashQueryInput as b0, OutgoingPaymentsForPaymentHashQueryOutput as b1, PageInfo as b2, PayInvoiceInput as b3, PayInvoiceOutput as b4, PayUmaInvoiceInput as b5, PaymentDirection as b6, PaymentFailureReason as b7, PaymentRequest as b8, getPaymentRequestQuery as b9, SignInvoiceInput as bA, SignInvoiceOutput as bB, SignMessagesInput as bC, SignMessagesOutput as bD, Signable as bE, getSignableQuery as bF, SignablePayload as bG, getSignablePayloadQuery as bH, SignablePayloadStatus as bI, SingleNodeDashboard as bJ, Transaction as bK, getTransactionQuery as bL, TransactionFailures as bM, TransactionStatus as bN, TransactionType as bO, TransactionUpdate as bP, UmaInvitation as bQ, getUmaInvitationQuery as bR, UpdateChannelPerCommitmentPointInput as bS, UpdateChannelPerCommitmentPointOutput as bT, UpdateNodeSharedSecretInput as bU, UpdateNodeSharedSecretOutput as bV, Wallet as bW, WalletStatus as bX, WalletToPaymentRequestsConnection as bY, WalletToTransactionsConnection as bZ, WalletToWithdrawalRequestsConnection as b_, PaymentRequestData as ba, PaymentRequestStatus as bb, Permission as bc, PostTransactionData as bd, RegionCode as be, RegisterPaymentInput as bf, RegisterPaymentOutput as bg, ReleaseChannelPerCommitmentSecretInput as bh, ReleaseChannelPerCommitmentSecretOutput as bi, ReleasePaymentPreimageInput as bj, ReleasePaymentPreimageOutput as bk, RemoteSigningSubEventType as bl, RequestWithdrawalInput as bm, RequestWithdrawalOutput as bn, RichText as bo, RiskRating as bp, RoutingTransaction as bq, getRoutingTransactionQuery as br, RoutingTransactionFailureReason as bs, ScreenNodeInput as bt, ScreenNodeOutput as bu, Secret as bv, SendPaymentInput as bw, SendPaymentOutput as bx, SetInvoicePaymentHashInput as by, SetInvoicePaymentHashOutput as bz, AccountToNodesConnection as c, getWithdrawalQuery as c0, WithdrawalFeeEstimateInput as c1, WithdrawalFeeEstimateOutput as c2, WithdrawalMode as c3, WithdrawalRequest as c4, WithdrawalRequestStatus as c5, WithdrawalRequestToChannelClosingTransactionsConnection as c6, WithdrawalRequestToChannelOpeningTransactionsConnection as c7, WithdrawalRequestToWithdrawalsConnection as c8, AccountToPaymentRequestsConnection as d, AccountToTransactionsConnection as e, AccountToWalletsConnection as f, AccountToWithdrawalRequestsConnection as g, ApiToken as h, getApiTokenQuery as i, AuditLogActor as j, getAuditLogActorQuery as k, BlockchainBalance as l, CancelInvoiceOutput as m, Channel as n, ChannelClosingTransaction as o, getChannelClosingTransactionQuery as p, ChannelFees as q, ChannelOpeningTransaction as r, getChannelOpeningTransactionQuery as s, ChannelSnapshot as t, getChannelSnapshotQuery as u, ChannelStatus as v, ChannelToTransactionsConnection as w, ClaimUmaInvitationInput as x, ClaimUmaInvitationOutput as y, ClaimUmaInvitationWithIncentivesInput as z };