Skip to content

Commit 95f7528

Browse files
committed
[TS] Update auto-generated TS bindings
1 parent 76982ad commit 95f7528

File tree

369 files changed

+26433
-3196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+26433
-3196
lines changed

ts/bindings.c

Lines changed: 2342 additions & 448 deletions
Large diffs are not rendered by default.

ts/bindings.c.body

Lines changed: 2342 additions & 448 deletions
Large diffs are not rendered by default.

ts/bindings.mts

Lines changed: 1741 additions & 293 deletions
Large diffs are not rendered by default.

ts/index.mts

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export async function initializeWasmFromBinary(bin: Uint8Array) {
99
}
1010

1111
export * from './structs/TxOut.mjs';
12+
export * from './structs/BigEndianScalar.mjs';
1213
export * from './enums/AccessError.mjs';
1314
export * from './enums/COption_NoneZ.mjs';
1415
export * from './enums/ChannelMonitorUpdateErr.mjs';
@@ -23,9 +24,14 @@ export * from './enums/Secp256k1Error.mjs';
2324
export * from './enums/SemanticError.mjs';
2425
export * from './enums/SiPrefix.mjs';
2526
export * from './structs/Bech32Error.mjs';
27+
export * from './structs/BlindedRoute.mjs';
28+
export * from './structs/Result_BlindedRouteNoneZ.mjs';
29+
export * from './structs/DecodeError.mjs';
30+
export * from './structs/Result_BlindedRouteDecodeErrorZ.mjs';
31+
export * from './structs/BlindedHop.mjs';
32+
export * from './structs/Result_BlindedHopDecodeErrorZ.mjs';
2633
export * from './structs/Result_NoneNoneZ.mjs';
2734
export * from './structs/CounterpartyCommitmentSecrets.mjs';
28-
export * from './structs/DecodeError.mjs';
2935
export * from './structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.mjs';
3036
export * from './structs/Result_SecretKeyErrorZ.mjs';
3137
export * from './structs/Result_PublicKeyErrorZ.mjs';
@@ -103,7 +109,6 @@ export * from './structs/ClosingSigned.mjs';
103109
export * from './structs/Shutdown.mjs';
104110
export * from './structs/ChannelReestablish.mjs';
105111
export * from './structs/ChannelAnnouncement.mjs';
106-
export * from './structs/NodeAnnouncement.mjs';
107112
export * from './structs/ErrorMessage.mjs';
108113
export * from './structs/WarningMessage.mjs';
109114
export * from './structs/ErrorAction.mjs';
@@ -118,7 +123,6 @@ export * from './structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
118123
export * from './structs/HTLCUpdate.mjs';
119124
export * from './structs/MonitorEvent.mjs';
120125
export * from './structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
121-
export * from './structs/Option_C2Tuple_usizeTransactionZZ.mjs';
122126
export * from './structs/FixedPenaltyScorer.mjs';
123127
export * from './structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
124128
export * from './structs/TwoTuple_u64u64Z.mjs';
@@ -144,6 +148,7 @@ export * from './structs/Access.mjs';
144148
export * from './structs/Option_AccessZ.mjs';
145149
export * from './structs/Result_boolLightningErrorZ.mjs';
146150
export * from './structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.mjs';
151+
export * from './structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.mjs';
147152
export * from './structs/Result_NoneLightningErrorZ.mjs';
148153
export * from './structs/ChannelUpdateInfo.mjs';
149154
export * from './structs/Result_ChannelUpdateInfoDecodeErrorZ.mjs';
@@ -170,6 +175,8 @@ export * from './structs/Result_SignatureNoneZ.mjs';
170175
export * from './structs/TwoTuple_SignatureSignatureZ.mjs';
171176
export * from './structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs';
172177
export * from './structs/Result_SecretKeyNoneZ.mjs';
178+
export * from './structs/Option_ScalarZ.mjs';
179+
export * from './structs/Result_SharedSecretNoneZ.mjs';
173180
export * from './structs/ClosingTransaction.mjs';
174181
export * from './structs/UnsignedChannelAnnouncement.mjs';
175182
export * from './structs/BaseSign.mjs';
@@ -219,6 +226,8 @@ export * from './structs/Option_TypeZ.mjs';
219226
export * from './structs/Result_COption_TypeZDecodeErrorZ.mjs';
220227
export * from './structs/PaymentError.mjs';
221228
export * from './structs/Result_PaymentIdPaymentErrorZ.mjs';
229+
export * from './structs/InFlightHtlcs.mjs';
230+
export * from './structs/Result_InFlightHtlcsDecodeErrorZ.mjs';
222231
export * from './structs/ParseError.mjs';
223232
export * from './structs/Result_SiPrefixParseErrorZ.mjs';
224233
export * from './structs/Invoice.mjs';
@@ -258,6 +267,8 @@ export * from './structs/PeerHandleError.mjs';
258267
export * from './structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
259268
export * from './structs/Result_NonePeerHandleErrorZ.mjs';
260269
export * from './structs/Result_boolPeerHandleErrorZ.mjs';
270+
export * from './structs/SendError.mjs';
271+
export * from './structs/Result_NoneSendErrorZ.mjs';
261272
export * from './structs/Result_NoneErrorZ.mjs';
262273
export * from './structs/Result_NetAddressDecodeErrorZ.mjs';
263274
export * from './structs/UpdateAddHTLC.mjs';
@@ -286,6 +297,8 @@ export * from './structs/UpdateFee.mjs';
286297
export * from './structs/Result_UpdateFeeDecodeErrorZ.mjs';
287298
export * from './structs/Result_UpdateFulfillHTLCDecodeErrorZ.mjs';
288299
export * from './structs/Result_UpdateAddHTLCDecodeErrorZ.mjs';
300+
export * from './structs/OnionMessage.mjs';
301+
export * from './structs/Result_OnionMessageDecodeErrorZ.mjs';
289302
export * from './structs/Ping.mjs';
290303
export * from './structs/Result_PingDecodeErrorZ.mjs';
291304
export * from './structs/Pong.mjs';
@@ -299,6 +312,7 @@ export * from './structs/Result_ErrorMessageDecodeErrorZ.mjs';
299312
export * from './structs/Result_WarningMessageDecodeErrorZ.mjs';
300313
export * from './structs/UnsignedNodeAnnouncement.mjs';
301314
export * from './structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.mjs';
315+
export * from './structs/NodeAnnouncement.mjs';
302316
export * from './structs/Result_NodeAnnouncementDecodeErrorZ.mjs';
303317
export * from './structs/Result_QueryShortChannelIdsDecodeErrorZ.mjs';
304318
export * from './structs/ReplyShortChannelIdsEnd.mjs';
@@ -314,13 +328,17 @@ export * from './structs/Option_FilterZ.mjs';
314328
export * from './structs/LockedChannelMonitor.mjs';
315329
export * from './structs/Result_LockedChannelMonitorNoneZ.mjs';
316330
export * from './structs/MessageSendEventsProvider.mjs';
331+
export * from './structs/OnionMessageProvider.mjs';
317332
export * from './structs/EventHandler.mjs';
318333
export * from './structs/EventsProvider.mjs';
319334
export * from './structs/BigSize.mjs';
320335
export * from './structs/ChannelUsage.mjs';
321336
export * from './structs/Score.mjs';
322-
export * from './structs/MultiThreadedLockableScore.mjs';
337+
export * from './structs/LockableScore.mjs';
338+
export * from './structs/WriteableScore.mjs';
323339
export * from './structs/Persister.mjs';
340+
export * from './structs/FutureCallback.mjs';
341+
export * from './structs/Future.mjs';
324342
export * from './structs/ChannelHandshakeConfig.mjs';
325343
export * from './structs/ChannelHandshakeLimits.mjs';
326344
export * from './structs/UserConfig.mjs';
@@ -338,6 +356,7 @@ export * from './structs/ChannelManagerReadArgs.mjs';
338356
export * from './structs/ExpandedKey.mjs';
339357
export * from './structs/DataLossProtect.mjs';
340358
export * from './structs/RoutingMessageHandler.mjs';
359+
export * from './structs/OnionMessageHandler.mjs';
341360
export * from './structs/CustomMessageReader.mjs';
342361
export * from './structs/CustomMessageHandler.mjs';
343362
export * from './structs/IgnoringMessageHandler.mjs';
@@ -350,8 +369,11 @@ export * from './structs/ReadOnlyNetworkGraph.mjs';
350369
export * from './structs/P2PGossipSync.mjs';
351370
export * from './structs/DirectedChannelInfo.mjs';
352371
export * from './structs/EffectiveCapacity.mjs';
353-
export * from './structs/LockableScore.mjs';
372+
export * from './structs/MultiThreadedLockableScore.mjs';
373+
export * from './structs/MultiThreadedScoreLock.mjs';
354374
export * from './structs/ProbabilisticScoringParameters.mjs';
375+
export * from './structs/OnionMessenger.mjs';
376+
export * from './structs/Destination.mjs';
355377
export * from './structs/RawDataPart.mjs';
356378
export * from './structs/Sha256.mjs';
357379
export * from './structs/ExpiryTime.mjs';

