@lightsparkdev/lightspark-sdk 1.8.2 → 1.8.3

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 (41) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/BitcoinNetwork-CIfB1c0X.d.ts +21 -0
  3. package/dist/{chunk-4KFNQOMH.js → chunk-3SPTFEYJ.js} +1 -0
  4. package/dist/env.d.cts +2 -2
  5. package/dist/env.d.ts +2 -2
  6. package/dist/env.js +1 -1
  7. package/dist/index-B83OtHZi.d.cts +4819 -0
  8. package/dist/{index-27dad75b.d.ts → index-uoUldBPd.d.ts} +31 -18
  9. package/dist/index.cjs +20 -27
  10. package/dist/index.d.cts +4 -4
  11. package/dist/index.d.ts +4 -4
  12. package/dist/index.js +12 -15
  13. package/dist/objects/index.cjs +1 -0
  14. package/dist/objects/index.d.cts +2 -2
  15. package/dist/objects/index.d.ts +2 -2
  16. package/dist/objects/index.js +2 -2
  17. package/dist/{text-encoding-26SMKBAQ.js → text-encoding-3OZOB4NR.js} +6 -11
  18. package/package.json +9 -12
  19. package/src/objects/Channel.ts +2 -3
  20. package/src/objects/ChannelClosingTransaction.ts +1 -1
  21. package/src/objects/ChannelOpeningTransaction.ts +1 -1
  22. package/src/objects/FundNodeInput.ts +4 -0
  23. package/src/objects/Hop.ts +1 -1
  24. package/src/objects/IncomingPayment.ts +1 -2
  25. package/src/objects/IncomingPaymentsForPaymentHashQueryInput.ts +34 -0
  26. package/src/objects/IncomingPaymentsForPaymentHashQueryOutput.ts +37 -0
  27. package/src/objects/InvoiceForPaymentHashOutput.ts +1 -1
  28. package/src/objects/LightningTransaction.ts +10 -8
  29. package/src/objects/LightsparkNodeOwner.ts +1 -1
  30. package/src/objects/OnChainTransaction.ts +6 -4
  31. package/src/objects/OutgoingPayment.ts +1 -1
  32. package/src/objects/OutgoingPaymentAttempt.ts +1 -2
  33. package/src/objects/OutgoingPaymentForIdempotencyKeyOutput.ts +1 -2
  34. package/src/objects/RoutingTransaction.ts +2 -4
  35. package/src/objects/Transaction.ts +16 -12
  36. package/src/objects/Wallet.ts +1 -1
  37. package/src/objects/WebhookEventType.ts +2 -0
  38. package/src/objects/WithdrawalRequest.ts +1 -1
  39. package/src/objects/index.ts +9 -7
  40. /package/dist/{BitcoinNetwork-4f6ea015.d.ts → BitcoinNetwork-CIfB1c0X.d.cts} +0 -0
  41. /package/dist/{chunk-BMTV3EA2.js → chunk-FTA5RKYX.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/lightspark-sdk",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Lightspark JS SDK",
5
5
  "author": "Lightspark Inc.",
6
6
  "keywords": [
@@ -26,8 +26,7 @@
26
26
  "default": "./dist/index.js"
27
27
  },
28
28
  "module": "./dist/index.js",
29
- "require": "./dist/index.cjs",
30
- "default": "./dist/index.cjs"
29
+ "require": "./dist/index.cjs"
31
30
  },
32
31
  "./objects": {
33
32
  "types": "./dist/objects/index.d.ts",
@@ -36,8 +35,7 @@
36
35
  "default": "./dist/objects/index.js"
37
36
  },
38
37
  "module": "./dist/objects/index.js",
39
- "require": "./dist/objects/index.cjs",
40
- "default": "./dist/objects/index.cjs"
38
+ "require": "./dist/objects/index.cjs"
41
39
  },
