@@ -255,7 +255,10 @@ export interface SendCustomMessageRequest {
255
255
data : Uint8Array | string ;
256
256
}
257
257
258
- export interface SendCustomMessageResponse { }
258
+ export interface SendCustomMessageResponse {
259
+ /** The status of the send operation. */
260
+ status : string ;
261
+ }
259
262
260
263
export interface Utxo {
261
264
/** The type of address */
@@ -335,11 +338,31 @@ export interface GetTransactionsRequest {
335
338
endHeight : number ;
336
339
/** An optional filter to only include transactions relevant to an account. */
337
340
account : string ;
341
+ /**
342
+ * The index of a transaction that will be used in a query to determine which
343
+ * transaction should be returned in the response.
344
+ */
345
+ indexOffset : number ;
346
+ /**
347
+ * The maximal number of transactions returned in the response to this query.
348
+ * This value should be set to 0 to return all transactions.
349
+ */
350
+ maxTransactions : number ;
338
351
}
339
352
340
353
export interface TransactionDetails {
341
354
/** The list of transactions relevant to the wallet. */
342
355
transactions : Transaction [ ] ;
356
+ /**
357
+ * The index of the last item in the set of returned transactions. This can be
358
+ * used to seek further, pagination style.
359
+ */
360
+ lastIndex : string ;
361
+ /**
362
+ * The index of the last item in the set of returned transactions. This can be
363
+ * used to seek backwards, pagination style.
364
+ */
365
+ firstIndex : string ;
343
366
}
344
367
345
368
export interface FeeLimit {
@@ -843,14 +866,20 @@ export interface ConnectPeerRequest {
843
866
timeout : string ;
844
867
}
845
868
846
- export interface ConnectPeerResponse { }
869
+ export interface ConnectPeerResponse {
870
+ /** The status of the connect operation. */
871
+ status : string ;
872
+ }
847
873
848
874
export interface DisconnectPeerRequest {
849
875
/** The pubkey of the node to disconnect from */
850
876
pubKey : string ;
851
877
}
852
878
853
- export interface DisconnectPeerResponse { }
879
+ export interface DisconnectPeerResponse {
880
+ /** The status of the disconnect operation. */
881
+ status : string ;
882
+ }
854
883
855
884
export interface HTLC {
856
885
incoming : boolean ;
@@ -871,6 +900,12 @@ export interface HTLC {
871
900
forwardingChannel : string ;
872
901
/** Index identifying the htlc on the forwarding channel. */
873
902
forwardingHtlcIndex : string ;
903
+ /**
904
+ * Whether the HTLC is locked in. An HTLC is considered locked in when the
905
+ * remote party has sent us the `revoke_and_ack` to irrevocably commit this
906
+ * HTLC.
907
+ */
908
+ lockedIn : boolean ;
874
909
}
875
910
876
911
export interface ChannelConstraints {
@@ -1125,6 +1160,11 @@ export interface ChannelCloseSummary {
1125
1160
aliasScids : string [ ] ;
1126
1161
/** The confirmed SCID for a zero-conf channel. */
1127
1162
zeroConfConfirmedScid : string ;
1163
+ /**
1164
+ * The TLV encoded custom channel data records for this output, which might
1165
+ * be set for custom channels.
1166
+ */
1167
+ customChannelData : Uint8Array | string ;
1128
1168
}
1129
1169
1130
1170
export enum ChannelCloseSummary_ClosureType {
@@ -1295,8 +1335,8 @@ export interface GetInfoResponse {
1295
1335
/** Whether we consider ourselves synced with the public channel graph. */
1296
1336
syncedToGraph : boolean ;
1297
1337
/**
1298
- * Whether the current node is connected to testnet. This field is
1299
- * deprecated and the network field should be used instead
1338
+ * Whether the current node is connected to testnet or testnet4 . This field is
1339
+ * deprecated and the network field should be used instead.
1300
1340
*
1301
1341
* @deprecated
1302
1342
*/
@@ -1449,9 +1489,13 @@ export interface CloseChannelRequest {
1449
1489
*/
1450
1490
maxFeePerVbyte : string ;
1451
1491
/**
1452
- * If true, then the rpc call will not block while it awaits a closing txid.
1453
- * Consequently this RPC call will not return a closing txid if this value
1454
- * is set.
1492
+ * If true, then the rpc call will not block while it awaits a closing txid
1493
+ * to be broadcasted to the mempool. To obtain the closing tx one has to
1494
+ * listen to the stream for the particular updates. Moreover if a coop close
1495
+ * is specified and this flag is set to true the coop closing flow will be
1496
+ * initiated even if HTLCs are active on the channel. The channel will wait
1497
+ * until all HTLCs are resolved and then start the coop closing process. The
1498
+ * channel will be disabled in the meantime and will disallow any new HTLCs.
1455
1499
*/
1456
1500
noWait : boolean ;
1457
1501
}
@@ -1465,9 +1509,18 @@ export interface CloseStatusUpdate {
1465
1509
export interface PendingUpdate {
1466
1510
txid : Uint8Array | string ;
1467
1511
outputIndex : number ;
1512
+ feePerVbyte : string ;
1513
+ localCloseTx : boolean ;
1468
1514
}
1469
1515
1470
- export interface InstantUpdate { }
1516
+ export interface InstantUpdate {
1517
+ /**
1518
+ * The number of pending HTLCs that are currently active on the channel.
1519
+ * These HTLCs need to be resolved before the channel can be closed
1520
+ * cooperatively.
1521
+ */
1522
+ numPendingHtlcs : number ;
1523
+ }
1471
1524
1472
1525
export interface ReadyForPsbtFunding {
1473
1526
/**
@@ -2753,7 +2806,10 @@ export interface NetworkInfo {
2753
2806
2754
2807
export interface StopRequest { }
2755
2808
2756
- export interface StopResponse { }
2809
+ export interface StopResponse {
2810
+ /** The status of the stop operation. */
2811
+ status : string ;
2812
+ }
2757
2813
2758
2814
export interface GraphTopologySubscription { }
2759
2815
@@ -3476,9 +3532,15 @@ export interface DeleteAllPaymentsRequest {
3476
3532
allPayments : boolean ;
3477
3533
}
3478
3534
3479
- export interface DeletePaymentResponse { }
3535
+ export interface DeletePaymentResponse {
3536
+ /** The status of the delete operation. */
3537
+ status : string ;
3538
+ }
3480
3539
3481
- export interface DeleteAllPaymentsResponse { }
3540
+ export interface DeleteAllPaymentsResponse {
3541
+ /** The status of the delete operation. */
3542
+ status : string ;
3543
+ }
3482
3544
3483
3545
export interface AbandonChannelRequest {
3484
3546
channelPoint : ChannelPoint | undefined ;
@@ -3491,7 +3553,10 @@ export interface AbandonChannelRequest {
3491
3553
iKnowWhatIAmDoing : boolean ;
3492
3554
}
3493
3555
3494
- export interface AbandonChannelResponse { }
3556
+ export interface AbandonChannelResponse {
3557
+ /** The status of the abandon operation. */
3558
+ status : string ;
3559
+ }
3495
3560
3496
3561
export interface DebugLevelRequest {
3497
3562
show : boolean ;
@@ -3632,6 +3697,16 @@ export interface PolicyUpdateRequest {
3632
3697
* retained [EXPERIMENTAL].
3633
3698
*/
3634
3699
inboundFee : InboundFee | undefined ;
3700
+ /**
3701
+ * Under unknown circumstances a channel can exist with a missing edge in
3702
+ * the graph database. This can cause an 'edge not found' error when calling
3703
+ * `getchaninfo` and/or cause the default channel policy to be used during
3704
+ * forwards. Setting this flag will recreate the edge if not found, allowing
3705
+ * updating this channel policy and fixing the missing edge problem for this
3706
+ * channel permanently. For fields not set in this command, the default
3707
+ * policy will be created.
3708
+ */
3709
+ createMissingEdge : boolean ;
3635
3710
}
3636
3711
3637
3712
export interface FailedUpdate {
@@ -3798,11 +3873,16 @@ export interface RestoreChanBackupRequest {
3798
3873
multiChanBackup : Uint8Array | string | undefined ;
3799
3874
}
3800
3875
3801
- export interface RestoreBackupResponse { }
3876
+ export interface RestoreBackupResponse {
3877
+ /** The number of channels successfully restored. */
3878
+ numRestored : number ;
3879
+ }
3802
3880
3803
3881
export interface ChannelBackupSubscription { }
3804
3882
3805
- export interface VerifyChanBackupResponse { }
3883
+ export interface VerifyChanBackupResponse {
3884
+ chanPoints : string [ ] ;
3885
+ }
3806
3886
3807
3887
export interface MacaroonPermission {
3808
3888
/** The entity a permission grants access to. */
@@ -4078,6 +4158,24 @@ export interface RPCMiddlewareRequest {
4078
4158
* intercept message.
4079
4159
*/
4080
4160
msgId : string ;
4161
+ /**
4162
+ * The metadata pairs that were sent along with the original gRPC request via
4163
+ * the golang context.Context using explicit [gRPC
4164
+ * metadata](https://grpc.io/docs/guides/metadata/). Context values are not
4165
+ * propagated via gRPC and so we send any pairs along explicitly here so that
4166
+ * the interceptor can access them.
4167
+ */
4168
+ metadataPairs : { [ key : string ] : MetadataValues } ;
4169
+ }
4170
+
4171
+ export interface RPCMiddlewareRequest_MetadataPairsEntry {
4172
+ key : string ;
4173
+ value : MetadataValues | undefined ;
4174
+ }
4175
+
4176
+ export interface MetadataValues {
4177
+ /** The set of metadata values that correspond to the metadata key. */
4178
+ values : string [ ] ;
4081
4179
}
4082
4180
4083
4181
export interface StreamAuth {
@@ -4501,10 +4599,12 @@ export interface Lightning {
4501
4599
onError ?: ( err : Error ) => void
4502
4600
) : void ;
4503
4601
/**
4504
- * SendPaymentSync is the synchronous non-streaming version of SendPayment.
4505
- * This RPC is intended to be consumed by clients of the REST proxy.
4506
- * Additionally, this RPC expects the destination's public key and the payment
4507
- * hash (if any) to be encoded as hex strings.
4602
+ * Deprecated, use routerrpc.SendPaymentV2. SendPaymentSync is the synchronous
4603
+ * non-streaming version of SendPayment. This RPC is intended to be consumed by
4604
+ * clients of the REST proxy. Additionally, this RPC expects the destination's
4605
+ * public key and the payment hash (if any) to be encoded as hex strings.
4606
+ *
4607
+ * @deprecated
4508
4608
*/
4509
4609
sendPaymentSync ( request ?: DeepPartial < SendRequest > ) : Promise < SendResponse > ;
4510
4610
/**
@@ -4523,8 +4623,11 @@ export interface Lightning {
4523
4623
onError ?: ( err : Error ) => void
4524
4624
) : void ;
4525
4625
/**
4526
- * SendToRouteSync is a synchronous version of SendToRoute. It Will block
4527
- * until the payment either fails or succeeds.
4626
+ * Deprecated, use routerrpc.SendToRouteV2. SendToRouteSync is a synchronous
4627
+ * version of SendToRoute. It Will block until the payment either fails or
4628
+ * succeeds.
4629
+ *
4630
+ * @deprecated
4528
4631
*/
4529
4632
sendToRouteSync (
4530
4633
request ?: DeepPartial < SendToRouteRequest >
0 commit comments