ts/structs/APIError.mts

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { TxOut } from '../structs/TxOut.mjs';
2+
import { BigEndianScalar } from '../structs/BigEndianScalar.mjs';
23
import { AccessError } from '../enums/AccessError.mjs';
34
import { COption_NoneZ } from '../enums/COption_NoneZ.mjs';
45
import { ChannelMonitorUpdateErr } from '../enums/ChannelMonitorUpdateErr.mjs';
@@ -13,9 +14,14 @@ import { Secp256k1Error } from '../enums/Secp256k1Error.mjs';
1314
import { SemanticError } from '../enums/SemanticError.mjs';
1415
import { SiPrefix } from '../enums/SiPrefix.mjs';
1516
import { Bech32Error } from '../structs/Bech32Error.mjs';
17+
import { BlindedRoute } from '../structs/BlindedRoute.mjs';
18+
import { Result_BlindedRouteNoneZ } from '../structs/Result_BlindedRouteNoneZ.mjs';
19+
import { DecodeError } from '../structs/DecodeError.mjs';
20+
import { Result_BlindedRouteDecodeErrorZ } from '../structs/Result_BlindedRouteDecodeErrorZ.mjs';
21+
import { BlindedHop } from '../structs/BlindedHop.mjs';
22+
import { Result_BlindedHopDecodeErrorZ } from '../structs/Result_BlindedHopDecodeErrorZ.mjs';
1623
import { Result_NoneNoneZ } from '../structs/Result_NoneNoneZ.mjs';
1724
import { CounterpartyCommitmentSecrets } from '../structs/CounterpartyCommitmentSecrets.mjs';
18-
import { DecodeError } from '../structs/DecodeError.mjs';
1925
import { Result_CounterpartyCommitmentSecretsDecodeErrorZ } from '../structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.mjs';
2026
import { Result_SecretKeyErrorZ } from '../structs/Result_SecretKeyErrorZ.mjs';
2127
import { Result_PublicKeyErrorZ } from '../structs/Result_PublicKeyErrorZ.mjs';
@@ -93,7 +99,6 @@ import { ClosingSigned } from '../structs/ClosingSigned.mjs';
9399
import { Shutdown } from '../structs/Shutdown.mjs';
94100
import { ChannelReestablish } from '../structs/ChannelReestablish.mjs';
95101
import { ChannelAnnouncement } from '../structs/ChannelAnnouncement.mjs';
96-
import { NodeAnnouncement } from '../structs/NodeAnnouncement.mjs';
97102
import { ErrorMessage } from '../structs/ErrorMessage.mjs';
98103
import { WarningMessage } from '../structs/WarningMessage.mjs';
99104
import { ErrorAction } from '../structs/ErrorAction.mjs';
@@ -108,7 +113,6 @@ import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChann
108113
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
109114
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
110115
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
111-
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
112116
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
113117
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
114118
import { TwoTuple_u64u64Z } from '../structs/TwoTuple_u64u64Z.mjs';
@@ -134,6 +138,7 @@ import { Access, AccessInterface } from '../structs/Access.mjs';
134138
import { Option_AccessZ } from '../structs/Option_AccessZ.mjs';
135139
import { Result_boolLightningErrorZ } from '../structs/Result_boolLightningErrorZ.mjs';
136140
import { ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ } from '../structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.mjs';
141+
import { Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ } from '../structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.mjs';
137142
import { Result_NoneLightningErrorZ } from '../structs/Result_NoneLightningErrorZ.mjs';
138143
import { ChannelUpdateInfo } from '../structs/ChannelUpdateInfo.mjs';
139144
import { Result_ChannelUpdateInfoDecodeErrorZ } from '../structs/Result_ChannelUpdateInfoDecodeErrorZ.mjs';
@@ -160,6 +165,8 @@ import { Result_SignatureNoneZ } from '../structs/Result_SignatureNoneZ.mjs';
160165
import { TwoTuple_SignatureSignatureZ } from '../structs/TwoTuple_SignatureSignatureZ.mjs';
161166
import { Result_C2Tuple_SignatureSignatureZNoneZ } from '../structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs';
162167
import { Result_SecretKeyNoneZ } from '../structs/Result_SecretKeyNoneZ.mjs';
168+
import { Option_ScalarZ } from '../structs/Option_ScalarZ.mjs';
169+
import { Result_SharedSecretNoneZ } from '../structs/Result_SharedSecretNoneZ.mjs';
163170
import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
164171
import { UnsignedChannelAnnouncement } from '../structs/UnsignedChannelAnnouncement.mjs';
165172
import { BaseSign, BaseSignInterface } from '../structs/BaseSign.mjs';
@@ -208,6 +215,8 @@ import { Option_TypeZ } from '../structs/Option_TypeZ.mjs';
208215
import { Result_COption_TypeZDecodeErrorZ } from '../structs/Result_COption_TypeZDecodeErrorZ.mjs';
209216
import { PaymentError } from '../structs/PaymentError.mjs';
210217
import { Result_PaymentIdPaymentErrorZ } from '../structs/Result_PaymentIdPaymentErrorZ.mjs';
218+
import { InFlightHtlcs } from '../structs/InFlightHtlcs.mjs';
219+
import { Result_InFlightHtlcsDecodeErrorZ } from '../structs/Result_InFlightHtlcsDecodeErrorZ.mjs';
211220
import { ParseError } from '../structs/ParseError.mjs';
212221
import { Result_SiPrefixParseErrorZ } from '../structs/Result_SiPrefixParseErrorZ.mjs';
213222
import { Invoice } from '../structs/Invoice.mjs';
@@ -247,6 +256,8 @@ import { PeerHandleError } from '../structs/PeerHandleError.mjs';
247256
import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
248257
import { Result_NonePeerHandleErrorZ } from '../structs/Result_NonePeerHandleErrorZ.mjs';
249258
import { Result_boolPeerHandleErrorZ } from '../structs/Result_boolPeerHandleErrorZ.mjs';
259+
import { SendError } from '../structs/SendError.mjs';
260+
import { Result_NoneSendErrorZ } from '../structs/Result_NoneSendErrorZ.mjs';
250261
import { Result_NoneErrorZ } from '../structs/Result_NoneErrorZ.mjs';
251262
import { Result_NetAddressDecodeErrorZ } from '../structs/Result_NetAddressDecodeErrorZ.mjs';
252263
import { UpdateAddHTLC } from '../structs/UpdateAddHTLC.mjs';
@@ -275,6 +286,8 @@ import { UpdateFee } from '../structs/UpdateFee.mjs';
275286
import { Result_UpdateFeeDecodeErrorZ } from '../structs/Result_UpdateFeeDecodeErrorZ.mjs';
276287
import { Result_UpdateFulfillHTLCDecodeErrorZ } from '../structs/Result_UpdateFulfillHTLCDecodeErrorZ.mjs';
277288
import { Result_UpdateAddHTLCDecodeErrorZ } from '../structs/Result_UpdateAddHTLCDecodeErrorZ.mjs';
289+
import { OnionMessage } from '../structs/OnionMessage.mjs';
290+
import { Result_OnionMessageDecodeErrorZ } from '../structs/Result_OnionMessageDecodeErrorZ.mjs';
278291
import { Ping } from '../structs/Ping.mjs';
279292
import { Result_PingDecodeErrorZ } from '../structs/Result_PingDecodeErrorZ.mjs';
280293
import { Pong } from '../structs/Pong.mjs';
@@ -288,6 +301,7 @@ import { Result_ErrorMessageDecodeErrorZ } from '../structs/Result_ErrorMessageD
288301
import { Result_WarningMessageDecodeErrorZ } from '../structs/Result_WarningMessageDecodeErrorZ.mjs';
289302
import { UnsignedNodeAnnouncement } from '../structs/UnsignedNodeAnnouncement.mjs';
290303
import { Result_UnsignedNodeAnnouncementDecodeErrorZ } from '../structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.mjs';
304+
import { NodeAnnouncement } from '../structs/NodeAnnouncement.mjs';
291305
import { Result_NodeAnnouncementDecodeErrorZ } from '../structs/Result_NodeAnnouncementDecodeErrorZ.mjs';
292306
import { Result_QueryShortChannelIdsDecodeErrorZ } from '../structs/Result_QueryShortChannelIdsDecodeErrorZ.mjs';
293307
import { ReplyShortChannelIdsEnd } from '../structs/ReplyShortChannelIdsEnd.mjs';
@@ -303,13 +317,17 @@ import { Option_FilterZ } from '../structs/Option_FilterZ.mjs';
303317
import { LockedChannelMonitor } from '../structs/LockedChannelMonitor.mjs';
304318
import { Result_LockedChannelMonitorNoneZ } from '../structs/Result_LockedChannelMonitorNoneZ.mjs';
305319
import { MessageSendEventsProvider, MessageSendEventsProviderInterface } from '../structs/MessageSendEventsProvider.mjs';
320+
import { OnionMessageProvider, OnionMessageProviderInterface } from '../structs/OnionMessageProvider.mjs';
306321
import { EventHandler, EventHandlerInterface } from '../structs/EventHandler.mjs';
307322
import { EventsProvider, EventsProviderInterface } from '../structs/EventsProvider.mjs';
308323
import { BigSize } from '../structs/BigSize.mjs';
309324
import { ChannelUsage } from '../structs/ChannelUsage.mjs';
310325
import { Score, ScoreInterface } from '../structs/Score.mjs';
311-
import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScore.mjs';
326+
import { LockableScore, LockableScoreInterface } from '../structs/LockableScore.mjs';
327+
import { WriteableScore, WriteableScoreInterface } from '../structs/WriteableScore.mjs';
312328
import { Persister, PersisterInterface } from '../structs/Persister.mjs';
329+
import { FutureCallback, FutureCallbackInterface } from '../structs/FutureCallback.mjs';
330+
import { Future } from '../structs/Future.mjs';
313331
import { ChannelHandshakeConfig } from '../structs/ChannelHandshakeConfig.mjs';
314332
import { ChannelHandshakeLimits } from '../structs/ChannelHandshakeLimits.mjs';
315333
import { UserConfig } from '../structs/UserConfig.mjs';
@@ -327,6 +345,7 @@ import { ChannelManagerReadArgs } from '../structs/ChannelManagerReadArgs.mjs';
327345
import { ExpandedKey } from '../structs/ExpandedKey.mjs';
328346
import { DataLossProtect } from '../structs/DataLossProtect.mjs';
329347
import { RoutingMessageHandler, RoutingMessageHandlerInterface } from '../structs/RoutingMessageHandler.mjs';
348+
import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/OnionMessageHandler.mjs';
330349
import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
331350
import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
332351
import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
@@ -339,8 +358,11 @@ import { ReadOnlyNetworkGraph } from '../structs/ReadOnlyNetworkGraph.mjs';
339358
import { P2PGossipSync } from '../structs/P2PGossipSync.mjs';
340359
import { DirectedChannelInfo } from '../structs/DirectedChannelInfo.mjs';
341360
import { EffectiveCapacity } from '../structs/EffectiveCapacity.mjs';
342-
import { LockableScore, LockableScoreInterface } from '../structs/LockableScore.mjs';
361+
import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScore.mjs';
362+
import { MultiThreadedScoreLock } from '../structs/MultiThreadedScoreLock.mjs';
343363
import { ProbabilisticScoringParameters } from '../structs/ProbabilisticScoringParameters.mjs';
364+
import { OnionMessenger } from '../structs/OnionMessenger.mjs';
365+
import { Destination } from '../structs/Destination.mjs';
344366
import { RawDataPart } from '../structs/RawDataPart.mjs';
345367
import { Sha256 } from '../structs/Sha256.mjs';
346368
import { ExpiryTime } from '../structs/ExpiryTime.mjs';

0 commit comments

Comments
 (0)