42
40
  "./env": {
43
41
  "types": "./dist/env.d.ts",
@@ -46,8 +44,7 @@
46
44
  "default": "./dist/env.js"
47
45
  },
48
46
  "module": "./dist/env.js",
49
- "require": "./dist/env.cjs",
50
- "default": "./dist/env.cjs"
47
+ "require": "./dist/env.cjs"
51
48
  }
52
49
  },
53
50
  "type": "module",
@@ -67,7 +64,7 @@
67
64
  "scripts": {
68
65
  "build": "yarn tsc && tsup",
69
66
  "build:watch": "yarn build --watch --clean=false",
70
- "clean": "rm -rf .turbo && rm -rf dist",
67
+ "clean": "rm -rf dist",
71
68
  "dev": "yarn build -- --watch",
72
69
  "docs": "typedoc src",
73
70
  "format:fix": "prettier src --write",
@@ -85,8 +82,8 @@
85
82
  },
86
83
  "license": "Apache-2.0",
87
84
  "dependencies": {
88
- "@lightsparkdev/core": "1.2.1",
89
- "@lightsparkdev/crypto-wasm": "0.1.4",
85
+ "@lightsparkdev/core": "1.2.2",
86
+ "@lightsparkdev/crypto-wasm": "0.1.5",
90
87
  "crypto-browserify": "^3.12.0",
91
88
  "dayjs": "^1.11.7",
92
89
  "dotenv": "^16.3.1",
@@ -110,9 +107,9 @@
110
107
  "prettier-plugin-organize-imports": "^3.2.4",
111
108
  "ts-jest": "^29.1.1",
112
109
  "tsc-absolute": "^1.0.1",
113
- "tsup": "^7.2.0",
110
+ "tsup": "^8.2.4",
114
111
  "typedoc": "^0.24.7",
115
- "typescript": "^5.0.0"
112
+ "typescript": "^5.6.2"
116
113
  },
117
114
  "engines": {
118
115
  "node": ">=18"
@@ -194,8 +194,7 @@ ${FRAGMENT}
194
194
  channel_id: this.id,
195
195
  channel_created_at: this.createdAt,
196
196
  channel_updated_at: this.updatedAt,
197
- channel_funding_transaction:
198
- { id: this.fundingTransactionId } ?? undefined,
197
+ channel_funding_transaction: { id: this.fundingTransactionId },
199
198
  channel_capacity: this.capacity
200
199
  ? CurrencyAmountToJson(this.capacity)
201
200
  : undefined,
@@ -224,7 +223,7 @@ ${FRAGMENT}
224
223
  ? CurrencyAmountToJson(this.commitFee)
225
224
  : undefined,
226
225
  channel_fees: this.fees ? ChannelFeesToJson(this.fees) : undefined,
227
- channel_remote_node: { id: this.remoteNodeId } ?? undefined,
226
+ channel_remote_node: { id: this.remoteNodeId },
228
227
  channel_local_node: { id: this.localNodeId },
229
228
  channel_short_channel_id: this.shortChannelId,
230
229
  };
@@ -109,7 +109,7 @@ export const ChannelClosingTransactionToJson = (
109
109
  channel_closing_transaction_block_height: obj.blockHeight,
110
110
  channel_closing_transaction_destination_addresses: obj.destinationAddresses,
111
111
  channel_closing_transaction_num_confirmations: obj.numConfirmations,
112
- channel_closing_transaction_channel: { id: obj.channelId } ?? undefined,
112
+ channel_closing_transaction_channel: { id: obj.channelId },
113
113
  };
114
114
  };
115
115
 
@@ -109,7 +109,7 @@ export const ChannelOpeningTransactionToJson = (
109
109
  channel_opening_transaction_block_height: obj.blockHeight,
110
110
  channel_opening_transaction_destination_addresses: obj.destinationAddresses,
111
111
  channel_opening_transaction_num_confirmations: obj.numConfirmations,
112
- channel_opening_transaction_channel: { id: obj.channelId } ?? undefined,
112
+ channel_opening_transaction_channel: { id: obj.channelId },
113
113
  };
114
114
  };
115
115
 
@@ -4,18 +4,22 @@ interface FundNodeInput {
4
4
  nodeId: string;
5
5
 
6
6
  amountSats?: number | undefined;
7
+
8
+ fundingAddress?: string | undefined;
7
9
  }
8
10
 
9
11
  export const FundNodeInputFromJson = (obj: any): FundNodeInput => {
10
12
  return {
11
13
  nodeId: obj["fund_node_input_node_id"],
12
14
  amountSats: obj["fund_node_input_amount_sats"],
15
+ fundingAddress: obj["fund_node_input_funding_address"],
13
16
  } as FundNodeInput;
14
17
  };
15
18
  export const FundNodeInputToJson = (obj: FundNodeInput): any => {
16
19
  return {
17
20
  fund_node_input_node_id: obj.nodeId,
18
21
  fund_node_input_amount_sats: obj.amountSats,
22
+ fund_node_input_funding_address: obj.fundingAddress,
19
23
  };
20
24
  };
21
25
 
@@ -69,7 +69,7 @@ export const HopToJson = (obj: Hop): any => {
69
69
  hop_id: obj.id,
70
70
  hop_created_at: obj.createdAt,
71
71
  hop_updated_at: obj.updatedAt,
72
- hop_destination: { id: obj.destinationId } ?? undefined,
72
+ hop_destination: { id: obj.destinationId },
73
73
  hop_index: obj.index,
74
74
  hop_public_key: obj.publicKey,
75
75
  hop_amount_to_forward: obj.amountToForward
@@ -158,8 +158,7 @@ ${FRAGMENT}
158
158
  incoming_payment_transaction_hash: this.transactionHash,
159
159
  incoming_payment_is_uma: this.isUma,
160
160
  incoming_payment_destination: { id: this.destinationId },
161
- incoming_payment_payment_request:
162
- { id: this.paymentRequestId } ?? undefined,
161
+ incoming_payment_payment_request: { id: this.paymentRequestId },
163
162
  incoming_payment_uma_post_transaction_data:
164
163
  this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e)),
165
164
  incoming_payment_is_internal_payment: this.isInternalPayment,
@@ -0,0 +1,34 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+
3
+ import TransactionStatus from "./TransactionStatus.js";
4
+
5
+ interface IncomingPaymentsForPaymentHashQueryInput {
6
+ /** The 32-byte hash of the payment preimage for which to fetch payments **/
7
+ paymentHash: string;
8
+
9
+ /** An optional filter to only query incoming payments of given statuses. **/
10
+ statuses?: TransactionStatus[] | undefined;
11
+ }
12
+
13
+ export const IncomingPaymentsForPaymentHashQueryInputFromJson = (
14
+ obj: any,
15
+ ): IncomingPaymentsForPaymentHashQueryInput => {
16
+ return {
17
+ paymentHash:
18
+ obj["incoming_payments_for_payment_hash_query_input_payment_hash"],
19
+ statuses: obj[
20
+ "incoming_payments_for_payment_hash_query_input_statuses"
21
+ ]?.map((e) => TransactionStatus[e]),
22
+ } as IncomingPaymentsForPaymentHashQueryInput;
23
+ };
24
+ export const IncomingPaymentsForPaymentHashQueryInputToJson = (
25
+ obj: IncomingPaymentsForPaymentHashQueryInput,
26
+ ): any => {
27
+ return {
28
+ incoming_payments_for_payment_hash_query_input_payment_hash:
29
+ obj.paymentHash,
30
+ incoming_payments_for_payment_hash_query_input_statuses: obj.statuses,
31
+ };
32
+ };
33
+
34
+ export default IncomingPaymentsForPaymentHashQueryInput;
@@ -0,0 +1,37 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+
3
+ import type IncomingPayment from "./IncomingPayment.js";
4
+ import { IncomingPaymentFromJson } from "./IncomingPayment.js";
5
+
6
+ interface IncomingPaymentsForPaymentHashQueryOutput {
7
+ payments: IncomingPayment[];
8
+ }
9
+
10
+ export const IncomingPaymentsForPaymentHashQueryOutputFromJson = (
11
+ obj: any,
12
+ ): IncomingPaymentsForPaymentHashQueryOutput => {
13
+ return {
14
+ payments: obj[
15
+ "incoming_payments_for_payment_hash_query_output_payments"
16
+ ].map((e) => IncomingPaymentFromJson(e)),
17
+ } as IncomingPaymentsForPaymentHashQueryOutput;
18
+ };
19
+ export const IncomingPaymentsForPaymentHashQueryOutputToJson = (
20
+ obj: IncomingPaymentsForPaymentHashQueryOutput,
21
+ ): any => {
22
+ return {
23
+ incoming_payments_for_payment_hash_query_output_payments: obj.payments.map(
24
+ (e) => e.toJson(),
25
+ ),
26
+ };
27
+ };
28
+
29
+ export const FRAGMENT = `
30
+ fragment IncomingPaymentsForPaymentHashQueryOutputFragment on IncomingPaymentsForPaymentHashQueryOutput {
31
+ __typename
32
+ incoming_payments_for_payment_hash_query_output_payments: payments {
33
+ id
34
+ }
35
+ }`;
36
+
37
+ export default IncomingPaymentsForPaymentHashQueryOutput;
@@ -15,7 +15,7 @@ export const InvoiceForPaymentHashOutputToJson = (
15
15
  obj: InvoiceForPaymentHashOutput,
16
16
  ): any => {
17
17
  return {
18
- invoice_for_payment_hash_output_invoice: { id: obj.invoiceId } ?? undefined,
18
+ invoice_for_payment_hash_output_invoice: { id: obj.invoiceId },
19
19
  };
20
20
  };
21
21
 
@@ -164,8 +164,9 @@ export const LightningTransactionToJson = (obj: LightningTransaction): any => {
164
164
  incoming_payment_transaction_hash: incomingPayment.transactionHash,
165
165
  incoming_payment_is_uma: incomingPayment.isUma,
166
166
  incoming_payment_destination: { id: incomingPayment.destinationId },
167
- incoming_payment_payment_request:
168
- { id: incomingPayment.paymentRequestId } ?? undefined,
167
+ incoming_payment_payment_request: {
168
+ id: incomingPayment.paymentRequestId,
169
+ },
169
170
  incoming_payment_uma_post_transaction_data:
170
171
  incomingPayment.umaPostTransactionData?.map((e) =>
171
172
  PostTransactionDataToJson(e),
@@ -186,8 +187,7 @@ export const LightningTransactionToJson = (obj: LightningTransaction): any => {
186
187
  outgoing_payment_transaction_hash: outgoingPayment.transactionHash,
187
188
  outgoing_payment_is_uma: outgoingPayment.isUma,
188
189
  outgoing_payment_origin: { id: outgoingPayment.originId },
189
- outgoing_payment_destination:
190
- { id: outgoingPayment.destinationId } ?? undefined,
190
+ outgoing_payment_destination: { id: outgoingPayment.destinationId },
191
191
  outgoing_payment_fees: outgoingPayment.fees
192
192
  ? CurrencyAmountToJson(outgoingPayment.fees)
193
193
  : undefined,
@@ -220,10 +220,12 @@ export const LightningTransactionToJson = (obj: LightningTransaction): any => {
220
220
  routingTransaction.amount,
221
221
  ),
222
222
  routing_transaction_transaction_hash: routingTransaction.transactionHash,
223
- routing_transaction_incoming_channel:
224
- { id: routingTransaction.incomingChannelId } ?? undefined,
225
- routing_transaction_outgoing_channel:
226
- { id: routingTransaction.outgoingChannelId } ?? undefined,
223
+ routing_transaction_incoming_channel: {
224
+ id: routingTransaction.incomingChannelId,
225
+ },
226
+ routing_transaction_outgoing_channel: {
227
+ id: routingTransaction.outgoingChannelId,
228
+ },
227
229
  routing_transaction_fees: routingTransaction.fees
228
230
  ? CurrencyAmountToJson(routingTransaction.fees)
229
231
  : undefined,
@@ -77,7 +77,7 @@ export const LightsparkNodeOwnerToJson = (obj: LightsparkNodeOwner): any => {
77
77
  ? BalancesToJson(wallet.balances)
78
78
  : undefined,
79
79
  wallet_third_party_identifier: wallet.thirdPartyIdentifier,
80
- wallet_account: { id: wallet.accountId } ?? undefined,
80
+ wallet_account: { id: wallet.accountId },
81
81
  wallet_status: wallet.status,
82
82
  };
83
83
  }
@@ -192,8 +192,9 @@ export const OnChainTransactionToJson = (obj: OnChainTransaction): any => {
192
192
  channelClosingTransaction.destinationAddresses,
193
193
  channel_closing_transaction_num_confirmations:
194
194
  channelClosingTransaction.numConfirmations,
195
- channel_closing_transaction_channel:
196
- { id: channelClosingTransaction.channelId } ?? undefined,
195
+ channel_closing_transaction_channel: {
196
+ id: channelClosingTransaction.channelId,
197
+ },
197
198
  };
198
199
  }
199
200
  if (obj.typename == "ChannelOpeningTransaction") {
@@ -224,8 +225,9 @@ export const OnChainTransactionToJson = (obj: OnChainTransaction): any => {
224
225
  channelOpeningTransaction.destinationAddresses,
225
226
  channel_opening_transaction_num_confirmations:
226
227
  channelOpeningTransaction.numConfirmations,
227
- channel_opening_transaction_channel:
228
- { id: channelOpeningTransaction.channelId } ?? undefined,
228
+ channel_opening_transaction_channel: {
229
+ id: channelOpeningTransaction.channelId,
230
+ },
229
231
  };
230
232
  }
231
233
  if (obj.typename == "Deposit") {
@@ -182,7 +182,7 @@ ${FRAGMENT}
182
182
  outgoing_payment_transaction_hash: this.transactionHash,
183
183
  outgoing_payment_is_uma: this.isUma,
184
184
  outgoing_payment_origin: { id: this.originId },
185
- outgoing_payment_destination: { id: this.destinationId } ?? undefined,
185
+ outgoing_payment_destination: { id: this.destinationId },
186
186
  outgoing_payment_fees: this.fees
187
187
  ? CurrencyAmountToJson(this.fees)
188
188
  : undefined,
@@ -168,8 +168,7 @@ ${FRAGMENT}
168
168
  ? CurrencyAmountToJson(this.fees)
169
169
  : undefined,
170
170
  outgoing_payment_attempt_outgoing_payment: { id: this.outgoingPaymentId },
171
- outgoing_payment_attempt_channel_snapshot:
172
- { id: this.channelSnapshotId } ?? undefined,
171
+ outgoing_payment_attempt_channel_snapshot: { id: this.channelSnapshotId },
173
172
  };
174
173
  }
175
174
  }
@@ -17,8 +17,7 @@ export const OutgoingPaymentForIdempotencyKeyOutputToJson = (
17
17
  obj: OutgoingPaymentForIdempotencyKeyOutput,
18
18
  ): any => {
19
19
  return {
20
- outgoing_payment_for_idempotency_key_output_payment:
21
- { id: obj.paymentId } ?? undefined,
20
+ outgoing_payment_for_idempotency_key_output_payment: { id: obj.paymentId },
22
21
  };
23
22
  };
24
23
 
@@ -102,10 +102,8 @@ export const RoutingTransactionToJson = (obj: RoutingTransaction): any => {
102
102
  routing_transaction_resolved_at: obj.resolvedAt,
103
103
  routing_transaction_amount: CurrencyAmountToJson(obj.amount),
104
104
  routing_transaction_transaction_hash: obj.transactionHash,
105
- routing_transaction_incoming_channel:
106
- { id: obj.incomingChannelId } ?? undefined,
107
- routing_transaction_outgoing_channel:
108
- { id: obj.outgoingChannelId } ?? undefined,
105
+ routing_transaction_incoming_channel: { id: obj.incomingChannelId },
106
+ routing_transaction_outgoing_channel: { id: obj.outgoingChannelId },
109
107
  routing_transaction_fees: obj.fees
110
108
  ? CurrencyAmountToJson(obj.fees)
111
109
  : undefined,
@@ -271,8 +271,9 @@ export const TransactionToJson = (obj: Transaction): any => {
271
271
  channelClosingTransaction.destinationAddresses,
272
272
  channel_closing_transaction_num_confirmations:
273
273
  channelClosingTransaction.numConfirmations,
274
- channel_closing_transaction_channel:
275
- { id: channelClosingTransaction.channelId } ?? undefined,
274
+ channel_closing_transaction_channel: {
275
+ id: channelClosingTransaction.channelId,
276
+ },
276
277
  };
277
278
  }
278
279
  if (obj.typename == "ChannelOpeningTransaction") {
@@ -303,8 +304,9 @@ export const TransactionToJson = (obj: Transaction): any => {
303
304
  channelOpeningTransaction.destinationAddresses,
304
305
  channel_opening_transaction_num_confirmations:
305
306
  channelOpeningTransaction.numConfirmations,
306
- channel_opening_transaction_channel:
307
- { id: channelOpeningTransaction.channelId } ?? undefined,
307
+ channel_opening_transaction_channel: {
308
+ id: channelOpeningTransaction.channelId,
309
+ },
308
310
  };
309
311
  }
310
312
  if (obj.typename == "Deposit") {
@@ -341,8 +343,9 @@ export const TransactionToJson = (obj: Transaction): any => {
341
343
  incoming_payment_transaction_hash: incomingPayment.transactionHash,
342
344
  incoming_payment_is_uma: incomingPayment.isUma,
343
345
  incoming_payment_destination: { id: incomingPayment.destinationId },
344
- incoming_payment_payment_request:
345
- { id: incomingPayment.paymentRequestId } ?? undefined,
346
+ incoming_payment_payment_request: {
347
+ id: incomingPayment.paymentRequestId,
348
+ },
346
349
  incoming_payment_uma_post_transaction_data:
347
350
  incomingPayment.umaPostTransactionData?.map((e) =>
348
351
  PostTransactionDataToJson(e),
@@ -363,8 +366,7 @@ export const TransactionToJson = (obj: Transaction): any => {
363
366
  outgoing_payment_transaction_hash: outgoingPayment.transactionHash,
364
367
  outgoing_payment_is_uma: outgoingPayment.isUma,
365
368
  outgoing_payment_origin: { id: outgoingPayment.originId },
366
- outgoing_payment_destination:
367
- { id: outgoingPayment.destinationId } ?? undefined,
369
+ outgoing_payment_destination: { id: outgoingPayment.destinationId },
368
370
  outgoing_payment_fees: outgoingPayment.fees
369
371
  ? CurrencyAmountToJson(outgoingPayment.fees)
370
372
  : undefined,
@@ -397,10 +399,12 @@ export const TransactionToJson = (obj: Transaction): any => {
397
399
  routingTransaction.amount,
398
400
  ),
399
401
  routing_transaction_transaction_hash: routingTransaction.transactionHash,
400
- routing_transaction_incoming_channel:
401
- { id: routingTransaction.incomingChannelId } ?? undefined,
402
- routing_transaction_outgoing_channel:
403
- { id: routingTransaction.outgoingChannelId } ?? undefined,
402
+ routing_transaction_incoming_channel: {
403
+ id: routingTransaction.incomingChannelId,
404
+ },
405
+ routing_transaction_outgoing_channel: {
406
+ id: routingTransaction.outgoingChannelId,
407
+ },
404
408
  routing_transaction_fees: routingTransaction.fees
405
409
  ? CurrencyAmountToJson(routingTransaction.fees)
406
410
  : undefined,
@@ -1199,7 +1199,7 @@ ${FRAGMENT}
1199
1199
  ? BalancesToJson(this.balances)
1200
1200
  : undefined,
1201
1201
  wallet_third_party_identifier: this.thirdPartyIdentifier,
1202
- wallet_account: { id: this.accountId } ?? undefined,
1202
+ wallet_account: { id: this.accountId },
1203
1203
  wallet_status: this.status,
1204
1204
  };
1205
1205
  }
@@ -38,6 +38,8 @@ export enum WebhookEventType {
38
38
  LOW_BALANCE = "LOW_BALANCE",
39
39
 
40
40
  HIGH_BALANCE = "HIGH_BALANCE",
41
+
42
+ CHANNEL_OPENING_FEES = "CHANNEL_OPENING_FEES",
41
43
  }
42
44
 
43
45
  export default WebhookEventType;
@@ -324,7 +324,7 @@ ${FRAGMENT}
324
324
  withdrawal_request_withdrawal_mode: this.withdrawalMode,
325
325
  withdrawal_request_status: this.status,
326
326
  withdrawal_request_completed_at: this.completedAt,
327
- withdrawal_request_withdrawal: { id: this.withdrawalId } ?? undefined,
327
+ withdrawal_request_withdrawal: { id: this.withdrawalId },
328
328
  withdrawal_request_idempotency_key: this.idempotencyKey,
329
329
  withdrawal_request_initiator: this.initiator,
330
330
  };
@@ -80,9 +80,11 @@ export {
80
80
  getIncomingPaymentAttemptQuery,
81
81
  } from "./IncomingPaymentAttempt.js";
82
82
  export { default as IncomingPaymentAttemptStatus } from "./IncomingPaymentAttemptStatus.js";
83
- export { default as IncomingPaymentToAttemptsConnection } from "./IncomingPaymentToAttemptsConnection.js";
84
83
  export { default as IncomingPaymentsForInvoiceQueryInput } from "./IncomingPaymentsForInvoiceQueryInput.js";
85
84
  export { default as IncomingPaymentsForInvoiceQueryOutput } from "./IncomingPaymentsForInvoiceQueryOutput.js";
85
+ export { default as IncomingPaymentsForPaymentHashQueryInput } from "./IncomingPaymentsForPaymentHashQueryInput.js";
86
+ export { default as IncomingPaymentsForPaymentHashQueryOutput } from "./IncomingPaymentsForPaymentHashQueryOutput.js";
87
+ export { default as IncomingPaymentToAttemptsConnection } from "./IncomingPaymentToAttemptsConnection.js";
86
88
  export { default as Invoice, getInvoiceQuery } from "./Invoice.js";
87
89
  export { default as InvoiceData } from "./InvoiceData.js";
88
90
  export { default as InvoiceForPaymentHashInput } from "./InvoiceForPaymentHashInput.js";
@@ -125,15 +127,14 @@ export { default as OutgoingPaymentAttemptStatus } from "./OutgoingPaymentAttemp
125
127
  export { default as OutgoingPaymentAttemptToHopsConnection } from "./OutgoingPaymentAttemptToHopsConnection.js";
126
128
  export { default as OutgoingPaymentForIdempotencyKeyInput } from "./OutgoingPaymentForIdempotencyKeyInput.js";
127
129
  export { default as OutgoingPaymentForIdempotencyKeyOutput } from "./OutgoingPaymentForIdempotencyKeyOutput.js";
128
- export { default as OutgoingPaymentToAttemptsConnection } from "./OutgoingPaymentToAttemptsConnection.js";
129
130
  export { default as OutgoingPaymentsForInvoiceQueryInput } from "./OutgoingPaymentsForInvoiceQueryInput.js";
130
131
  export { default as OutgoingPaymentsForInvoiceQueryOutput } from "./OutgoingPaymentsForInvoiceQueryOutput.js";
131
132
  export { default as OutgoingPaymentsForPaymentHashQueryInput } from "./OutgoingPaymentsForPaymentHashQueryInput.js";
132
133
  export { default as OutgoingPaymentsForPaymentHashQueryOutput } from "./OutgoingPaymentsForPaymentHashQueryOutput.js";
134
+ export { default as OutgoingPaymentToAttemptsConnection } from "./OutgoingPaymentToAttemptsConnection.js";
133
135
  export { default as PageInfo } from "./PageInfo.js";
134
136
  export { default as PayInvoiceInput } from "./PayInvoiceInput.js";
135
137
  export { default as PayInvoiceOutput } from "./PayInvoiceOutput.js";
136
- export { default as PayUmaInvoiceInput } from "./PayUmaInvoiceInput.js";
137
138
  export { default as PaymentDirection } from "./PaymentDirection.js";
138
139
  export { default as PaymentFailureReason } from "./PaymentFailureReason.js";
139
140
  export {
@@ -142,6 +143,7 @@ export {
142
143
  } from "./PaymentRequest.js";
143
144
  export { default as PaymentRequestData } from "./PaymentRequestData.js";
144
145
  export { default as PaymentRequestStatus } from "./PaymentRequestStatus.js";
146
+ export { default as PayUmaInvoiceInput } from "./PayUmaInvoiceInput.js";
145
147
  export { default as Permission } from "./Permission.js";
146
148
  export { default as PostTransactionData } from "./PostTransactionData.js";
147
149
  export { default as RegionCode } from "./RegionCode.js";
@@ -169,16 +171,16 @@ export { default as SendPaymentInput } from "./SendPaymentInput.js";
169
171
  export { default as SendPaymentOutput } from "./SendPaymentOutput.js";
170
172
  export { default as SetInvoicePaymentHashInput } from "./SetInvoicePaymentHashInput.js";
171
173
  export { default as SetInvoicePaymentHashOutput } from "./SetInvoicePaymentHashOutput.js";
172
- export { default as SignInvoiceInput } from "./SignInvoiceInput.js";
173
- export { default as SignInvoiceOutput } from "./SignInvoiceOutput.js";
174
- export { default as SignMessagesInput } from "./SignMessagesInput.js";
175
- export { default as SignMessagesOutput } from "./SignMessagesOutput.js";
176
174
  export { default as Signable, getSignableQuery } from "./Signable.js";
177
175
  export {
178
176
  default as SignablePayload,
179
177
  getSignablePayloadQuery,
180
178
  } from "./SignablePayload.js";
181
179
  export { default as SignablePayloadStatus } from "./SignablePayloadStatus.js";
180
+ export { default as SignInvoiceInput } from "./SignInvoiceInput.js";
181
+ export { default as SignInvoiceOutput } from "./SignInvoiceOutput.js";
182
+ export { default as SignMessagesInput } from "./SignMessagesInput.js";
183
+ export { default as SignMessagesOutput } from "./SignMessagesOutput.js";
182
184
  export { default as SingleNodeDashboard } from "./SingleNodeDashboard.js";
183
185
  export { default as Transaction, getTransactionQuery } from "./Transaction.js";
184
186
  export { default as TransactionFailures } from "./TransactionFailures.js";
File without changes